:root {
    --page: #f5f8ff;
    --page-strong: #edf4ff;
    --surface: #ffffff;
    --surface-soft: #f8fbff;
    --text: #172033;
    --muted: #68758a;
    --line: #dfe8f5;
    --blue: #2563eb;
    --blue-soft: #dbeafe;
    --violet: #7c3aed;
    --violet-soft: #ede9fe;
    --cyan: #06b6d4;
    --cyan-soft: #cffafe;
    --green: #16a34a;
    --green-soft: #dcfce7;
    --amber: #b45309;
    --amber-soft: #fef3c7;
    --shadow: 0 18px 45px rgba(28, 45, 78, 0.1);
    --shadow-soft: 0 10px 28px rgba(28, 45, 78, 0.08);
    --radius: 8px;
    --sidebar: 280px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        linear-gradient(135deg, rgba(219, 234, 254, 0.88), rgba(245, 248, 255, 0.2) 34%),
        linear-gradient(215deg, rgba(237, 233, 254, 0.78), rgba(255, 255, 255, 0) 42%),
        var(--page);
    color: var(--text);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    line-height: 1.6;
}

body::before {
    position: fixed;
    inset: 0;
    z-index: -1;
    content: "";
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.05) 1px, transparent 1px);
    background-size: 42px 42px;
    mask-image: linear-gradient(to bottom, black, transparent 72%);
}

a {
    color: inherit;
}

img {
    display: block;
    max-width: 100%;
}

code {
    font-family: "Cascadia Code", Consolas, monospace;
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.app-shell {
    display: grid;
    grid-template-columns: var(--sidebar) minmax(0, 1fr);
    gap: 28px;
    width: min(1480px, calc(100% - 32px));
    margin: 0 auto;
    padding: 24px 0;
}

.site-sidebar {
    position: sticky;
    top: 24px;
    display: flex;
    flex-direction: column;
    height: calc(100vh - 48px);
    min-height: 620px;
    border: 1px solid rgba(223, 232, 245, 0.88);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    padding: 22px;
    backdrop-filter: blur(18px);
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    color: var(--text);
    text-decoration: none;
}

.brand-mark {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--violet), var(--blue) 58%, var(--cyan));
    color: #fff;
    font-weight: 900;
    box-shadow: 0 12px 28px rgba(37, 99, 235, 0.26);
}

.brand strong,
.brand small {
    display: block;
}

.brand strong {
    line-height: 1.1;
}

.brand small {
    color: var(--muted);
    font-size: 0.78rem;
}

.main-nav {
    display: grid;
    gap: 8px;
    margin-top: 34px;
}

.main-nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: var(--radius);
    padding: 12px 13px;
    color: #536177;
    font-weight: 800;
    text-decoration: none;
}

.main-nav a::before {
    width: 9px;
    height: 9px;
    border-radius: 999px;
    background: #c6d3e4;
    content: "";
}

.main-nav a:hover,
.main-nav a.is-active {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(37, 99, 235, 0.1));
    color: var(--blue);
}

.main-nav a:hover::before,
.main-nav a.is-active::before {
    background: linear-gradient(135deg, var(--violet), var(--cyan));
}

.sidebar-note {
    margin-top: auto;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--surface-soft), #fff);
    padding: 16px;
}

.sidebar-note span,
.sidebar-note strong {
    display: block;
}

.sidebar-note span {
    color: var(--violet);
    font-size: 0.8rem;
    font-weight: 900;
}

.sidebar-note strong {
    margin-top: 4px;
    line-height: 1.25;
}

.app-main {
    min-width: 0;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: grid;
    grid-template-columns: minmax(180px, 0.45fr) minmax(280px, 0.75fr);
    align-items: center;
    gap: 18px;
    border: 1px solid rgba(223, 232, 245, 0.9);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-soft);
    padding: 14px 16px;
    backdrop-filter: blur(18px);
}

.topbar strong,
.topbar-kicker {
    display: block;
}

.topbar-kicker {
    color: var(--muted);
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
}

.search-box {
    position: relative;
    display: flex;
    align-items: center;
}

.search-box span {
    position: absolute;
    left: 17px;
    width: 15px;
    height: 15px;
    border: 2px solid #94a3b8;
    border-radius: 999px;
}

.search-box span::after {
    position: absolute;
    right: -6px;
    bottom: -5px;
    width: 7px;
    height: 2px;
    border-radius: 999px;
    background: #94a3b8;
    transform: rotate(45deg);
    content: "";
}

