﻿:root {
  color-scheme: light;
  --brand: #00a85a;
  --brand-dark: #006f43;
  --brand-soft: #e5f7ef;
  --ink: #10233f;
  --muted: #667085;
  --soft-ink: #344054;
  --bg: #f6f8fb;
  --surface: #ffffff;
  --surface-soft: #f9fbfc;
  --line: #dce4ea;
  --blue: #2f6fec;
  --blue-soft: #edf4ff;
  --amber: #f59e0b;
  --amber-soft: #fff5df;
  --red: #e5484d;
  --red-soft: #fff0f0;
  --violet: #7457e6;
  --violet-soft: #f1edff;
  --shadow: 0 16px 34px rgba(16, 35, 63, .08);
  --soft-shadow: 0 8px 22px rgba(16, 35, 63, .06);
  --radius: 8px;
  --topbar-height: 72px;
  --font-sans: "SVN-Gilroy", "SVN Gilroy", "Gilroy", "Segoe UI", Arial, sans-serif;
  font-synthesis-weight: none;
}

@font-face {
  font-family: "SVN-Gilroy";
  src: url("fonts/SVN-Gilroy-Regular.otf") format("opentype");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SVN-Gilroy";
  src: url("fonts/SVN-Gilroy-Medium.otf") format("opentype");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SVN-Gilroy";
  src: url("fonts/SVN-Gilroy-SemiBold.otf") format("opentype");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SVN-Gilroy";
  src: url("fonts/SVN-Gilroy-Bold.otf") format("opentype");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "SVN-Gilroy";
  src: url("fonts/SVN-Gilroy-XBold.otf") format("opentype");
  font-weight: 800 900;
  font-style: normal;
  font-display: swap;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 17px;
  line-height: 1.6;
}

body.modal-open {
  overflow: hidden;
}

@media (min-width: 921px) {
  body {
    height: 100vh;
    overflow: hidden;
  }
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  color: inherit;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: var(--topbar-height);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, .92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.brand {
  width: auto;
  min-width: 136px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.brand img {
  width: 112px;
  height: 38px;
  padding: 7px 10px;
  border-radius: var(--radius);
  object-fit: contain;
  background: var(--brand);
  box-sizing: border-box;
}

.brand span {
  display: grid;
  line-height: 1.2;
}

.brand strong {
  font-size: 15px;
}

.brand small {
  color: var(--muted);
  font-size: 12px;
}

.topnav {
  flex: 1 1 auto;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
}

.topnav::-webkit-scrollbar {
  display: none;
}

.topnav a {
  height: 44px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 12px;
  border-radius: var(--radius);
  color: var(--soft-ink);
  text-decoration: none;
  font-weight: 800;
  font-size: 16px;
}

.topnav a:hover,
.topnav a.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.nav-icon,
.quick-icon,
.action-art,
.mini-icon {
  position: relative;
}

.nav-icon::before,
.nav-icon::after,
.quick-icon::before,
.quick-icon::after,
.action-art::before,
.action-art::after,
.mini-icon::before,
.mini-icon::after {
  content: "";
  position: absolute;
  box-sizing: border-box;
}

.nav-icon {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: var(--brand);
}

.nav-icon::before {
  background: currentColor;
  inset: 0;
  -webkit-mask: var(--nav-icon-url) center / contain no-repeat;
  mask: var(--nav-icon-url) center / contain no-repeat;
}

.nav-icon::after {
  display: none;
}

.nav-icon.home {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 10.5 12 3l9 7.5V20a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon.knowledge {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M5 4.5h10a4 4 0 0 1 4 4V20H9a4 4 0 0 0-4-4zM5 4.5V20' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3Cpath d='M9 8h5M9 12h6' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon.process {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 5h12M6 12h12M6 19h12' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Ccircle cx='6' cy='5' r='2' fill='black'/%3E%3Ccircle cx='18' cy='12' r='2' fill='black'/%3E%3Ccircle cx='6' cy='19' r='2' fill='black'/%3E%3C/svg%3E");
}

.nav-icon.standards {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 3h7l4 4v14H7a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1zM14 3v5h5M9 13h6M9 17h6' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon.templates {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='4' y='4' width='16' height='16' rx='2' fill='none' stroke='black' stroke-width='2'/%3E%3Cpath d='M8 8h8M8 12h8M8 16h5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon.faq {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 18h.01M9.5 9.2a2.7 2.7 0 1 1 4.9 1.6c-.8 1.1-2.4 1.5-2.4 3.2' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M21 12a9 9 0 0 1-13.8 7.6L3 21l1.4-4.2A9 9 0 1 1 21 12z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.nav-icon.projects {
  --nav-icon-url: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 8a2 2 0 0 1 2-2h5l2 2h7a2 2 0 0 1 2 2v8a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z' fill='none' stroke='black' stroke-width='2' stroke-linejoin='round' stroke-linecap='round'/%3E%3C/svg%3E");
}

.nav-icon.knowledge,
.nav-icon.faq {
  color: var(--blue);
}

.nav-icon.process,
.nav-icon.templates {
  color: var(--amber);
}

.nav-icon.standards,
.nav-icon.projects {
  color: var(--violet);
}

.stars {
  color: var(--amber);
  font-weight: 800;
}

.search-box {
  position: relative;
  width: min(300px, 22vw);
  min-width: 190px;
}

.search-box span {
  position: absolute;
  left: 12px;
  top: 9px;
  color: var(--muted);
  pointer-events: none;
}

.search-icon {
  width: 20px;
  height: 20px;
}

.search-icon::before {
  left: 1px;
  top: 1px;
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-radius: 999px;
}

.search-icon::after {
  left: 13px;
  top: 13px;
  width: 8px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.search-box input {
  width: 100%;
  height: 42px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--surface);
  outline: none;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(0, 168, 90, .12);
}

.search-results {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: min(520px, 88vw);
  max-height: 420px;
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-result {
  width: 100%;
  display: block;
  padding: 10px 12px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.search-result:hover {
  background: var(--surface-soft);
}

.search-result strong {
  display: block;
  color: var(--ink);
}

.search-result small {
  display: block;
  color: var(--muted);
}

.icon-button,
.ghost-button,
.primary-button,
.secondary-button,
.link-button,
.small-button,
.table-link {
  border: 0;
  border-radius: var(--radius);
  cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease, border-color .16s ease;
}

.icon-button:active,
.ghost-button:active,
.primary-button:active,
.secondary-button:active,
.link-button:active,
.small-button:active,
.table-link:active {
  transform: translateY(1px);
}

.icon-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}

.menu-toggle {
  display: none;
}

.ghost-button {
  height: 42px;
  padding: 0 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--soft-ink);
  font-weight: 800;
}

.ghost-button:hover,
.secondary-button:hover,
.small-button:hover {
  border-color: rgba(0, 168, 90, .4);
  color: var(--brand);
  background: var(--brand-soft);
}

.primary-button,
.secondary-button {
  min-height: 44px;
  padding: 0 18px;
  font-weight: 800;
}

.primary-button {
  color: #fff;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 168, 90, .18);
}

.primary-button:hover {
  background: var(--brand-dark);
}

.secondary-button {
  color: var(--brand);
  border: 1px solid rgba(0, 168, 90, .28);
  background: var(--brand-soft);
}

.link-button,
.table-link {
  color: var(--brand);
  background: transparent;
  font-weight: 800;
}

.table-link {
  padding: 6px 8px;
}

.link-button:hover,
.table-link:hover {
  background: var(--brand-soft);
}

.small-button {
  min-height: 36px;
  padding: 0 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-weight: 800;
}

.layout {
  display: grid;
  grid-template-columns: 250px minmax(0, 1fr);
  gap: 12px;
  width: 100%;
  height: calc(100vh - var(--topbar-height));
  margin: 0;
  padding: 12px 14px;
  overflow: hidden;
}

.sidebar {
  position: relative;
  top: auto;
  align-self: start;
  height: 100%;
  max-height: 100%;
  overflow: auto;
}

.side-section,
.panel,
.band,
.page-hero,
.standard-card,
.project-card,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.side-section {
  padding: 16px;
  margin-bottom: 14px;
}

.side-label,
.eyebrow {
  margin: 0 0 10px;
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.side-action {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  margin-bottom: 8px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.side-action:hover,
.side-action.active {
  border-color: rgba(0, 168, 90, .18);
  background: var(--brand-soft);
}

.side-action strong,
.side-action small {
  display: block;
}

.side-action small {
  color: var(--muted);
  font-size: 12px;
}

.side-icon,
.role-icon {
  width: 38px;
  height: 38px;
  flex: 0 0 38px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  font-weight: 900;
  color: var(--brand);
  background: var(--brand-soft);
}

.green {
  color: var(--brand);
  background: var(--brand-soft);
}

.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.red {
  color: var(--red);
  background: var(--red-soft);
}

.violet {
  color: var(--violet);
  background: var(--violet-soft);
}

.role-pill {
  width: 100%;
  min-height: 38px;
  margin: 4px 0;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.role-pill:hover {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.module-sidebar {
  display: grid;
  gap: 14px;
}

.lesson-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  height: calc(100vh - var(--topbar-height) - 44px);
  overflow: hidden;
}

.side-link {
  width: 100%;
  padding: 8px 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}

.lesson-list-back {
  margin-bottom: 2px;
  padding: 8px 10px;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: var(--radius);
  background: var(--brand-soft);
  white-space: nowrap;
}

.lesson-list-back:hover {
  border-color: rgba(0, 168, 90, .42);
  background: #fff;
}

.module-nav-group {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  min-height: 0;
}

.module-nav-group h3 {
  margin: 8px 0 2px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.module-nav-item {
  min-height: 38px;
  margin-bottom: 0;
  padding: 8px 10px;
}

.process-toc-button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
}

.process-toc-button.active {
  color: var(--brand);
  background: var(--brand-soft);
}

.process-step-toc {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.process-lesson-nav {
  display: grid;
  gap: 8px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.process-lesson-nav-button {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-lesson-nav-button span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.process-lesson-nav-button strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.35;
}

.process-lesson-nav-button:hover:not(:disabled) {
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.process-lesson-nav-button:disabled {
  cursor: default;
  opacity: .45;
}

.module-nav-item:disabled {
  cursor: default;
  opacity: .58;
}

.lesson-toc-link {
  display: block;
  padding: 8px 10px;
  border-radius: var(--radius);
  color: var(--ink);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
}

.lesson-toc-link.sub {
  padding-left: 18px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 500;
}

.lesson-toc-link:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.lesson-toc-link.active {
  color: var(--ink);
  background: var(--brand-soft);
  font-weight: 800;
}

.lesson-toc-link.sub.active {
  color: var(--ink);
  font-weight: 800;
}

.lesson-toc-scroll {
  display: grid;
  align-content: start;
  gap: 2px;
  min-height: 0;
  max-height: none;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 4px;
  overscroll-behavior: contain;
}

.module-nav-group > .lesson-toc-scroll:first-of-type {
  max-height: none;
}

.process-overview-body {
  display: grid;
  gap: 22px;
  color: var(--soft-ink);
}

.process-overview-hero,
.process-overview-section {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.process-overview-hero {
  padding: 34px;
  background:
    linear-gradient(135deg, rgba(0, 168, 90, 0.1), rgba(24, 99, 235, 0.08)),
    #fff;
}

.process-overview-hero h1 {
  max-width: 1120px;
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: clamp(32px, 3.2vw, 44px);
  line-height: 1.14;
  text-wrap: balance;
}

.process-overview-hero p:not(.eyebrow) {
  max-width: 980px;
  margin: 0;
  font-size: 17px;
  line-height: 1.75;
}

.process-overview-image {
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.05);
}

.process-overview-image img {
  display: block;
  width: 100%;
  max-height: min(78vh, 900px);
  object-fit: contain;
  border-radius: 10px;
}

.process-overview-image figcaption {
  margin-top: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.process-overview-section {
  padding: 24px;
}

.process-overview-section h2 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 25px;
  line-height: 1.2;
}

.overview-section-lead {
  margin: -4px 0 16px;
}

.overview-outcome-grid,
.overview-role-grid,
.overview-next-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.overview-role-grid,
.overview-next-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-outcome-grid article,
.overview-role-grid article,
.overview-next-grid article {
  min-height: 126px;
  padding: 16px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fafc;
}

.overview-outcome-grid strong,
.overview-role-grid strong,
.overview-next-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--ink);
  font-size: 15px;
}

.overview-outcome-grid span,
.overview-role-grid span,
.overview-next-grid span {
  display: block;
  line-height: 1.55;
}

.overview-step-strip,
.overview-step-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.overview-step-strip article,
.overview-step-grid article {
  display: grid;
  gap: 7px;
  min-height: 132px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 20%, var(--line));
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.overview-step-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow-x: visible;
  gap: 14px;
}

.overview-step-grid article {
  grid-template-columns: auto 1fr;
  min-height: 0;
  background: #fff;
}

.overview-step-strip span,
.overview-step-grid span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
}

.overview-step-strip strong,
.overview-step-grid strong {
  color: var(--ink);
  line-height: 1.25;
}

.overview-step-grid p {
  margin: 6px 0;
  line-height: 1.55;
}

.overview-step-strip small,
.overview-step-grid small {
  color: var(--soft-ink);
  line-height: 1.45;
}

.overview-handoff-list,
.overview-resource-grid {
  display: grid;
  gap: 10px;
}

.overview-handoff-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.overview-resource-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.overview-handoff-list article,
.overview-resource-grid article {
  padding: 14px 16px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fafc;
}

.overview-handoff-list strong,
.overview-resource-grid strong {
  display: block;
  margin-bottom: 5px;
  color: var(--ink);
}

.overview-handoff-list span,
.overview-resource-grid span {
  line-height: 1.55;
}

.overview-handoff-chain {
  display: grid;
  gap: 0;
  border-top: 1px solid #d9e2ec;
}

.overview-handoff-chain article {
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 16px;
  align-items: start;
  padding: 14px 0;
  border-bottom: 1px solid #d9e2ec;
}

.overview-handoff-chain strong {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 30px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.overview-handoff-chain span {
  color: var(--soft-ink);
  line-height: 1.6;
}

.overview-gate {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 22px;
  border-color: rgba(0, 168, 90, 0.25);
  background: linear-gradient(135deg, rgba(0, 168, 90, 0.09), rgba(255, 255, 255, 0.95));
}

.overview-gate p {
  margin: 0;
  line-height: 1.65;
}

.overview-gate ul {
  margin: 0;
  padding-left: 22px;
}

.overview-gate li {
  margin: 7px 0;
}

@media (max-width: 1100px) {
  .overview-outcome-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .process-overview-hero,
  .process-overview-section {
    padding: 18px;
  }

  .overview-outcome-grid,
  .overview-role-grid,
  .overview-next-grid,
  .overview-step-grid,
  .overview-handoff-list,
  .overview-resource-grid,
  .overview-gate {
    grid-template-columns: 1fr;
  }

  .overview-handoff-chain article {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

.lesson-toc-scroll::-webkit-scrollbar {
  width: 6px;
}

.lesson-toc-scroll::-webkit-scrollbar-thumb {
  border-radius: 999px;
  background: rgba(15, 34, 62, .22);
}

.lesson-toc-empty {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.progress-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.progress-head span {
  color: var(--muted);
  font-size: 13px;
}

.progress-card ol {
  margin: 0;
  padding: 0;
  list-style: none;
}

.progress-card li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  color: var(--soft-ink);
}

.progress-card li span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand);
  box-shadow: 0 0 0 4px var(--brand-soft);
}

.content {
  min-width: 0;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 0;
}

body[data-page="home"] .layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  padding: 0 0 22px;
}

body[data-page="home"] .sidebar {
  display: none;
}

body[data-page="home"] .content {
  width: 100%;
  margin: 0 auto;
  overflow-y: auto;
  overflow-x: hidden;
}

body[data-page="home"] .landing-actions,
body[data-page="home"] .landing-lower,
body[data-page="home"] .landing-stats {
  width: min(1420px, calc(100% - 44px));
  margin-left: auto;
  margin-right: auto;
}

body[data-page="project-map"] .layout {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
  max-width: none;
  padding: 12px 14px;
}

body[data-page="project-map"] .sidebar {
  display: none;
}

body[data-page="project-map"] .content {
  width: 100%;
  margin: 0 auto;
}

.project-map-page {
  display: none;
  gap: 18px;
}

.project-map-page.active {
  display: grid;
}

.web-map-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .58fr);
  gap: 18px;
  align-items: stretch;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 90, .09), rgba(47, 111, 236, .06)), #fff;
  box-shadow: var(--soft-shadow);
}

.web-map-intro h1 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 40px;
  line-height: 1.08;
}

.web-map-intro-copy p:not(.eyebrow) {
  max-width: 1080px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 16px;
  line-height: 1.68;
}

.web-use-formula {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: var(--radius);
  background: #fff;
}

.web-use-formula strong {
  color: var(--ink);
}

.web-use-formula ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.web-use-formula li {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 34px;
  color: var(--soft-ink);
  line-height: 1.35;
}

.web-use-formula li span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 26px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.project-map-hero,
.project-map-section {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.project-map-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, .72fr);
  align-items: center;
  gap: 24px;
  padding: 34px;
  background: linear-gradient(135deg, rgba(0, 168, 90, .1), rgba(24, 99, 235, .08)), #fff;
}

.project-map-hero h1 {
  margin: 4px 0 12px;
  color: var(--ink);
  font-size: 52px;
  line-height: 1.04;
}

.project-map-hero p:not(.eyebrow) {
  max-width: 920px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.72;
}

.project-map-compass {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.web-map-summary {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.web-map-summary button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  min-height: 82px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.web-map-summary button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 90, .38);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.web-map-summary span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.web-map-summary strong,
.web-map-summary small {
  display: block;
}

.web-map-summary small {
  color: var(--soft-ink);
  line-height: 1.35;
}

.web-use-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.web-use-steps article {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.web-use-steps article span,
.stage-strip span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.web-use-steps article strong {
  color: var(--ink);
  font-size: 16px;
}

.web-use-steps article p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.5;
}

.web-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.web-section-grid button {
  display: grid;
  gap: 8px;
  min-height: 180px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.web-section-grid button:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 90, .34);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.web-section-grid span {
  justify-self: start;
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.web-section-grid strong {
  color: var(--ink);
  font-size: 18px;
  line-height: 1.25;
}

.web-section-grid p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.52;
}

.stage-strip {
  display: grid;
  grid-template-columns: repeat(8, minmax(122px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
}

.stage-strip button {
  display: grid;
  gap: 8px;
  min-height: 118px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease;
}

.stage-strip button:hover,
.stage-strip button.is-active {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 90, .38);
  background: var(--brand-soft);
}

.stage-strip strong,
.stage-strip small {
  display: block;
}

.stage-strip small {
  color: var(--soft-ink);
  line-height: 1.35;
}

.project-map-compass button,
.project-roadmap button,
.mindmap-node {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, box-shadow .16s ease;
}

.project-map-compass button:hover,
.project-roadmap button:hover,
.mindmap-node:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 90, .38);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.project-map-compass button {
  display: grid;
  gap: 6px;
  min-height: 116px;
  padding: 16px;
}

.project-map-compass span,
.project-roadmap span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 28px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 800;
}

.project-map-compass strong,
.project-roadmap strong,
.mindmap-node strong {
  font-size: 16px;
}

.project-map-compass small,
.project-roadmap small,
.mindmap-node span {
  color: var(--soft-ink);
  line-height: 1.45;
}

.project-map-section {
  padding: 24px;
}

