:root {
    color-scheme: dark;
    --bg: #050807;
    --bg-soft: #0b120f;
    --panel: rgba(10, 16, 12, 0.88);
    --panel-2: rgba(7, 12, 9, 0.92);
    --border: rgba(134, 188, 37, 0.3);
    --text: #e9efde;
    --muted: #9fb08d;
    --accent: #86bc25;
    --accent-2: #9fcd49;
    --accent-3: #d2e97a;
    --accent-hot: #7aac1d;
    --page-pad: clamp(1.5rem, 4vw, 2rem);
    --shadow: 0 16px 34px rgba(2, 8, 15, 0.45);
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family: "Calibri", "Segoe UI", sans-serif;
    color: var(--text);
    background:
        radial-gradient(circle at 12% 6%, rgba(134, 188, 37, 0.14), transparent 30%),
        radial-gradient(circle at 82% 16%, rgba(94, 135, 24, 0.18), transparent 36%),
        radial-gradient(circle at 92% 88%, rgba(152, 198, 53, 0.1), transparent 32%),
        var(--bg);
    min-height: 100vh;
}

.container {
    width: min(1180px, calc(100% - (2 * var(--page-pad))));
    margin: 0 auto;
}

.home-shell {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    gap: 1.5rem;
    margin-top: 1.75rem;
    margin-bottom: 2rem;
    align-items: start;
}

.home-shell.drawer-collapsed {
    grid-template-columns: 1fr;
}

.home-shell.drawer-collapsed .left-drawer {
    display: none;
}

.home-content {
    min-width: 0;
}

.left-drawer {
    position: sticky;
    top: 76px;
    left: 0;
    height: calc(100vh - 88px);
    width: 100%;
    overflow-y: auto;
    border: 1px solid rgba(134, 188, 37, 0.22);
    border-radius: 16px;
    background: linear-gradient(170deg, rgba(8, 14, 10, 0.97), rgba(12, 20, 14, 0.94));
    padding: 1.1rem 1rem;
    box-shadow: var(--shadow);
    transform: none;
    transition: transform 160ms ease;
    z-index: 15;
}

.left-drawer.open {
    transform: translateX(0);
}

.left-drawer h2,
.left-drawer h3 {
    margin: 0 0 0.45rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
}

.left-drawer h2 {
    font-size: 0.95rem;
}

.left-drawer h3 {
    margin-top: 0.85rem;
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: var(--muted);
}

.left-drawer a {
    display: block;
    text-decoration: none;
    color: #cfe1f1;
    font-size: 0.84rem;
    border-radius: 9px;
    border: 1px solid transparent;
    padding: 0.42rem 0.5rem;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(2, 6, 12, 0.55);
    backdrop-filter: blur(2px);
    opacity: 0;
    pointer-events: none;
    transition: opacity 150ms ease;
    z-index: 30;
}

.drawer-overlay.open {
    opacity: 1;
    pointer-events: auto;
}

.left-drawer a:hover,
.left-drawer a:focus-visible {
    background: rgba(134, 188, 37, 0.16);
    border-color: rgba(134, 188, 37, 0.34);
    transform: translateX(2px);
    outline: none;
}

.left-drawer a[aria-current="page"] {
    background: rgba(159, 205, 73, 0.2);
    border-color: rgba(159, 205, 73, 0.42);
    color: #f1ffdb;
}

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    border-bottom: 1px solid rgba(134, 188, 37, 0.55);
    background: linear-gradient(160deg, rgba(2, 4, 3, 0.98), rgba(7, 11, 8, 0.96));
    backdrop-filter: blur(8px);
}

.topbar-inner {
    min-height: 72px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    padding: 0 0.25rem;
}

.brand {
    display: grid;
    gap: 0.2rem;
}

.brand-lockup {
    display: inline-flex;
    align-items: center;
    gap: 0.42rem;
    line-height: 1;
}

.brand-logo {
    height: 17px;
    width: auto;
    display: block;
    flex-shrink: 0;
}

.brand-divider {
    color: rgba(233, 239, 222, 0.52);
}

.brand-practice {
    font-size: 0.76rem;
    color: #c7d7b8;
    letter-spacing: 0.02em;
    transform: translateY(-2px);
}

.brand-page {
    font-size: 0.86rem;
    color: #d8e5ca;
    letter-spacing: 0.01em;
}