.search-box input {
    width: 100%;
    min-height: 48px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #f8fbff;
    color: var(--text);
    font: inherit;
    padding: 0 16px 0 46px;
    outline: none;
}

.search-box input:focus {
    border-color: rgba(37, 99, 235, 0.5);
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.content-area {
    padding-top: 26px;
}

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

h1,
h2,
h3 {
    line-height: 1.08;
}

h1 {
    margin-bottom: 18px;
    font-size: 3.9rem;
}

h2 {
    font-size: 2.15rem;
}

h3 {
    font-size: 1.08rem;
}

p {
    color: var(--muted);
}

.eyebrow {
    margin: 0 0 10px;
    color: var(--violet);
    font-size: 0.78rem;
    font-weight: 900;
    text-transform: uppercase;
}

.hero {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
    align-items: stretch;
    gap: 24px;
}

.hero-content,
.hero-panel,
.page-hero,
.module-detail-header,
.module-content,
.empty-state,
.admin-placeholder article {
    border: 1px solid rgba(223, 232, 245, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow);
}

.hero-content {
    padding: 42px;
}

.hero-subtitle {
    max-width: 720px;
    color: #536177;
    font-size: 1.18rem;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 30px;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 12px 18px;
    font-weight: 900;
    text-decoration: none;
}

.btn-primary {
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    box-shadow: 0 14px 28px rgba(37, 99, 235, 0.22);
}

.btn-secondary {
    background: #fff;
    color: var(--blue);
}

.hero-panel {
    position: relative;
    display: grid;
    align-content: end;
    min-height: 430px;
    overflow: hidden;
    padding: 24px;
    background:
        radial-gradient(circle at 50% 42%, rgba(124, 58, 237, 0.22), transparent 30%),
        linear-gradient(145deg, #ffffff, #eef6ff);
}

.hero-panel::before {
    position: absolute;
    inset: 28px;
    border: 1px solid rgba(37, 99, 235, 0.12);
    border-radius: var(--radius);
    background-image:
        linear-gradient(rgba(37, 99, 235, 0.08) 1px, transparent 1px),
        linear-gradient(90deg, rgba(124, 58, 237, 0.08) 1px, transparent 1px);
    background-size: 36px 36px;
    content: "";
}

.ai-orbit {
    position: absolute;
    top: 72px;
    left: 50%;
    display: grid;
    width: 190px;
    height: 190px;
    place-items: center;
    border: 1px solid rgba(37, 99, 235, 0.22);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(219, 234, 254, 0.86));
    transform: translateX(-50%);
}

.ai-orbit strong {
    display: grid;
    width: 78px;
    height: 78px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    font-size: 1.55rem;
    box-shadow: 0 14px 36px rgba(124, 58, 237, 0.24);
}

.ai-orbit span {
    position: absolute;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--cyan);
}

.ai-orbit span:nth-child(1) {
    top: 28px;
    left: 54px;
}

.ai-orbit span:nth-child(2) {
    right: 28px;
    top: 82px;
    background: var(--violet);
}

.ai-orbit span:nth-child(3) {
    bottom: 36px;
    left: 82px;
    background: var(--blue);
}

.hero-panel-card {
    position: relative;
    z-index: 1;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.88);
    padding: 16px;
}

.hero-panel-card + .hero-panel-card {
    margin-top: 12px;
}

.hero-panel-card span,
.hero-panel-card strong {
    display: block;
}

.hero-panel-card span {
    color: var(--muted);
    font-size: 0.82rem;
    font-weight: 800;
}

.hero-panel-card strong {
    margin-top: 4px;
    color: var(--text);
    font-size: 1.45rem;
}

.compact-card strong {
    font-size: 1rem;
}

.metric-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
    margin-top: 22px;
}

.metric-strip article,
.roadmap-summary article,
.part-card,
.feature-card,
.module-card,
.timeline-content {
    border: 1px solid rgba(223, 232, 245, 0.95);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.9);
    box-shadow: var(--shadow-soft);
}

.metric-strip article {
    min-height: 128px;
    padding: 20px;
}

.metric-strip strong {
    display: block;
    color: var(--blue);
    font-size: 1.8rem;
    line-height: 1.15;
}

.metric-strip span {
    display: block;
    margin-top: 10px;
    color: var(--muted);
    font-weight: 800;
}

.section-block,
.dashboard-section,
.callout-band,
.page-hero,
.timeline,
.module-grid,
.module-toolbar,
.roadmap-summary,
.admin-placeholder {
    margin-top: 34px;
}

.section-heading {
    max-width: 780px;
    margin-bottom: 18px;
}