.project-roadmap {
  display: grid;
  grid-template-columns: repeat(8, minmax(120px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

.project-roadmap button {
  position: relative;
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 132px;
  padding: 14px;
}

.project-roadmap button:not(:last-child)::after {
  content: "";
  position: absolute;
  top: 28px;
  right: -10px;
  width: 10px;
  height: 2px;
  background: var(--line);
}

.project-journey-section {
  overflow: hidden;
}

.project-road-section {
  overflow: hidden;
}

.ecosystem-section {
  overflow: hidden;
}

.ecosystem-map {
  display: grid;
  grid-template-columns: 260px minmax(720px, 1fr) 340px;
  gap: 16px;
  align-items: start;
}

.refined-map {
  margin-top: 4px;
}

.map-process-spine,
.map-focus,
.map-resource-board {
  min-height: 0;
}

.map-process-spine {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 8px;
}

.map-process-spine button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 62px;
  padding: 9px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.map-process-spine button:hover {
  transform: translateX(2px);
  border-color: rgba(0, 168, 90, .32);
}

.map-process-spine button span {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #edf2f7;
  color: var(--muted);
  font-weight: 900;
}

.map-process-spine button strong,
.map-process-spine button small {
  display: block;
}

.map-process-spine button small {
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.25;
}

.map-process-spine button.is-past span {
  background: var(--brand);
  color: #fff;
}

.map-process-spine button.is-active {
  border-color: rgba(0, 168, 90, .42);
  background: var(--brand-soft);
  box-shadow: 0 12px 26px rgba(0, 168, 90, .11);
}

.map-process-spine button.is-active span {
  background: #052b4f;
  color: #fff;
}

.map-focus {
  position: sticky;
  top: 18px;
}

.map-stage-panel {
  display: none;
  padding: 22px;
  border: 1px solid rgba(0, 168, 90, .24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 90, .08), rgba(47, 111, 236, .07)), #fff;
  box-shadow: var(--soft-shadow);
}

.map-stage-panel.is-active {
  display: block;
  animation: journey-panel-in .2s ease;
}

.map-stage-panel h3 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 34px;
  line-height: 1.16;
}

.map-stage-panel p:not(.eyebrow) {
  margin: 0 0 16px;
  color: var(--soft-ink);
  line-height: 1.65;
}

.map-primary-link {
  min-height: 42px;
  margin: 0 0 16px;
  padding: 0 14px;
  border: 0;
  border-radius: var(--radius);
  background: var(--brand);
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(0, 168, 90, .16);
}

.map-primary-link:hover {
  background: var(--brand-dark);
}

.map-stage-panel ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.map-stage-panel li {
  position: relative;
  padding: 10px 12px 10px 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  line-height: 1.45;
}

.map-stage-panel li::before {
  content: counter(list-item);
  position: absolute;
  left: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
}

.map-resource-board {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.resource-cluster {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, .04);
}

.resource-cluster header {
  display: grid;
  gap: 2px;
  margin-bottom: 2px;
}

.resource-cluster header span {
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.resource-cluster header strong {
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.resource-cluster button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  transition: opacity .16s ease, transform .16s ease, border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.resource-cluster button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.resource-cluster button.is-dimmed {
  opacity: .5;
}

.resource-cluster button.is-related {
  border-color: rgba(0, 168, 90, .42);
  background: var(--brand-soft);
  color: var(--brand-dark);
  box-shadow: 0 8px 18px rgba(0, 168, 90, .1);
}

.resource-cluster button.is-overview,
.map-side-panel button.is-overview {
  opacity: 1;
  background: var(--surface-soft);
  color: var(--ink);
  box-shadow: none;
}

[data-map-relation]::after {
  content: "Tham khảo";
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  margin-left: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  vertical-align: middle;
}

[data-map-relation="required"].is-related::after {
  content: "Bắt buộc";
  background: var(--brand);
  color: #fff;
}

[data-map-relation="recommended"].is-related::after {
  content: "Nên đọc";
  background: var(--brand-soft);
  color: var(--brand-dark);
}

[data-map-relation="faq"].is-related::after {
  content: "FAQ liên quan";
  background: var(--blue-soft);
  color: var(--blue);
}

[data-map-relation="reference"].is-related::after {
  content: "Tham khảo";
}

[data-map-relation].is-overview::after {
  content: "Tham khảo";
  background: #fff;
  color: var(--muted);
}

.relation-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.relation-legend span {
  min-height: 26px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--soft-ink);
  font-size: 12px;
  font-weight: 800;
}

.relation-legend .required {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.relation-legend .recommended {
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.relation-legend .faq {
  background: var(--blue-soft);
  color: var(--blue);
}

.map-side-panel {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 12px;
}

.map-side-panel article {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, .04);
}

.map-side-panel h3 {
  margin: 0 0 2px;
  color: var(--ink);
  font-size: 15px;
}

.map-side-panel button {
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.map-side-panel button.is-dimmed {
  opacity: .5;
}

.map-side-panel button.is-related {
  border-color: rgba(0, 168, 90, .42);
  background: var(--brand-soft);
  color: var(--brand-dark);
}

.map-resource-wide {
  display: grid;
  grid-template-columns: 1fr 1.4fr .8fr;
  gap: 12px;
  margin-top: 14px;
}

.foundation-cluster {
  background: linear-gradient(135deg, rgba(0, 168, 90, .08), #fff);
}

.project-cluster {
  background: linear-gradient(135deg, rgba(47, 111, 236, .08), #fff);
}

.project-foundation {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  border: 1px solid rgba(0, 168, 90, .24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 90, .1), rgba(47, 111, 236, .08)), #fff;
}

.project-foundation h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.18;
}

.project-foundation span {
  display: block;
  color: var(--soft-ink);
  line-height: 1.6;
}

.foundation-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.foundation-links button,
.road-read-flow button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, box-shadow .16s ease;
}

.foundation-links button {
  min-height: 46px;
  padding: 10px 12px;
  font-weight: 700;
}

.foundation-links button:hover,
.road-read-flow button:hover {
  transform: translateY(-1px);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
  box-shadow: 0 10px 22px rgba(15, 23, 42, .07);
}

.project-road-curve {
  --journey-progress: 0;
  position: relative;
  min-height: 1580px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(90deg, rgba(16, 35, 63, .04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(16, 35, 63, .035) 1px, transparent 1px),
    #fff;
  background-size: 56px 56px;
  overflow: hidden;
}

.road-svg {
  position: absolute;
  inset: 22px 0;
  width: 100%;
  height: calc(100% - 44px);
  pointer-events: none;
}

.road-path-base,
.road-path-progress {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.road-path-base {
  stroke: #d9e4ea;
  stroke-width: 16;
}

.road-path-progress {
  stroke: url("#roadGradient");
  stroke-width: 16;
  stroke-dasharray: var(--journey-progress) 100;
  transition: stroke-dasharray .3s ease;
}

.road-stage {
  position: absolute;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  width: min(470px, 42%);
}

.road-stage-1 { top: 48px; left: 9%; }
.road-stage-2 { top: 246px; right: 8%; }
.road-stage-3 { top: 430px; left: 8%; }
.road-stage-4 { top: 622px; right: 9%; }
.road-stage-5 { top: 816px; left: 11%; }
.road-stage-6 { top: 1012px; right: 8%; }
.road-stage-7 { top: 1210px; left: 12%; }
.road-stage-8 { top: 1394px; right: 12%; }

.road-marker {
  position: relative;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: #e7eef5;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 12px 24px rgba(15, 23, 42, .13);
  cursor: pointer;
  transition: transform .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.road-marker:hover {
  transform: translateY(-2px) scale(1.04);
}

.road-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 12px 30px rgba(15, 23, 42, .07);
  backdrop-filter: blur(8px);
}

.road-card h3 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 21px;
  line-height: 1.22;
}

.road-card p {
  margin: 0 0 12px;
  color: var(--soft-ink);
  line-height: 1.5;
}

.road-read-flow {
  display: grid;
  gap: 7px;
}

.road-read-flow button {
  min-height: 44px;
  padding: 8px 10px;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
}

.road-read-flow em {
  display: block;
  margin-bottom: 2px;
  color: var(--brand);
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  text-transform: uppercase;
}

.road-stage.is-past .road-marker {
  background: var(--brand);
  color: #fff;
}

.road-stage.is-active .road-marker {
  background: #052b4f;
  color: #fff;
  box-shadow: 0 16px 34px rgba(5, 43, 79, .24);
}

.road-stage.is-active .road-card {
  border-color: rgba(0, 168, 90, .42);
  box-shadow: 0 18px 42px rgba(0, 168, 90, .12);
}

.project-journey-rail {
  --journey-progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(8, minmax(104px, 1fr));
  gap: 10px;
  margin: 8px 0 22px;
  padding: 26px 6px 8px;
  overflow-x: auto;
}

.project-journey-rail::before,
.project-journey-rail::after {
  content: "";
  position: absolute;
  left: 58px;
  right: 58px;
  top: 43px;
  height: 4px;
  border-radius: 999px;
}

.project-journey-rail::before {
  background: var(--line);
}

.project-journey-rail::after {
  width: var(--journey-progress);
  max-width: calc(100% - 116px);
  background: linear-gradient(90deg, var(--brand), var(--blue));
  box-shadow: 0 8px 18px rgba(0, 168, 90, .18);
  transition: width .28s ease;
}

.project-journey-rail button {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  gap: 9px;
  min-width: 104px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--soft-ink);
  cursor: pointer;
  text-align: center;
}

.project-journey-rail span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 3px solid #fff;
  border-radius: 999px;
  background: #e8eef5;
  color: var(--muted);
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .08);
  transition: transform .18s ease, background .18s ease, color .18s ease, box-shadow .18s ease;
}

.project-journey-rail strong {
  max-width: 96px;
  font-size: 13px;
  line-height: 1.25;
}

.project-journey-rail button:hover span {
  transform: translateY(-2px) scale(1.04);
}

.project-journey-rail button.is-past span {
  background: var(--brand);
  color: #fff;
}

.project-journey-rail button.is-active {
  color: var(--ink);
}

.project-journey-rail button.is-active span {
  background: #052b4f;
  color: #fff;
  box-shadow: 0 12px 28px rgba(5, 43, 79, .22);
}

.project-journey-panels {
  position: relative;
}

.journey-panel {
  display: none;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(0, 168, 90, .08), rgba(255, 255, 255, .96));
}

.journey-panel.is-active {
  display: grid;
  animation: journey-panel-in .2s ease;
}

.journey-panel header {
  display: grid;
  gap: 6px;
}