.drawer-toggle {
    display: inline-flex;
    border: 1px solid rgba(134, 188, 37, 0.34);
    color: #dbe8cf;
    background: rgba(134, 188, 37, 0.14);
    border-radius: 8px;
    padding: 0.3rem 0.55rem;
    font-size: 0.8rem;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.drawer-toggle:hover,
.drawer-toggle:focus-visible {
    background: rgba(134, 188, 37, 0.22);
    border-color: rgba(134, 188, 37, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.repo-link {
    text-decoration: none;
    color: #d4e4c5;
    font-size: 0.76rem;
    border: 1px solid rgba(134, 188, 37, 0.34);
    border-radius: 6px;
    padding: 0.28rem 0.52rem;
    background: rgba(5, 9, 7, 0.85);
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.repo-link:hover,
.repo-link:focus-visible {
    background: rgba(134, 188, 37, 0.14);
    border-color: rgba(134, 188, 37, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.topbar-utilities {
    margin-left: auto;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.nav-links {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
}

.nav-links a {
    color: #d8e5cb;
    text-decoration: none;
    border: 1px solid rgba(134, 188, 37, 0.4);
    border-radius: 8px;
    padding: 0.38rem 0.8rem;
    font-size: 0.82rem;
    font-weight: 500;
    background: rgba(134, 188, 37, 0.08);
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.nav-links a:hover,
.nav-links a:focus-visible {
    background: rgba(134, 188, 37, 0.18);
    border-color: rgba(134, 188, 37, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.hero {
    width: 100%;
    margin: 0;
    padding: clamp(2.5rem, 5vw, 4rem) clamp(1.5rem, 4vw, 3rem);
    background:
        radial-gradient(ellipse 80% 120% at 10% 60%, rgba(134, 188, 37, 0.10) 0%, transparent 65%),
        linear-gradient(160deg, #0d1f0a 0%, #060e04 50%, #010302 100%);
    border: none;
    border-bottom: 1px solid rgba(134, 188, 37, 0.25);
    box-shadow: 0 6px 40px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(134, 188, 37, 0.08);
    border-radius: 0 0 4px 4px;
}

.hero-inner {
    width: min(1180px, calc(100% - 2 * var(--page-pad)));
    margin: 0 auto;
    display: grid;
    grid-template-columns: 3fr 2fr;
    gap: 3.5rem;
    align-items: center;
}

.hero h1 {
    margin: 0;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: clamp(1.65rem, 3.2vw, 2.6rem);
    line-height: 1.18;
    color: #f4faea;
    letter-spacing: -0.02em;
}

.hero p {
    margin: 1rem 0 0;
    color: var(--muted);
    line-height: 1.68;
    font-size: 0.97rem;
}

/* Phase pages: tighten hero bottom spacing now that action buttons are removed. */
.home-content>.hero {
    padding-bottom: clamp(1.15rem, 2.1vw, 1.7rem);
}

.hero-stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}

.hero-stat {
    background: rgba(134, 188, 37, 0.06);
    border: 1px solid rgba(134, 188, 37, 0.22);
    border-radius: 10px;
    padding: 1.25rem 1rem;
    text-align: center;
}

.stat-number {
    display: block;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 2.4rem;
    font-weight: 700;
    color: var(--accent);
    line-height: 1;
}

.stat-label {
    display: block;
    font-size: 0.75rem;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-top: 0.4rem;
}

.pill-row {
    margin-top: 1.25rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.pill {
    color: #c6dfa0;
    background: rgba(134, 188, 37, 0.1);
    border: 1px solid rgba(134, 188, 37, 0.38);
    border-radius: 999px;
    padding: 0.3rem 0.72rem;
    font-size: 0.69rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 600;
    line-height: 1.2;
}

.pill:not(:last-child)::after {
    content: none;
}

.section {
    margin-top: 2rem;
    border: 1px solid rgba(134, 188, 37, 0.28);
    border-radius: 20px;
    overflow: hidden;
    background: var(--panel);
    box-shadow: var(--shadow);
}

.context-finder-layout {
    margin-top: 2rem;
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(340px, 1fr);
    gap: 1.25rem;
    align-items: stretch;
}

.context-finder-layout .section {
    margin-top: 0;
    height: 100%;
}

#asset-finder {
    align-self: start;
    position: sticky;
    top: 88px;
    max-height: calc(100vh - 104px);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    box-shadow: 0 22px 44px rgba(2, 10, 4, 0.56);
}

.dreach-callout {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    border: 1px solid rgba(134, 188, 37, 0.24);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(10, 18, 12, 0.9), rgba(6, 11, 7, 0.9));
    padding: 1.1rem 1.2rem;
}

.dreach-callout p {
    margin: 0;
    color: var(--text);
    line-height: 1.55;
}

#dreach-hub .section-header {
    padding: 0.88rem 1.4rem;
}

#dreach-hub .section-header p {
    margin-top: 0.28rem;
    line-height: 1.38;
}

#dreach-hub .section-body {
    padding: 0.95rem 1.4rem;
}

#dreach-hub .dreach-callout {
    padding: 0.6rem 0.9rem;
}

#dreach-hub .dreach-callout p {
    line-height: 1.32;
}

#dreach-hub .card-cta {
    padding: 0.44rem 0.74rem;
}

.section-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid rgba(134, 188, 37, 0.2);
    background: linear-gradient(180deg, rgba(17, 36, 14, 0.38), rgba(9, 16, 10, 0.52));
}

.section-header h2 {
    margin: 0;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    color: var(--text);
}

.section-header p {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.92rem;
    line-height: 1.62;
    max-width: 80ch;
}

.section-body {
    padding: 1.75rem 2rem;
}

.map-layout {
    display: block;
}

.phase-map {
    display: grid;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.5rem;
}

.phase-node {
    position: relative;
    overflow: clip;
    display: block;
    text-decoration: none;
    border: 1px solid rgba(134, 188, 37, 0.32);
    border-radius: 0;
    background:
        linear-gradient(150deg, rgba(8, 16, 10, 0.96), rgba(5, 12, 7, 0.98)),
        radial-gradient(circle at 88% 50%, rgba(134, 188, 37, 0.1), transparent 42%);
    text-align: left;
    color: var(--text);
    padding: 1.1rem 1rem 1.1rem 1.25rem;
    cursor: pointer;
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%, 16px 50%);
}

.phase-node:first-child {
    clip-path: polygon(0 0, calc(100% - 16px) 0, 100% 50%, calc(100% - 16px) 100%, 0 100%);
    border-radius: 12px 0 0 12px;
}

.phase-node:last-child {
    border-radius: 0 12px 12px 0;
}

.phase-node::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08), transparent 44%);
    opacity: 0.85;
    pointer-events: none;
}

.phase-node::before {
    content: none;
}

.phase-node:hover,
.phase-node:focus-visible {
    transform: translateY(-4px) scale(1.01);
    border-color: rgba(134, 188, 37, 0.72);
    box-shadow: 0 14px 28px rgba(2, 8, 4, 0.54), 0 0 0 1px rgba(134, 188, 37, 0.28) inset;
    outline: none;
    z-index: 1;
}