.section-heading h2,
.page-hero h1,
.callout-band h2 {
    font-size: 2.45rem;
}

.part-grid {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.part-card {
    min-height: 250px;
    padding: 20px;
}

.part-number,
.part-range {
    color: var(--blue);
    font-size: 0.82rem;
    font-weight: 900;
}

.part-card h3,
.module-card h2,
.timeline-content h2,
.feature-card h3 {
    margin-bottom: 12px;
}

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

.feature-card {
    padding: 22px;
}

.feature-icon {
    display: block;
    width: 44px;
    height: 44px;
    margin-bottom: 18px;
    border-radius: var(--radius);
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(37, 99, 235, 0.18)),
        repeating-linear-gradient(90deg, transparent 0 8px, rgba(124, 58, 237, 0.18) 8px 9px);
}

.feature-icon.icon-cyan {
    background:
        linear-gradient(135deg, rgba(6, 182, 212, 0.18), rgba(37, 99, 235, 0.18)),
        repeating-linear-gradient(0deg, transparent 0 8px, rgba(6, 182, 212, 0.18) 8px 9px);
}

.feature-icon.icon-blue {
    background:
        linear-gradient(135deg, rgba(37, 99, 235, 0.18), rgba(124, 58, 237, 0.18)),
        radial-gradient(circle, rgba(37, 99, 235, 0.3) 1px, transparent 2px);
    background-size: auto, 12px 12px;
}

.callout-band {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border: 1px solid rgba(223, 232, 245, 0.95);
    border-radius: var(--radius);
    background: linear-gradient(135deg, #fff, #eff6ff);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

.callout-band code {
    border-radius: 6px;
    background: var(--blue-soft);
    color: #1d4ed8;
    padding: 0.1em 0.35em;
}

.page-hero {
    max-width: none;
    padding: 34px;
}

.page-hero p {
    max-width: 820px;
}

.roadmap-summary {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.roadmap-summary article {
    padding: 20px;
}

.roadmap-summary span,
.roadmap-summary strong {
    display: block;
}

.roadmap-summary span {
    color: var(--muted);
    font-weight: 800;
}

.roadmap-summary strong {
    margin-top: 4px;
    color: var(--violet);
    font-size: 1.7rem;
}

.timeline {
    display: grid;
    gap: 16px;
}

.timeline-item {
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr);
    gap: 16px;
}

.timeline-index {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: var(--radius);
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
    font-size: 1.28rem;
    font-weight: 900;
    box-shadow: var(--shadow-soft);
}

.timeline-content {
    padding: 24px;
}

.timeline-content .card-link {
    margin-top: 8px;
}

.module-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow-soft);
    padding: 14px;
}

.filter-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.filter-group a {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    color: var(--muted);
    padding: 9px 12px;
    font-size: 0.88rem;
    font-weight: 900;
    text-decoration: none;
}

.filter-group a:hover,
.filter-group a.is-active {
    border-color: transparent;
    background: linear-gradient(135deg, var(--violet), var(--blue));
    color: #fff;
}

.module-toolbar > span {
    color: var(--muted);
    font-weight: 800;
    white-space: nowrap;
}

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

.module-card {
    display: flex;
    flex-direction: column;
    min-height: 380px;
    overflow: hidden;
}

.module-visual {
    position: relative;
    min-height: 128px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(124, 58, 237, 0.9), rgba(37, 99, 235, 0.86) 58%, rgba(6, 182, 212, 0.82));
}

.module-visual::before {
    position: absolute;
    inset: 18px;
    border: 1px solid rgba(255, 255, 255, 0.38);
    border-radius: var(--radius);
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.16) 1px, transparent 1px);
    background-size: 24px 24px;
    content: "";
}

.module-visual::after {
    position: absolute;
    right: 28px;
    bottom: 28px;
    width: 86px;
    height: 86px;
    border: 2px solid rgba(255, 255, 255, 0.55);
    border-radius: 999px;
    content: "";
}

.module-visual span {
    position: absolute;
    left: 30px;
    top: 34px;
    width: 118px;
    height: 54px;
    border-radius: 999px;
    background:
        radial-gradient(circle at 18px 28px, rgba(255, 255, 255, 0.86) 0 4px, transparent 5px),
        radial-gradient(circle at 56px 14px, rgba(255, 255, 255, 0.86) 0 4px, transparent 5px),
        radial-gradient(circle at 98px 34px, rgba(255, 255, 255, 0.86) 0 4px, transparent 5px),
        linear-gradient(25deg, transparent 44%, rgba(255, 255, 255, 0.7) 45% 47%, transparent 48%),
        linear-gradient(155deg, transparent 45%, rgba(255, 255, 255, 0.7) 46% 48%, transparent 49%);
}