.journey-panel header p {
  margin: 0;
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.journey-panel h3 {
  margin: 0;
  color: var(--ink);
  font-size: 30px;
  line-height: 1.18;
}

.journey-panel header span {
  color: var(--soft-ink);
  line-height: 1.55;
}

.journey-lanes {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.journey-lanes section {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 146px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.journey-lanes em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.journey-lanes button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

.journey-lanes button:hover {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
  transform: translateY(-1px);
}

@keyframes journey-panel-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.project-workflow-section {
  overflow: hidden;
}

.project-workflow-map {
  display: grid;
  gap: 12px;
}

.workflow-step {
  position: relative;
  display: grid;
  grid-template-columns: minmax(230px, .75fr) minmax(0, 1.65fr);
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.workflow-step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 128px;
  bottom: -13px;
  width: 2px;
  height: 12px;
  background: var(--line);
}

.workflow-process {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 100%;
  padding: 16px;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.workflow-process:hover {
  border-color: rgba(0, 168, 90, .45);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .08);
}

.workflow-process span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 30px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.workflow-process strong {
  font-size: 18px;
  line-height: 1.25;
}

.workflow-process small {
  color: var(--soft-ink);
  line-height: 1.45;
}

.workflow-lanes {
  display: grid;
  grid-template-columns: 1.25fr 1fr 1fr;
  gap: 10px;
}

.workflow-lanes div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.workflow-lanes em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.workflow-lanes button {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--ink);
  text-align: left;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  cursor: pointer;
}

.workflow-lanes button:hover {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.project-mindmap {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  min-height: 360px;
}

.mindmap-core {
  grid-column: 2;
  grid-row: 1 / span 2;
  display: grid;
  place-content: center;
  gap: 8px;
  min-height: 160px;
  padding: 20px;
  border-radius: 50%;
  background: #052b4f;
  color: #fff;
  text-align: center;
  box-shadow: 0 16px 42px rgba(5, 43, 79, .18);
}

.mindmap-core strong {
  font-size: 22px;
}

.mindmap-core span {
  color: rgba(255,255,255,.78);
  line-height: 1.45;
}

.mindmap-node {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 110px;
  padding: 16px;
}

.node-process,
.node-standards,
.node-faq {
  background: #f0fdf7;
}

.node-knowledge,
.node-templates,
.node-projects {
  background: #f7f9ff;
}

.role-map-table {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.role-map-table > div {
  display: grid;
  grid-template-columns: 1.05fr 1fr 1fr 1.2fr;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
}

.role-map-table > div:last-child {
  border-bottom: 0;
}

.role-map-head {
  background: #f7fafc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.role-map-table strong {
  color: var(--ink);
}

.project-use-flow ol {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.project-use-flow li {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
}

.project-use-flow span {
  color: var(--soft-ink);
  line-height: 1.55;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
  align-items: center;
  gap: 34px;
  min-height: 420px;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ffffff 0%, #ffffff 48%, #edf7f2 100%);
  box-shadow: var(--soft-shadow);
}

.hero h1,
.page-hero h1 {
  margin: 0;
  font-size: 46px;
  line-height: 1.08;
}

.hero-text,
.page-hero p {
  max-width: 720px;
  color: var(--soft-ink);
  font-size: 17px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 24px 0;
}

.quick-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.quick-tags button,
.pill {
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--soft-ink);
  background: var(--surface);
  font-size: 13px;
  font-weight: 800;
  cursor: pointer;
}

.quick-tags button:hover {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.hero-visual {
  min-height: 300px;
  display: grid;
  place-items: center;
}

.hero-visual img {
  width: 100%;
  max-height: 360px;
  object-fit: contain;
}

.landing-hero {
  position: relative;
  width: 100%;
  aspect-ratio: 2172 / 724;
  min-height: 0;
  margin-left: 0;
  display: grid;
  align-items: start;
  padding: 54px max(28px, calc((100vw - 1420px) / 2 + 24px)) 80px;
  overflow: hidden;
  border-radius: 0;
  background: #08271d;
}

.landing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    linear-gradient(90deg, rgba(4, 28, 20, .9) 0%, rgba(4, 28, 20, .72) 34%, rgba(4, 28, 20, .18) 68%, rgba(4, 28, 20, 0) 100%),
    linear-gradient(0deg, rgba(4, 28, 20, .22), rgba(4, 28, 20, .22));
  pointer-events: none;
}

.landing-copy {
  position: relative;
  z-index: 2;
  max-width: 560px;
  top: 25%;
}

.landing-copy .welcome {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.landing-copy h1 {
  margin: 0;
  color: #fff;
  font-size: clamp(40px, 5vw, 64px);
  line-height: .98;
}

.landing-copy h1 .brand-word {
  color: var(--brand);
}

.landing-copy h1 .no-break {
  color: inherit;
  white-space: nowrap;
}

.landing-copy p:last-child {
  max-width: 510px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 17px;
}

.landing-copy strong {
  color: var(--brand);
}

.landing-house {
  position: absolute;
  inset: 0;
  right: auto;
  top: 0;
  width: 100%;
  height: 100%;
  max-height: none;
  object-fit: contain;
  object-position: center center;
  z-index: 0;
}

.landing-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: -62px;
  position: relative;
  z-index: 4;
}

.action-card,
.quick-access-panel,
.today-panel,
.landing-stats {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .94);
  box-shadow: var(--soft-shadow);
}

.action-card {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 18px;
  min-height: 210px;
  padding: 24px;
}

.action-art {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
}

.action-art::before {
  inset: 20px;
  border: 3px solid currentColor;
  border-radius: 7px;
}

.action-art.art-learn::before {
  left: 21px;
  top: 18px;
  width: 22px;
  height: 28px;
  border-radius: 4px;
  border-right-width: 7px;
}

.action-art.art-learn::after {
  left: 24px;
  top: 26px;
  width: 13px;
  height: 3px;
  background: currentColor;
  box-shadow: 0 7px 0 currentColor;
}

.action-art.art-project::before {
  left: 22px;
  top: 18px;
  width: 25px;
  height: 31px;
  border-radius: 6px;
}

.action-art.art-project::after {
  left: 29px;
  top: 28px;
  width: 15px;
  height: 8px;
  border-left: 3px solid currentColor;
  border-bottom: 3px solid currentColor;
  transform: rotate(-45deg);
}

.action-art.art-answer::before {
  left: 19px;
  top: 18px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.action-art.art-answer::after {
  left: 42px;
  top: 41px;
  width: 15px;
  height: 3px;
  border-radius: 999px;
  background: currentColor;
  transform: rotate(45deg);
}

.project-card-main .action-art {
  color: var(--blue);
  background: var(--blue-soft);
}

.answer-card .action-art {
  color: var(--violet);
  background: var(--violet-soft);
}

.action-card h2 {
  margin: 0 0 6px;
  color: var(--brand);
  font-size: 24px;
}

.project-card-main h2 {
  color: var(--blue);
}

.answer-card h2 {
  color: var(--violet);
}

.action-card p {
  margin: 0 0 12px;
  color: var(--soft-ink);
}

.action-card ul {
  margin: 0 0 18px;
  padding: 0;
  list-style: none;
}

.action-card li {
  position: relative;
  margin: 7px 0;
  padding-left: 22px;
  color: var(--soft-ink);
  font-size: 13px;
}

.action-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 6px;
  width: 11px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  color: var(--brand);
  transform: rotate(-45deg);
}

.project-card-main li::before {
  color: var(--blue);
}

.answer-card li::before {
  color: var(--violet);
}

.blue-button {
  background: var(--blue);
  box-shadow: 0 10px 20px rgba(47, 111, 236, .18);
}

.blue-button:hover {
  background: #2258c7;
}

.purple-button {
  background: var(--violet);
  box-shadow: 0 10px 20px rgba(116, 87, 230, .18);
}

.purple-button:hover {
  background: #5c43c2;
}

.landing-lower {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  margin-top: 18px;
}

.quick-access-panel,
.today-panel {
  padding: 20px;
}

.landing-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.landing-panel-head h2,
.today-panel h2 {
  margin: 0;
  font-size: 18px;
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
}

.page-search-panel {
  margin-top: 18px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 13px;
}

.breadcrumb button {
  padding: 0;
  border: 0;
  color: var(--brand);
  background: transparent;
  font-weight: 800;
  cursor: pointer;
}

.breadcrumb strong {
  color: var(--soft-ink);
  font-weight: 700;
}

.page-search {
  position: relative;
  display: block;
}

.page-search .search-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.page-search input {
  width: 100%;
  height: 54px;
  padding: 0 18px 0 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: var(--soft-shadow);
}

.page-search input:focus {
  border-color: rgba(0, 168, 90, .38);
  box-shadow: 0 0 0 4px rgba(0, 168, 90, .08);
}

[data-local-hidden="true"] {
  display: none !important;
}

.quick-access-grid button {
  min-height: 118px;
  display: grid;
  justify-items: center;
  align-content: center;
  gap: 10px;
  padding: 12px 8px;
  border: 0;
  border-radius: var(--radius);
  background: var(--surface-soft);
  cursor: pointer;
}

.quick-access-grid button:hover {
  color: var(--brand);
  background: var(--brand-soft);
}

.quick-icon {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: var(--brand);
  background: var(--brand-soft);
}

.quick-icon::before {
  inset: 12px;
  border: 2px solid currentColor;
  border-radius: 4px;
}

.quick-icon.process::before {
  left: 13px;
  top: 12px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.quick-icon.process::after {
  left: 21px;
  top: 20px;
  width: 9px;
  height: 2px;
  background: currentColor;
  box-shadow: -8px -8px 0 currentColor, -8px 8px 0 currentColor;
}

.quick-icon.checklist::before {
  left: 13px;
  top: 10px;
  width: 18px;
  height: 23px;
  border-radius: 4px;
}

.quick-icon.checklist::after {
  left: 19px;
  top: 20px;
  width: 12px;
  height: 6px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.quick-icon.template::before,
.quick-icon.standard::before {
  left: 14px;
  top: 10px;
  width: 16px;
  height: 23px;
  border-radius: 3px;
}

.quick-icon.template::after,
.quick-icon.standard::after {
  left: 18px;
  top: 17px;
  width: 10px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.quick-icon.issue::before {
  left: 13px;
  top: 13px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
}

.quick-icon.issue::after {
  left: 21px;
  top: 18px;
  width: 2px;
  height: 9px;
  background: currentColor;
  box-shadow: 0 12px 0 currentColor;
}

.quick-icon.project::before {
  left: 12px;
  top: 16px;
  width: 20px;
  height: 14px;
  border-radius: 3px;
}

.quick-icon.project::after {
  left: 15px;
  top: 12px;
  width: 10px;
  height: 5px;
  border: 2px solid currentColor;
  border-bottom: 0;
  border-radius: 2px 2px 0 0;
}

.quick-icon.knowledge::before {
  left: 14px;
  top: 10px;
  width: 16px;
  height: 24px;
  border-radius: 3px;
  border-right-width: 5px;
}

.quick-icon.knowledge::after {
  left: 18px;
  top: 18px;
  width: 8px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 6px 0 currentColor;
}

.quick-icon.blue,
.quick-icon.standard,
.quick-icon.knowledge {
  color: var(--blue);
  background: var(--blue-soft);
}

.quick-icon.amber,
.quick-icon.process,
.quick-icon.checklist {
  color: var(--amber);
  background: var(--amber-soft);
}

.quick-icon.violet,
.quick-icon.template {
  color: var(--violet);
  background: var(--violet-soft);
}

.quick-icon.red,
.quick-icon.issue {
  color: var(--red);
  background: var(--red-soft);
}

.quick-icon.green,
.quick-icon.project {
  color: var(--brand);
  background: var(--brand-soft);
}

.quick-access-grid strong {
  text-align: center;
  font-size: 13px;
  line-height: 1.3;
}

.today-panel {
  background: linear-gradient(135deg, #ffffff, #eefaf4);
}

.today-panel ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.today-panel li {
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin: 9px 0;
  color: var(--soft-ink);
  font-size: 13px;
}

.today-panel li > span {
  color: var(--brand);
  font-weight: 900;
}

.mini-icon {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  color: var(--brand);
}

.mini-icon::before {
  inset: 4px;
  border: 2px solid currentColor;
  border-radius: 3px;
}

.mini-icon.checklist::after {
  left: 7px;
  top: 9px;
  width: 8px;
  height: 4px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.mini-icon.standard {
  color: var(--blue);
}

.mini-icon.standard::after {
  left: 7px;
  top: 8px;
  width: 7px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 4px 0 currentColor;
}

.mini-icon.issue {
  color: var(--red);
}

.mini-icon.issue::before {
  border-radius: 999px;
}

.mini-icon.issue::after {
  left: 9px;
  top: 6px;
  width: 2px;
  height: 7px;
  background: currentColor;
  box-shadow: 0 9px 0 currentColor;
}

.mini-icon.download::after {
  left: 7px;
  top: 5px;
  width: 6px;
  height: 8px;
  border-left: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(-45deg);
}

.today-panel button {
  min-height: 28px;
  padding: 0 10px;
  border: 0;
  border-radius: 7px;
  color: var(--brand);
  background: #fff;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.landing-stats {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  margin-top: 18px;
  padding: 14px 18px;
}

.landing-stats div {
  display: grid;
  grid-template-columns: 44px auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 10px;
  padding: 4px 18px;
  border-right: 1px solid var(--line);
}

.landing-stats div:last-child {
  border-right: 0;
}

.landing-stats .quick-icon {
  grid-row: 1 / span 2;
}

.landing-stats strong {
  font-size: 22px;
  line-height: 1;
}

.landing-stats small {
  color: var(--muted);
}

.band,
.panel,
.page-hero {
  margin-top: 18px;
  padding: 24px;
}

.page-hero {
  display: flex;
  min-height: 170px;
  align-items: center;
  background: #fff;
}

.section-heading,
.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.section-heading h2,
.panel-head h2,
.panel h2,
.standard-card h2,
.project-card h2 {
  margin: 0;
  line-height: 1.22;
}

.section-note {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
}

.gate-grid,
.role-grid,
.standard-grid,
.project-grid {
  display: grid;
  gap: 14px;
}

.gate-grid article {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.gate-grid article h3,
.knowledge-item h3 {
  margin: 8px 0 6px;
}

.gate-grid article p,
.knowledge-item p,
.project-card p {
  margin: 0;
  color: var(--soft-ink);
}

.step-badge {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.step-badge.blue {
  background: var(--blue);
  color: #fff;
}

.step-badge.amber {
  background: var(--amber);
  color: #fff;
}

.step-badge.red {
  background: var(--red);
  color: #fff;
}

.home-grid,
.content-grid {
  display: grid;
  gap: 18px;
  margin-top: 18px;
}

.home-grid {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.two-col {
  grid-template-columns: minmax(0, 1fr) 360px;
}

.role-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.role-card {
  min-height: 142px;
  display: grid;
  align-content: start;
  gap: 9px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.role-card:hover {
  border-color: rgba(0, 168, 90, .35);
  box-shadow: var(--soft-shadow);
}

.role-card small {
  color: var(--muted);
}

.compact-panel {
  align-self: stretch;
}

.check-list,
.stop-list,
.standard-card ul {
  margin: 14px 0 0;
  padding: 0;
  list-style: none;
}

.check-list li,
.stop-list li,
.standard-card li {
  position: relative;
  padding-left: 24px;
  margin: 10px 0;
  color: var(--soft-ink);
}

.check-list li::before,
.standard-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--brand);
}

.stop-list li::before {
  content: "!";
  position: absolute;
  left: 0;
  top: 1px;
  width: 16px;
  height: 16px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--red);
  font-size: 11px;
  font-weight: 900;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  padding: 13px 14px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--ink);
  background: var(--surface-soft);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

tr:last-child td {
  border-bottom: 0;
}

.knowledge-dashboard {
  margin-top: 18px;
}

.knowledge-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  margin-bottom: 18px;
}

.knowledge-search {
  position: relative;
  display: block;
}

.knowledge-search .search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  color: var(--muted);
  transform: translateY(-50%);
}

.knowledge-search input {
  width: 100%;
  height: 52px;
  padding: 0 18px 0 48px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  outline: none;
  box-shadow: var(--soft-shadow);
}

.knowledge-search input:focus {
  border-color: rgba(0, 168, 90, .36);
  box-shadow: 0 0 0 4px rgba(0, 168, 90, .08);
}

.filter-button {
  min-height: 52px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: var(--soft-shadow);
  cursor: pointer;
}

.filter-button span {
  width: 16px;
  height: 14px;
  display: inline-block;
  border-top: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  position: relative;
}

.filter-button span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  border-top: 2px solid currentColor;
}

.knowledge-section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.knowledge-section-head h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
}

.knowledge-head-tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.knowledge-head-tags span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}

.knowledge-catalog {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.knowledge-card {
  min-height: 245px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 190px;
  grid-template-rows: minmax(0, 1fr) auto auto;
  gap: 14px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.knowledge-card-focus {
  border-color: rgba(0, 168, 90, .48);
  background: linear-gradient(0deg, rgba(0, 168, 90, .04), rgba(0, 168, 90, .04)), #fff;
}

.knowledge-card[data-knowledge-hidden="true"] {
  display: none;
}

.course-content {
  min-width: 0;
}

.course-number {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 14px;
  border-radius: 9px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 16px;
  font-weight: 900;
}

.knowledge-card h3 {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 1.25;
}

.knowledge-card p {
  margin: 0;
  color: var(--soft-ink);
}

.course-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px !important;
  color: var(--muted) !important;
  font-size: 12px;
  font-weight: 800;
}

.course-meta strong {
  color: var(--brand);
}

.course-meta span {
  position: relative;
  padding-left: 12px;
}

.course-meta span::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 50%;
  width: 3px;
  height: 3px;
  border-radius: 999px;
  background: var(--muted);
  transform: translateY(-50%);
}

.course-visual {
  position: relative;
  min-height: 132px;
  align-self: center;
  color: var(--brand);
  background:
    linear-gradient(90deg, transparent 49%, rgba(0, 168, 90, .22) 49% 51%, transparent 51%),
    linear-gradient(0deg, transparent 49%, rgba(0, 168, 90, .22) 49% 51%, transparent 51%);
}

.course-visual span {
  position: absolute;
  left: 50%;
  top: 52%;
  padding: 4px 10px;
  border: 2px dashed currentColor;
  border-radius: 999px;
  background: #fff;
  font-weight: 900;
  transform: translate(-50%, -50%);
}

.course-visual::before,
.course-visual::after {
  content: "";
  position: absolute;
  border: 2px solid currentColor;
  border-radius: 4px;
  background: #fff;
  box-shadow:
    96px 0 0 -1px #fff,
    96px 0 0 1px currentColor,
    0 72px 0 -1px #fff,
    0 72px 0 1px currentColor,
    96px 72px 0 -1px #fff,
    96px 72px 0 1px currentColor;
}

.course-visual::before {
  left: 16px;
  top: 18px;
  width: 20px;
  height: 20px;
}

.course-visual::after {
  left: 62px;
  top: 8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
}

.bus-visual,
.dpt-visual,
.device-visual,
.foundation-visual,
.ets-visual,
.desktop-visual {
  background: none;
}

.bus-visual::before,
.dpt-visual::before,
.device-visual::before,
.foundation-visual::before,
.ets-visual::before,
.desktop-visual::before {
  left: 18px;
  top: 28px;
}

.bus-visual::after,
.dpt-visual::after,
.foundation-visual::after,
.ets-visual::after,
.desktop-visual::after {
  left: 32px;
  top: 78px;
  width: 122px;
  height: 2px;
  border: 0;
  border-radius: 0;
  background: currentColor;
  box-shadow: none;
}

.device-visual::before {
  box-shadow:
    44px 0 0 -1px #fff,
    44px 0 0 1px currentColor,
    88px 0 0 -1px #fff,
    88px 0 0 1px currentColor,
    0 42px 0 -1px #fff,
    0 42px 0 1px currentColor,
    44px 42px 0 -1px #fff,
    44px 42px 0 1px currentColor,
    88px 42px 0 -1px #fff,
    88px 42px 0 1px currentColor;
}

.course-progress {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.course-progress::before {
  content: "";
  grid-column: 1;
  grid-row: 1;
  height: 6px;
  border-radius: 999px;
  background: #e7edf1;
}

.course-progress span {
  grid-column: 1;
  grid-row: 1;
  height: 6px;
  border-radius: 999px;
  background: var(--brand);
}

.course-progress strong {
  color: var(--soft-ink);
  font-size: 12px;
}

.course-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.start-course,
.resource-chip {
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 0 13px;
  border-radius: 7px;
  font-size: 13px;
  font-weight: 900;
  cursor: pointer;
}

.start-course {
  color: #fff;
  border: 0;
  background: var(--brand);
  box-shadow: 0 10px 20px rgba(0, 168, 90, .18);
}

.start-course::after {
  content: "";
  width: 8px;
  height: 8px;
  border-right: 2px solid currentColor;
  border-top: 2px solid currentColor;
  transform: rotate(45deg);
}

.resource-chip {
  color: var(--soft-ink);
  border: 1px solid var(--line);
  background: #fff;
}

.resource-chip small {
  color: var(--muted);
  font-weight: 800;
}

.resource-chip::before {
  content: "";
  box-sizing: border-box;
  width: 14px;
  height: 14px;
}

.resource-chip.video-button::before {
  width: 0;
  height: 0;
  border-top: 5px solid transparent;
  border-bottom: 5px solid transparent;
  border-left: 8px solid var(--blue);
}

.resource-chip.quiz-button::before {
  border: 2px solid var(--brand);
  border-radius: 999px;
}

.resource-chip.checklist-button::before {
  border-left: 2px solid var(--brand);
  border-bottom: 2px solid var(--brand);
  transform: rotate(-45deg);
}

.knowledge-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 18px;
  margin-top: 0;
}

.knowledge-detail-aside {
  position: sticky;
  top: 0;
  align-self: start;
  padding: 14px;
  border-left: 1px solid var(--line);
  color: var(--muted);
}

.knowledge-detail-aside h2 {
  margin: 0 0 10px;
  color: var(--soft-ink);
  font-size: 14px;
  font-weight: 700;
}

.lesson-info,
.lesson-toc {
  display: grid;
  gap: 4px;
}

.lesson-info + .lesson-toc {
  margin-top: 18px;
}

.lesson-info h3,
.lesson-toc h3 {
  margin: 0 0 8px;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.aside-link-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.aside-link-list button,
.process-link-chips button {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--soft-ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: left;
  cursor: pointer;
}

.aside-link-list button {
  padding: 8px 10px;
}

.aside-link-list button:hover,
.process-link-chips button:hover {
  border-color: color-mix(in srgb, var(--brand) 45%, var(--line));
  color: var(--brand);
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.lesson-toc a {
  display: block;
  padding: 6px 0;
  color: var(--muted);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.4;
}

.lesson-toc a:hover {
  color: var(--brand);
}

.knowledge-detail-main {
  display: grid;
  gap: 18px;
  margin-top: 0;
}

@media (min-width: 921px) {
  body[data-page="knowledge-detail"] .layout {
    grid-template-columns: 220px minmax(0, 1fr);
    gap: 10px;
  }

  body[data-page="knowledge-detail"] .content {
    overflow-x: auto;
  }

  body[data-page="knowledge-detail"] .knowledge-detail-layout {
    grid-template-columns: minmax(980px, 1fr) 170px;
    gap: 12px;
  }

  body[data-page="knowledge-detail"] .lesson-sidebar {
    padding: 14px;
  }

  body[data-page="knowledge-detail"] .knowledge-detail-aside {
    padding: 12px 10px;
  }
}

@media (min-width: 921px) and (max-width: 1600px) {
  body[data-page="knowledge-detail"] .knowledge-detail-layout {
    grid-template-columns: minmax(980px, 1fr);
  }

  body[data-page="knowledge-detail"] .knowledge-detail-aside {
    display: none;
  }
}

.lesson-lead {
  max-width: 1120px;
  margin: -6px 0 18px;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.65;
}

.detail-section {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.detail-section h2 {
  margin: 0 0 10px;
  font-size: 18px;
}

.detail-section p {
  margin: 0;
  color: var(--soft-ink);
}

.detail-section ul,
.detail-section ol {
  margin: 0;
  padding-left: 20px;
}

.detail-section li {
  margin: 8px 0;
  color: var(--soft-ink);
}

.detail-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.detail-check-grid span {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--soft-ink);
  font-size: 13px;
  font-weight: 800;
}

.detail-check-grid span::before {
  content: "✓";
  color: var(--brand);
  font-weight: 900;
}

.detail-resource-list {
  display: grid;
  gap: 4px;
  margin-top: 0;
}

.detail-resource {
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: transparent;
}

.detail-resource strong,
.detail-resource span {
  display: block;
}

.detail-resource span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.knowledge-item {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.knowledge-item small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.number-list {
  margin: 12px 0 0;
  padding-left: 22px;
}

.number-list li {
  margin: 9px 0;
}

.gate-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gate-grid span {
  width: 44px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: #fff;
  background: var(--brand);
  font-weight: 900;
}

.process-track {
  display: grid;
  grid-template-columns: repeat(13, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.process-track div {
  min-height: 132px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.process-track span {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--brand);
  background: var(--brand-soft);
  font-weight: 900;
}

.process-track strong,
.process-track small {
  display: block;
}

.process-track strong {
  margin: 12px 0 6px;
}

.process-track small {
  color: var(--muted);
}

.process-kanban-section {
  overflow: visible;
}

.process-flow-section {
  overflow: visible;
}

.process-flow-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
  padding: 4px 2px;
}

#process .process-step-detail {
  display: none;
}

.process-flow-column {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 28%, var(--line));
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--stage, var(--brand)) 9%, #fff);
}

.process-flow-column:not(:last-child)::after {
  content: "→";
  position: absolute;
  z-index: 3;
  top: 54px;
  right: -15px;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--stage, var(--brand));
  background: #fff;
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 28%, var(--line));
  font-size: 13px;
  font-weight: 900;
}

.flow-step-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 9px;
  align-items: start;
}

.flow-step-head span {
  min-width: 30px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--stage, var(--brand));
  font-size: 13px;
  font-weight: 900;
}

.flow-step-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.25;
}

.flow-step-head small,
.flow-step-head em {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.flow-step-head small {
  margin-top: 4px;
  color: var(--ink);
}

.flow-stage-brief {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px dashed color-mix(in srgb, var(--stage, var(--brand)) 28%, var(--line));
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .62);
}

.flow-stage-brief p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.45;
}

.flow-stage-brief strong {
  color: var(--ink);
}

.process-open-button {
  width: 100%;
  margin-top: 2px;
  justify-content: center;
}