.phase-node.active {
    border-color: rgba(134, 188, 37, 0.64);
    box-shadow: inset 0 0 0 1px rgba(134, 188, 37, 0.3), 0 0 0 2px rgba(134, 188, 37, 0.18);
}

.phase-node strong,
.phase-node small {
    color: inherit;
}

.phase-node small {
    display: block;
    color: #99b3c8;
    font-size: 0.75rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.node-graphic {
    display: grid;
    place-items: center;
    margin-bottom: 0.36rem;
    position: relative;
    z-index: 1;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    border: 1px solid rgba(210, 229, 245, 0.35);
    background: rgba(120, 156, 189, 0.16);
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.node-graphic svg {
    width: 18px;
    height: 18px;
    stroke: #e4f2ff;
    stroke-width: 1.8;
    fill: none;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.node-graphic img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.phase-planning .node-graphic {
    background: rgba(110, 231, 183, 0.22);
}

.phase-design .node-graphic {
    background: rgba(56, 189, 248, 0.22);
}

.phase-development .node-graphic {
    background: rgba(147, 197, 253, 0.22);
}

.phase-testing .node-graphic {
    background: rgba(192, 132, 252, 0.22);
}

.phase-security .node-graphic {
    background: rgba(251, 191, 36, 0.22);
}

.phase-operations .node-graphic {
    background: rgba(244, 114, 182, 0.22);
}

.phase-node strong {
    display: block;
    margin-top: 0.2rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1.02rem;
    position: relative;
    z-index: 1;
}

.phase-node small {
    position: relative;
    z-index: 1;
}

.phase-node-step {
    display: inline-flex;
    margin-top: 0.05rem;
    color: rgba(203, 224, 243, 0.92);
    font-size: 0.66rem;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-weight: 700;
    position: relative;
    z-index: 1;
}

.phase-summary {
    margin: 0.45rem 0 0;
    color: #a8c68a;
    font-size: 0.78rem;
    line-height: 1.45;
    position: relative;
    z-index: 1;
    max-width: 30ch;
}

.phase-node-hint {
    margin-top: 0.5rem;
    color: rgba(134, 188, 37, 0.72);
    font-size: 0.66rem;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    transition: transform 180ms ease, color 180ms ease;
}

.phase-node:hover .node-graphic,
.phase-node:focus-visible .node-graphic {
    transform: translateY(-1px) scale(1.06);
    box-shadow: 0 8px 16px rgba(2, 10, 18, 0.38);
}

.phase-node:hover .phase-node-hint,
.phase-node:focus-visible .phase-node-hint {
    color: #c8e77a;
    transform: translateX(3px);
}

/* Homepage map: use the icon as a translucent background motif */
.phase-map:not(.phase-map-hero) .node-graphic {
    position: absolute;
    right: 0.35rem;
    bottom: 0.35rem;
    width: clamp(62px, 50%, 124px);
    height: clamp(62px, 50%, 124px);
    margin: 0;
    border: none;
    background: transparent;
    opacity: 0.14;
    box-shadow: none;
    pointer-events: none;
    z-index: 0;
}

.phase-map:not(.phase-map-hero) .node-graphic img {
    width: 68%;
    height: 68%;
}

.phase-map:not(.phase-map-hero) .phase-node:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.5rem;
    width: 0.5rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(134, 188, 37, 0.24), rgba(159, 205, 73, 0.8));
    transform: translateY(-50%);
    z-index: 2;
    pointer-events: none;
}

.phase-panel {
    border: 1px solid rgba(150, 173, 191, 0.3);
    border-radius: 14px;
    background: var(--panel-2);
    padding: 0.9rem;
}

.phase-panel.is-empty {
    border-style: dashed;
    background: linear-gradient(160deg, rgba(10, 18, 28, 0.88), rgba(13, 25, 36, 0.9));
}

.phase-panel h3 {
    margin: 0;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1rem;
}

.phase-panel p {
    margin: 0.56rem 0 0;
    color: var(--muted);
    font-size: 0.9rem;
    line-height: 1.54;
}

.phase-panel .meta {
    margin-top: 0.56rem;
    font-size: 0.79rem;
    color: #cde6f8;
    border: 1px solid rgba(96, 165, 250, 0.32);
    border-radius: 999px;
    display: inline-flex;
    padding: 0.24rem 0.55rem;
    background: rgba(96, 165, 250, 0.12);
}

.is-hidden {
    display: none !important;
}

.actions {
    margin-top: 0.95rem;
    display: flex;
    gap: 0.7rem;
    flex-wrap: wrap;
}

.hero-phase-map {
    margin-top: 1.05rem;
}

.phase-map-hero {
    grid-template-columns: repeat(6, minmax(0, 1fr));
    gap: 0.45rem;
}

.phase-map-hero .phase-node,
.phase-map-hero .phase-node:first-child,
.phase-map-hero .phase-node:last-child {
    clip-path: none;
    border-radius: 12px;
    padding: 0.72rem 0.7rem 0.72rem 0.9rem;
    min-height: 98px;
    overflow: visible;
    position: relative;
}

.phase-map-hero .phase-node:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 50%;
    right: -0.45rem;
    width: 0.45rem;
    height: 2px;
    background: linear-gradient(90deg, rgba(134, 188, 37, 0.2), rgba(159, 205, 73, 0.7));
    transform: translateY(-50%);
    pointer-events: none;
}

.phase-map-hero .node-graphic {
    position: absolute;
    right: 0.5rem;
    bottom: 0.35rem;
    width: 74px;
    height: 74px;
    margin: 0;
    border: none;
    background: transparent;
    opacity: 0.2;
    z-index: 0;
    box-shadow: none;
    pointer-events: none;
}

.phase-map-hero .node-graphic img {
    width: 56px;
    height: 56px;
}

.phase-map-hero .phase-node-step {
    font-size: 0.58rem;
    letter-spacing: 0.12em;
}