.visual-part-2 {
    background: linear-gradient(135deg, #7c3aed, #2563eb 58%, #22c55e);
}

.visual-part-3 {
    background: linear-gradient(135deg, #2563eb, #06b6d4 58%, #7c3aed);
}

.visual-part-4 {
    background: linear-gradient(135deg, #0f766e, #2563eb 58%, #7c3aed);
}

.visual-part-5 {
    background: linear-gradient(135deg, #9333ea, #4f46e5 58%, #06b6d4);
}

.module-card-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    padding: 18px 18px 0;
}

.module-code {
    color: var(--blue);
    font-weight: 900;
}

.status {
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 4px 9px;
    font-size: 0.78rem;
    font-weight: 900;
    white-space: nowrap;
}

.status-available {
    border-color: rgba(22, 163, 74, 0.22);
    background: var(--green-soft);
    color: var(--green);
}

.status-coming {
    border-color: rgba(180, 83, 9, 0.22);
    background: var(--amber-soft);
    color: var(--amber);
}

.module-card h2 {
    padding: 0 18px;
    font-size: 1.15rem;
}

.module-meta {
    display: grid;
    gap: 10px;
    margin: 14px 0 18px;
    padding: 0 18px;
}

.module-meta div {
    display: grid;
    grid-template-columns: 74px minmax(0, 1fr);
    gap: 10px;
}

.module-meta dt {
    color: var(--muted);
    font-size: 0.8rem;
    font-weight: 900;
}

.module-meta dd {
    margin: 0;
    color: #39465a;
}

.card-link {
    display: inline-flex;
    align-items: center;
    width: fit-content;
    margin: auto 18px 18px;
    color: var(--blue);
    font-weight: 900;
    text-decoration: none;
}

.card-link:hover {
    text-decoration: underline;
}

.module-empty {
    grid-column: 1 / -1;
}

.module-detail-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 220px;
    align-items: stretch;
    gap: 24px;
    padding: 28px;
}

.module-detail-header h1 {
    max-width: 860px;
    font-size: 2.9rem;
}

.detail-side {
    display: grid;
    gap: 12px;
}

.detail-side .module-visual {
    min-height: 150px;
    border-radius: var(--radius);
}

.detail-side .status {
    justify-content: center;
}

.module-content {
    max-width: 920px;
    margin-top: 24px;
    padding: 34px;
    color: #2b3648;
}

.module-content h1,
.module-content h2,
.module-content h3 {
    margin: 1.6em 0 0.5em;
    color: var(--text);
}

.module-content p,
.module-content li {
    color: #445166;
}

.module-content a {
    color: var(--blue);
}

.module-content code {
    border: 1px solid rgba(37, 99, 235, 0.14);
    border-radius: 6px;
    background: var(--blue-soft);
    color: #1d4ed8;
    padding: 0.1em 0.35em;
}

.module-content pre {
    overflow-x: auto;
    border: 1px solid #d6e0ef;
    border-radius: var(--radius);
    background: #0f172a;
    color: #e5edf8;
    padding: 18px;
}

.module-content pre code {
    border: 0;
    background: transparent;
    color: inherit;
    padding: 0;
}

.module-content blockquote {
    margin: 24px 0;
    border-left: 4px solid var(--violet);
    border-radius: 0 var(--radius) var(--radius) 0;
    background: var(--violet-soft);
    padding: 16px 18px;
}

.module-content table {
    display: block;
    width: 100%;
    max-width: 100%;
    margin: 28px 0;
    overflow-x: auto;
    border: 1px solid var(--line);
    border-collapse: collapse;
    border-radius: var(--radius);
    background: #fff;
}

.module-content thead {
    background: linear-gradient(135deg, var(--blue-soft), var(--violet-soft));
}

.module-content th,
.module-content td {
    min-width: 160px;
    border: 1px solid var(--line);
    padding: 12px 14px;
    text-align: left;
    vertical-align: top;
}

.module-content th {
    color: var(--text);
    font-weight: 900;
}

.module-content td {
    color: #445166;
}

.empty-state,
.admin-placeholder article {
    padding: 28px;
}

.empty-state h2 {
    margin-bottom: 8px;
}

.admin-placeholder {
    max-width: 760px;
}

.site-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 44px;
    padding: 24px 4px 12px;
    color: var(--muted);
}

.site-footer strong,
.site-footer span {
    display: block;
}

.footer-note {
    text-align: right;
}

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

    .site-sidebar {
        position: static;
        height: auto;
        min-height: 0;
    }

    .main-nav {
        display: flex;
        flex-wrap: wrap;
        margin-top: 20px;
    }

    .main-nav a {
        flex: 1 1 150px;
    }

    .sidebar-note {
        display: none;
    }

    .topbar {
        position: static;
    }

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

@media (max-width: 860px) {
    .app-shell {
        width: min(100% - 20px, 1480px);
        gap: 16px;
        padding: 10px 0 18px;
    }

    .topbar,
    .hero,
    .metric-strip,
    .feature-grid,
    .roadmap-summary,
    .module-detail-header {
        grid-template-columns: 1fr;
    }

    .topbar {
        gap: 12px;
    }

    .hero-content,
    .page-hero,
    .module-content {
        padding: 24px;
    }

    h1 {
        font-size: 2.55rem;
    }

    h2,
    .section-heading h2,
    .page-hero h1,
    .callout-band h2 {
        font-size: 1.85rem;
    }

    .hero-panel {
        min-height: 360px;
    }

    .metric-strip,
    .part-grid,
    .module-grid {
        grid-template-columns: 1fr;
    }

    .module-toolbar,
    .callout-band,
    .site-footer {
        align-items: flex-start;
        flex-direction: column;
    }

    .module-toolbar > span {
        white-space: normal;
    }

    .timeline-item {
        grid-template-columns: 1fr;
    }

    .timeline-index {
        width: 48px;
        height: 48px;
    }

    .footer-note {
        text-align: left;
    }
}

@media (max-width: 560px) {
    .site-sidebar,
    .topbar,
    .hero-content,
    .hero-panel,
    .page-hero,
    .module-detail-header,
    .module-content,
    .callout-band {
        border-radius: var(--radius);
    }

    .main-nav a {
        flex-basis: 100%;
    }

    .hero-actions {
        display: grid;
    }

    .btn {
        width: 100%;
    }

    h1 {
        font-size: 2.2rem;
    }

    .hero-panel {
        min-height: 320px;
    }

    .ai-orbit {
        top: 48px;
        width: 160px;
        height: 160px;
    }

    .module-meta div {
        grid-template-columns: 1fr;
        gap: 2px;
    }

    .filter-group a {
        flex: 1 1 120px;
        text-align: center;
    }
}

/* Dashboard reference polish */
.app-shell {
    width: min(1560px, 100%);
    gap: 0;
    padding: 0;
}

.site-sidebar {
    top: 0;
    height: 100vh;
    min-height: 720px;
    border-width: 0 1px 0 0;
    border-radius: 0;
    box-shadow: none;
    padding: 36px 28px;
}

.brand {
    gap: 14px;
}

.brand-mark {
    width: 52px;
    height: 52px;
    background: transparent;
    box-shadow: none;
}

.brand-mark svg {
    width: 52px;
    height: 52px;
    fill: none;
    stroke: #6d5dfc;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.4;
}

.brand strong {
    color: #111a31;
    font-size: 1.34rem;
}

.brand small {
    color: #4c5875;
    font-size: 0.88rem;
    font-weight: 700;
}

.main-nav {
    gap: 12px;
    margin-top: 58px;
}

.main-nav a {
    gap: 14px;
    padding: 14px 16px;
    color: #66718c;
    font-size: 1rem;
}

.main-nav a::before {
    display: none;
}

.nav-icon {
    position: relative;
    display: inline-grid;
    width: 22px;
    height: 22px;
    place-items: center;
    color: currentColor;
}

.nav-icon::before,
.nav-icon::after {
    position: absolute;
    content: "";
}

.home-icon::before {
    width: 14px;
    height: 12px;
    border: 2px solid currentColor;
    border-top: 0;
    border-radius: 3px;
    bottom: 2px;
}

.home-icon::after {
    width: 13px;
    height: 13px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    transform: rotate(45deg);
    top: 2px;
}

.roadmap-icon::before {
    width: 5px;
    height: 5px;
    border: 2px solid currentColor;
    border-radius: 3px;
    box-shadow: 10px 0 0 -2px currentColor, 0 10px 0 -2px currentColor, 10px 10px 0 -2px currentColor;
}

.modules-icon::before {
    width: 15px;
    height: 14px;
    border: 2px solid currentColor;
    border-radius: 4px 4px 10px 4px;
    box-shadow: 6px 2px 0 -2px currentColor;
}

.projects-icon::before {
    width: 16px;
    height: 12px;
    border: 2px solid currentColor;
    border-radius: 7px;
}

.projects-icon::after {
    width: 22px;
    height: 2px;
    background: currentColor;
    transform: rotate(-28deg);
}

.resources-icon::before {
    width: 15px;
    height: 15px;
    border: 2px solid currentColor;
    border-radius: 3px;
}

.resources-icon::after {
    width: 7px;
    height: 2px;
    background: currentColor;
    box-shadow: 0 5px 0 currentColor;
}

.info-icon::before {
    width: 16px;
    height: 16px;
    border: 2px solid currentColor;
    border-radius: 999px;
}

.info-icon::after {
    width: 2px;
    height: 7px;
    border-radius: 999px;
    background: currentColor;
    box-shadow: 0 -5px 0 currentColor;
}

.main-nav a:hover,
.main-nav a.is-active {
    background: #f0f3ff;
    color: #6548ff;
}

.progress-card {
    margin-top: auto;
    border: 1px solid rgba(220, 226, 239, 0.94);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 20px 42px rgba(37, 52, 86, 0.08);
    padding: 22px 18px 18px;
    text-align: center;
}

.progress-card > strong {
    display: block;
    color: #6548ff;
    text-align: left;
}

.progress-ring {
    position: relative;
    display: grid;
    width: 112px;
    height: 112px;
    margin: 28px auto 18px;
    place-items: center;
    border-radius: 999px;
    background: conic-gradient(#6d5dfc var(--progress), #dfe3ec 0);
}

.progress-ring::before {
    position: absolute;
    width: 88px;
    height: 88px;
    border-radius: 999px;
    background: #fff;
    content: "";
}

.progress-ring span {
    position: relative;
    color: #172033;
    font-size: 1.45rem;
    font-weight: 900;
}

.progress-card p {
    margin-bottom: 2px;
    font-weight: 700;
}

.progress-card b {
    display: block;
    color: #26324b;
}

.progress-link {
    display: flex;
    justify-content: center;
    margin-top: 18px;
    border-radius: 8px;
    background: #182238;
    color: #fff;
    padding: 13px 14px;
    font-weight: 900;
    text-decoration: none;
}

.theme-switch {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 28px;
    border-radius: 14px;
    background: #f6f8fc;
    padding: 13px;
}

.theme-switch span {
    width: 18px;
    height: 18px;
    border: 2px solid #62718e;
    border-radius: 999px;
    border-right-color: transparent;
}

.theme-switch p {
    flex: 1;
    margin: 0;
    color: #6b758c;
    font-size: 0.9rem;
    font-weight: 800;
}

.theme-switch i {
    display: block;
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: #dfe4ee;
}

.theme-switch i::before {
    display: block;
    width: 18px;
    height: 18px;
    margin: 3px;
    border-radius: 999px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(30, 41, 59, 0.18);
    content: "";
}

.app-main {
    min-height: 100vh;
    border-left: 0;
}

.topbar {
    top: 0;
    grid-template-columns: minmax(280px, 420px) 1fr;
    border-width: 0 0 1px;
    border-radius: 0;
    box-shadow: none;
    padding: 18px 48px;
}

.search-box {
    max-width: 420px;
}

.search-box input {
    min-height: 42px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.76);
    padding-right: 88px;
}

.search-box kbd {
    position: absolute;
    right: 11px;
    border: 0;
    border-radius: 8px;
    background: #eef2f8;
    color: #66718c;
    padding: 4px 9px;
    font: 700 0.76rem Inter, sans-serif;
}

.topbar-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 16px;
}