.process-lesson-hero {
  padding: 26px 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.process-lesson-hero h1 {
  margin: 8px 0 10px;
  font-size: 36px;
  line-height: 1.15;
}

.process-lesson-hero p:last-child {
  max-width: 1120px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 17px;
  line-height: 1.65;
}

.process-lesson-figure {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.process-lesson-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  max-height: min(72vh, 760px);
  object-fit: contain;
}

.process-lesson-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.process-lesson-grid article {
  min-width: 0;
}

.process-lesson-steps {
  display: grid;
  gap: 10px;
  padding-left: 22px;
}

.process-output-groups,
.process-explainer-grid {
  display: grid;
  gap: 12px;
}

.process-output-groups section,
.process-explainer-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-output-groups h3,
.process-explainer-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.process-output-groups ul,
.process-explainer-grid ul {
  margin: 0;
  padding-left: 18px;
}

.process-output-groups li,
.process-explainer-grid li {
  margin: 5px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.role-focus-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.project-concern-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.project-concern-grid article {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.project-concern-grid strong {
  flex: 0 0 auto;
  color: var(--brand);
  font-size: 12px;
}

.project-concern-grid span {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.role-focus-grid article,
.process-link-chips span,
.process-link-chips button {
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.process-link-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.process-link-chips span,
.process-link-chips button {
  font-weight: 700;
}

.dd-hero,
.dd-section,
.dd-gate {
  border: 1px solid #d9e2ec;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 10px 28px rgba(16, 35, 63, .06);
}

.dd-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  padding: 28px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
}

.dd-hero-copy h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
}

.dd-subtitle,
.dd-brief {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.6;
}

.dd-subtitle {
  max-width: 760px;
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
}

.dd-brief {
  max-width: 820px;
  margin-top: 10px;
  font-size: 15px;
}

.dd-hero-image {
  display: grid;
  place-items: center;
  margin: 0;
  padding: 10px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
}

.dd-hero-image img {
  display: block;
  width: 100%;
  max-height: 240px;
  object-fit: contain;
}

.dd-summary-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.dd-summary-grid article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
}

.dd-summary-grid span {
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
  font-weight: 900;
}

.dd-summary-grid strong,
.dd-summary-grid p {
  min-width: 0;
}

.dd-summary-grid strong {
  color: var(--ink);
  font-size: 13px;
}

.dd-summary-grid p {
  grid-column: 2;
  margin: 3px 0 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.35;
}

.dd-section {
  display: grid;
  gap: 18px;
  padding: 24px;
}

.dd-section-head {
  max-width: 820px;
}

.dd-section-head h2 {
  margin: 4px 0 8px;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.2;
}

.dd-section-head p:last-child {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.dd-section-head.compact h2 {
  font-size: 20px;
}

.dd-stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.dd-step-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  min-height: 96px;
  padding: 14px 36px 14px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #f8fafc;
}

.dd-step-number {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.dd-step-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.dd-step-card p {
  margin: 5px 0 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.35;
}

.dd-step-arrow {
  position: absolute;
  right: 12px;
  top: 18px;
  color: var(--brand);
  font-weight: 900;
}

.dd-output-layout,
.dd-two-col {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr);
  gap: 16px;
}

.dd-required-output {
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 18%, #d9e2ec);
  border-radius: 14px;
  background: color-mix(in srgb, var(--brand) 4%, #fff);
}

.dd-required-output h3,
.dd-role-grid h3 {
  margin: 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.3;
}

.dd-required-output p {
  margin: 8px 0 14px;
  color: var(--soft-ink);
  line-height: 1.5;
}

.dd-required-output ul,
.dd-compact-list,
.dd-output-accordions ul,
.dd-explainers ul,
.dd-gate ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.dd-required-output li,
.dd-compact-list li,
.dd-output-accordions li,
.dd-explainers li,
.dd-gate li {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.dd-required-output li span,
.dd-compact-list li span,
.dd-output-accordions li span,
.dd-explainers li span,
.dd-gate li span {
  color: #139453;
  font-weight: 900;
}

.dd-output-accordions,
.dd-explainers {
  display: grid;
  gap: 10px;
}

.dd-output-accordions details,
.dd-explainers details {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
}

.dd-output-accordions summary,
.dd-explainers summary {
  cursor: pointer;
  padding: 14px 16px;
  color: var(--ink);
  font-weight: 900;
}

.dd-output-accordions details[open] summary,
.dd-explainers details[open] summary {
  border-bottom: 1px solid #d9e2ec;
  background: #f8fafc;
}

.dd-output-accordions details > ul,
.dd-output-accordions details > p,
.dd-explainers details > div {
  margin: 14px 16px;
}

.dd-output-accordions p,
.dd-explainers p {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

.dd-role-grid {
  display: grid;
  gap: 10px;
}

.dd-role-grid section {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 10px;
  padding: 12px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #fff;
}

.dd-role-grid span {
  grid-row: span 2;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 10px;
  background: color-mix(in srgb, #139453 10%, #fff);
  color: #137f49;
  font-size: 12px;
  font-weight: 900;
}

.dd-role-grid p {
  margin: 5px 0 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.dd-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.dd-check-grid span {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.4;
}

.dd-check-grid i {
  flex: 0 0 auto;
  color: #139453;
  font-style: normal;
  font-weight: 900;
}

.dd-gate {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
  gap: 18px;
  padding: 24px;
  border-color: color-mix(in srgb, #139453 28%, #d9e2ec);
  background: color-mix(in srgb, #139453 6%, #fff);
}

.dd-gate h2 {
  margin: 4px 0 8px;
  color: #0f6b3d;
  font-size: 24px;
}

.dd-gate p {
  margin: 0;
  color: var(--soft-ink);
  line-height: 1.55;
}

.ets-layout {
  display: block;
}

.ets-main {
  display: grid;
  gap: 20px;
  min-width: 0;
}

.ets-header,
.ets-quick,
.ets-section,
.ets-gate {
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, .045);
}

.process-linear-figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(16, 35, 63, .045);
}

.process-linear-figure img {
  display: block;
  width: 100%;
  max-height: min(76vh, 820px);
  object-fit: contain;
  background: #fff;
}

.process-explainers {
  display: grid;
  gap: 10px;
}

.process-explainers details {
  padding: 12px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #f8fafc;
}

.process-explainers summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 850;
}

.process-explainers ul {
  margin: 10px 0 0;
  padding-left: 18px;
}

.process-explainers li {
  margin: 6px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.process-template-section > p {
  margin: -4px 0 16px;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.55;
}

.process-template-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.process-template-card {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  background: #f8fbff;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.process-template-card strong {
  color: var(--primary);
  font-size: 13px;
}

.process-template-card span {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.4;
}

.process-template-card:hover {
  transform: translateY(-1px);
  border-color: var(--primary);
  box-shadow: 0 10px 22px rgba(16, 35, 63, .08);
}

.ets-header {
  padding: 28px;
}

.ets-header h1 {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 38px;
  line-height: 1.12;
}

.ets-header p {
  max-width: 1120px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.65;
}

.ets-subtitle {
  margin-bottom: 10px !important;
  color: var(--ink) !important;
  font-size: 18px !important;
  font-weight: 800;
}

.ets-quick {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: #f8fafc;
}

.ets-quick p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 14px;
  line-height: 1.5;
}

.ets-quick strong {
  color: var(--ink);
}

.ets-steps {
  display: grid;
  gap: 18px;
}

.ets-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 16px;
  padding: 0 0 0 4px;
}

.ets-step-number {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(0, 83, 160, .18);
}

.ets-step-body {
  padding: 20px 22px;
  border-left: 4px solid var(--brand);
  border-top: 1px solid #d9e2ec;
  border-right: 1px solid #d9e2ec;
  border-bottom: 1px solid #d9e2ec;
  border-radius: 0 14px 14px 0;
  background: #fff;
}

.ets-step-body h2,
.ets-section h2,
.ets-gate h2 {
  margin: 0 0 10px;
  color: var(--ink);
  font-size: 22px;
  line-height: 1.25;
}

.ets-purpose {
  margin: 0 0 14px;
  color: var(--soft-ink);
  line-height: 1.55;
}

.ets-step-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
}

.ets-step-grid h3 {
  margin: 0 0 8px;
  color: var(--ink);
  font-size: 14px;
}

.ets-step-grid ul,
.ets-gate ul,
.ets-warning-list {
  margin: 0;
  padding-left: 18px;
}

.ets-step-grid li,
.ets-gate li,
.ets-warning-list li {
  margin: 6px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.ets-note {
  margin: 14px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #f59e0b;
  border-radius: 8px;
  background: #fff7ed;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.5;
}

.ets-note strong {
  color: #9a5a00;
}

.ets-step-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf2f7;
}

.ets-step-links span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.ets-step-links button {
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.ets-step-links button:hover {
  border-color: rgba(0, 168, 90, .36);
  background: var(--brand-soft);
}

.process-step-meta {
  display: grid;
  gap: 10px;
  margin: 14px 0 16px;
  padding: 12px 14px;
  border: 1px solid #d9e2ec;
  border-radius: 12px;
  background: #f8fafc;
}

.process-step-meta > span,
.process-step-resource-links {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.process-step-meta strong {
  color: var(--ink);
  font-weight: 850;
}

.process-step-resource-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.process-step-resource-links button {
  border: 1px solid #d9e2ec;
  border-radius: 999px;
  background: #fff;
  color: var(--brand);
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.process-step-resource-links button:hover {
  border-color: rgba(0, 168, 90, .36);
  background: var(--brand-soft);
}

.role-task-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.role-task-list li {
  display: grid;
  grid-template-columns: minmax(128px, 168px) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 8px 0;
  border: 0;
  border-bottom: 1px solid #edf2f7;
  border-radius: 0;
  background: transparent;
}

.role-task-list li:last-child {
  border-bottom: 0;
}

.role-task-list em {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  width: fit-content;
  max-width: 100%;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.role-task-list span {
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.ets-section,
.ets-gate {
  padding: 22px;
}

.ets-flow-summary p {
  margin: 0 0 14px;
  color: var(--soft-ink);
  line-height: 1.55;
}

.ets-flow-summary table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  font-size: 13px;
}

.ets-flow-summary th,
.ets-flow-summary td {
  padding: 10px 12px;
  border-bottom: 1px solid #d9e2ec;
  text-align: left;
  vertical-align: top;
}

.ets-flow-summary th {
  background: #f8fafc;
  color: var(--ink);
  font-size: 15px;
  font-weight: 900;
  line-height: 1.35;
}

.ets-flow-summary tr:last-child td {
  border-bottom: 0;
}

.ets-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.ets-check-grid span {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border: 1px solid #d9e2ec;
  border-radius: 10px;
  background: #fff;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.4;
}

.ets-check-grid i {
  color: #139453;
  font-style: normal;
  font-weight: 900;
}

.ets-gate {
  border-color: color-mix(in srgb, #139453 26%, #d9e2ec);
  background: color-mix(in srgb, #139453 5%, #fff);
}

.ets-gate h2 {
  color: #0f6b3d;
}

.ets-gate p {
  margin: 0 0 12px;
  color: var(--soft-ink);
  line-height: 1.55;
}

.ets-warning-list li::marker {
  color: #f59e0b;
}

.gate-section {
  border-color: color-mix(in srgb, var(--brand) 30%, var(--line));
  background: color-mix(in srgb, var(--brand) 5%, #fff);
}

.process-action-list,
.situation-list {
  display: grid;
  gap: 12px;
}

.process-action-card,
.situation-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-action-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.process-action-card header {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.process-action-card header > span {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 10%, #fff);
  color: var(--brand);
  font-size: 12px;
  font-weight: 800;
}

.process-action-card h3,
.situation-list h3 {
  margin: 0;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.3;
}

.process-action-card header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.process-action-card dl {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.process-action-card dl div {
  min-width: 0;
  padding: 10px;
  border-radius: 8px;
  background: var(--panel);
}

.process-action-card dt {
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.process-action-card dd {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.situation-list article {
  padding: 13px;
}

.situation-list p {
  margin: 7px 0 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.flow-task-card {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 14%, var(--line));
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 5px 14px rgba(16, 35, 63, .06);
}

.flow-task-card h4 {
  margin: 0;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.3;
}

.flow-task-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0;
  text-transform: uppercase;
}

.flow-task-card ul {
  margin: 0;
  padding-left: 16px;
}

.flow-task-card li {
  margin: 4px 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.35;
}

.flow-task-card footer {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 24px;
}

.flow-task-card footer span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--stage, var(--brand));
  background: color-mix(in srgb, var(--stage, var(--brand)) 13%, #fff);
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 18%, var(--line));
  font-size: 10px;
  font-weight: 900;
}

.flow-task-card footer small {
  display: none;
}

.process-step-detail {
  margin-top: 18px;
  overflow: hidden;
}

.process-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 440px);
  gap: 24px;
  align-items: start;
  margin-bottom: 18px;
}

.process-detail-head > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.detail-step-badge {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  padding: 8px 18px;
  border-radius: var(--radius);
  color: #fff;
  background: linear-gradient(135deg, var(--brand), var(--brand-dark));
  font-weight: 700;
  text-transform: uppercase;
  box-shadow: 0 12px 22px rgba(0, 168, 90, .18);
}

.process-detail-head h2 {
  margin: 0;
  color: #07183d;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
  text-transform: uppercase;
}

.process-detail-head h2 small {
  color: inherit;
  font-size: .82em;
}

.process-detail-head p {
  margin: 0;
  color: var(--soft-ink);
  font-weight: 500;
}

.process-objective-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  max-width: 600px;
  margin-bottom: 28px;
  color: #07183d;
}

.objective-icon {
  position: relative;
  width: 32px;
  height: 32px;
  border: 3px solid var(--brand);
  border-radius: 999px;
}

.objective-icon::before {
  content: "";
  position: absolute;
  inset: 6px;
  border: 2px solid var(--brand);
  border-radius: 999px;
}

.objective-icon::after {
  content: "";
  position: absolute;
  right: -8px;
  top: 4px;
  width: 12px;
  height: 2px;
  background: var(--brand);
  transform: rotate(-35deg);
}

.process-objective-card strong {
  color: var(--brand);
  font-size: 16px;
}

.process-objective-card p {
  margin: 4px 0 0;
  color: var(--ink);
}

.process-subtimeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  grid-template-rows: auto auto auto auto auto auto;
  gap: 18px;
  align-items: start;
}

.process-subtimeline::before {
  content: "";
  position: absolute;
  left: 2%;
  right: 2%;
  top: 44px;
  height: 6px;
  border-radius: 999px;
  background: linear-gradient(90deg, #007a45 0 16.6%, #0959d9 16.6% 33.2%, #0086a7 33.2% 49.8%, #f36c00 49.8% 66.4%, #df001a 66.4% 83%, #6d40c8 83% 100%);
}

.substep-card {
  --step: var(--brand);
  position: relative;
  z-index: 1;
  display: grid;
  grid-row: span 6;
  grid-template-rows: subgrid;
  gap: 12px;
  padding-top: 4px;
}

@supports not (grid-template-rows: subgrid) {
  .substep-card {
    grid-template-rows: auto auto auto auto auto auto;
  }
}

.substep-card header {
  display: grid;
  justify-items: center;
  gap: 8px;
  min-height: 132px;
  text-align: center;
}

.substep-card header span {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: var(--step);
  border: 5px solid #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--step) 18%, #fff), 0 12px 20px rgba(16, 35, 63, .12);
  font-weight: 700;
}

.substep-card header h3 {
  margin: 0;
  color: var(--step);
  font-size: 15px;
  line-height: 1.3;
  text-transform: uppercase;
}

.substep-card section,
.substep-card footer {
  overflow: visible;
  padding: 13px;
  border: 1px solid color-mix(in srgb, var(--step) 22%, var(--line));
  background: #fff;
}

.substep-card section:nth-of-type(1) {
  min-height: 112px;
}

.substep-card section:nth-of-type(2) {
  min-height: 258px;
}

.substep-card section:nth-of-type(3) {
  min-height: 190px;
}

.substep-card section:first-of-type {
  border-radius: var(--radius) var(--radius) 0 0;
}

.substep-card section + section {
  margin-top: -12px;
}

.substep-card footer {
  display: grid;
  gap: 3px;
  min-height: 98px;
  margin-top: -12px;
  border-radius: 0 0 var(--radius) var(--radius);
  color: var(--ink);
}

.substep-owner {
  display: inline-flex;
  align-items: center;
  align-self: start;
  gap: 8px;
  color: var(--step);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.substep-owner span {
  position: relative;
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--step) 14%, #fff);
  border: 1px solid color-mix(in srgb, var(--step) 32%, var(--line));
}

.substep-owner span::before {
  content: "";
  position: absolute;
  left: 7px;
  top: 5px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--step);
}

.substep-owner span::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 13px;
  width: 11px;
  height: 5px;
  border-radius: 8px 8px 2px 2px;
  background: var(--step);
}

.substep-card h4 {
  margin: 0 0 8px;
  color: var(--step);
  font-size: 12px;
  text-transform: uppercase;
}

.substep-card ul {
  margin: 0;
  padding-left: 17px;
}

.substep-card li {
  margin: 6px 0;
  color: var(--ink);
  font-size: 12px;
  line-height: 1.45;
}

.check-list-mini {
  padding-left: 0 !important;
  list-style: none;
}

.check-list-mini li {
  position: relative;
  padding-left: 22px;
}

.check-list-mini li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .42em;
  width: 12px;
  height: 12px;
  border: 1.5px solid var(--step);
  border-radius: 2px;
}

.check-list-mini li::after {
  content: "";
  position: absolute;
  left: 3px;
  top: .62em;
  width: 7px;
  height: 4px;
  border-left: 1.8px solid var(--step);
  border-bottom: 1.8px solid var(--step);
  transform: rotate(-45deg);
}

.substep-card footer a {
  display: grid;
  gap: 3px;
  color: inherit;
  text-decoration: none;
}

.substep-card footer a:hover strong {
  text-decoration: underline;
}

.substep-card footer strong {
  color: var(--step);
  font-size: 12px;
}

.substep-card footer span {
  color: var(--ink);
  font-size: 12px;
  line-height: 1.35;
}

.substep-green { --step: #007a45; }
.substep-blue { --step: #0959d9; }
.substep-cyan { --step: #0086a7; }
.substep-orange { --step: #f36c00; }
.substep-red { --step: #df001a; }
.substep-purple { --step: #6d40c8; }

.process-detail-summary {
  display: grid;
  grid-template-columns: 1.1fr 1.5fr 1.1fr;
  gap: 18px;
  margin-top: 22px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.process-detail-summary article + article {
  border-left: 1px solid var(--line);
  padding-left: 18px;
}

.process-detail-summary h3 {
  margin: 0 0 10px;
  color: #07183d;
  font-size: 15px;
  text-transform: uppercase;
}

.process-detail-summary p {
  margin: 7px 0;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
}

.summary-check-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

.summary-check-grid span {
  position: relative;
  padding-left: 24px;
  color: var(--ink);
  font-size: 13px;
}

.summary-check-grid span::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  width: 13px;
  height: 13px;
  border: 1.5px solid var(--brand);
  border-radius: 2px;
}

.summary-check-grid span::after {
  content: "";
  position: absolute;
  left: 3px;
  top: 7px;
  width: 8px;
  height: 4px;
  border-left: 1.8px solid var(--brand);
  border-bottom: 1.8px solid var(--brand);
  transform: rotate(-45deg);
}

.legend-list {
  display: grid;
  gap: 10px;
}

.legend-list span {
  position: relative;
  padding-left: 58px;
  color: var(--ink);
  font-size: 13px;
}

.legend-list span::before {
  content: "";
  position: absolute;
  left: 0;
  top: .7em;
  width: 44px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
}

.legend-green { color: #007a45 !important; }
.legend-blue { color: #0959d9 !important; }
.legend-orange { color: #f36c00 !important; }
.legend-red { color: #df001a !important; }
.legend-purple { color: #6d40c8 !important; }

.kanban-board {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding: 4px 2px;
}

.kanban-column {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.kanban-column header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  margin: -12px -12px 0;
  padding: 10px;
  border-radius: var(--radius) var(--radius) 0 0;
  background: color-mix(in srgb, var(--stage, var(--brand)) 12%, #fff);
}

.kanban-column header span {
  min-width: 38px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--ink);
  background: color-mix(in srgb, var(--stage, var(--brand)) 28%, #fff);
  font-weight: 900;
}

.kanban-column header strong {
  min-width: 0;
  font-size: 14px;
  line-height: 1.25;
}

.kanban-column header small {
  color: var(--muted);
  font-weight: 800;
}

.kanban-card,
.stage-block {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 4px 10px rgba(16, 35, 63, .045);
}

.kanban-card h3,
.stage-block h3 {
  margin: 0 0 7px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: uppercase;
}

.kanban-card p,
.stage-block p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.55;
}

.stage-block ul {
  margin: 0;
  padding-left: 17px;
}

.stage-block li {
  margin: 5px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.stage-block.goal {
  border-color: color-mix(in srgb, var(--stage, var(--brand)) 32%, var(--line));
  background: color-mix(in srgb, var(--stage, var(--brand)) 8%, #fff);
}

.output-card {
  border-color: color-mix(in srgb, var(--stage, var(--brand)) 34%, var(--line));
  background: color-mix(in srgb, var(--stage, var(--brand)) 10%, #fff);
}

.meta-row,
.chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.meta-row span,
.chip-row em {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--soft-ink);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.chip-row em {
  background: color-mix(in srgb, var(--stage, var(--brand)) 15%, #fff);
}

.stage-survey { --stage: #16a394; }
.stage-quote { --stage: #ef7d7d; }
.stage-design { --stage: #8f72e8; }
.stage-install { --stage: #f59e0b; }
.stage-ets { --stage: #2f6fec; }
.stage-app { --stage: #00a86b; }
.stage-accept { --stage: #e5484d; }
.stage-service { --stage: #64748b; }

.standards-kanban-section {
  margin-top: 18px;
}

.standards-board {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.standard-lane {
  background: #fff;
}

.standard-task,
.standard-files {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.standard-task h3,
.standard-files h3 {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.standard-task ul {
  margin: 0;
  padding-left: 18px;
}

.standard-task li {
  margin: 8px 0;
  color: var(--soft-ink);
  font-size: 13px;
  line-height: 1.45;
}

.standard-files {
  display: grid;
  gap: 8px;
  background: color-mix(in srgb, var(--stage, var(--brand)) 7%, #fff);
}

.standard-files a,
.standard-files button {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 22%, var(--line));
  border-radius: var(--radius);
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 800;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.standard-files a::before,
.standard-files button::before {
  content: "";
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--stage, var(--brand));
  background: color-mix(in srgb, var(--stage, var(--brand)) 12%, #fff);
  border: 1px solid color-mix(in srgb, var(--stage, var(--brand)) 22%, var(--line));
}

.standard-files a::after,
.standard-files button::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 15px;
  width: 8px;
  height: 8px;
  border-left: 2px solid var(--stage, var(--brand));
  border-bottom: 2px solid var(--stage, var(--brand));
  transform: rotate(-45deg);
}

.standard-files a:hover,
.standard-files button:hover,
.standard-files button.active {
  border-color: color-mix(in srgb, var(--stage, var(--brand)) 44%, var(--line));
  box-shadow: 0 5px 14px rgba(16, 35, 63, .06);
}

.standard-files button small {
  margin-left: auto;
  color: var(--stage, var(--brand));
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.standard-document-panel {
  margin-top: 18px;
}

.standard-download {
  text-decoration: none;
}

.standard-attachment {
  margin-top: 28px;
  padding: 18px 20px;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: var(--radius);
  background: var(--brand-soft);
}

.standard-attachment h3 {
  margin-top: 0;
}

.standard-attachment p {
  margin-bottom: 14px;
}

.standard-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.standard-file-action {
  display: inline-flex;
  align-items: center;
  overflow: hidden;
  max-width: 100%;
  border: 1px solid rgba(0, 168, 90, .28);
  border-radius: 9px;
  background: #fff;
}

.standard-attachment-list .standard-file-action .standard-file-download {
  min-width: 0;
  max-width: min(360px, 100%);
  border: 0;
  border-radius: 0;
  padding: 0 14px;
  overflow: hidden;
  text-overflow: ellipsis;
}

.standard-file-preview {
  order: -1;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 0;
  border-right: 1px solid rgba(0, 168, 90, .2);
  border-radius: 0;
  color: var(--brand);
  background: #fff;
  cursor: pointer;
  transition: background .16s ease, border-color .16s ease, color .16s ease;
}

.standard-file-preview svg {
  width: 19px;
  height: 19px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.standard-file-preview:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(0, 168, 90, .42);
}

.standard-file-action:hover {
  border-color: rgba(0, 168, 90, .42);
}

.template-table .small-button,
.panel-head > .small-button,
.panel-head > a.small-button,
.standard-attachment-list .small-button,
.pdf-preview-shell header .small-button,
.pdf-preview-dialog header .small-button,
.lesson-info .small-button {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 14px;
  border: 1px solid rgba(0, 168, 90, .28);
  border-radius: 8px;
  color: var(--brand);
  background: #fff;
  box-shadow: none;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.template-table td .small-button {
  min-width: 108px;
}

.template-table td {
  vertical-align: middle;
}

.template-table .small-button:hover,
.panel-head > .small-button:hover,
.panel-head > a.small-button:hover,
.standard-attachment-list .small-button:hover,
.pdf-preview-shell header .small-button:hover,
.pdf-preview-dialog header .small-button:hover,
.lesson-info .small-button:hover {
  color: var(--brand-dark);
  background: var(--brand-soft);
  border-color: rgba(0, 168, 90, .42);
  box-shadow: none;
  transform: none;
}

.pdf-preview-shell {
  display: grid;
  gap: 18px;
}

.pdf-preview-shell header {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-preview-shell h1 {
  margin: 4px 0 8px;
  color: var(--ink);
}

.pdf-preview-shell p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.pdf-preview-shell iframe,
.pdf-preview-dialog iframe {
  width: 100%;
  min-height: min(78vh, 920px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.pdf-preview-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  padding: 24px;
  background: rgba(15, 23, 42, .55);
}

.pdf-preview-dialog {
  height: 100%;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 12px;
  padding: 16px;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 24px 70px rgba(15, 23, 42, .24);
}

.pdf-preview-dialog header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}

.pdf-preview-dialog h2 {
  margin: 0;
  color: var(--ink);
}

.pdf-preview-dialog header div {
  display: flex;
  gap: 8px;
  align-items: center;
}

body.has-modal {
  overflow: hidden;
}

.markdown-body {
  color: var(--soft-ink);
  line-height: 1.68;
}

.knowledge-detail-main.markdown-body {
  display: block;
}

.markdown-body h1,
.markdown-body h2,
.markdown-body h3 {
  color: var(--ink);
  line-height: 1.25;
  scroll-margin-top: 18px;
}

.markdown-body h1 {
  margin: 0 0 18px;
  font-size: 32px;
}

.markdown-body h2 {
  margin: 28px 0 12px;
  font-size: 22px;
}

.markdown-body h2.lesson-step-heading {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 44px 0 18px;
  padding: 18px 20px 18px 24px;
  border: 1px solid rgba(0, 168, 90, .28);
  border-left: 7px solid var(--brand);
  border-radius: 8px;
  background: linear-gradient(90deg, rgba(0, 168, 90, .14), rgba(255, 255, 255, .98));
  box-shadow: 0 14px 28px rgba(15, 23, 42, .07);
  color: #001f3f;
  font-size: 28px;
  line-height: 1.2;
  scroll-margin-top: 28px;
}

.markdown-body h2.lesson-step-heading::before {
  content: "";
  width: 13px;
  height: 13px;
  flex: 0 0 13px;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: 0 0 0 6px rgba(0, 168, 90, .12);
}

.markdown-body h2.lesson-step-heading:first-child {
  margin-top: 0;
}

.markdown-body h3 {
  margin: 22px 0 10px;
  font-size: 18px;
}

.markdown-body p {
  margin: 0 0 12px;
}

.markdown-body ul,
.markdown-body ol {
  margin: 0 0 14px;
  padding-left: 24px;
}

.markdown-body li {
  margin: 4px 0;
}

.markdown-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 14px 0 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.markdown-body th,
.markdown-body td {
  padding: 10px 12px;
  border: 1px solid var(--line);
  vertical-align: top;
  font-size: 14px;
}

.markdown-body th {
  background: var(--surface-soft);
  color: var(--ink);
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.markdown-body table strong {
  color: var(--ink);
  font-weight: 900;
}

.markdown-body code {
  padding: 2px 5px;
  border-radius: 5px;
  background: var(--surface-soft);
}

.markdown-body pre {
  margin: 10px 0 16px;
  padding: 12px 14px;
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.55;
  white-space: pre-wrap;
  box-shadow: inset 3px 0 0 rgba(0, 168, 90, .35);
}

.markdown-body pre code {
  display: block;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: inherit;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
}

.markdown-body .knx-application-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin: 16px 0 28px;
}

.markdown-body .knx-application-grid section {
  padding: 14px 18px 12px;
  border-right: 1px solid var(--line);
  background: #fff;
}

.markdown-body .knx-application-grid section:last-child {
  border-right: 0;
}

.markdown-body .knx-application-grid h3 {
  margin-top: 0;
  color: var(--ink);
  text-align: center;
}

.markdown-body .knx-application-grid p {
  margin: 0 0 12px;
  color: var(--ink);
}

.markdown-body .knx-application-grid ul {
  margin-bottom: 0;
  padding-left: 22px;
}

.markdown-body .knx-application-grid li {
  margin: 3px 0;
}

.markdown-body .knx-value-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 34px;
  margin: 22px 0 30px;
}

.markdown-body .knx-value-grid section {
  padding: 16px 18px;
  background: #fff;
}

.markdown-body .knx-value-grid h3 {
  margin-top: 0;
  text-align: center;
}

.markdown-body .knx-value-grid p {
  margin-bottom: 10px;
}

.markdown-body .knx-value-grid ul {
  margin-bottom: 12px;
}

.markdown-body .knx-benefit {
  padding-left: 12px;
  border-left: 4px solid var(--line);
}

.markdown-figure {
  display: flex;
  justify-content: center;
  margin: 16px auto 20px;
}

.markdown-figure img {
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.knowledge-detail-main[data-knowledge-id="knx-tong-quan"] .markdown-figure img,
.knowledge-detail-main[data-knowledge-id="knx-tong-quan"] > img {
  width: auto;
  max-width: min(100%, 860px);
  max-height: 500px;
  object-fit: contain;
}

.knowledge-detail-main[data-knowledge-id="knx-system-model"] .markdown-figure img,
.knowledge-detail-main[data-knowledge-id="knx-system-model"] > img {
  width: auto;
  max-width: min(100%, 1080px);
  max-height: 640px;
  object-fit: contain;
}

.knowledge-detail-main[data-knowledge-id="knx-topology"] .markdown-figure img,
.knowledge-detail-main[data-knowledge-id="knx-topology"] > img {
  width: auto;
  max-width: min(100%, 1440px);
  max-height: 840px;
  object-fit: contain;
}

.markdown-figure + p em {
  display: block;
  text-align: center;
  color: var(--muted);
}

.markdown-video {
  display: grid;
  gap: 8px;
  width: 100%;
  margin: 16px auto 20px;
}

.markdown-video video {
  width: min(100%, 1180px);
  max-width: 100%;
  min-height: 260px;
  justify-self: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
}

.markdown-video figcaption {
  width: min(100%, 1180px);
  max-width: 100%;
  justify-self: center;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
}

.markdown-youtube iframe {
  width: min(100%, 1180px);
  aspect-ratio: 16 / 9;
  justify-self: center;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
}

.markdown-video-link a {
  color: var(--brand);
  font-weight: 800;
}

.markdown-file-card {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin: 14px 0 20px;
  padding: 14px;
  border: 1px solid color-mix(in srgb, var(--brand) 22%, var(--line));
  border-radius: 8px;
  background: linear-gradient(0deg, color-mix(in srgb, var(--brand) 5%, #fff), #fff);
  box-shadow: var(--soft-shadow);
}

.markdown-file-icon {
  min-height: 48px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-size: 13px;
  font-weight: 900;
}

.markdown-file-card strong,
.markdown-file-card small {
  display: block;
}

.markdown-file-card strong {
  color: var(--ink);
  font-size: 16px;
}

.markdown-file-card small {
  color: var(--muted);
  font-size: 13px;
}

.markdown-file-card a {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border-radius: 7px;
  color: #fff;
  background: var(--brand);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.lumi-app-config-lesson.markdown-body {
  padding: 24px;
}

.lumi-app-config-lesson.markdown-body h1 {
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  font-size: clamp(30px, 2.2vw, 42px);
}

.lumi-app-config-lesson.markdown-body h2 {
  margin-top: 38px;
  padding: 16px 18px;
  border: 1px solid color-mix(in srgb, var(--brand) 26%, var(--line));
  border-left: 6px solid var(--brand);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 12%, #fff), #fff 72%);
  box-shadow: 0 8px 20px rgba(16, 35, 63, .05);
  font-size: clamp(24px, 1.7vw, 30px);
}

.lumi-app-config-lesson.markdown-body h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 28px;
  color: #000;
  font-size: clamp(21px, 1.25vw, 25px);
  font-weight: 800;
}

.lumi-app-config-lesson.markdown-body h3 .heading-number {
  min-width: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #030303;
  font-size: 22px;
  font-weight: 800;
  line-height: 1;
  white-space: nowrap;
}

.lumi-app-config-lesson .markdown-figure,
.lumi-app-config-lesson .markdown-video {
  margin-top: 20px;
  margin-bottom: 24px;
}

.lumi-app-config-lesson .markdown-figure img,
.lumi-app-config-lesson .markdown-video video,
.lumi-app-config-lesson .markdown-youtube iframe {
  width: min(100%, 1180px);
  max-width: 100%;
}

.lumi-app-config-lesson.markdown-body table {
  display: block;
  overflow-x: auto;
  border-radius: 8px;
}

.lumi-app-config-lesson.markdown-body table tbody {
  display: table;
  width: 100%;
  min-width: 760px;
}

.lumi-app-config-lesson .lesson-note {
  margin: 16px 0 20px;
  padding: 14px 16px;
  border: 1px solid color-mix(in srgb, var(--brand) 28%, var(--line));
  border-left: 5px solid var(--brand);
  border-radius: 8px;
  background: color-mix(in srgb, var(--brand) 7%, #fff);
  color: var(--soft-ink);
}

.lumi-app-config-lesson .lesson-note p,
.lumi-app-config-lesson .lesson-note ul {
  margin: 0;
}

.lumi-app-config-lesson .lesson-note p + p,
.lumi-app-config-lesson .lesson-note p + ul {
  margin-top: 8px;
}

.markdown-error {
  padding: 14px;
  border: 1px solid rgba(229, 72, 77, .25);
  border-radius: var(--radius);
  color: var(--red);
  background: var(--red-soft);
  font-weight: 700;
}

.standard-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.standard-card {
  padding: 22px;
}

.standard-card h2 {
  margin-top: 12px;
}

.warning-band {
  border-color: rgba(229, 72, 77, .25);
  background: linear-gradient(0deg, #fff, #fff8f8);
}

.template-table td:first-child {
  color: var(--brand);
}

.faq-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.faq-list details {
  padding: 0;
  overflow: hidden;
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  font-weight: 900;
}

.faq-list details div {
  padding: 0 20px 18px;
  color: var(--soft-ink);
}

.faq-list details p {
  margin: 8px 0;
}

.faq-video-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.faq-video-card {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: inherit;
  text-decoration: none;
}

.faq-video-card:hover {
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.video-thumb {
  position: relative;
  width: 48px;
  height: 34px;
  border: 1px solid rgba(0, 168, 90, .18);
  border-radius: 7px;
  background: var(--brand-soft);
  color: var(--brand);
}

.video-thumb::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 11px;
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid currentColor;
}

.faq-video-card strong,
.faq-video-card small {
  display: block;
}

.faq-video-card small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 12px;
}

.project-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 18px;
}

.project-library {
  margin-top: 18px;
}

.project-type-tabs {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.project-type-tabs button {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--soft-ink);
  font-weight: 900;
  cursor: pointer;
}

.project-type-tabs button span {
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
}

.project-type-tabs button:hover,
.project-type-tabs button.active {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .34);
  background: var(--brand-soft);
}

.project-workspace {
  display: grid;
  grid-template-columns: 340px minmax(0, 1fr);
  gap: 18px;
  margin-top: 12px;
}

.project-list-panel,
.project-detail-panel {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--soft-shadow);
}

.project-list {
  display: grid;
  gap: 10px;
}

.project-select-card {
  width: 100%;
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  text-align: left;
  cursor: pointer;
}

.project-select-card:hover,
.project-select-card.active {
  border-color: rgba(0, 168, 90, .35);
  background: var(--brand-soft);
}

.project-thumb {
  width: 54px;
  height: 54px;
  display: grid;
  place-items: center;
  border-radius: var(--radius);
  color: var(--brand);
  background: #fff;
  font-size: 24px;
}

.project-select-card strong,
.project-select-card small {
  display: block;
}

.project-select-card small {
  color: var(--muted);
  margin-top: 3px;
}

.project-hero-line {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.project-hero-line h2 {
  margin: 0 0 8px;
}

.project-hero-line p {
  margin: 0;
  color: var(--soft-ink);
}

.project-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-stats span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  color: var(--soft-ink);
  background: var(--surface-soft);
  border: 1px solid var(--line);
  font-size: 13px;
  font-weight: 800;
}

.project-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.project-overview article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.project-overview span {
  display: block;
  margin-bottom: 4px;
  color: var(--muted);
  font-size: 12px;
}

.project-overview strong {
  display: block;
  line-height: 1.35;
}

.project-summary-box {
  margin-bottom: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.project-summary-box h3 {
  margin: 0 0 8px;
}

.project-summary-box p {
  margin: 0;
  color: var(--soft-ink);
}

.project-solution-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.project-solution-tags span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 10px;
  border: 1px solid rgba(0, 168, 90, .16);
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 13px;
}

.project-document-section {
  margin-top: 18px;
}

.doc-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.doc-step-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.doc-step-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.doc-step-card header strong {
  line-height: 1.25;
}

.doc-step-card header span {
  min-width: 44px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: var(--brand);
  background: var(--brand-soft);
  font-size: 12px;
  font-weight: 900;
}

.doc-step-card p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 13px;
}

.doc-links {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.doc-links em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  border: 1px solid var(--line);
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
}

.doc-preview {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}

.doc-preview summary {
  cursor: pointer;
  color: var(--brand);
}

.doc-preview ul {
  margin: 8px 0 0;
  padding-left: 18px;
  color: var(--soft-ink);
  font-size: 13px;
}

.project-card {
  overflow: hidden;
}

.project-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
  background: var(--brand-soft);
}

.project-card div {
  padding: 18px;
}

.project-card h2 {
  margin: 12px 0 8px;
}

.pill {
  cursor: default;
  color: var(--brand);
  background: var(--brand-soft);
  border-color: transparent;
}

.pill.blue {
  color: var(--blue);
  background: var(--blue-soft);
}

.pill.amber {
  color: var(--amber);
  background: var(--amber-soft);
}

.footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
}

.flash {
  animation: flash-panel 1.1s ease;
}

@keyframes flash-panel {
  0% {
    box-shadow: 0 0 0 0 rgba(0, 168, 90, .4);
  }
  100% {
    box-shadow: var(--soft-shadow);
  }
}

@media (max-width: 1500px) {
  :root {
    --topbar-height: 126px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    width: auto;
    min-width: 136px;
  }

  .topnav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
    justify-content: center;
    overflow: visible;
  }

  .search-box {
    margin-left: auto;
    width: min(360px, 32vw);
  }
}

@media (max-width: 1380px) {
  :root {
    --topbar-height: 126px;
  }

  .topbar {
    flex-wrap: wrap;
  }

  .brand {
    width: auto;
  }

  .topnav {
    order: 4;
    flex: 0 0 100%;
    width: 100%;
  }

  .search-box {
    margin-left: auto;
    width: 320px;
  }

  .layout {
    grid-template-columns: 250px minmax(0, 1fr);
  }

  .hero {
    grid-template-columns: 1fr;
  }

  .landing-hero {
    padding-top: 46px;
    padding-bottom: 70px;
  }

  .landing-house {
    width: 100%;
    height: 100%;
    opacity: .9;
  }

  .landing-actions {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: -46px;
    overflow: visible;
    padding-bottom: 0;
  }

  .landing-lower {
    grid-template-columns: 1fr;
  }

  .quick-access-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .hero-visual {
    min-height: auto;
  }

  .home-grid,
  .two-col {
    grid-template-columns: 1fr;
  }

  .gate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-workspace {
    grid-template-columns: 1fr;
  }

  .project-overview {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1120px) {
  .knowledge-catalog {
    grid-template-columns: 1fr;
  }

  .knowledge-card {
    grid-template-columns: minmax(0, 1fr) 180px;
  }

  .knowledge-detail-layout {
    grid-template-columns: 1fr;
  }

  .process-flow-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .process-detail-head,
  .process-detail-summary {
    grid-template-columns: 1fr;
  }

  .process-subtimeline {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .process-subtimeline::before {
    display: none;
  }

  .process-detail-summary article + article {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .kanban-board {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  :root {
    --topbar-height: 118px;
  }

  .menu-toggle {
    display: grid;
  }

  .role-focus-grid,
  .project-concern-grid,
  .dd-hero,
  .ets-layout,
  .ets-step-grid,
  .ets-check-grid,
  .dd-summary-grid,
  .dd-stepper,
  .dd-output-layout,
  .dd-two-col,
  .dd-check-grid,
  .dd-gate,
  .process-action-card dl,
  .process-lesson-grid,
  .markdown-body .knx-application-grid,
  .markdown-body .knx-value-grid,
  .detail-check-grid {
    grid-template-columns: 1fr;
  }

  .dd-hero,
  .dd-section,
  .dd-gate {
    padding: 18px;
    border-radius: 14px;
  }

  .dd-hero-copy h1 {
    font-size: 30px;
  }

  .dd-hero-image img {
    max-height: 220px;
  }

  .dd-stepper {
    position: relative;
  }

  .dd-step-card {
    min-height: auto;
    padding-right: 14px;
  }

  .dd-step-arrow {
    display: none;
  }

  .ets-header,
  .ets-section,
  .ets-gate {
    padding: 18px;
  }

  .ets-header h1 {
    font-size: 30px;
  }

  .ets-step {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 10px;
  }

  .ets-step-number {
    width: 38px;
    height: 38px;
    font-size: 13px;
  }

  .ets-step-body {
    padding: 16px;
  }

  .ets-step-body h2,
  .ets-section h2,
  .ets-gate h2 {
    font-size: 20px;
  }

  .process-lesson-figure img {
    max-height: 280px;
  }

  .topbar {
    gap: 10px;
  }

  .brand img {
    width: 96px;
    height: 34px;
    padding: 6px 8px;
  }

  .brand span {
    display: none;
  }

  .search-box {
    flex: 1 1 260px;
    width: auto;
    min-width: 0;
  }

  .knowledge-toolbar,
  .knowledge-section-head {
    align-items: stretch;
    grid-template-columns: 1fr;
    flex-direction: column;
  }

  .knowledge-card {
    grid-template-columns: 1fr;
  }

  .course-visual {
    min-height: 104px;
  }

  .layout {
    grid-template-columns: 1fr;
    height: auto;
    overflow: visible;
    padding: 14px;
  }

  body[data-page="project-map"] .layout {
    padding: 14px;
  }

  .project-map-hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .project-map-hero h1 {
    font-size: 38px;
  }

  .project-map-compass,
  .web-map-intro,
  .web-map-summary,
  .web-use-steps,
  .web-section-grid,
  .project-mindmap,
  .workflow-step,
  .workflow-lanes,
  .journey-lanes,
  .project-foundation,
  .foundation-links,
  .ecosystem-map,
  .map-resource-board,
  .map-resource-wide,
  .project-use-flow ol {
    grid-template-columns: 1fr;
  }

  .map-process-spine,
  .map-focus,
  .map-side-panel {
    position: static;
  }

  .map-process-spine {
    grid-template-columns: repeat(8, 180px);
    overflow-x: auto;
    padding-bottom: 8px;
  }

  .map-stage-panel {
    padding: 18px;
  }

  .map-stage-panel h3 {
    font-size: 26px;
  }

  .web-map-intro h1 {
    font-size: 32px;
  }

  .stage-strip {
    grid-template-columns: repeat(8, 150px);
  }

  .project-road-curve {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 14px;
  }

  .road-svg {
    display: none;
  }

  .road-stage,
  .road-stage-1,
  .road-stage-2,
  .road-stage-3,
  .road-stage-4,
  .road-stage-5,
  .road-stage-6,
  .road-stage-7,
  .road-stage-8 {
    position: relative;
    top: auto;
    right: auto;
    left: auto;
    width: 100%;
  }

  .road-stage:not(:last-child)::after {
    content: "";
    position: absolute;
    left: 26px;
    top: 52px;
    bottom: -14px;
    width: 2px;
    background: var(--line);
  }

  .road-stage.is-past:not(:last-child)::after {
    background: var(--brand);
  }

  .project-journey-rail {
    grid-template-columns: repeat(8, 112px);
    margin-right: -4px;
    margin-left: -4px;
    padding-left: 4px;
    padding-right: 4px;
  }

  .journey-panel {
    padding: 18px;
  }

  .journey-panel h3 {
    font-size: 24px;
  }

  .workflow-step:not(:last-child)::after {
    left: 28px;
  }

  .mindmap-core {
    grid-column: auto;
    grid-row: auto;
    min-height: 132px;
    border-radius: var(--radius);
  }

  .role-map-table {
    border: 0;
  }

  .role-map-table > div {
    grid-template-columns: 1fr 1fr;
    margin-bottom: 10px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
  }

  .role-map-table > div:last-child {
    border-bottom: 1px solid var(--line);
  }

  .role-map-head {
    display: none !important;
  }

  .content {
    height: auto;
    overflow: visible;
    padding-right: 0;
  }

  .sidebar {
    position: fixed;
    z-index: 70;
    top: 0;
    bottom: 0;
    left: 0;
    width: min(320px, 86vw);
    max-height: none;
    padding: 16px;
    background: var(--surface);
    box-shadow: var(--shadow);
    transform: translateX(-110%);
    transition: transform .2s ease;
  }

  .sidebar.open {
    transform: translateX(0);
  }

  .hero,
  .band,
  .panel,
  .page-hero {
    padding: 18px;
  }

  .landing-hero {
    padding: 32px 22px 64px;
  }

  .landing-house {
    width: 100%;
    height: 100%;
    max-height: none;
    right: 0;
    top: 0;
    bottom: auto;
    object-fit: contain;
    opacity: .92;
  }

  .landing-actions {
    grid-template-columns: 1fr;
    margin-top: 16px;
    overflow: visible;
  }

  .action-card {
    grid-template-columns: 64px minmax(0, 1fr);
    min-height: auto;
    padding: 18px;
  }

  .action-art {
    width: 58px;
    height: 58px;
    font-size: 28px;
  }

  .quick-access-grid,
  .landing-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-stats div {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .landing-stats div:last-child {
    border-bottom: 0;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 34px;
  }

  .role-grid,
  .standard-grid,
  .project-grid,
  .project-list,
  .doc-step-grid,
  .kanban-board {
    grid-template-columns: 1fr;
  }

  .process-flow-board {
    grid-template-columns: 1fr;
  }

  .process-subtimeline {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .substep-card {
    grid-row: auto;
    grid-template-rows: auto;
  }

  .substep-card section,
  .substep-card footer {
    overflow: visible;
  }

  .substep-card header {
    min-height: 112px;
  }

  .detail-check-grid {
    grid-template-columns: 1fr;
  }

  .project-card img {
    height: 150px;
  }

  .lumi-app-config-lesson .markdown-figure img,
  .lumi-app-config-lesson .markdown-video video,
  .lumi-app-config-lesson .markdown-youtube iframe {
    width: 100%;
  }
}

@media (max-width: 620px) {
  body {
    font-size: 14px;
  }

  .topbar {
    padding: 10px 12px;
  }

  .topnav a {
    height: 38px;
    padding: 0 10px;
    font-size: 14px;
  }

  .project-overview {
    grid-template-columns: 1fr;
  }

  .process-subtimeline,
  .summary-check-grid {
    grid-template-columns: 1fr;
  }

  .process-detail-head h2 {
    font-size: 28px;
  }

  .hero {
    min-height: auto;
    background: var(--surface);
  }

  .landing-hero {
    padding: 24px 18px 46px;
  }

  .landing-copy .welcome {
    font-size: 17px;
  }

  .landing-copy h1 {
    font-size: 38px;
  }

  .landing-copy p:last-child {
    font-size: 15px;
  }

  .landing-house {
    max-height: none;
  }

  .action-card {
    grid-template-columns: 1fr;
  }

  .quick-access-grid,
  .landing-stats {
    grid-template-columns: 1fr;
  }

  .project-map-hero,
  .project-map-section {
    padding: 18px;
  }

  .project-map-hero h1 {
    font-size: 32px;
  }

  .project-map-hero p:not(.eyebrow) {
    font-size: 15px;
  }

  .project-roadmap {
    grid-template-columns: repeat(8, 132px);
  }

  .role-map-table > div {
    grid-template-columns: 1fr;
  }

  .quick-access-grid button {
    min-height: 82px;
    grid-template-columns: 44px 1fr;
    justify-items: start;
    align-content: center;
  }

  .quick-access-grid strong {
    text-align: left;
  }

  .markdown-file-card {
    grid-template-columns: 1fr;
    justify-items: start;
  }

  .today-panel li {
    grid-template-columns: 24px minmax(0, 1fr);
  }

  .today-panel button {
    grid-column: 2;
    justify-self: start;
  }

  .hero h1,
  .page-hero h1 {
    font-size: 30px;
  }

  .hero-text,
  .page-hero p {
    font-size: 15px;
  }

  .gate-grid {
    grid-template-columns: 1fr;
  }

  .project-hero-line {
    flex-direction: column;
  }

  .section-heading,
  .panel-head {
    align-items: stretch;
    flex-direction: column;
  }

  .primary-button,
  .secondary-button,
  .ghost-button {
    width: 100%;
  }

}

/* Typography weight tuning */
body {
  font-weight: 400;
}

html body :is(
  h1,
  h2,
  h3,
  h4,
  strong,
  th,
  button,
  summary,
  .topnav a,
  .primary-button,
  .secondary-button,
  .ghost-button,
  .small-button,
  .pill,
  .course-number,
  .start-course,
  .resource-chip,
  .quick-tile strong,
  .suggestion-list strong,
  .course-card h3,
  .course-number,
  .course-progress strong,
  .flow-step-head span,
  .flow-step-head em,
  .flow-task-card strong,
  .flow-task-card footer span,
  .standard-task h3,
  .standard-files h3,
  .faq-list summary,
  .project-type-tabs button,
  .project-select-card strong,
  .project-stats span,
  .project-overview strong,
  .project-solution-tags span,
  .doc-step-card header strong,
  .doc-step-card header span,
  .doc-links em,
  .doc-preview summary
) {
  font-weight: 600;
}

html body :is(.landing-copy h1, .page-hero h1, .hero h1, .section-heading h2, .panel-head h2) {
  font-weight: 700;
}

html body :is(.eyebrow, .side-label, .course-meta, .faq-video-card strong) {
  font-weight: 500;
}

/* Visual system map */
.visual-map-page {
  gap: 12px;
}

.visual-map-intro {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  padding: 18px 22px;
  border: 1px solid rgba(0, 168, 90, .18);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(0, 168, 90, .09), rgba(27, 93, 184, .05)), #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .06);
}

.visual-map-intro h1 {
  margin: 3px 0 8px;
  color: var(--ink);
  font-size: clamp(26px, 2.6vw, 42px);
  line-height: 1.1;
  letter-spacing: 0;
}

.visual-map-intro p:not(.eyebrow) {
  max-width: 980px;
  margin: 0;
  color: var(--soft-ink);
  font-size: 15px;
  line-height: 1.55;
}

.mini-flow {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 22px;
  max-width: 560px;
}

.mini-flow span {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 12px;
  border: 1px solid rgba(0, 168, 90, .18);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

.mini-flow span:not(:last-child)::after {
  content: ">";
  position: absolute;
  right: -16px;
  color: var(--brand);
  font-weight: 900;
}

.project-delivery-map {
  min-height: calc(100vh - 210px);
}

.visual-map-canvas {
  position: relative;
  min-height: 820px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .32);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: 0 22px 58px rgba(15, 23, 42, .08);
}

.connection-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.connection-line {
  fill: none;
  stroke: rgba(0, 168, 90, .62);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
  filter: none;
}

.connection-line.is-required {
  stroke: rgba(0, 168, 90, .62);
}

.connection-line.is-recommended {
  stroke: rgba(47, 111, 236, .52);
  stroke-width: 1.7;
}

.connection-line.is-faq {
  stroke: rgba(245, 158, 11, .65);
  stroke-width: 1.8;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
}

@keyframes drawConnection {
  to { stroke-dashoffset: 0; }
}

.map-overview-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  top: 28px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  max-width: min(580px, 46vw);
  padding: 9px 12px;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 168, 90, .2);
  border-radius: 999px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 12px 28px rgba(15, 23, 42, .06);
  color: var(--soft-ink);
  font-size: 12px;
  backdrop-filter: blur(10px);
}

.map-overview-hint span {
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 900;
}

.map-overview-hint strong {
  color: var(--ink);
  font-weight: 800;
}

.visual-map-canvas.has-active-stage .map-overview-hint {
  opacity: 0;
  transform: translate(-50%, -8px);
  pointer-events: none;
}

.process-metro {
  position: absolute;
  z-index: 5;
  left: 50%;
  top: 320px;
  display: grid;
  grid-template-columns: repeat(8, minmax(82px, 1fr));
  gap: 10px;
  width: min(980px, 66vw);
  transform: translateX(-50%);
}

.metro-line {
  position: absolute;
  left: 42px;
  right: 42px;
  top: 30px;
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(0, 168, 90, .24), rgba(0, 38, 87, .42), rgba(0, 168, 90, .24));
  box-shadow: 0 8px 22px rgba(0, 38, 87, .12);
}

.map-node,
.doc-node {
  font: inherit;
}

.stage-node {
  position: relative;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
  min-height: 116px;
  padding: 0 4px 10px;
  border: 0;
  background: transparent;
  color: var(--ink);
  cursor: pointer;
  text-align: center;
}

.stage-node .stage-number {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 4px solid #fff;
  border-radius: 999px;
  background: var(--ink);
  color: #fff;
  font-size: 18px;
  font-weight: 900;
  box-shadow: 0 14px 28px rgba(0, 38, 87, .18);
  transition: transform .18s ease, background .18s ease, box-shadow .18s ease;
}

.stage-node strong {
  color: var(--ink);
  font-size: 13px;
  line-height: 1.2;
}

.stage-node small {
  max-width: 98px;
  color: var(--soft-ink);
  font-size: 11px;
  line-height: 1.25;
}

.stage-node:hover .stage-number,
.stage-node.is-active .stage-number {
  transform: translateY(-3px) scale(1.08);
  background: var(--brand);
  box-shadow: 0 16px 32px rgba(0, 168, 90, .28);
}

.stage-node.is-past .stage-number {
  background: #0f766e;
}

.map-cluster {
  position: absolute;
  z-index: 4;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .84);
  box-shadow: 0 18px 44px rgba(15, 23, 42, .07);
  backdrop-filter: blur(14px);
  transition: opacity .2s ease, transform .2s ease;
}

.cluster-top-left {
  top: 78px;
  left: 24px;
  width: min(390px, 25vw);
}

.cluster-top-right {
  top: 78px;
  right: 24px;
  width: min(340px, 23vw);
}

.cluster-bottom-left {
  left: 24px;
  bottom: 26px;
  width: min(420px, 29vw);
}

.cluster-bottom-right {
  right: 24px;
  bottom: 26px;
  width: min(390px, 27vw);
}

.cluster-side {
  left: 50%;
  bottom: 28px;
  width: min(340px, 24vw);
  transform: translateX(-50%);
}

.cluster-header {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.cluster-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: var(--brand-soft);
}

.cluster-icon::before {
  color: var(--brand);
  font-size: 17px;
  font-weight: 900;
}

.cluster-icon.knowledge::before { content: "K"; }
.cluster-icon.standards::before { content: "S"; }
.cluster-icon.templates::before { content: "O"; }
.cluster-icon.faq::before { content: "?"; }
.cluster-icon.library::before { content: "C"; }

.cluster-header strong {
  display: block;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.2;
}

.cluster-header small {
  color: var(--soft-ink);
  font-size: 12px;
}

.cluster-nodes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.doc-node {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  max-width: 100%;
  min-height: 34px;
  padding: 7px 10px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .04);
  transition: opacity .18s ease, transform .18s ease, border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.doc-node:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 168, 90, .34);
  box-shadow: 0 12px 24px rgba(15, 23, 42, .08);
}

.node-label {
  overflow: hidden;
  color: inherit;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.25;
  text-overflow: ellipsis;
}

.node-badge {
  display: none;
  flex: 0 0 auto;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
}

.doc-node.is-muted {
  opacity: .48;
}

.doc-node.is-required,
.doc-node.is-recommended,
.doc-node.is-faq {
  opacity: 1;
  transform: translateY(-2px);
}

.doc-node.is-required {
  border-color: rgba(0, 168, 90, .48);
  background: #ecfdf5;
  box-shadow: 0 13px 28px rgba(0, 168, 90, .14);
}

.doc-node.is-recommended {
  border-color: rgba(47, 111, 236, .4);
  background: #eff6ff;
}

.doc-node.is-faq {
  border-color: rgba(245, 158, 11, .46);
  background: #fff7ed;
}

.doc-node.is-required .node-badge,
.doc-node.is-recommended .node-badge,
.doc-node.is-faq .node-badge {
  display: inline-flex;
}

.doc-node.is-required .node-badge {
  background: var(--brand);
  color: #fff;
}

.doc-node.is-recommended .node-badge {
  background: #dbeafe;
  color: #1d4ed8;
}

.doc-node.is-faq .node-badge {
  background: #fed7aa;
  color: #9a3412;
}

.map-detail-panel {
  position: absolute;
  z-index: 6;
  left: 50%;
  top: 475px;
  display: grid;
  gap: 12px;
  width: min(620px, 42vw);
  padding: 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: 18px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 20px 52px rgba(0, 38, 87, .11);
  backdrop-filter: blur(16px);
}

.detail-head {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.detail-head > span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: var(--brand);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.detail-head.overview > span {
  background: var(--ink);
}

.detail-head strong {
  display: block;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.25;
}

.detail-head small,
.detail-overview-text,
.detail-goal p {
  color: var(--soft-ink);
  line-height: 1.45;
}

.detail-overview-text,
.detail-goal p {
  margin: 0;
  font-size: 13px;
}

.detail-goal,
.detail-grid section {
  padding: 10px;
  border: 1px solid rgba(148, 163, 184, .22);
  border-radius: 12px;
  background: rgba(248, 251, 255, .72);
}

.detail-goal h4,
.detail-grid h4 {
  margin: 0 0 6px;
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.detail-grid ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 16px;
}

.detail-grid li,
.detail-grid p {
  margin: 0;
  color: var(--soft-ink);
  font-size: 12px;
  line-height: 1.4;
}

.detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.detail-actions .primary-button,
.detail-actions .ghost-button {
  min-height: 36px;
  padding: 8px 12px;
  font-size: 12px;
}

@media (max-width: 1180px) {
  .visual-map-intro {
    grid-template-columns: 1fr;
  }

  .mini-flow {
    justify-content: flex-start;
    max-width: none;
  }

  .visual-map-canvas {
    min-height: 980px;
  }

  .process-metro {
    top: 300px;
    width: calc(100% - 44px);
    overflow-x: auto;
  }

  .cluster-top-left,
  .cluster-top-right,
  .cluster-bottom-left,
  .cluster-bottom-right,
  .cluster-side {
    width: calc(50% - 36px);
  }

  .cluster-side {
    left: auto;
    right: 24px;
    bottom: 290px;
    transform: none;
  }

  .map-detail-panel {
    top: 470px;
    width: calc(100% - 44px);
  }
}

@media (max-width: 920px) {
  .project-delivery-map {
    min-height: 0;
  }

  .visual-map-canvas {
    display: grid;
    gap: 12px;
    min-height: 0;
    padding: 14px;
    overflow: visible;
  }

  .connection-layer,
  .metro-line,
  .map-overview-hint {
    display: none;
  }

  .process-metro,
  .map-cluster,
  .map-detail-panel {
    position: static;
    width: auto;
    transform: none;
  }

  .process-metro {
    display: grid;
    grid-template-columns: repeat(8, minmax(116px, 1fr));
    overflow-x: auto;
    padding: 2px 2px 8px;
  }

  .stage-node {
    min-height: 104px;
    padding: 0 6px 8px;
  }

  .map-cluster {
    box-shadow: none;
  }

  .cluster-nodes {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .doc-node {
    border-radius: 12px;
  }
}

@media (max-width: 768px) {
  body[data-page="project-map"] .layout {
    padding: 8px;
  }

  .visual-map-intro {
    padding: 14px;
    border-radius: 14px;
  }

  .visual-map-intro h1 {
    font-size: 25px;
  }

  .mini-flow {
    gap: 7px;
  }

  .mini-flow span::after {
    display: none;
  }

  .process-metro {
    grid-template-columns: repeat(8, 126px);
  }

  .cluster-nodes,
  .detail-grid {
    grid-template-columns: 1fr;
  }

  .map-detail-panel {
    padding: 14px;
  }
}

/* Clean Project Map v9 */
.visual-map-page {
  gap: 10px;
}

.visual-map-intro {
  grid-template-columns: minmax(0, 1fr) minmax(360px, auto);
  gap: 16px;
  padding: 16px 22px;
  border-color: rgba(15, 23, 42, .08);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, .045);
}

.visual-map-intro h1 {
  max-width: 880px;
  margin: 2px 0 6px;
  font-size: clamp(24px, 2.1vw, 36px);
  line-height: 1.12;
}

.visual-map-intro p:not(.eyebrow) {
  max-width: 900px;
  font-size: 14px;
  line-height: 1.5;
}

.visual-map-intro .eyebrow {
  margin-bottom: 2px;
}

.mini-flow {
  gap: 6px 18px;
  max-width: 520px;
}

.mini-flow span {
  min-height: 30px;
  padding: 5px 10px;
  border-color: rgba(0, 168, 90, .16);
  box-shadow: none;
  font-size: 11px;
}

.project-delivery-map {
  min-height: 0;
}

.visual-map-shell {
  width: 100%;
}

.visual-map-canvas {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 0;
  gap: 0;
  min-height: 0;
  overflow: visible;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  transition: grid-template-columns .22s ease, gap .22s ease;
}

.visual-map-canvas.has-active-stage {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 360px);
  gap: 12px;
}

.map-main-panel {
  position: relative;
  display: grid;
  gap: 22px;
  min-height: 690px;
  padding: 26px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 20px;
  background:
    radial-gradient(circle at 50% 50%, rgba(0, 168, 90, .075), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 20px 50px rgba(15, 23, 42, .055);
}

.connection-layer {
  z-index: 2;
}

.connection-line {
  stroke: rgba(0, 168, 90, .42);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: none;
  stroke-dashoffset: 0;
  animation: none;
  filter: none;
}

.connection-line.is-required {
  stroke: rgba(0, 168, 90, .52);
  stroke-width: 1.8;
}

.connection-line.is-recommended {
  stroke: rgba(30, 64, 175, .32);
  stroke-width: 1.4;
}

.connection-line.is-faq {
  stroke: rgba(217, 119, 6, .36);
  stroke-width: 1.4;
  stroke-dasharray: none;
}

.map-overview-hint {
  position: static;
  justify-self: center;
  z-index: 4;
  max-width: none;
  padding: 7px 11px;
  transform: none;
  border-color: rgba(148, 163, 184, .24);
  box-shadow: none;
  background: rgba(255, 255, 255, .86);
}

.visual-map-canvas.has-active-stage .map-overview-hint {
  opacity: 0;
  transform: none;
  max-height: 0;
  padding-top: 0;
  padding-bottom: 0;
  overflow: hidden;
}

.map-cluster-row {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.map-cluster-row-top {
  align-items: start;
}

.map-cluster-row-bottom {
  align-items: start;
}

.map-library-row {
  position: relative;
  z-index: 3;
  display: flex;
  justify-content: flex-end;
}

.map-library-row .map-cluster {
  width: min(360px, 100%);
}

.process-metro {
  position: relative;
  z-index: 4;
  left: auto;
  top: auto;
  display: grid;
  grid-template-columns: repeat(8, minmax(94px, 1fr));
  gap: 8px;
  width: 100%;
  min-height: 142px;
  padding: 14px 12px 6px;
  transform: none;
}

.metro-line {
  left: 52px;
  right: 52px;
  top: 43px;
  height: 6px;
  background: linear-gradient(90deg, rgba(0, 168, 90, .28), rgba(0, 168, 90, .82), rgba(0, 38, 87, .72));
  box-shadow: none;
}

.stage-node {
  min-height: 126px;
  padding: 0 6px 8px;
  border-radius: 14px;
}

.stage-node .stage-number {
  width: 64px;
  height: 64px;
  border-width: 5px;
  background: #082348;
  font-size: 18px;
  box-shadow: 0 12px 24px rgba(0, 38, 87, .16);
}

.stage-node strong {
  max-width: 118px;
  font-size: 14px;
  line-height: 1.2;
}

.stage-node small {
  max-width: 118px;
  font-size: 11px;
  line-height: 1.25;
}

.stage-node:hover .stage-number,
.stage-node.is-active .stage-number {
  transform: translateY(-4px);
  background: var(--brand);
  box-shadow: 0 14px 26px rgba(0, 168, 90, .23);
}

.stage-node.is-active strong {
  color: var(--brand);
}

.map-cluster,
.cluster-top-left,
.cluster-top-right,
.cluster-bottom-left,
.cluster-bottom-right,
.cluster-side {
  position: relative;
  inset: auto;
  width: auto;
  transform: none;
}

.map-cluster {
  min-height: 172px;
  padding: 14px;
  border-color: rgba(148, 163, 184, .22);
  border-radius: 16px;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 10px 26px rgba(15, 23, 42, .045);
  backdrop-filter: none;
}

.cluster-header {
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 9px;
}

.cluster-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}

.cluster-header strong {
  font-size: 15px;
}

.cluster-header small {
  font-size: 11px;
}

.cluster-nodes {
  gap: 7px;
}

.doc-node {
  min-height: 31px;
  padding: 6px 9px;
  border-color: rgba(148, 163, 184, .28);
  box-shadow: none;
}

.doc-node:hover {
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
}

.node-label {
  font-size: 11px;
  line-height: 1.22;
}

.node-badge {
  padding: 2px 6px;
  font-size: 9px;
}

.doc-node.is-muted {
  opacity: .42;
}

.doc-node.is-required,
.doc-node.is-recommended,
.doc-node.is-faq {
  transform: none;
}

.doc-node.is-required {
  border-color: rgba(0, 168, 90, .42);
  background: #f0fdf7;
  box-shadow: 0 0 0 3px rgba(0, 168, 90, .08);
}

.doc-node.is-recommended {
  border-color: rgba(37, 99, 235, .28);
  background: #f5f9ff;
}

.doc-node.is-faq {
  border-color: rgba(217, 119, 6, .28);
  background: #fffaf0;
}

.map-detail-panel {
  position: sticky;
  top: 12px;
  left: auto;
  z-index: 6;
  align-self: start;
  display: grid;
  gap: 12px;
  width: 100%;
  max-height: calc(100vh - 150px);
  padding: 0;
  overflow: hidden auto;
  transform: translateX(18px);
  border: 1px solid rgba(148, 163, 184, .24);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(15, 23, 42, .08);
  opacity: 0;
  pointer-events: none;
  transition: opacity .18s ease, transform .18s ease;
}

.map-detail-panel.is-open {
  padding: 16px;
  transform: translateX(0);
  opacity: 1;
  pointer-events: auto;
}

.detail-head {
  grid-template-columns: 44px minmax(0, 1fr) 32px;
}

.detail-close {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(148, 163, 184, .26);
  border-radius: 999px;
  background: #fff;
  color: var(--soft-ink);
  cursor: pointer;
  font-size: 18px;
  line-height: 1;
}

.detail-close:hover {
  color: var(--brand);
  border-color: rgba(0, 168, 90, .28);
}

.detail-grid {
  grid-template-columns: 1fr;
}

.detail-goal,
.detail-grid section {
  background: #f8fbff;
}

@media (max-width: 1280px) {
  .visual-map-canvas.has-active-stage {
    grid-template-columns: minmax(0, 1fr);
  }

  .map-detail-panel {
    position: relative;
    top: auto;
    max-height: none;
  }
}

@media (max-width: 1080px) {
  .visual-map-intro {
    grid-template-columns: 1fr;
  }

  .mini-flow {
    justify-content: flex-start;
  }

  .map-main-panel {
    min-height: 0;
    padding: 18px;
  }

  .process-metro {
    grid-template-columns: repeat(8, 124px);
    overflow-x: auto;
  }

  .metro-line {
    left: 62px;
    right: auto;
    width: calc(8 * 124px - 124px);
  }
}

@media (max-width: 920px) {
  .visual-map-canvas,
  .visual-map-canvas.has-active-stage {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-main-panel {
    gap: 14px;
    padding: 14px;
    border-radius: 16px;
  }

  .map-cluster-row {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .map-cluster {
    min-height: 0;
  }

  .map-library-row {
    justify-content: stretch;
  }

  .map-library-row .map-cluster {
    width: 100%;
  }

  .connection-layer {
    display: none;
  }

  .process-metro {
    padding: 6px 0;
  }

  .stage-node .stage-number {
    width: 56px;
    height: 56px;
  }
}

@media (max-width: 768px) {
  .visual-map-intro {
    padding: 14px;
  }

  .visual-map-intro h1 {
    font-size: 24px;
  }

  .mini-flow span {
    white-space: normal;
  }

  .process-metro {
    grid-template-columns: repeat(8, 118px);
  }

  .cluster-nodes {
    grid-template-columns: 1fr;
  }

  .map-detail-panel.is-open {
    padding: 14px;
  }

  .role-task-list li {
    grid-template-columns: 1fr;
  }

  .role-task-list em {
    justify-self: start;
  }
}

/* Project map matrix layout */
.visual-map-page {
  background: #f7faf9;
}

.visual-map-intro {
  align-items: center;
  grid-template-columns: minmax(360px, .82fr) minmax(520px, 1fr);
  padding: 22px 28px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.visual-map-intro h1 {
  margin: 6px 0 10px;
  color: #071b3a;
  font-size: clamp(34px, 3.4vw, 58px);
  line-height: 1.04;
}

.visual-map-intro p:not(.eyebrow) {
  max-width: 680px;
  color: #475569;
  font-size: 17px;
  line-height: 1.75;
}

.visual-map-intro .eyebrow {
  color: #008f5a;
  font-size: 13px;
  font-weight: 900;
}

.mini-flow {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(88px, 1fr));
  align-items: start;
  gap: 18px;
  max-width: none;
}

.mini-flow::before {
  content: "Cách dùng web này";
  position: absolute;
  top: -24px;
  left: 0;
  color: #008f5a;
  font-size: 13px;
  font-weight: 800;
}

.mini-flow span {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 116px;
  padding: 82px 6px 0;
  border: 0;
  background: transparent;
  color: #0f172a;
  box-shadow: none;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.35;
}

.mini-flow span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 50%;
  width: 58px;
  height: 58px;
  transform: translateX(-50%);
  border: 10px solid #fff;
  border-radius: 999px;
  background: #00a85a;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .08);
}

.mini-flow span::after {
  content: "→";
  position: absolute;
  top: 18px;
  right: -16px;
  color: #0f8a5c;
  font-size: 22px;
  font-weight: 800;
}

.mini-flow span:nth-child(2)::before { background: #3179e5; }
.mini-flow span:nth-child(3)::before { background: #7c3aed; }
.mini-flow span:nth-child(4)::before { background: #f59e0b; }
.mini-flow span:nth-child(5)::before { background: #f43f5e; }
.mini-flow span:nth-child(5)::after { display: none; }

.project-delivery-map {
  padding: 0 20px 28px;
}

.visual-map-canvas,
.visual-map-canvas.has-active-stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
}

.map-main-panel {
  display: block;
  min-height: 0;
  padding: 22px 24px;
  overflow: auto hidden;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .06);
}

.map-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 1040px;
  margin-bottom: 18px;
  color: #008f5a;
  text-transform: uppercase;
  letter-spacing: 0;
}

.map-section-label strong {
  font-size: 15px;
}

.map-section-label span {
  color: #64748b;
  text-transform: none;
  font-size: 13px;
  font-weight: 700;
}

.process-metro {
  grid-template-columns: repeat(8, minmax(108px, 1fr));
  min-width: 1040px;
  min-height: 148px;
  margin-bottom: 12px;
  padding: 20px 0 0;
}

.metro-line {
  left: 5%;
  right: 5%;
  top: 42px;
  height: 3px;
  background: linear-gradient(90deg, #c9e4dc, #009b63, #d7e4e5);
}

.stage-node {
  min-height: 132px;
  padding: 0 8px;
}

.stage-node .stage-number {
  width: 58px;
  height: 58px;
  border: 1px solid #b7ded4;
  background: #edf8f5;
  color: #064e3b;
  box-shadow: 0 8px 18px rgba(15, 23, 42, .06);
  font-size: 17px;
}

.stage-node strong {
  max-width: 118px;
  color: #071b3a;
  font-size: 15px;
  font-weight: 900;
}

.stage-node small {
  max-width: 118px;
  color: #536172;
  font-size: 11px;
  line-height: 1.25;
}

.stage-node:hover .stage-number,
.stage-node.is-active .stage-number {
  transform: translateY(-3px);
  border-color: #00a85a;
  background: #00a85a;
  color: #fff;
}

.stage-node.is-active strong {
  color: #008f5a;
}

.project-resource-matrix {
  min-width: 1040px;
  overflow: hidden;
  border: 1px solid #e8edf2;
  border-radius: 16px;
  background: #fff;
}

.matrix-row {
  display: grid;
  grid-template-columns: 164px repeat(8, minmax(108px, 1fr));
  min-height: 122px;
  border-top: 1px solid #eef2f6;
}

.matrix-row:first-child {
  border-top: 0;
}

.matrix-row-head,
.matrix-cell {
  min-width: 0;
  padding: 16px 10px;
  border-left: 1px solid #eef2f6;
}

.matrix-row-head {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 6px 10px;
  align-content: start;
  border-left: 0;
  background: #fbfdfc;
}

.matrix-row-head .cluster-icon {
  grid-row: span 2;
}

.matrix-row-head strong {
  color: #0f172a;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.matrix-row-head small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.matrix-cell {
  background: #fff;
  transition: background .18s ease, box-shadow .18s ease;
}

.matrix-cell.is-active-stage {
  background: #f0fdf7;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 90, .18);
}

.matrix-doc-stack {
  display: grid;
  gap: 8px;
}

.matrix-doc {
  min-height: 46px;
  padding: 9px 10px;
  border-radius: 8px;
  text-align: left;
}

.matrix-doc .node-label {
  font-size: 11px;
  font-weight: 800;
}

.matrix-doc .node-badge {
  justify-self: start;
  margin-top: 4px;
}

.matrix-empty {
  display: grid;
  min-height: 42px;
  place-items: center;
  color: #94a3b8;
  font-size: 20px;
}

.project-library-strip {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  min-width: 1040px;
  padding: 16px 0 0;
}

.project-library-strip header {
  color: #008f5a;
  text-align: center;
}

.project-library-strip header strong,
.project-library-strip header small {
  display: block;
}

.project-library-strip header strong {
  font-size: 15px;
  font-weight: 900;
  text-transform: uppercase;
}

.project-library-strip header small {
  color: #64748b;
  font-size: 12px;
}

.project-library-strip > div {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.library-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-height: 58px;
  padding: 10px 14px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  background: #fff;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.library-card:hover {
  border-color: rgba(0, 168, 90, .32);
  transform: translateY(-1px);
}

.library-card .cluster-icon {
  grid-row: span 2;
}

.library-card strong,
.library-card small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.library-card strong {
  font-size: 13px;
}

.library-card small {
  color: #64748b;
  font-size: 11px;
}

.map-detail-panel {
  position: sticky;
  top: 16px;
  display: grid;
  align-self: start;
  min-height: 520px;
  max-height: calc(100vh - 134px);
  padding: 18px;
  transform: none;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, .07);
  opacity: 1;
  pointer-events: auto;
}

.map-detail-panel:not(.is-open)::before {
  content: "Chọn một giai đoạn trên bản đồ để xem mục tiêu, tài liệu cần đọc, tiêu chuẩn cần kiểm và output chuyển bước.";
  align-self: center;
  color: #64748b;
  font-size: 14px;
  line-height: 1.6;
  text-align: center;
}

.map-detail-panel.is-open {
  padding: 18px;
}

.detail-head span {
  background: #00a85a;
  color: #fff;
}

.detail-goal,
.detail-grid section {
  border: 0;
  border-top: 1px solid #eef2f6;
  border-radius: 0;
  background: transparent;
  padding: 16px 0;
}

.detail-grid section h4 {
  color: #0f172a;
  font-size: 13px;
  text-transform: uppercase;
}

.detail-actions {
  margin-top: auto;
}

.connection-layer {
  display: none;
}

@media (max-width: 1280px) {
  .visual-map-canvas,
  .visual-map-canvas.has-active-stage {
    grid-template-columns: 1fr;
  }

  .map-detail-panel {
    position: relative;
    top: auto;
    min-height: 0;
    max-height: none;
  }
}

@media (max-width: 1080px) {
  .visual-map-intro {
    grid-template-columns: 1fr;
  }

  .mini-flow {
    grid-template-columns: repeat(5, 112px);
    overflow-x: auto;
    padding-top: 24px;
  }
}

@media (max-width: 760px) {
  .project-delivery-map {
    padding: 0 12px 18px;
  }

  .visual-map-intro {
    padding: 16px;
  }

  .visual-map-intro h1 {
    font-size: 32px;
  }

  .map-main-panel {
    padding: 16px;
  }

  .map-section-label,
  .process-metro,
  .project-resource-matrix,
  .project-library-strip {
    min-width: 960px;
  }

  .matrix-row {
    grid-template-columns: 150px repeat(8, minmax(100px, 1fr));
  }
}

/* Project map polish pass */
body[data-page="project-map"] {
  background: #f4f7f6;
}

body[data-page="project-map"] .content {
  background: linear-gradient(180deg, #f7faf9 0%, #f3f6f5 100%);
}

.visual-map-page {
  gap: 8px;
}

.visual-map-intro {
  grid-template-columns: minmax(420px, .9fr) minmax(560px, 1.1fr);
  gap: 26px;
  padding: 18px 24px 12px;
}

.visual-map-intro h1 {
  max-width: 720px;
  margin: 4px 0 8px;
  font-size: clamp(32px, 2.55vw, 46px);
  letter-spacing: 0;
}

.visual-map-intro p:not(.eyebrow) {
  max-width: 700px;
  font-size: 15px;
  line-height: 1.58;
}

.mini-flow {
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(94px, 1fr));
  gap: 10px;
  padding-top: 24px;
}

.mini-flow::before {
  top: 0;
  font-size: 12px;
}

.mini-flow span {
  min-height: 76px;
  padding: 44px 8px 8px;
  border: 1px solid #e4ede9;
  border-radius: 14px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 8px 20px rgba(15, 23, 42, .035);
  font-size: 11px;
}

.mini-flow span::before {
  top: 10px;
  width: 26px;
  height: 26px;
  border: 0;
  box-shadow: 0 0 0 7px rgba(0, 168, 90, .08);
}

.mini-flow span::after {
  top: 24px;
  right: -10px;
  z-index: 2;
  width: 18px;
  color: #009b63;
  font-size: 15px;
}

.project-delivery-map {
  padding: 0 16px 22px;
}

.visual-map-canvas,
.visual-map-canvas.has-active-stage {
  grid-template-columns: minmax(0, 1fr) 292px;
  gap: 14px;
}

.map-main-panel {
  padding: 18px 18px 14px;
  border-color: #dce7e3;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.map-section-label {
  margin-bottom: 6px;
}

.process-metro {
  min-height: 114px;
  padding-top: 12px;
  margin-bottom: 4px;
}

.metro-line {
  top: 33px;
  height: 2px;
  background: linear-gradient(90deg, #cfe7df, #00a85a 48%, #cfe7df);
}

.stage-node {
  min-height: 104px;
}

.stage-node .stage-number {
  width: 44px;
  height: 44px;
  font-size: 14px;
  font-weight: 900;
}

.stage-node strong {
  margin-top: 7px;
  font-size: 13px;
}

.stage-node small {
  margin-top: 2px;
  font-size: 10px;
}

.project-resource-matrix {
  border-color: #dfe8e5;
  border-radius: 12px;
}

.matrix-row {
  min-height: 94px;
}

.matrix-row-head,
.matrix-cell {
  padding: 11px 8px;
}

.matrix-row-head {
  grid-template-columns: 28px minmax(0, 1fr);
  background: #f8fbfa;
}

.matrix-row-head .cluster-icon {
  width: 28px;
  height: 28px;
  border-radius: 9px;
}

.matrix-row-head strong {
  font-size: 12px;
}

.matrix-row-head small {
  font-size: 10px;
  line-height: 1.35;
}

.matrix-cell.is-active-stage {
  background: #f5fffb;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 90, .24);
}

.matrix-doc-stack {
  gap: 6px;
}

.matrix-doc {
  min-height: 35px;
  padding: 7px 8px;
  border-color: #dfe7ef;
  background: #fff;
  box-shadow: 0 3px 10px rgba(15, 23, 42, .025);
}

.matrix-doc .node-label {
  color: #0b2345;
  font-size: 10.5px;
  line-height: 1.25;
}

.matrix-doc .node-badge {
  margin-top: 3px;
  padding: 1px 5px;
  font-size: 8px;
}

.doc-node.is-muted {
  opacity: .72;
}

.doc-node.is-required {
  border-color: rgba(0, 168, 90, .5);
  background: #f1fff8;
  box-shadow: inset 0 0 0 1px rgba(0, 168, 90, .12);
}

.doc-node.is-recommended {
  border-color: rgba(37, 99, 235, .36);
  background: #f7fbff;
}

.doc-node.is-faq {
  border-color: rgba(217, 119, 6, .32);
  background: #fffaf0;
}

.matrix-empty {
  min-height: 34px;
  font-size: 15px;
}

.project-library-strip {
  grid-template-columns: 180px minmax(0, 1fr);
  padding-top: 12px;
}

.project-library-strip header strong {
  font-size: 13px;
}

.project-library-strip header small {
  font-size: 11px;
}

.library-card {
  min-height: 48px;
  padding: 8px 10px;
  border-radius: 10px;
}

.library-card .cluster-icon {
  width: 30px;
  height: 30px;
}

.map-detail-panel {
  min-height: 0;
  max-height: calc(100vh - 118px);
  padding: 14px;
  border-color: #dce7e3;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .075);
}

.map-detail-panel.is-open {
  padding: 14px;
}

.detail-head {
  grid-template-columns: 36px minmax(0, 1fr) 28px;
  gap: 9px;
  padding-bottom: 10px;
}

.detail-head span {
  width: 36px;
  height: 36px;
  font-size: 12px;
}

.detail-head strong {
  font-size: 15px;
}

.detail-head small {
  font-size: 11px;
}

.detail-close {
  width: 26px;
  height: 26px;
  font-size: 15px;
}

.detail-goal,
.detail-grid section {
  padding: 11px 0;
}

.detail-goal h4,
.detail-grid section h4 {
  margin-bottom: 7px;
  font-size: 11px;
}

.detail-goal p,
.detail-grid li,
.detail-grid p {
  color: #526174;
  font-size: 12px;
  line-height: 1.45;
}

.detail-actions {
  gap: 8px;
}

.detail-actions .ghost-button,
.detail-actions .primary-button {
  min-height: 36px;
  padding: 8px 10px;
  font-size: 11px;
  white-space: normal;
}

@media (max-width: 1280px) {
  .visual-map-canvas,
  .visual-map-canvas.has-active-stage {
    grid-template-columns: 1fr;
  }

  .map-detail-panel {
    max-height: none;
  }
}

/* Learning roadmap layout */
.learning-roadmap-shell {
  display: grid;
  grid-template-columns: minmax(300px, 360px) minmax(0, 1fr);
  grid-template-areas: "index focus";
  gap: 16px;
}

.roadmap-index,
.roadmap-focus-panel,
.roadmap-library-panel {
  border: 1px solid #dce7e3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 23, 42, .055);
}

.roadmap-index {
  grid-area: index;
  align-self: start;
  padding: 18px;
}

.roadmap-index-head h2,
.roadmap-library-panel h2,
.roadmap-stage-hero h2 {
  margin: 4px 0 8px;
  color: #071b3a;
  letter-spacing: 0;
}

.roadmap-index-head h2 {
  font-size: 24px;
  line-height: 1.18;
}

.roadmap-index-head p:not(.eyebrow),
.roadmap-library-panel p:not(.eyebrow) {
  color: #526174;
  font-size: 13px;
  line-height: 1.55;
}

.roadmap-stage-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.roadmap-stage-button {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 4px 12px;
  align-items: center;
  width: 100%;
  min-height: 62px;
  padding: 10px 12px;
  border: 1px solid #e1e9ef;
  border-radius: 12px;
  background: #fbfdfc;
  color: #0f172a;
  cursor: pointer;
  text-align: left;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}

.roadmap-stage-button:hover {
  border-color: rgba(0, 168, 90, .36);
  transform: translateY(-1px);
}

.roadmap-stage-button span {
  grid-row: span 2;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 999px;
  background: #edf8f5;
  color: #05734e;
  font-size: 13px;
  font-weight: 900;
}

.roadmap-stage-button strong,
.roadmap-stage-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.roadmap-stage-button strong {
  font-size: 13px;
  font-weight: 900;
}

.roadmap-stage-button small {
  color: #64748b;
  font-size: 11px;
  font-weight: 700;
}

.roadmap-stage-button.is-past span {
  background: #0f766e;
  color: #fff;
}

.roadmap-stage-button.is-active {
  border-color: rgba(0, 168, 90, .48);
  background: #f0fdf7;
  box-shadow: inset 4px 0 0 #00a85a, 0 10px 22px rgba(0, 168, 90, .08);
}

.roadmap-stage-button.is-active span {
  background: #00a85a;
  color: #fff;
}

.roadmap-focus-panel {
  grid-area: focus;
  min-height: 640px;
  padding: 22px;
}

.roadmap-overview-card {
  display: grid;
  align-content: center;
  min-height: 560px;
}

.roadmap-overview-card h2 {
  margin: 4px 0 10px;
  color: #071b3a;
  font-size: 34px;
  line-height: 1.08;
}

.roadmap-overview-card > p:not(.eyebrow) {
  max-width: 720px;
  color: #526174;
  font-size: 16px;
  line-height: 1.65;
}

.roadmap-outcome-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.roadmap-outcome-grid article,
.roadmap-learning-goal,
.roadmap-resource-group {
  border: 1px solid #e4ece8;
  border-radius: 12px;
  background: #fbfdfc;
}

.roadmap-outcome-grid article {
  padding: 14px;
}

.roadmap-outcome-grid strong,
.roadmap-outcome-grid span {
  display: block;
}

.roadmap-outcome-grid strong {
  color: #064e3b;
  font-size: 13px;
}

.roadmap-outcome-grid span {
  margin-top: 6px;
  color: #526174;
  font-size: 12px;
  line-height: 1.45;
}

.roadmap-stage-detail {
  display: grid;
  gap: 16px;
}

.roadmap-stage-hero {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  padding: 18px;
  border-radius: 14px;
  background: linear-gradient(135deg, #eafff5 0%, #f8fbff 100%);
}

.roadmap-stage-hero > span {
  display: grid;
  width: 68px;
  height: 68px;
  place-items: center;
  border-radius: 20px;
  background: #00a85a;
  color: #fff;
  font-size: 24px;
  font-weight: 900;
  box-shadow: 0 16px 30px rgba(0, 168, 90, .22);
}

.roadmap-stage-hero h2 {
  font-size: 32px;
  line-height: 1.1;
}

.roadmap-stage-hero p:not(.eyebrow) {
  max-width: 820px;
  color: #526174;
  font-size: 15px;
  line-height: 1.55;
}

.roadmap-learning-goal {
  padding: 16px 18px;
}

.roadmap-learning-goal h3,
.roadmap-resource-group h3 {
  margin: 0;
  color: #0f172a;
  font-size: 15px;
  line-height: 1.25;
}

.roadmap-learning-goal p,
.roadmap-resource-group header p,
.roadmap-empty {
  margin: 7px 0 0;
  color: #64748b;
  font-size: 13px;
  line-height: 1.45;
}

.roadmap-resource-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roadmap-resource-group {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 174px;
  padding: 15px;
}

.roadmap-resource-list {
  display: grid;
  gap: 8px;
}

.roadmap-resource-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #dfe7ef;
  border-radius: 10px;
  background: #fff;
  color: #0b2345;
  cursor: pointer;
  text-align: left;
}

.roadmap-resource-card:hover {
  border-color: rgba(0, 168, 90, .4);
  transform: translateY(-1px);
}

.roadmap-resource-card .node-label {
  font-size: 12px;
  font-weight: 850;
  line-height: 1.3;
}

.roadmap-resource-card .node-badge {
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
}

.roadmap-stage-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding-top: 2px;
}

.roadmap-library-panel {
  grid-area: library;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  padding: 18px;
}

.roadmap-library-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}

.process-learning-roadmap .learning-roadmap-shell {
  grid-template-areas: "index focus";
}

.process-learning-roadmap .roadmap-library-panel {
  display: none;
}

@media (max-width: 1180px) {
  .learning-roadmap-shell {
    grid-template-columns: 1fr;
    grid-template-areas:
      "index"
      "focus";
  }

  .roadmap-stage-list {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .roadmap-stage-button {
    grid-template-columns: 38px minmax(0, 1fr);
  }
}

@media (max-width: 760px) {
  .roadmap-stage-list,
  .roadmap-resource-grid,
  .roadmap-outcome-grid,
  .roadmap-library-panel,
  .roadmap-library-grid {
    grid-template-columns: 1fr;
  }

  .roadmap-stage-hero {
    grid-template-columns: 1fr;
  }

  .roadmap-stage-hero h2 {
    font-size: 26px;
  }
}

/* ETS lesson structured step blocks */
.ets-step-note,
.ets-action-panel,
.ets-check-panel,
.ets-name-card {
  margin: 16px 0;
  border: 1px solid rgba(100, 116, 139, .34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ets-step-note {
  padding: 16px 18px;
  border-color: rgba(0, 168, 90, .38);
  background: linear-gradient(90deg, rgba(0, 168, 90, .14), rgba(237, 253, 246, .96));
  color: #063d2a;
}

.ets-step-note p,
.ets-check-panel p {
  margin: 0;
}

.ets-name-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.ets-name-card {
  padding: 14px;
}

.ets-name-card.good {
  border-color: rgba(0, 168, 90, .42);
  background: linear-gradient(180deg, rgba(0, 168, 90, .12), rgba(240, 253, 247, .96));
}

.ets-name-card.bad {
  border-color: rgba(239, 68, 68, .42);
  background: linear-gradient(180deg, rgba(239, 68, 68, .13), rgba(255, 241, 242, .96));
}

.ets-name-card h3,
.ets-action-panel h3,
.ets-check-panel h3 {
  margin: 0 0 12px;
  color: var(--ink);
  font-size: 15px;
  font-weight: 800;
}

.ets-name-card.good h3 {
  color: #007a3d;
}

.ets-name-card.bad h3 {
  color: #c81e1e;
}

.ets-name-card .markdown-code {
  margin: 0;
  border-color: rgba(100, 116, 139, .28);
  background: rgba(255, 255, 255, .9);
  color: #001f3f;
  font-weight: 700;
}

.ets-action-panel,
.ets-check-panel {
  padding: 18px;
}

.ets-action-panel {
  border-color: rgba(71, 85, 105, .28);
  background: #f8fbff;
}

.ets-action-panel h3 {
  color: #001f3f;
}

.ets-action-panel li::marker {
  color: #001f3f;
}

.ets-action-panel ul,
.ets-check-panel ul {
  margin: 0 0 14px;
}

.ets-action-panel .markdown-figure {
  display: block;
  width: 100%;
  margin: 14px 0 0;
}

.ets-action-panel .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  max-height: none;
  object-fit: initial;
}

.ets-check-panel {
  border-color: rgba(0, 168, 90, .36);
  background: linear-gradient(180deg, rgba(0, 168, 90, .11), rgba(240, 253, 247, .96));
  color: #063d2a;
}

.ets-check-panel h3 {
  color: #007a3d;
}

.ets-building-layout {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 22px 0;
}

.ets-building-tree-card,
.ets-building-ui-card,
.ets-principle-panel {
  border: 1px solid rgba(100, 116, 139, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ets-building-tree-card,
.ets-building-ui-card {
  padding: 14px;
}

.ets-building-tree-card {
  border-color: rgba(0, 168, 90, .32);
  background: linear-gradient(180deg, rgba(0, 168, 90, .08), rgba(255, 255, 255, .96));
  align-self: start;
}

.ets-building-tree-card h3,
.ets-building-ui-card h3,
.ets-principle-panel h3 {
  margin: 0 0 12px;
  color: #007a3d;
  font-size: 15px;
  font-weight: 800;
}

.ets-building-tree-card .markdown-code {
  margin: 0;
  padding: 12px;
  border-color: rgba(0, 168, 90, .22);
  background: rgba(255, 255, 255, .88);
  color: #001f3f;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

.ets-building-ui-card {
  padding: 14px;
  background: #fbfdff;
}

.ets-building-ui-card .markdown-figure {
  display: block;
  width: 100%;
  margin: 0;
}

.ets-building-ui-card .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: 4px;
}

.ets-principle-panel {
  margin: 18px 0 24px;
  padding: 14px;
  border-color: rgba(217, 119, 6, .38);
  background: linear-gradient(180deg, rgba(245, 158, 11, .12), rgba(255, 251, 235, .96));
}

.ets-principle-panel h3 {
  color: #a16207;
}

.ets-principle-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.ets-principle-grid p {
  display: grid;
  gap: 5px;
  margin: 0;
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(217, 119, 6, .18);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: #10233f;
}

.ets-principle-grid strong {
  color: #7c4a03;
  font-size: 13px;
}

.ets-principle-grid span {
  color: #344054;
  font-size: 13px;
  line-height: 1.45;
}

.ets-topology-goal,
.ets-topology-step,
.ets-topology-check,
.ets-topology-errors {
  border: 1px solid rgba(100, 116, 139, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ets-topology-goal {
  margin: 16px 0 18px;
  padding: 16px 18px;
  border-color: rgba(0, 168, 90, .28);
  background: linear-gradient(90deg, rgba(0, 168, 90, .10), rgba(255, 255, 255, .96));
}

.ets-topology-goal h3,
.ets-topology-step h3,
.ets-topology-check h3,
.ets-topology-errors h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #007a3d;
  font-size: 15px;
  font-weight: 800;
}

.ets-topology-goal p {
  margin: 0 0 8px;
}

.ets-topology-step {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  margin: 16px 0;
  padding: 14px;
  background: #fbfdff;
}

.ets-topology-copy h3 span,
.ets-topology-check h3 span,
.ets-topology-errors h3 span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #159447;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ets-topology-copy p,
.ets-topology-copy ol,
.ets-topology-copy ul,
.ets-topology-check ul,
.ets-topology-errors ul {
  margin-top: 0;
}

.ets-topology-copy .markdown-code {
  margin: 0 0 12px;
  border-color: rgba(37, 99, 235, .18);
  background: #f8fbff;
  color: #001f3f;
  font-weight: 700;
}

.ets-topology-figure .markdown-figure {
  display: block;
  width: 100%;
  margin: 0;
}

.ets-topology-figure .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 168, 90, .22);
  border-radius: 4px;
}

.ets-mini-example,
.ets-warning-note {
  margin-top: 12px;
  padding: 12px;
  border-radius: 8px;
}

.ets-mini-example p,
.ets-warning-note p {
  margin: 0 0 8px;
}

.ets-warning-note p:last-child {
  margin-bottom: 0;
}

.ets-mini-example {
  border: 1px solid rgba(0, 168, 90, .22);
  background: rgba(0, 168, 90, .055);
}

.ets-mini-example ul {
  margin-bottom: 0;
}

.ets-warning-note {
  border: 1px solid rgba(245, 158, 11, .28);
  background: rgba(255, 251, 235, .9);
  color: #7c4a03;
}

.ets-topology-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, .78fr) minmax(0, 1fr);
  gap: 14px;
  margin: 18px 0 24px;
}

.ets-topology-check,
.ets-topology-errors {
  padding: 14px;
}

.ets-topology-check {
  border-color: rgba(0, 168, 90, .28);
  background: linear-gradient(180deg, rgba(0, 168, 90, .08), rgba(255, 255, 255, .96));
}

.ets-topology-errors {
  border-color: rgba(239, 68, 68, .24);
  background: linear-gradient(180deg, rgba(239, 68, 68, .08), rgba(255, 255, 255, .96));
}

.ets-topology-errors h3 {
  color: #c81e1e;
}

.ets-topology-errors h3 span {
  background: #dc2626;
}

.ets-ga-intro,
.ets-ga-action-row,
.ets-ga-info-card,
.ets-ga-naming-figure,
.ets-ga-error-panel {
  border: 1px solid rgba(100, 116, 139, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ets-ga-intro {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  padding: 18px 22px;
  border-color: rgba(0, 168, 90, .28);
  background: linear-gradient(90deg, rgba(0, 168, 90, .12), rgba(255, 255, 255, .98));
}

.ets-ga-intro p {
  margin: 0;
  font-size: 17px;
}

.ets-ga-levels {
  display: grid;
  gap: 12px;
  margin: 20px 0 24px;
}

.ets-ga-levels h3,
.ets-ga-action-copy h3,
.ets-ga-info-card h3,
.ets-ga-naming-figure h3,
.ets-ga-error-panel h3 {
  margin: 0 0 12px;
  color: #007a3d;
  font-size: 16px;
  font-weight: 800;
}

.ets-ga-level-row {
  display: grid;
  grid-template-columns: 160px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  max-width: 980px;
  color: #10233f;
}

.ets-ga-level-row strong {
  color: #001f3f;
}

.ets-ga-action-stack {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.ets-ga-action-row {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border-color: rgba(0, 168, 90, .24);
  background: #fbfdff;
}

.ets-ga-action-copy h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #007a3d;
  font-size: 16px;
  font-weight: 800;
}

.ets-ga-action-copy h3 span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #159447;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ets-ga-action-figure .markdown-figure {
  display: block;
  width: 100%;
  margin: 0;
}

.ets-ga-action-figure .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 168, 90, .18);
  border-radius: 6px;
  background: #fff;
}

.ets-ga-action-list {
  counter-reset: ga-action;
  margin: 0;
  padding-left: 0;
  list-style: none;
}

.ets-ga-action-list li {
  counter-increment: ga-action;
  position: relative;
  margin: 9px 0;
  padding-left: 32px;
}

.ets-ga-action-list li::before {
  content: counter(ga-action);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: #159447;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.ets-ga-info-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(260px, .82fr) minmax(0, 1.1fr);
  gap: 14px;
  margin: 24px 0;
}

.ets-ga-info-card {
  padding: 16px;
}

.ets-ga-info-card.tree,
.ets-ga-info-card.rules {
  border-color: rgba(37, 99, 235, .22);
  background: #f8fbff;
}

.ets-ga-info-card.split {
  border-color: rgba(245, 158, 11, .24);
  background: #fffbeb;
}

.ets-ga-info-card .markdown-code {
  margin: 0;
  border-color: rgba(37, 99, 235, .18);
  background: rgba(255, 255, 255, .82);
  color: #001f3f;
  font-weight: 700;
}

.ets-ga-info-card ul {
  margin-bottom: 0;
}

.ets-ga-naming-figure {
  margin: 22px 0;
  padding: 16px;
  border-color: rgba(37, 99, 235, .22);
  background: #f8fbff;
}

.ets-ga-naming-figure .markdown-figure {
  display: block;
  width: 100%;
  margin: 0;
}

.ets-ga-naming-figure .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(37, 99, 235, .18);
  border-radius: 6px;
}

.ets-ga-error-panel {
  margin: 22px 0 28px;
  padding: 16px;
  border-color: rgba(239, 68, 68, .28);
  background: linear-gradient(180deg, rgba(239, 68, 68, .08), rgba(255, 255, 255, .96));
}

.ets-ga-error-panel h3 {
  color: #c81e1e;
}

.ets-ga-error-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 18px;
}

.ets-ga-error-grid p {
  position: relative;
  margin: 0;
  padding-left: 24px;
}

.ets-ga-error-grid p::before {
  content: "x";
  position: absolute;
  left: 0;
  top: 2px;
  display: grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: #dc2626;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.ets-vertical-intro,
.ets-vertical-row,
.ets-vertical-note-grid > div,
.ets-vertical-error-panel,
.ets-vertical-table-panel {
  border: 1px solid rgba(100, 116, 139, .28);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .045);
}

.ets-vertical-intro {
  display: grid;
  gap: 8px;
  margin: 16px 0 22px;
  padding: 18px 22px;
  border-color: rgba(0, 168, 90, .28);
  background: linear-gradient(90deg, rgba(0, 168, 90, .12), rgba(255, 255, 255, .98));
}

.ets-vertical-intro p {
  margin: 0;
  font-size: 16px;
}

.ets-vertical-stack {
  display: grid;
  gap: 16px;
  margin: 22px 0;
}

.ets-vertical-row {
  display: grid;
  grid-template-columns: minmax(220px, 310px) minmax(0, 1fr);
  align-items: start;
  gap: 14px;
  padding: 14px;
  border-color: rgba(0, 168, 90, .24);
  background: #fbfdff;
}

.ets-vertical-copy h3,
.ets-vertical-note-grid h3,
.ets-vertical-error-panel h3,
.ets-vertical-table-panel h3 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 12px;
  color: #007a3d;
  font-size: 16px;
  font-weight: 800;
}

.ets-vertical-copy h3 span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  border-radius: 999px;
  background: #159447;
  color: #fff;
  font-size: 18px;
  font-weight: 900;
}

.ets-vertical-copy p,
.ets-vertical-copy ul {
  margin-top: 0;
}

.ets-vertical-copy .markdown-code {
  margin: 0 0 12px;
  border-color: rgba(37, 99, 235, .18);
  background: #f8fbff;
  color: #001f3f;
  font-weight: 700;
}

.ets-vertical-figure .markdown-figure {
  display: block;
  width: 100%;
  margin: 0;
}

.ets-vertical-figure .markdown-figure img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 1px solid rgba(0, 168, 90, .18);
  border-radius: 6px;
  background: #fff;
}

.ets-vertical-note-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 24px;
}

.ets-vertical-note-grid > div,
.ets-vertical-table-panel {
  padding: 16px;
  border-color: rgba(37, 99, 235, .22);
  background: #f8fbff;
}

.ets-vertical-note-grid .markdown-code {
  margin: 0;
  border-color: rgba(37, 99, 235, .18);
  background: rgba(255, 255, 255, .82);
  color: #001f3f;
  font-weight: 700;
}

.ets-vertical-error-panel {
  margin: 18px 0 24px;
  padding: 16px;
  border-color: rgba(239, 68, 68, .24);
  background: linear-gradient(180deg, rgba(239, 68, 68, .08), rgba(255, 255, 255, .96));
}

.ets-vertical-error-panel h3 {
  color: #c81e1e;
}

.ets-vertical-table-panel {
  margin: 22px 0;
}

.ets-vertical-table-panel table {
  margin-bottom: 0;
}

@media (max-width: 720px) {
  .ets-name-grid {
    grid-template-columns: 1fr;
  }

  .ets-building-layout,
  .ets-principle-grid,
  .ets-topology-step,
  .ets-topology-bottom-grid,
  .ets-ga-action-row,
  .ets-ga-info-grid,
  .ets-ga-error-grid,
  .ets-vertical-row,
  .ets-vertical-note-grid {
    grid-template-columns: 1fr;
  }

  .ets-ga-level-row {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .ets-principle-grid p {
    min-height: auto;
  }
}