.phase-map-hero .phase-node strong {
    font-size: 0.9rem;
    margin-top: 0.14rem;
}

.phase-map-hero .phase-summary,
.phase-map-hero .phase-node-hint {
    display: none;
}

.button {
    display: inline-flex;
    text-decoration: none;
    border-radius: 10px;
    border: 1px solid rgba(134, 188, 37, 0.55);
    color: #eaf6dc;
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.3), rgba(110, 158, 30, 0.2));
    padding: 0.58rem 1.1rem;
    font-weight: 600;
    font-size: 0.85rem;
    transition: background-color 140ms ease, border-color 140ms ease, transform 140ms ease, box-shadow 140ms ease;
}

.button:hover,
.button:focus-visible {
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.46), rgba(110, 158, 30, 0.34));
    border-color: rgba(159, 205, 73, 0.72);
    transform: translateY(-2px);
    box-shadow: 0 10px 18px rgba(8, 22, 37, 0.4);
    outline: none;
}

.button.alt {
    border-color: rgba(134, 188, 37, 0.4);
    background: rgba(7, 12, 9, 0.9);
    color: #d6e5c6;
}

.button.alt:hover,
.button.alt:focus-visible {
    background: rgba(134, 188, 37, 0.14);
    border-color: rgba(159, 205, 73, 0.58);
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}

.card {
    border: 1px solid rgba(134, 188, 37, 0.22);
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(10, 18, 12, 0.92), rgba(6, 11, 7, 0.9));
    padding: 1.6rem;
    transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.card:hover {
    border-color: rgba(159, 205, 73, 0.46);
    box-shadow: 0 8px 24px rgba(2, 8, 3, 0.38);
    transform: translateY(-2px);
}

.ux-card {
    position: relative;
    box-shadow: 0 10px 20px rgba(2, 8, 15, 0.3);
    transition: border-color 140ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.ux-card:hover,
.ux-card:focus-within {
    border-color: rgba(110, 231, 183, 0.42);
}

.card h3 {
    margin: 0 0 0.75rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1.05rem;
    font-weight: 700;
    color: #b6db6d;
    display: flex;
    align-items: center;
    gap: 0.42rem;
    padding-right: 5.7rem;
}

.card-title-icon {
    width: 0.95rem;
    height: 0.95rem;
    stroke: #8ee5c5;
    flex: 0 0 auto;
}

.card p {
    margin: 0.75rem 0 0;
    color: var(--text);
    font-size: 0.93rem;
    line-height: 1.65;
}

.card p:first-of-type {
    margin-top: 0;
    font-weight: 500;
}

.card p strong {
    color: var(--accent-2);
    font-weight: 700;
    display: inline-block;
    margin-right: 0.3rem;
}

/* Inline marker for cards with missing information */
.needs-info {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    background: rgba(251, 191, 36, 0.12);
    color: #fbbf24;
    border: 1px solid rgba(251, 191, 36, 0.35);
    border-radius: 4px;
    padding: 0.05rem 0.45rem;
    font-size: 0.82rem;
    font-weight: 600;
    font-style: italic;
    cursor: help;
}

.card-meta-list {
    list-style: none;
    margin: 0.7rem 0 0;
    padding: 0;
    display: grid;
    gap: 0.28rem;
}

.card-meta-list li {
    margin: 0;
    color: var(--text);
    font-size: 0.92rem;
    line-height: 1.45;
}

.card-meta-list li::before {
    content: none;
}

.card-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    border: 1px solid rgba(159, 205, 73, 0.74);
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.36), rgba(106, 153, 26, 0.3));
    color: #f4ffe3;
    text-decoration: none;
    font-weight: 700;
    font-size: 0.85rem;
    line-height: 1;
    letter-spacing: 0.02em;
    padding: 0.54rem 0.8rem;
    transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease, background-color 150ms ease;
}

.card-cta:hover,
.card-cta:focus-visible {
    transform: translateY(-2px);
    border-color: rgba(179, 217, 98, 0.95);
    box-shadow: 0 10px 18px rgba(17, 35, 9, 0.5);
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.5), rgba(106, 153, 26, 0.42));
    outline: none;
}

.card-quick-btn {
    position: absolute;
    right: 0.62rem;
    top: 0.58rem;
    border: 1px solid rgba(96, 165, 250, 0.45);
    background: rgba(96, 165, 250, 0.12);
    color: #d9eafe;
    border-radius: 999px;
    font-size: 0.7rem;
    line-height: 1;
    padding: 0.32rem 0.5rem;
    cursor: pointer;
}

.card-quick-btn:hover,
.card-quick-btn:focus-visible {
    background: rgba(96, 165, 250, 0.24);
    border-color: rgba(110, 231, 183, 0.45);
    outline: none;
}

.card-popover {
    position: fixed;
    z-index: 70;
    width: min(380px, calc(100vw - 1.2rem));
    border: 1px solid rgba(96, 165, 250, 0.4);
    border-radius: 10px;
    background: rgba(7, 16, 24, 0.96);
    box-shadow: 0 16px 34px rgba(2, 8, 15, 0.6);
    padding: 0.6rem 0.68rem;
    opacity: 0;
    pointer-events: none;
    transform: translateY(4px);
    transition: opacity 120ms ease, transform 120ms ease;
}

.card-popover.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
}

.card-popover strong {
    display: block;
    font-size: 0.75rem;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    color: #c2def6;
}

.card-popover ul {
    margin: 0.45rem 0 0;
    padding: 0;
    list-style: none;
    display: grid;
    gap: 0.32rem;
}

.card-popover li {
    color: #d9e9f7;
    font-size: 0.8rem;
    line-height: 1.42;
}