.icon-button {
    position: relative;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.76);
    box-shadow: 0 10px 22px rgba(37, 52, 86, 0.06);
}

.icon-button::before {
    position: absolute;
    inset: 12px 14px 13px;
    border: 2px solid #64748b;
    border-bottom-color: transparent;
    border-radius: 11px 11px 6px 6px;
    content: "";
}

.icon-button::after {
    position: absolute;
    left: 18px;
    bottom: 11px;
    width: 8px;
    height: 2px;
    border-radius: 99px;
    background: #64748b;
    content: "";
}

.profile-chip {
    position: relative;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
}

.profile-chip span {
    display: grid;
    width: 44px;
    height: 44px;
    place-items: center;
    border-radius: 999px;
    background: linear-gradient(135deg, #7c3aed, #4776ff);
    color: #fff;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(101, 72, 255, 0.24);
}

.profile-chip i {
    position: absolute;
    right: 1px;
    bottom: 4px;
    width: 12px;
    height: 12px;
    border: 3px solid #fff;
    border-radius: 999px;
    background: #20d983;
}

.content-area {
    padding: 42px 48px 0;
}

.hero {
    grid-template-columns: minmax(0, 0.92fr) minmax(360px, 0.8fr);
    min-height: 360px;
    gap: 30px;
}

.hero-content {
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 34px 0 20px;
}

.hero-content .eyebrow {
    color: #6d5dfc;
    font-size: 1rem;
    text-transform: none;
}

.hero h1 {
    max-width: 680px;
    color: #111a31;
    font-size: 3.9rem;
    line-height: 1.02;
}

.hero h1 span {
    display: block;
    background: linear-gradient(90deg, #7c3aed, #6d5dfc 42%, #4776ff 78%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.hero-subtitle {
    max-width: 650px;
    color: #72809c;
    font-size: 1.12rem;
}

.hero-actions {
    margin-top: 28px;
}

.btn {
    min-height: 46px;
    border-radius: 10px;
    padding-inline: 22px;
}

.btn-primary {
    background: linear-gradient(135deg, #6d5dfc, #4776ff);
}

.hero-illustration {
    position: relative;
    min-height: 360px;
    overflow: hidden;
}

.hero-illustration::before {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(120deg, transparent 0 44%, rgba(109, 93, 252, 0.14) 45%, transparent 46%),
        linear-gradient(30deg, transparent 0 58%, rgba(71, 118, 255, 0.12) 59%, transparent 60%),
        radial-gradient(circle at 66% 36%, rgba(109, 93, 252, 0.18), transparent 24%),
        radial-gradient(circle at 76% 70%, rgba(6, 182, 212, 0.14), transparent 28%);
    content: "";
}

.brain-stage {
    position: absolute;
    right: 52px;
    top: 42px;
    width: 330px;
    height: 260px;
}

.brain-stage strong {
    position: absolute;
    left: 96px;
    top: 8px;
    width: 170px;
    height: 118px;
    border-radius: 46% 54% 50% 50% / 58% 58% 42% 42%;
    background:
        radial-gradient(circle at 30% 28%, rgba(255, 255, 255, 0.84) 0 3px, transparent 4px),
        repeating-radial-gradient(circle at 55% 45%, rgba(255, 255, 255, 0.32) 0 2px, transparent 3px 13px),
        linear-gradient(135deg, rgba(139, 92, 246, 0.95), rgba(88, 166, 255, 0.88));
    box-shadow: 0 24px 58px rgba(109, 93, 252, 0.35);
}

.brain-stage strong::before {
    position: absolute;
    left: 68px;
    bottom: -36px;
    width: 36px;
    height: 54px;
    border-radius: 0 0 18px 18px;
    background: linear-gradient(180deg, rgba(139, 92, 246, 0.85), rgba(88, 166, 255, 0.78));
    content: "";
}

.brain-stage span:nth-child(1) {
    position: absolute;
    left: 68px;
    bottom: 58px;
    width: 210px;
    height: 74px;
    border-radius: 24px;
    background: linear-gradient(135deg, rgba(120, 93, 252, 0.76), rgba(112, 194, 255, 0.76));
    transform: perspective(240px) rotateX(54deg) rotateZ(-2deg);
    box-shadow: 0 30px 52px rgba(71, 118, 255, 0.2);
}

.brain-stage span:nth-child(2) {
    position: absolute;
    left: 45px;
    bottom: 24px;
    width: 260px;
    height: 86px;
    border-radius: 28px;
    background: linear-gradient(135deg, rgba(109, 93, 252, 0.62), rgba(213, 236, 255, 0.9));
    transform: perspective(240px) rotateX(55deg) rotateZ(-2deg);
}

.brain-stage span:nth-child(3) {
    position: absolute;
    left: 22px;
    right: 0;
    bottom: -14px;
    height: 92px;
    background-image:
        linear-gradient(90deg, transparent 0 48%, rgba(71, 118, 255, 0.32) 49% 51%, transparent 52%),
        linear-gradient(25deg, transparent 0 45%, rgba(6, 182, 212, 0.26) 46% 48%, transparent 49%),
        linear-gradient(155deg, transparent 0 48%, rgba(109, 93, 252, 0.22) 49% 51%, transparent 52%);
}

.metric-strip {
    gap: 22px;
    margin-top: 36px;
}

.metric-strip article {
    display: flex;
    align-items: center;
    gap: 18px;
    min-height: 116px;
    border-radius: 16px;
    padding: 20px;
}

.stat-icon {
    display: grid;
    flex: 0 0 auto;
    width: 52px;
    height: 52px;
    place-items: center;
    border-radius: 14px;
    background: #ede9fe;
}

.stat-icon::before {
    width: 24px;
    height: 24px;
    border: 3px solid #6d5dfc;
    border-radius: 6px;
    content: "";
}

.stat-level {
    background: #def7ed;
}

.stat-level::before {
    border-color: #10b981;
    border-radius: 999px;
}

.stat-time {
    background: #fff1df;
}

.stat-time::before {
    border-color: #f97316;
    border-radius: 999px;
}

.stat-cert {
    background: #e8efff;
}

.stat-cert::before {
    border-color: #4776ff;
    border-radius: 4px 4px 10px 10px;
}

.metric-strip small,
.metric-strip strong,
.metric-strip span {
    display: block;
    margin: 0;
}

.metric-strip small {
    color: #56637f;
    font-weight: 800;
}

.metric-strip strong {
    color: #172033;
    font-size: 1.28rem;
}

.metric-strip article:nth-child(2) strong {
    color: #10b981;
}

.metric-strip article:nth-child(3) strong {
    color: #f97316;
}

.metric-strip article:nth-child(4) strong {
    color: #4776ff;
}

.metric-strip span {
    color: #8792aa;
    font-size: 0.9rem;
    font-weight: 700;
}

.module-toolbar {
    align-items: center;
    border: 0;
    background: transparent;
    box-shadow: none;
    padding: 0;
}

.module-toolbar-title {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #111a31;
}

.module-toolbar-title strong {
    font-size: 1.38rem;
}

.module-toolbar-title em {
    border-radius: 999px;
    background: #ede9fe;
    color: #6548ff;
    padding: 4px 10px;
    font-style: normal;
    font-weight: 900;
}

.toolbar-icon {
    position: relative;
    width: 24px;
    height: 24px;
}

.toolbar-icon::before {
    position: absolute;
    inset: 4px;
    border: 2px solid #6d5dfc;
    border-radius: 4px 4px 10px 4px;
    box-shadow: 6px 2px 0 -2px #6d5dfc;
    content: "";
}

.filter-group a {
    border-color: #dfe5f0;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.7);
    color: #58647f;
    padding: 10px 18px;
}

.filter-group a:hover,
.filter-group a.is-active {
    background: #e9e2ff;
    color: #6548ff;
}

.module-card {
    min-height: 360px;
    border-radius: 16px;
    overflow: hidden;
}

.module-visual {
    min-height: 116px;
}

.module-card h2 {
    color: #111a31;
    font-size: 1.08rem;
    line-height: 1.35;
}

.status {
    border-radius: 999px;
}

.module-meta dd {
    width: fit-content;
    border-radius: 8px;
    background: #f1f4fa;
    color: #64708a;
    padding: 5px 10px;
    font-size: 0.82rem;
    font-weight: 800;
}

.about-panel {
    margin-top: 34px;
    border: 1px solid rgba(223, 232, 245, 0.95);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.88);
    box-shadow: var(--shadow-soft);
    padding: 28px;
}

@media (max-width: 1180px) {
    .app-shell {
        width: min(100% - 20px, 1480px);
        gap: 16px;
        padding: 10px 0 18px;
    }

    .site-sidebar {
        height: auto;
        min-height: 0;
        border: 1px solid rgba(223, 232, 245, 0.95);
        border-radius: 16px;
    }

    .progress-card,
    .theme-switch {
        display: none;
    }

    .topbar {
        border: 1px solid rgba(223, 232, 245, 0.95);
        border-radius: 16px;
        padding: 14px 16px;
    }
}

@media (max-width: 860px) {
    .content-area {
        padding: 20px 0 0;
    }

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

    .topbar-actions {
        justify-content: flex-start;
    }

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

    .hero h1 {
        font-size: 2.72rem;
    }

    .hero-illustration {
        min-height: 280px;
    }

    .brain-stage {
        left: 50%;
        right: auto;
        top: 20px;
        transform: translateX(-50%) scale(0.84);
        transform-origin: top center;
    }

    .metric-strip article {
        min-height: 104px;
    }

    .module-toolbar {
        align-items: stretch;
    }
}

@media (max-width: 560px) {
    .brand-mark,
    .brand-mark svg {
        width: 44px;
        height: 44px;
    }

    .site-sidebar {
        padding: 20px;
    }

    .main-nav {
        margin-top: 24px;
    }

    .search-box kbd,
    .topbar-actions {
        display: none;
    }

    .search-box input {
        padding-right: 16px;
    }

    .hero h1 {
        font-size: 2.32rem;
    }

    .hero-content {
        padding-top: 8px;
    }
}