/* Phase at a Glance Section */
.phase-glance-box {
    margin-bottom: 2rem;
    padding: 1.75rem 2rem;
    border: 1px solid rgba(134, 188, 37, 0.42);
    border-radius: 18px;
    background: linear-gradient(135deg, rgba(134, 188, 37, 0.07), rgba(94, 135, 24, 0.04));
    backdrop-filter: blur(8px);
}

.glance-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
}

.glance-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
}

.glance-icon {
    font-size: 2.5rem;
    margin-bottom: 0.75rem;
    line-height: 1;
}

.glance-item h3 {
    margin: 0 0 0.5rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--accent-2);
}

.glance-item p {
    margin: 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: var(--text);
}

/* Section Header – heading styles applied to h2 only via earlier rule */

.framework-item {
    padding: 1.2rem !important;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.06), rgba(110, 231, 183, 0.04)) !important;
    border: 1px solid rgba(110, 231, 183, 0.2) !important;
    transition: all 200ms ease;
}

.framework-item:hover {
    border-color: rgba(110, 231, 183, 0.4);
    background: linear-gradient(135deg, rgba(96, 165, 250, 0.1), rgba(110, 231, 183, 0.08)) !important;
}

.framework-item h4 {
    font-size: 1rem !important;
    color: var(--accent-2) !important;
    margin-bottom: 0.6rem !important;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kv-item.use-case h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent-2);
    margin-bottom: 0.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.kv-item.use-case {
    padding: 1.5rem;
    border-radius: 14px;
    border: 1px solid rgba(134, 188, 37, 0.18);
    background: rgba(8, 14, 10, 0.72);
    transition: border-color 180ms ease, background 180ms ease;
}

.kv-item.use-case:hover {
    border-color: rgba(134, 188, 37, 0.36);
    background: rgba(10, 18, 12, 0.88);
}

.kv-item.use-case p {
    margin-top: 0.65rem;
    font-size: 0.95rem;
    color: var(--text);
}

.kv-item.use-case .card-grid {
    margin-top: 1rem;
}

.phase-template {
    display: grid;
    grid-template-columns: 2.1fr 1fr;
    gap: 1.2rem;
}

.phase-main,
.phase-side {
    border: 1px solid rgba(134, 188, 37, 0.22);
    border-radius: 16px;
    background: rgba(8, 14, 10, 0.88);
    padding: 1.75rem;
}

.phase-main h2,
.phase-side h3 {
    margin: 0 0 1.2rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
}

.phase-main h2 {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--accent-2);
}

.kv {
    margin-top: 0;
    display: grid;
    gap: 1rem;
}

.phase-template.phase-template-full {
    grid-template-columns: 1fr;
}

.phase-overview-kv {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    align-items: stretch;
}

.kv-item {
    border: 1px solid rgba(134, 188, 37, 0.2);
    border-radius: 12px;
    background: rgba(8, 14, 10, 0.72);
    padding: 1.1rem 1.2rem;
}

.kv-item h4 {
    margin: 0;
    font-size: 0.95rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #c2d8ea;
}

.kv-item p,
.kv-item li {
    margin: 0.5rem 0 0;
    color: #d2e2ef;
    font-size: 0.9rem;
    line-height: 1.53;
}

.kv-item ul {
    margin: 0.5rem 0 0;
    padding-left: 0;
    list-style: none;
}

.icon-list li {
    position: relative;
    padding-left: 1.65rem;
}

.icon-list li::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0.45rem;
    width: 0.9rem;
    height: 0.9rem;
    background-size: contain;
    background-repeat: no-repeat;
}

.tooling-icons li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%237dd3fc' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9.5 1.5 8 3l1 2-1.7 1.7-2-1L3.8 7.2l1 2L3 10.9l-2-1L1.5 12l2 2 1.8-.5 1-2 1.7-1.7 2 1L12.5 9l-1-2L13.2 5.3l2 1L14.5 4l-2-2z'/%3E%3C/svg%3E");
}

.output-icons li::before {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%2386efac' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 1.5h6l3 3V14.5H3z'/%3E%3Cpath d='M9 1.5v3h3'/%3E%3Cpath d='M5.5 8h5M5.5 10.5h5'/%3E%3C/svg%3E");
}

.phase-main h2,
.phase-side h3 {
    font-size: 1.18rem;
}

.asset-subtitle {
    margin: 1.45rem 0 0.95rem;
    font-size: 0.82rem;
    line-height: 1.25;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--muted);
}

.phase-ribbon {
    display: flex;
    gap: 0.5rem;
    overflow-x: auto;
    padding: 1rem 0;
    margin: 1.5rem 0;
    scroll-behavior: smooth;
}

.phase-ribbon::-webkit-scrollbar {
    height: 6px;
}

.phase-ribbon::-webkit-scrollbar-track {
    background: rgba(150, 173, 191, 0.1);
    border-radius: 3px;
}

.phase-ribbon::-webkit-scrollbar-thumb {
    background: rgba(150, 173, 191, 0.3);
    border-radius: 3px;
}

.phase-ribbon::-webkit-scrollbar-thumb:hover {
    background: rgba(150, 173, 191, 0.5);
}

.phase-badge {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.65rem 1rem;
    border: 1px solid rgba(150, 173, 191, 0.26);
    border-radius: 10px;
    background: rgba(15, 27, 40, 0.6);
    text-decoration: none;
    color: var(--text);
    white-space: nowrap;
    flex-shrink: 0;
    transition: all 160ms ease;
}

.phase-badge:hover,
.phase-badge:focus-visible {
    background: rgba(96, 165, 250, 0.15);
    border-color: rgba(96, 165, 250, 0.4);
    transform: translateY(-2px);
    outline: none;
}

.phase-badge-active {
    background: rgba(96, 165, 250, 0.25);
    border-color: var(--accent);
    box-shadow: 0 0 12px rgba(96, 165, 250, 0.25);
}

.phase-badge-active:hover,
.phase-badge-active:focus-visible {
    background: rgba(96, 165, 250, 0.35);
    box-shadow: 0 0 16px rgba(96, 165, 250, 0.35);
}

.phase-badge .badge-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.phase-badge .badge-icon img {
    width: 20px;
    height: 20px;
    display: block;
}

.phase-badge .badge-label {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.phase-badge small {
    font-size: 0.65rem;
    color: var(--muted);
    line-height: 1;
}

.phase-badge strong {
    font-size: 0.85rem;
    line-height: 1;
}

.on-page-nav {
    margin-top: 1.25rem;
    position: sticky;
    top: 76px;
    z-index: 12;
    border: 1px solid rgba(134, 188, 37, 0.28);
    border-radius: 14px;
    background: rgba(8, 14, 10, 0.88);
    padding: 0.9rem 1.1rem;
}

.on-page-nav h2 {
    margin: 0;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 0.95rem;
}

.on-page-nav .jump-links {
    margin-top: 0.48rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.44rem;
}

.on-page-nav a {
    text-decoration: none;
    border: 1px solid rgba(134, 188, 37, 0.36);
    border-radius: 999px;
    color: #d6e7c2;
    background: rgba(134, 188, 37, 0.1);
    font-size: 0.76rem;
    padding: 0.28rem 0.58rem;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.on-page-nav a:hover,
.on-page-nav a:focus-visible {
    background: rgba(134, 188, 37, 0.2);
    border-color: rgba(159, 205, 73, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.checklist-progress {
    border: 1px solid rgba(110, 231, 183, 0.28);
    border-radius: 10px;
    background: rgba(11, 28, 29, 0.45);
    padding: 0.62rem;
}

.progress-meta {
    display: flex;
    justify-content: space-between;
    gap: 0.6rem;
    align-items: center;
    font-size: 0.78rem;
    color: #cae5f8;
}

.progress-track {
    margin-top: 0.45rem;
    height: 8px;
    border-radius: 999px;
    background: rgba(150, 173, 191, 0.23);
    overflow: hidden;
}

.progress-track span {
    display: block;
    height: 100%;
    width: 0;
    background: linear-gradient(90deg, rgba(110, 231, 183, 0.9), rgba(56, 189, 248, 0.88));
    transition: width 180ms ease;
}

.check-row {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.check-row input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: #6ee7b7;
}

.kv-item.is-complete {
    border-color: rgba(110, 231, 183, 0.42);
    background: rgba(12, 34, 34, 0.54);
}

.footer {
    margin: 1.75rem 0 2rem;
    color: #7a9272;
    font-size: 0.82rem;
}

/* Full-width phase layout + expandable drawer navigation */
.container {
    width: min(1460px, calc(100% - (2 * var(--page-pad))));
}

.home-shell {
    display: block;
}

.left-drawer {
    position: fixed;
    top: 64px;
    left: 0;
    height: calc(100vh - 64px);
    width: min(330px, 92vw);
    border-radius: 0 14px 14px 0;
    transform: translateX(-104%);
    z-index: 40;
}

.left-drawer.open {
    transform: translateX(0);
}

.phase-template {
    grid-template-columns: 1fr;
    gap: 1rem;
}

.phase-overview-kv {
    grid-template-columns: 1fr;
}

.phase-main,
.phase-side {
    width: 100%;
}

.card-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.kv-item.use-case {
    padding: 0;
    overflow: hidden;
}

.use-case-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    text-align: left;
    border: 0;
    background: rgba(11, 23, 35, 0.8);
    color: #e6f2fc;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 1rem;
    padding: 0.88rem 0.9rem;
    cursor: pointer;
}

.use-case-toggle:hover,
.use-case-toggle:focus-visible {
    background: rgba(17, 33, 48, 0.86);
    outline: none;
}

.use-case-toggle-icon {
    font-size: 1.1rem;
    line-height: 1;
    color: #8de4c5;
    transition: transform 140ms ease;
}

.kv-item.use-case.expanded .use-case-toggle-icon {
    transform: rotate(45deg);
}

.use-case-body {
    padding: 0 0.9rem 0.9rem;
}

.enabling-tools {
    margin-top: 0.9rem;
}

.enabling-tools h4 {
    margin: 0 0 0.6rem 0;
}

.use-case-body .enabling-tools .icon-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 0.55rem;
}

.use-case-body .enabling-tools .icon-list li {
    border: 1px solid rgba(150, 173, 191, 0.28);
    border-radius: 10px;
    background: rgba(11, 22, 34, 0.72);
    margin: 0;
    padding: 0.64rem 0.68rem 0.64rem 1.95rem;
}

@media (max-width: 1020px) {

    .home-shell {
        grid-template-columns: 1fr;
    }

    .left-drawer {
        top: 56px;
        height: calc(100vh - 56px);
        width: min(292px, 90vw);
    }

    .map-layout,
    .phase-template,
    .card-grid {
        grid-template-columns: 1fr;
    }

    .phase-map {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.7rem;
    }

    .phase-map-hero {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 0.55rem;
    }

    .phase-map-hero .phase-node:not(:last-child)::before {
        content: none;
    }

    .phase-node,
    .phase-node:first-child,
    .phase-node:last-child {
        clip-path: polygon(0 0, calc(100% - 14px) 0, 100% 50%, calc(100% - 14px) 100%, 0 100%);
        border-radius: 12px;
    }

    .phase-map:not(.phase-map-hero) .phase-node::before {
        content: none;
    }
}

@media (max-width: 760px) {
    :root {
        --page-pad: 1.5rem;
    }

    .topbar-inner {
        min-height: 56px;
    }

    .brand {
        gap: 0.15rem;
    }

    .brand-wordmark {
        font-size: 0.76rem;
    }

    .brand-practice {
        display: none;
    }

    .brand-page {
        font-size: 0.74rem;
    }

    .repo-link {
        display: none;
    }

    .phase-map {
        grid-template-columns: 1fr;
        gap: 0.6rem;
    }

    .phase-map-hero {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.45rem;
    }

    .phase-node,
    .phase-node:first-child,
    .phase-node:last-child {
        clip-path: none;
        border-radius: 12px;
    }

    .nav-links {
        display: none;
    }

    .on-page-nav .jump-links {
        gap: 0.35rem;
    }

    .on-page-nav {
        position: static;
    }
}

/* ============================================================
   AI Asset Finder – Chat Interface
   ============================================================ */

.chat-section-header {
    display: flex;
    align-items: center;
}

.chat-section-title {
    display: flex;
    align-items: flex-start;
    gap: 0.9rem;
}

.chat-bot-dot {
    flex: 0 0 auto;
    width: 10px;
    height: 10px;
    border-radius: 999px;
    background: var(--accent);
    box-shadow: 0 0 0 4px rgba(134, 188, 37, 0.18), 0 0 12px rgba(134, 188, 37, 0.35);
    margin-top: 0.45rem;
    animation: chat-pulse 2.4s ease-in-out infinite;
}

@keyframes chat-pulse {

    0%,
    100% {
        box-shadow: 0 0 0 4px rgba(134, 188, 37, 0.18), 0 0 12px rgba(134, 188, 37, 0.35);
    }

    50% {
        box-shadow: 0 0 0 6px rgba(134, 188, 37, 0.1), 0 0 20px rgba(134, 188, 37, 0.5);
    }
}

.chat-section-body {
    padding: 0;
    display: flex;
    flex: 1;
    min-height: 0;
}

.chat-shell {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
}

.chat-messages {
    min-height: 0;
    overflow-y: auto;
    padding: 1.5rem 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    scroll-behavior: smooth;
}

.chat-messages::-webkit-scrollbar {
    width: 5px;
}

.chat-messages::-webkit-scrollbar-track {
    background: transparent;
}

.chat-messages::-webkit-scrollbar-thumb {
    background: rgba(134, 188, 37, 0.28);
    border-radius: 999px;
}

/* Message bubbles */
.chat-msg {
    max-width: 76%;
    padding: 0.72rem 1rem;
    border-radius: 14px;
    font-size: 0.9rem;
    line-height: 1.56;
    animation: chat-fade-in 220ms ease both;
}

.chat-msg--bot {
    align-self: flex-start;
    background: rgba(8, 14, 10, 0.92);
    border: 1px solid rgba(134, 188, 37, 0.28);
    border-left: 3px solid var(--accent);
    color: var(--text);
    border-radius: 4px 14px 14px 14px;
}

.chat-msg--user {
    align-self: flex-end;
    background: linear-gradient(135deg, rgba(134, 188, 37, 0.22), rgba(106, 153, 26, 0.18));
    border: 1px solid rgba(134, 188, 37, 0.42);
    color: #e4f5c8;
    border-radius: 14px 4px 14px 14px;
}

.chat-msg--bot a {
    color: var(--accent-2);
    text-decoration: underline;
    text-underline-offset: 2px;
}

/* Typing indicator */
.chat-typing {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.72rem 1rem;
    min-height: 2.5rem;
}

.chat-typing span {
    display: block;
    width: 7px;
    height: 7px;
    border-radius: 999px;
    background: var(--accent);
    opacity: 0.7;
    animation: chat-typing-dot 1.2s ease-in-out infinite;
}

.chat-typing span:nth-child(2) {
    animation-delay: 0.18s;
}

.chat-typing span:nth-child(3) {
    animation-delay: 0.36s;
}

@keyframes chat-typing-dot {

    0%,
    80%,
    100% {
        transform: scale(0.7);
        opacity: 0.4;
    }

    40% {
        transform: scale(1.1);
        opacity: 1;
    }
}

/* Quick-reply buttons */
.chat-replies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    padding: 0.25rem 0 0.15rem;
    align-self: flex-start;
    max-width: 92%;
}

.chat-reply-btn {
    border: 1px solid rgba(134, 188, 37, 0.44);
    background: rgba(134, 188, 37, 0.09);
    color: #cde69f;
    border-radius: 999px;
    padding: 0.36rem 0.88rem;
    font-size: 0.8rem;
    font-family: inherit;
    cursor: pointer;
    transition: background 130ms ease, border-color 130ms ease, transform 130ms ease, opacity 130ms ease;
    animation: chat-fade-in 220ms ease both;
}

.chat-reply-btn:hover {
    background: rgba(134, 188, 37, 0.2);
    border-color: rgba(159, 205, 73, 0.68);
    transform: translateY(-1px);
}

.chat-reply-btn:disabled {
    cursor: default;
}

/* Text input row (shown only at free-text step) */
.chat-input-row {
    display: none;
    gap: 0.6rem;
    padding: 0.85rem 1.75rem 1.25rem;
    border-top: 1px solid rgba(134, 188, 37, 0.16);
    background: rgba(4, 8, 5, 0.6);
}

.chat-input-row--active {
    display: flex;
}

.chat-input {
    flex: 1;
    background: rgba(5, 9, 6, 0.95);
    border: 1px solid rgba(134, 188, 37, 0.3);
    border-radius: 10px;
    color: var(--text);
    padding: 0.6rem 0.9rem;
    font-size: 0.88rem;
    font-family: inherit;
    transition: border-color 120ms ease, box-shadow 120ms ease;
}

.chat-input:focus {
    outline: none;
    border-color: rgba(134, 188, 37, 0.6);
    box-shadow: 0 0 0 3px rgba(134, 188, 37, 0.1);
}

.chat-input::placeholder {
    color: rgba(159, 176, 141, 0.5);
}

.chat-send {
    border: 1px solid rgba(134, 188, 37, 0.5);
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.28), rgba(106, 153, 26, 0.2));
    color: #d6f09a;
    border-radius: 10px;
    padding: 0.6rem 1.1rem;
    font-size: 0.85rem;
    font-family: inherit;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background 130ms ease, border-color 130ms ease, transform 130ms ease;
}

.chat-send:hover {
    background: linear-gradient(145deg, rgba(134, 188, 37, 0.42), rgba(106, 153, 26, 0.32));
    border-color: rgba(159, 205, 73, 0.72);
    transform: translateY(-1px);
}

/* Asset result cards */
.chat-results {
    align-self: stretch;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 0.65rem;
    animation: chat-fade-in 280ms ease both;
}

.chat-asset-card {
    border: 1px solid rgba(134, 188, 37, 0.24);
    border-radius: 12px;
    background: linear-gradient(140deg, rgba(8, 15, 10, 0.94), rgba(5, 10, 6, 0.9));
    padding: 1.1rem 1.2rem;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.chat-asset-card:hover {
    border-color: rgba(159, 205, 73, 0.46);
    box-shadow: 0 6px 18px rgba(2, 8, 3, 0.4);
}

.asset-phase-badge {
    display: inline-block;
    font-size: 0.62rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    font-weight: 700;
    border: 1px solid rgba(134, 188, 37, 0.38);
    border-radius: 999px;
    padding: 0.18rem 0.58rem;
    color: #9ac855;
    margin-bottom: 0.52rem;
}

.chat-asset-card h4 {
    margin: 0 0 0.4rem;
    font-family: "Calibri", "Trebuchet MS", sans-serif;
    font-size: 0.92rem;
    font-weight: 700;
    color: #c4e475;
    line-height: 1.3;
}

.chat-asset-card p {
    margin: 0 0 0.7rem;
    font-size: 0.83rem;
    line-height: 1.52;
    color: var(--muted);
}

.chat-asset-card a {
    font-size: 0.78rem;
    color: #9acd44;
    text-decoration: none;
    border-bottom: 1px solid rgba(154, 205, 68, 0.32);
    padding-bottom: 1px;
    transition: color 120ms ease, border-color 120ms ease;
}

.chat-asset-card a:hover {
    color: #c0e870;
    border-color: rgba(192, 232, 112, 0.6);
}

/* Animations */
@keyframes chat-fade-in {
    from {
        opacity: 0;
        transform: translateY(7px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive */
@media (max-width: 760px) {
    .chat-messages {
        padding: 1.1rem 1.1rem 0.75rem;
    }

    .chat-input-row {
        padding: 0.75rem 1.1rem 1rem;
    }

    .chat-msg {
        max-width: 90%;
    }

    .chat-results {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 1160px) {
    .context-finder-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    #asset-finder {
        position: static;
        top: auto;
        max-height: none;
    }

    .context-finder-layout .section+.section {
        margin-top: 2rem;
    }

    .dreach-callout {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ============================================================
   End Chat Styles
   ============================================================ */

.telemetry-topbar {
    position: relative;
    z-index: 25;
}

.telemetry-trigger {
    width: 30px;
    height: 30px;
    padding: 0;
    display: inline-grid;
    place-items: center;
    border: 1px solid rgba(134, 188, 37, 0.34);
    border-radius: 6px;
    background: rgba(5, 9, 7, 0.85);
    color: #d4e4c5;
    cursor: pointer;
    transition: background-color 120ms ease, border-color 120ms ease, transform 120ms ease;
}

.telemetry-trigger svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    fill: none;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.telemetry-trigger:hover,
.telemetry-trigger:focus-visible {
    background: rgba(134, 188, 37, 0.14);
    border-color: rgba(134, 188, 37, 0.5);
    transform: translateY(-1px);
    outline: none;
}

.telemetry-sheet {
    position: absolute;
    right: 0;
    top: calc(100% + 0.45rem);
    width: min(340px, calc(100vw - 2rem));
    border: 1px solid rgba(134, 188, 37, 0.35);
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(8, 14, 10, 0.97), rgba(9, 15, 11, 0.95));
    box-shadow: 0 14px 30px rgba(2, 8, 4, 0.55);
    padding: 0.8rem 0.85rem;
}

.telemetry-sheet-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 0.5rem;
}

.telemetry-sheet h2 {
    margin: 0;
    font-size: 0.94rem;
}

.telemetry-close {
    border: 1px solid rgba(134, 188, 37, 0.35);
    border-radius: 6px;
    background: rgba(134, 188, 37, 0.1);
    color: #e3f2d0;
    font: inherit;
    font-size: 1rem;
    line-height: 1;
    width: 1.65rem;
    height: 1.65rem;
    cursor: pointer;
}

.telemetry-window {
    margin: 0.35rem 0 0.55rem;
    color: var(--muted);
    font-size: 0.74rem;
}

.telemetry-metrics {
    margin: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 0.6rem;
}

.telemetry-metrics div {
    border: 1px solid rgba(134, 188, 37, 0.2);
    border-radius: 8px;
    background: rgba(7, 12, 9, 0.78);
    padding: 0.45rem 0.5rem;
}

.telemetry-metrics dt {
    margin: 0;
    color: var(--muted);
    font-size: 0.68rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.telemetry-metrics dd {
    margin: 0.2rem 0 0;
    font-size: 0.96rem;
    font-weight: 700;
    color: #dff2c2;
}

.telemetry-note {
    margin: 0.55rem 0 0;
    color: var(--muted);
    font-size: 0.7rem;
    line-height: 1.45;
}

@media (max-width: 760px) {
    .telemetry-topbar {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    * {
        transition: none !important;
    }
}