:root {
    --atlas-ink: #eef8f6;
    --atlas-muted: #8ea8a8;
    --atlas-ground: #07131b;
    --atlas-panel: #10232d;
    --atlas-line: #35bd78;
    --atlas-branch: #38b8ce;
    --atlas-orange: #f08b4b;
    --atlas-border: rgba(147, 196, 191, .23);
}

[hidden] { display: none !important; }

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

.learn-main {
    overflow: hidden;
    background:
        linear-gradient(90deg, rgba(6, 116, 122, .035) 1px, transparent 1px),
        linear-gradient(rgba(6, 116, 122, .035) 1px, transparent 1px),
        #f5f9f8;
    background-size: 34px 34px;
}

.learn-kicker {
    margin: 0 0 12px;
    color: var(--teal);
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.learn-hero {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, .92fr) minmax(440px, 1.08fr);
    gap: 64px;
    min-height: 640px;
    align-items: center;
    padding: 76px max(24px, calc((100% - 1220px) / 2)) 82px;
    overflow: hidden;
    background: linear-gradient(118deg, rgba(255, 255, 255, .98) 0 48%, rgba(231, 244, 242, .92) 72%, rgba(218, 238, 236, .8) 100%);
    border-bottom: 1px solid #cddedf;
}

.learn-hero::before {
    content: "";
    position: absolute;
    top: -140px;
    right: -120px;
    width: 580px;
    height: 580px;
    border: 1px solid rgba(6, 116, 122, .12);
    border-radius: 50%;
    box-shadow: 0 0 0 46px rgba(6, 116, 122, .035), 0 0 0 120px rgba(38, 120, 59, .025);
}

.learn-hero-copy { position: relative; z-index: 2; }

.learn-hero h1 {
    max-width: 720px;
    margin: 0;
    color: var(--navy);
    font-size: clamp(48px, 5.5vw, 78px);
    font-weight: 680;
    letter-spacing: -.06em;
    line-height: .98;
}

.learn-lede {
    max-width: 650px;
    margin: 25px 0 0;
    color: #526873;
    font-size: clamp(18px, 1.7vw, 21px);
    line-height: 1.62;
}

.learn-hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 18px 24px;
    align-items: center;
    margin-top: 31px;
}

.learn-text-link {
    color: var(--navy);
    font-size: 14px;
    font-weight: 720;
    text-underline-offset: 4px;
}

.learn-text-link:hover { color: var(--teal); }

.learn-stats { display: flex; margin: 42px 0 0; }

.learn-stats div {
    min-width: 118px;
    padding: 0 22px;
    border-left: 1px solid #bfd2d3;
}

.learn-stats div:first-child { padding-left: 0; border-left: 0; }

.learn-stats dt {
    color: var(--navy);
    font-size: 29px;
    font-weight: 720;
    letter-spacing: -.05em;
    line-height: 1;
}

.learn-stats dd {
    margin: 7px 0 0;
    color: #60757d;
    font-size: 12px;
    font-weight: 650;
    letter-spacing: .03em;
}

.hero-pathway {
    position: relative;
    z-index: 2;
    min-height: 470px;
    overflow: hidden;
    border: 1px solid #213d47;
    border-radius: 18px;
    background:
        radial-gradient(circle at 72% 70%, rgba(56, 184, 206, .11), transparent 27%),
        linear-gradient(rgba(147, 196, 191, .045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 196, 191, .045) 1px, transparent 1px),
        var(--atlas-ground);
    background-size: auto, 26px 26px, 26px 26px, auto;
    box-shadow: 0 32px 70px rgba(6, 42, 79, .2);
    transform: perspective(1300px) rotateY(-4deg) rotateX(1deg);
}

.hero-pathway::after {
    content: "";
    position: absolute;
    right: 22px;
    bottom: 24px;
    width: 155px;
    height: 96px;
    border: 1px solid rgba(56, 184, 206, .32);
    border-radius: 50%;
    box-shadow: inset 0 0 28px rgba(56, 184, 206, .07);
}

.hero-pathway-label {
    position: absolute;
    top: 19px;
    left: 21px;
    color: #789191;
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .15em;
}

.hero-pathway svg {
    position: absolute;
    inset: 34px 0 0;
    width: 100%;
    height: calc(100% - 34px);
}

.hero-pathway svg path { fill: none; stroke: var(--atlas-line); stroke-width: 2.2; }
.hero-pathway svg marker path { fill: var(--atlas-line); stroke: none; }

.hero-metabolite,
.hero-enzyme,
.hero-branch {
    position: absolute;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    border-radius: 6px;
    color: var(--atlas-ink);
    font-size: 12px;
    font-weight: 680;
}

.hero-metabolite {
    left: 50%;
    min-width: 114px;
    padding: 9px 12px;
    border: 1px solid rgba(230, 220, 192, .7);
    color: #f4ecd7;
    transform: translateX(-50%);
}

.hero-enzyme {
    left: 50%;
    width: 220px;
    padding: 12px 13px;
    border: 1px solid rgba(53, 189, 120, .62);
    background: rgba(16, 35, 45, .96);
    transform: translateX(-50%);
}

.hero-enzyme b { color: var(--atlas-line); font-size: 10px; letter-spacing: .1em; }

.hero-branch {
    padding: 10px 12px;
    border: 1px dashed rgba(56, 184, 206, .58);
    color: #95e3ed;
    background: rgba(8, 31, 42, .88);
}

.hero-glucose { top: 44px; }
.hero-hk { top: 112px; }
.hero-g6p { top: 205px; }
.hero-pgi { top: 276px; }
.hero-pyruvate { top: 366px; }
.hero-ppp { top: 204px; right: 22px; }
.hero-tca { right: 45px; bottom: 104px; }
.hero-etc { right: 72px; bottom: 42px; }

.learn-guide {
    display: grid;
    grid-template-columns: minmax(260px, .75fr) minmax(0, 1.45fr);
    gap: 55px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 78px 24px 72px;
}

.learn-guide h2,
.atlas-heading h2,
.start-heading h2,
.library-note h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(32px, 4vw, 48px);
    font-weight: 680;
    letter-spacing: -.05em;
    line-height: 1.08;
}

.learn-guide ol {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin: 0;
    padding: 0;
    border-top: 1px solid #bcd0d0;
    list-style: none;
}

.learn-guide li { padding: 23px 24px 0; border-left: 1px solid #d0dfdf; }
.learn-guide li:first-child { padding-left: 0; border-left: 0; }

.learn-guide li > span {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: var(--navy);
    color: var(--white);
    font-size: 12px;
    font-weight: 750;
}

.learn-guide li p { margin: 15px 0 0; color: #60717a; font-size: 14px; line-height: 1.6; }
.learn-guide li strong { color: var(--navy); }

.atlas-section {
    padding: 76px max(18px, calc((100% - 1390px) / 2)) 92px;
    background: #edf5f3;
    border-top: 1px solid #cfdfdd;
    border-bottom: 1px solid #cfdfdd;
}

.atlas-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 42px;
    align-items: end;
    max-width: 1340px;
    margin: 0 auto 32px;
}

.atlas-heading > div:first-child { max-width: 840px; }
.atlas-heading h2 { font-size: clamp(38px, 4.3vw, 56px); }

.atlas-heading p:not(.learn-kicker) {
    max-width: 760px;
    margin: 17px 0 0;
    color: #5d7078;
    font-size: 16px;
    line-height: 1.65;
}

.atlas-legend {
    display: grid;
    gap: 9px;
    min-width: 180px;
    padding: 15px 17px;
    border: 1px solid #cbdcdb;
    border-radius: 9px;
    background: rgba(255, 255, 255, .68);
}

.atlas-legend span {
    display: flex;
    align-items: center;
    gap: 9px;
    color: #536970;
    font-size: 11px;
    font-weight: 660;
}

.atlas-legend i { display: block; width: 18px; height: 12px; border-radius: 3px; }
.legend-video { border: 2px solid #21c57e; background: #12392f; box-shadow: 0 0 7px rgba(33, 197, 126, .42); }
.legend-reaction { border: 1px solid #8aa4a2; background: #172a32; }
.legend-layer { border: 1px dashed #55abc0; background: #e9f5f6; }
.atlas-legend .legend-rail { height: 0; border-top: 4px solid #b49bda; border-radius: 0; }
.atlas-legend .legend-path-shades { height: 4px; border-radius: 0; background: linear-gradient(90deg, #30a26c, #95e5bf); }
.atlas-legend .legend-junction {
    position: relative;
    height: 2px;
    border-radius: 0;
    background: #4bafa6;
}
.atlas-legend .legend-junction::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 6px;
    height: 6px;
    border: 1px solid #fff;
    border-radius: 50%;
    background: #4bafa6;
    transform: translate(-50%, -50%);
}
.atlas-legend .legend-crossing {
    background:
        linear-gradient(90deg, transparent 0 8px, #fff 8px 10px, transparent 10px),
        linear-gradient(#8d73bd, #8d73bd) center / 100% 2px no-repeat,
        linear-gradient(#4bafa6, #4bafa6) center / 2px 100% no-repeat;
}

.network-workspace {
    max-width: 1340px;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid #193541;
    border-radius: 16px;
    background: var(--atlas-ground);
    box-shadow: 0 27px 66px rgba(6, 42, 79, .2);
}

.network-topbar {
    position: relative;
    z-index: 30;
    display: grid;
    grid-template-columns: minmax(280px, .9fr) auto;
    gap: 18px;
    align-items: center;
    padding: 13px 15px;
    border-bottom: 1px solid rgba(147, 196, 191, .2);
    background: #10232d;
}

.lesson-search { position: relative; display: block; }

.lesson-search input {
    width: 100%;
    min-height: 48px;
    padding: 11px 42px;
    border: 1px solid #36535b;
    border-radius: 8px;
    outline: 0;
    background: #091a23;
    color: #edf8f6;
    font-size: 14px;
    font-weight: 600;
}

.lesson-search input::placeholder { color: #779092; font-weight: 500; }
.lesson-search input:focus { border-color: #47c98b; box-shadow: 0 0 0 3px rgba(53, 189, 120, .13); }

.search-icon {
    position: absolute;
    top: 15px;
    left: 15px;
    z-index: 1;
    width: 15px;
    height: 15px;
    border: 2px solid #789393;
    border-radius: 50%;
    pointer-events: none;
}

.search-icon::after {
    content: "";
    position: absolute;
    right: -5px;
    bottom: -3px;
    width: 7px;
    height: 2px;
    background: #789393;
    transform: rotate(45deg);
}

.lesson-search kbd {
    position: absolute;
    top: 13px;
    right: 12px;
    padding: 2px 7px;
    border: 1px solid #375159;
    border-bottom-width: 2px;
    border-radius: 4px;
    color: #809697;
    background: #142832;
    font: 12px/1.3 "Instrument Sans", sans-serif;
}

.atlas-search-results {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 40;
    width: min(680px, calc(100vw - 32px));
    max-height: min(570px, calc(100vh - 112px));
    overflow-y: auto;
    padding: 7px;
    border: 1px solid #345864;
    border-radius: 10px;
    background: rgba(7, 23, 31, .985);
    box-shadow: 0 24px 58px rgba(0, 0, 0, .52), 0 0 0 1px rgba(83, 199, 163, .05) inset;
    scrollbar-width: thin;
    scrollbar-color: #3e6a70 transparent;
}

.atlas-search-results[hidden] { display: none; }

.atlas-search-hint,
.atlas-search-empty {
    margin: 0;
    padding: 16px 14px;
    color: #8ea7a7;
    font-size: 12px;
    line-height: 1.5;
}

.atlas-search-hint strong,
.atlas-search-empty strong { color: #e9f6f3; font-weight: 760; }

.atlas-search-group + .atlas-search-group {
    margin-top: 5px;
    padding-top: 5px;
    border-top: 1px solid rgba(139, 189, 186, .12);
}

.atlas-search-group-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 0;
    padding: 7px 9px 5px;
    color: #6f9697;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .13em;
    text-transform: uppercase;
}

.atlas-search-group-title span:last-child {
    color: #526f73;
    font-size: 9px;
    letter-spacing: .05em;
}

.atlas-search-option {
    --search-result-color: #64c99a;
    width: 100%;
    min-height: 56px;
    display: grid;
    grid-template-columns: 4px minmax(0, 1fr) auto;
    gap: 11px;
    align-items: center;
    padding: 8px 10px 8px 7px;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #dceceb;
    background: transparent;
    text-align: left;
    cursor: pointer;
}

.atlas-search-option::before {
    content: "";
    width: 4px;
    height: 32px;
    border-radius: 4px;
    background: var(--search-result-color);
    opacity: .74;
}

.atlas-search-option:hover,
.atlas-search-option.is-active {
    border-color: color-mix(in srgb, var(--search-result-color) 46%, #27434b);
    background: color-mix(in srgb, var(--search-result-color) 9%, #102731);
}

.atlas-search-option:focus-visible { outline: 2px solid #70d6a7; outline-offset: -2px; }

.atlas-search-option-copy { min-width: 0; display: grid; gap: 3px; }

.atlas-search-option-copy strong {
    overflow: hidden;
    color: #eff9f7;
    font-size: 12px;
    font-weight: 740;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlas-search-option-copy small {
    overflow: hidden;
    color: #87a2a2;
    font-size: 10px;
    line-height: 1.35;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.atlas-search-option-type {
    padding: 4px 6px;
    border: 1px solid rgba(150, 191, 188, .18);
    border-radius: 999px;
    color: #78999a;
    font-size: 8px;
    font-weight: 770;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.atlas-search-footer {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    margin-top: 6px;
    padding: 8px 9px 3px;
    border-top: 1px solid rgba(139, 189, 186, .12);
    color: #688487;
    font-size: 9px;
}

.atlas-search-footer kbd {
    position: static;
    display: inline-block;
    margin-right: 3px;
    padding: 1px 4px;
    font-size: 9px;
}

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

.map-action,
.map-actions output {
    min-width: 44px;
    min-height: 44px;
    display: inline-grid;
    place-items: center;
    border: 1px solid #3a5660;
    border-radius: 7px;
    color: #dbe9e7;
    background: #162b35;
    font: 700 16px/1 "Instrument Sans", sans-serif;
}

.map-action { cursor: pointer; transition: border-color .16s ease, background .16s ease, color .16s ease; }

.map-action:hover,
.map-action:focus-visible {
    border-color: #65c898;
    outline: 0;
    background: #1b3840;
    color: #8ce1b8;
}

.map-actions output {
    min-width: 64px;
    border-color: transparent;
    background: transparent;
    color: #90aaa9;
    font-size: 12px;
}

.map-action.map-action-text { min-width: 74px; padding: 0 13px; font-size: 11px; }

.fullscreen-action {
    min-width: 112px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.fullscreen-action svg {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: square;
    stroke-linejoin: miter;
}

.fullscreen-collapse-glyph { display: none; }
.fullscreen-action.is-active {
    border-color: #55d3a0;
    color: #9ce7c5;
    background: #183a3d;
    box-shadow: inset 0 -2px 0 #4dcc91;
}
.fullscreen-action.is-active .fullscreen-expand-glyph { display: none; }
.fullscreen-action.is-active .fullscreen-collapse-glyph { display: inline; }

.pathway-layer-bar {
    padding: 15px;
    border-bottom: 1px solid rgba(147, 196, 191, .18);
    background: #0b1b24;
}

.layer-bar-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 12px;
}

.layer-bar-heading > div:first-child { display: flex; align-items: baseline; gap: 12px; }

.layer-bar-heading p {
    margin: 0;
    color: #edf7f6;
    font-size: 12px;
    font-weight: 750;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.layer-bar-heading span { color: #789091; font-size: 11px; }
.layer-presets { display: flex; gap: 7px; }

.layer-presets button,
.network-footer button {
    min-height: 36px;
    padding: 7px 11px;
    border: 1px solid #38545b;
    border-radius: 6px;
    color: #9eb5b3;
    background: transparent;
    font: 680 10px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

.layer-presets button:hover,
.layer-presets button:focus-visible,
.network-footer button:hover,
.network-footer button:focus-visible {
    border-color: #62c894;
    outline: 0;
    color: #92e4bc;
    background: rgba(53, 189, 120, .08);
}

.study-preset-strip {
    display: grid;
    grid-template-columns: 188px minmax(0, 1fr);
    align-items: stretch;
    gap: 10px;
    margin-bottom: 12px;
    padding: 9px;
    border: 1px solid rgba(121, 191, 232, .18);
    border-radius: 9px;
    background: #08171f;
    box-shadow: inset 0 1px rgba(255, 255, 255, .025);
}

.study-preset-intro {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 2px 7px;
    border-right: 1px solid rgba(147, 196, 191, .13);
}

.study-preset-intro p {
    margin: 0 0 4px;
    color: #dcebea;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .09em;
    text-transform: uppercase;
}

.study-preset-intro span {
    color: #799494;
    font-size: 9.5px;
    line-height: 1.35;
}

.study-preset-intro span.is-custom { color: #e6c875; }

.study-preset-list {
    min-width: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(132px, 1fr));
    gap: 6px;
}

.study-preset {
    --preset-color: #79bfe8;
    min-width: 0;
    min-height: 48px;
    display: grid;
    grid-template-columns: 8px minmax(0, 1fr);
    align-items: center;
    gap: 8px;
    padding: 7px 9px;
    border: 1px solid #29434c;
    border-radius: 7px;
    color: #bdd0ce;
    background: #0d2029;
    text-align: left;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, box-shadow .16s ease;
}

.study-preset > i {
    width: 7px;
    height: 24px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--preset-color) 38%, #183039);
}

.study-preset > span { min-width: 0; display: grid; gap: 3px; }
.study-preset strong,
.study-preset small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.study-preset strong { font: 690 10px/1.1 "Instrument Sans", sans-serif; }
.study-preset small { color: #728b8b; font: 580 8.5px/1.15 "Instrument Sans", sans-serif; }

.study-preset:hover,
.study-preset:focus-visible {
    border-color: var(--preset-color);
    outline: 0;
    color: #f1f8f7;
    background: #142b34;
}

.study-preset.is-active {
    border-color: var(--preset-color);
    color: #f6fbfa;
    background: color-mix(in srgb, var(--preset-color) 12%, #10242d);
    box-shadow: inset 0 -2px 0 var(--preset-color);
}

.study-preset.is-active > i {
    background: var(--preset-color);
    box-shadow: 0 0 9px color-mix(in srgb, var(--preset-color) 72%, transparent);
}

.study-preset.is-active small { color: color-mix(in srgb, var(--preset-color) 68%, #dcebea); }

.pathway-toggles { display: flex; flex-wrap: wrap; gap: 7px; }

.pathway-toggle {
    --path-color: #799493;
    min-height: 39px;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 11px;
    border: 1px solid #314a53;
    border-radius: 7px;
    color: #8da3a3;
    background: #10242d;
    font: 650 10.5px/1.15 "Instrument Sans", sans-serif;
    cursor: pointer;
    transition: border-color .16s ease, background .16s ease, color .16s ease, opacity .16s ease;
}

.pathway-toggle i {
    width: 8px;
    height: 8px;
    flex: 0 0 8px;
    border: 1px solid var(--path-color);
    border-radius: 50%;
    background: transparent;
}

.pathway-toggle:hover,
.pathway-toggle:focus-visible { border-color: var(--path-color); outline: 0; color: #e1edeb; }

.pathway-toggle.is-on {
    border-color: var(--path-color);
    color: #f2f9f8;
    background: #17303a;
    box-shadow: inset 0 -2px 0 var(--path-color);
}

.pathway-toggle.is-on i { background: var(--path-color); box-shadow: 0 0 8px var(--path-color); }

.pathway-toggle.is-search-revealed:not(.is-on) {
    border-style: dashed;
    border-color: var(--path-color);
    color: #c7d8d6;
}

.network-subbar {
    min-height: 41px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 8px 16px;
    border-bottom: 1px solid rgba(147, 196, 191, .15);
    color: #789091;
    background: #0b1921;
}

.network-subbar p { margin: 0; font-size: 10.5px; line-height: 1.4; }
.map-state-summary { min-width: 0; display: flex; align-items: center; gap: 10px; }
.map-state-summary > p { min-width: 0; }
.semantic-zoom-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 24px;
    padding: 3px 8px;
    border: 1px solid #29434b;
    border-radius: 999px;
    color: #adc2bf;
    background: rgba(18, 43, 52, .76);
    font-size: 9px;
    font-weight: 740;
    letter-spacing: .06em;
    line-height: 1;
    text-transform: uppercase;
    white-space: nowrap;
}
.semantic-zoom-label i {
    width: 7px;
    height: 7px;
    border: 1px solid currentColor;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 8px currentColor;
}
.semantic-zoom-label[data-level="overview"] { color: #8dc8d7; }
.semantic-zoom-label[data-level="pathway"] { color: #8cddb3; }
.semantic-zoom-label[data-level="reaction"] { color: #ffe17b; }
.map-help { text-align: right; white-space: nowrap; }
.map-help span { margin-right: 5px; color: #4dcc91; }

.network-viewport {
    position: relative;
    height: 760px;
    overflow: hidden;
    outline: 0;
    background:
        radial-gradient(circle at 54% 52%, rgba(55, 182, 198, .05), transparent 34%),
        linear-gradient(rgba(147, 196, 191, .035) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 196, 191, .035) 1px, transparent 1px),
        #061018;
    background-size: auto, 34px 34px, 34px 34px, auto;
    cursor: grab;
    touch-action: none;
    user-select: none;
}

.network-viewport:active { cursor: grabbing; }
.network-viewport:focus-visible { box-shadow: inset 0 0 0 3px rgba(53, 189, 120, .5); }

.network-stage {
    min-width: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    background: #061018;
}

.network-stage > .network-viewport { min-width: 0; }

.network-world {
    position: absolute;
    top: 0;
    left: 0;
    width: 7800px;
    height: 6800px;
    transform-origin: 0 0;
    backface-visibility: hidden;
}

.network-viewport.is-map-interacting .network-world { will-change: transform; }
.is-viewport-culled { display: none !important; }

.network-viewport.is-map-interacting .network-world,
.network-viewport.is-map-interacting .network-node,
.network-viewport.is-map-interacting .edge-hit,
.network-viewport.is-map-interacting .highway-hit,
.network-viewport.is-map-interacting .trace-hit,
.network-viewport.is-map-interacting .trace-branch-hit,
.network-viewport.is-map-interacting .trace-group,
.network-viewport.is-map-interacting .edge-group,
.network-viewport.is-map-interacting .highway-group { pointer-events: none !important; }
.network-viewport.is-map-interacting .network-node,
.network-viewport.is-map-interacting .network-group,
.network-viewport.is-map-interacting .network-label,
.network-viewport.is-map-interacting .atlas-pathway-label {
    box-shadow: none !important;
    filter: none !important;
    transition: none !important;
}
.network-viewport.is-map-interacting .trace-trunk,
.network-viewport.is-map-interacting .trace-branch,
.network-viewport.is-map-interacting .edge-line,
.network-viewport.is-map-interacting .highway-line,
.network-viewport.is-map-interacting .node-preview {
    filter: none !important;
    transition: none !important;
}

.network-viewport.is-map-interacting .trace-branch,
.network-viewport.is-map-interacting .edge-line,
.network-viewport.is-map-interacting .highway-line {
    marker-start: none !important;
    marker-end: none !important;
}

.network-viewport.is-map-interacting .network-label,
.network-viewport.is-map-interacting .atlas-pathway-label,
.network-viewport.is-map-interacting .atlas-cell-title,
.network-viewport.is-map-interacting .atlas-compartment-label,
.network-viewport.is-map-interacting .atlas-mito-title,
.network-viewport.is-map-interacting .atlas-ims-title,
.network-viewport.is-map-interacting .atlas-mito-matrix > span,
.network-viewport.is-map-interacting .planned-callout { visibility: hidden !important; }

.network-viewport.is-map-zooming .trace-trunk,
.network-viewport.is-map-zooming .trace-branch,
.network-viewport.is-map-zooming .trace-context-trunk,
.network-viewport.is-map-zooming .edge-line,
.network-viewport.is-map-zooming .highway-line { vector-effect: none !important; }

.network-edges,
.atlas-compartments,
.network-groups,
.network-nodes,
.network-labels {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

.network-edges { z-index: 1; overflow: visible; pointer-events: none; }

.atlas-controls {
    position: relative;
    z-index: 12;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 10px 16px;
    border-bottom: 1px solid rgba(147, 196, 191, .15);
    background: #0d2028;
}

.atlas-focus { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.atlas-focus > span,
.atlas-trace-label,
.atlas-journey-label { color: #9bbab6; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; }
.atlas-focus button {
    padding: 7px 10px;
    border: 1px solid rgba(123, 184, 178, .28);
    border-radius: 6px;
    color: #d6e8e4;
    background: rgba(26, 57, 65, .8);
    font: inherit;
    font-size: 10px;
    cursor: pointer;
}
.atlas-focus button:hover,
.atlas-focus button:focus-visible { border-color: #72d5b0; background: #244d52; outline: 0; }
.atlas-mode-controls { display: flex; align-items: center; justify-content: flex-end; gap: 15px; }
.atlas-trace-label,
.atlas-journey-label { display: flex; align-items: center; gap: 9px; white-space: nowrap; }
.atlas-journey-label select {
    width: min(240px, 42vw);
    padding: 7px 24px 7px 9px;
    border: 1px solid #528d87;
    border-radius: 6px;
    color: #e9faf5;
    background: #17373d;
    font: inherit;
    font-size: 11px;
    text-transform: none;
}
.atlas-journey-label select { width: min(220px, 38vw); border-color: #b49bef; background: #272a47; }

.trace-combobox {
    position: relative;
    width: min(270px, 42vw);
    color: #e9faf5;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0;
    text-transform: none;
}

.trace-combobox-field {
    display: grid;
    grid-template-columns: 18px minmax(0, 1fr) 28px;
    align-items: center;
    min-height: 34px;
    border: 1px solid #528d87;
    border-radius: 7px;
    background: #17373d;
    box-shadow: inset 0 1px rgba(255, 255, 255, .035);
    transition: border-color 130ms ease, background 130ms ease, box-shadow 130ms ease;
}

.trace-combobox:hover .trace-combobox-field,
.trace-combobox.is-open .trace-combobox-field,
.trace-combobox:focus-within .trace-combobox-field {
    border-color: #72d5b0;
    background: #1a3e43;
    box-shadow: 0 0 0 2px rgba(114, 213, 176, .12), inset 0 1px rgba(255, 255, 255, .04);
}

.trace-search-icon {
    width: 14px;
    height: 14px;
    margin-left: 8px;
    fill: none;
    stroke: #76aaa3;
    stroke-width: 1.8;
    stroke-linecap: round;
}

#metabolite-trace-search {
    min-width: 0;
    height: 32px;
    padding: 0 6px;
    border: 0;
    outline: 0;
    color: #e9faf5;
    background: transparent;
    font: inherit;
}

#metabolite-trace-search::placeholder { color: #82a29f; font-weight: 550; }
#metabolite-trace-search::-webkit-search-cancel-button { filter: invert(1); opacity: .55; cursor: pointer; }

#metabolite-trace-toggle {
    display: grid;
    width: 28px;
    height: 28px;
    padding: 0;
    place-items: center;
    border: 0;
    border-left: 1px solid rgba(117, 177, 170, .18);
    color: #a8cbc6;
    background: transparent;
    font: 700 15px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

#metabolite-trace-toggle span { transform: translateY(-2px); transition: transform 130ms ease; }
.trace-combobox.is-open #metabolite-trace-toggle span { transform: translateY(1px) rotate(180deg); }
#metabolite-trace-toggle:focus-visible { outline: 2px solid #72d5b0; outline-offset: -3px; border-radius: 5px; }

.trace-combobox-list {
    position: absolute;
    z-index: 30;
    top: calc(100% + 6px);
    right: 0;
    width: min(330px, calc(100vw - 28px));
    max-height: 308px;
    overflow-y: auto;
    padding: 6px;
    border: 1px solid rgba(114, 213, 176, .52);
    border-radius: 9px;
    background: #102a31;
    box-shadow: 0 18px 38px rgba(0, 9, 15, .46), inset 0 1px rgba(255, 255, 255, .04);
    scrollbar-color: #4f8e88 #102a31;
    scrollbar-width: thin;
}

.trace-option {
    display: grid;
    grid-template-columns: 10px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    width: 100%;
    min-height: 36px;
    padding: 7px 9px;
    border: 0;
    border-radius: 6px;
    color: #dcefeb;
    background: transparent;
    font: 620 11px/1.25 "Instrument Sans", sans-serif;
    text-align: left;
    cursor: pointer;
}

.trace-option:hover,
.trace-option-row.is-active .trace-option { color: #fff; background: rgba(82, 141, 135, .24); }
.trace-option-row[aria-selected="true"] .trace-option { color: #9aefc9; background: rgba(56, 143, 119, .16); }
.trace-option-row[aria-selected="true"].is-active .trace-option { background: rgba(56, 143, 119, .28); }
.trace-option-swatch { width: 7px; height: 7px; border-radius: 50%; background: var(--trace-choice-color, #789b97); box-shadow: 0 0 0 2px rgba(255, 255, 255, .06); }
.trace-option-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.trace-option-check { color: #79ddb5; font-size: 12px; text-align: center; }
.trace-no-results { padding: 18px 14px; color: #91aeaa; font: 600 11px/1.45 "Instrument Sans", sans-serif; text-align: center; }

.atlas-compartments { z-index: 0; pointer-events: none; }
.atlas-cell,
.atlas-blood { position: absolute; box-sizing: border-box; }
.atlas-cell {
    --membrane-head: rgba(86, 187, 161, .68);
    --membrane-core: rgba(74, 167, 146, .075);
    border: 0;
    border-radius: 260px;
    background: radial-gradient(ellipse at 35% 45%, rgba(45, 135, 125, .11), rgba(13, 48, 52, .09) 65%, rgba(22, 100, 102, .16));
    box-shadow: 0 0 0 25px var(--membrane-core), inset 0 0 0 25px var(--membrane-core), inset 0 0 95px rgba(58, 175, 141, .065);
}
.atlas-cell::before,
.atlas-cell::after,
.atlas-mito-outer::before,
.atlas-mito-outer::after,
.atlas-mito-matrix::before,
.atlas-mito-matrix::after {
    content: "";
    position: absolute;
    pointer-events: none;
    box-sizing: border-box;
    border: 7px dashed var(--membrane-head);
    border-radius: inherit;
    filter: drop-shadow(0 0 5px color-mix(in srgb, var(--membrane-head) 32%, transparent));
    z-index: 0;
}
.atlas-cell::before,
.atlas-mito-outer::before,
.atlas-mito-matrix::before { inset: -22px; }
.atlas-cell::after,
.atlas-mito-outer::after,
.atlas-mito-matrix::after { inset: 22px; }
.atlas-cell-liver {
    --membrane-head: rgba(225, 158, 90, .68);
    --membrane-core: rgba(205, 130, 70, .07);
    background: radial-gradient(ellipse at 35% 45%, rgba(131, 88, 49, .12), rgba(55, 36, 30, .08) 65%, rgba(160, 100, 58, .14));
}
.atlas-cell-rbc {
    --membrane-head: rgba(222, 112, 126, .72);
    --membrane-core: rgba(196, 77, 99, .075);
    border-radius: 48% / 45%;
    background: radial-gradient(ellipse at 50% 50%, rgba(128, 47, 60, .15), rgba(67, 32, 48, .07));
}
.atlas-cell-title {
    position: absolute; top: 45px; left: 95px;
    color: #d7f6e9; font-size: 88px; font-weight: 760; letter-spacing: -.035em;
    z-index: 1;
}
.atlas-cell-liver .atlas-cell-title { color: #f6e2c4; }
.atlas-cell-rbc .atlas-cell-title { color: #f5d9df; }
.atlas-cytosol-title { position: absolute; top: 190px; left: 110px; color: #8dc5ba; font-size: 38px; font-weight: 700; letter-spacing: .13em; text-transform: uppercase; z-index: 1; }
.atlas-plasma-title { position: absolute; top: 325px; right: -24px; color: #b1c9c4; font-size: 15px; font-weight: 750; letter-spacing: .15em; text-transform: uppercase; writing-mode: vertical-rl; z-index: 1; }
.atlas-cell-liver .atlas-plasma-title,
.atlas-cell-rbc .atlas-plasma-title { right: auto; left: -24px; transform: rotate(180deg); }
.atlas-rbc-note { position: absolute; top: 192px; right: 220px; color: #dba8b4; font-size: 20px; letter-spacing: .03em; }
.atlas-blood {
    border-left: 8px solid rgba(226, 100, 119, .56);
    border-right: 8px solid rgba(226, 100, 119, .56);
    border-radius: 140px;
    background: linear-gradient(90deg, rgba(120, 38, 62, .2), rgba(123, 43, 65, .35), rgba(120, 38, 62, .2));
    box-shadow: 0 0 0 20px rgba(175, 67, 87, .035);
}
.atlas-blood > span { position: absolute; top: 110px; left: 38px; color: #f5c5cd; font-size: 62px; font-weight: 750; white-space: nowrap; transform: rotate(90deg) translateX(100%); transform-origin: left top; }
.atlas-blood > small { position: absolute; top: 400px; left: 80px; color: #ca8f9a; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; writing-mode: vertical-rl; }
.atlas-mito-outer {
    --membrane-head: rgba(100, 197, 217, .72);
    --membrane-core: rgba(72, 171, 195, .075);
    position: absolute; left: 1450px; top: 380px; width: 1800px; height: 3510px;
    border: 0; border-radius: 240px;
    background: rgba(23, 87, 107, .075);
    box-shadow: 0 0 0 25px var(--membrane-core), inset 0 0 0 25px var(--membrane-core);
}
.atlas-mito-title { position: absolute; top: 52px; left: 140px; color: #b5e2ed; font-size: 68px; font-weight: 730; z-index: 1; }
.atlas-ims-title { position: absolute; top: 122px; left: 130px; color: #84b8c4; font-size: 17px; letter-spacing: .12em; text-transform: uppercase; z-index: 1; }
.atlas-mito-matrix {
    --membrane-head: rgba(126, 222, 235, .78);
    --membrane-core: rgba(76, 166, 188, .08);
    position: absolute; top: 170px; left: 280px; width: 1420px; height: 3160px;
    border: 0; border-radius: 180px;
    background: radial-gradient(ellipse at 50% 46%, rgba(46, 113, 135, .16), rgba(34, 82, 104, .05));
    box-shadow: 0 0 0 25px var(--membrane-core), inset 0 0 0 25px var(--membrane-core);
}
.atlas-mito-matrix > span { position: absolute; top: 102px; left: 180px; color: #a9dae2; font-size: 19px; letter-spacing: .12em; text-transform: uppercase; z-index: 1; }
.atlas-pathway-label { box-shadow: 0 2px 18px rgba(0, 0, 0, .72); }
.network-node.is-pool { border-style: double; border-width: 3px; background: #35212e; }
.network-node.is-pool .node-context::before { content: "POOL  "; }
.network-node.is-unmapped { border-style: dashed; }
.network-node.is-bridge { border-style: dotted; }
.network-node.is-inner-membrane {
    width: 180px;
    min-height: 56px;
    padding: 5px 30px 5px 9px;
    border-radius: 7px;
    border-color: color-mix(in srgb, var(--path-color) 82%, #a9eef1);
    box-shadow: 0 -3px 0 rgba(93, 205, 221, .2), 0 3px 0 rgba(93, 205, 221, .2), 0 8px 20px rgba(0, 0, 0, .28);
}
.network-node.is-inner-membrane.has-video {
    width: 220px;
    padding-right: 76px;
}
.network-node.is-inner-membrane .node-pathway,
.network-node.is-inner-membrane small,
.network-node.is-inner-membrane .node-context { font-size: 6.8px; }
.network-node.is-inner-membrane strong { font-size: 10px; }
.network-node.is-inner-membrane .node-preview { width: 66px; }
.network-node.is-inner-membrane.has-video .node-play { right: 20px; }
.network-node.is-inner-membrane::before,
.network-node.is-inner-membrane::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 8px;
    height: 16px;
    transform: translateY(-50%);
    border-top: 2px solid #79d4df;
    border-bottom: 2px solid #79d4df;
    opacity: .76;
}
.network-node.is-inner-membrane::before { left: -9px; }
.network-node.is-inner-membrane::after { right: -9px; }
.network-node.is-outer-membrane { border-style: double; border-width: 3px; }
.network-world.is-tracing .edge-group { opacity: .12; }
.network-world.is-all-cables .edge-group { display: none; }
.network-world.is-all-cables .edge-group.is-local-pathway-edge {
    display: inline;
    opacity: .9;
    pointer-events: auto;
}
.network-world.is-all-cables .edge-group.is-local-pathway-edge.is-muted-edge {
    opacity: .07;
    pointer-events: none;
}
.network-world.is-all-cables .edge-group.is-local-pathway-edge .edge-line {
    stroke-width: var(--cable-branch-width, 1px);
    opacity: .92;
}
.network-world.is-all-cables .highway-group { display: none; }
.trace-trunk,
.trace-branch,
.trace-context-trunk { fill: none; stroke: var(--trace-color); stroke-linecap: square; stroke-linejoin: miter; vector-effect: non-scaling-stroke; }
.trace-trunk { stroke-width: 2.2; opacity: .9; }
.trace-branch { stroke-width: 1.2; opacity: .85; }
.trace-context-trunk { stroke: #819391; stroke-width: .7; opacity: .14; }
.trace-branch.is-context-branch { stroke: #819391; stroke-width: .7; opacity: .14; }
.is-muted-cable .trace-hub { display: none; }
.is-muted-cable .trace-hit { pointer-events: none; }
.is-bundle-cable .trace-trunk { stroke-width: var(--cable-trunk-width, .8px); opacity: .8; }
.is-bundle-cable .trace-branch { stroke-width: var(--cable-branch-width, .6px); opacity: .78; }
.is-bundle-cable .trace-hub { opacity: .55; }
.trace-hub { fill: var(--trace-color); stroke: #0a2029; stroke-width: 1; vector-effect: non-scaling-stroke; }
.trace-junction {
    fill: var(--trace-color);
    stroke: #07161d;
    stroke-width: 1.2;
    vector-effect: non-scaling-stroke;
    opacity: .58;
    pointer-events: none;
}
.trace-group:hover .trace-junction,
.trace-group.is-selected .trace-junction,
.trace-group.is-candidate-preview .trace-junction,
.trace-group:focus-visible .trace-junction { opacity: 1; stroke: #eafffb; }
.trace-branch-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 7px;
    vector-effect: non-scaling-stroke;
    pointer-events: stroke;
    cursor: pointer;
}
.trace-hit { fill: transparent; pointer-events: all; cursor: pointer; }
.trace-group:hover .trace-trunk,
.trace-group.is-selected .trace-trunk,
.trace-group.is-candidate-preview .trace-trunk,
.trace-group:focus-visible .trace-trunk { stroke-width: 4; filter: drop-shadow(0 0 3px var(--trace-color)); }
.is-bundle-cable:hover .trace-trunk,
.is-bundle-cable.is-selected .trace-trunk,
.is-bundle-cable.is-candidate-preview .trace-trunk,
.is-bundle-cable:focus-visible .trace-trunk { stroke-width: 2.4; }
.is-bundle-cable:hover .trace-branch,
.is-bundle-cable.is-selected .trace-branch,
.is-bundle-cable.is-candidate-preview .trace-branch,
.is-bundle-cable:focus-visible .trace-branch {
    stroke-width: 1.5;
    opacity: 1;
    filter: drop-shadow(0 0 3px var(--trace-color));
}
.is-bundle-cable .trace-branch.is-context-branch,
.is-bundle-cable:hover .trace-branch.is-context-branch,
.is-bundle-cable.is-selected .trace-branch.is-context-branch,
.is-bundle-cable.is-candidate-preview .trace-branch.is-context-branch,
.is-bundle-cable:focus-visible .trace-branch.is-context-branch { stroke-width: .7; opacity: .14; }
.is-bundle-cable:hover .trace-trunk,
.is-bundle-cable.is-selected .trace-trunk,
.is-bundle-cable.is-candidate-preview .trace-trunk,
.is-bundle-cable:focus-visible .trace-trunk { opacity: 1; }
.trace-group:focus-visible { outline: none; }
.stoich-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 12px 0; }
.stoich-columns strong { color: #a7e0d1; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; }
.stoich-columns ul { margin-top: 7px; padding-left: 18px; }
.source-note { font-size: 11px; opacity: .7; }

.network-edges .edge-line {
    fill: none;
    stroke: var(--edge-color, #6d9391);
    stroke-width: 2;
    opacity: .8;
    vector-effect: non-scaling-stroke;
    transition: opacity .15s ease, stroke-width .15s ease;
}

.edge-group.is-hidden-edge { display: none; }
.edge-group.is-muted-edge { opacity: .07; pointer-events: none; }
.edge-group.is-search-dim { opacity: .1; }
.highway-group.is-hidden-edge { display: none; }
.highway-group.is-muted-edge { opacity: .07; pointer-events: none; }
.highway-group.is-search-dim { opacity: .16; }

.network-edges .highway-line {
    fill: none;
    stroke: var(--edge-color, #91c8c3);
    stroke-linecap: square;
    stroke-linejoin: miter;
    vector-effect: non-scaling-stroke;
    opacity: .9;
}

.network-edges .highway-trunk { stroke-width: 4; }
.network-edges .highway-branch { stroke-width: 2.6; }

.highway-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 19;
    pointer-events: stroke;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.highway-group:hover .highway-line,
.highway-group.is-selected .highway-line,
.highway-group.is-candidate-preview .highway-line,
.highway-group:focus-visible .highway-line { opacity: 1; filter: drop-shadow(0 0 4px var(--edge-color, #91c8c3)); }

.edge-hit {
    fill: none;
    stroke: transparent;
    stroke-width: 20;
    pointer-events: stroke;
    cursor: pointer;
    vector-effect: non-scaling-stroke;
}

.edge-group:hover .edge-line,
.edge-group.is-selected .edge-line,
.edge-group.is-candidate-preview .edge-line {
    stroke-width: 3.5;
    opacity: 1;
}

.network-world.is-all-cables .edge-group.is-local-pathway-edge:hover .edge-line,
.network-world.is-all-cables .edge-group.is-local-pathway-edge.is-selected .edge-line,
.network-world.is-all-cables .edge-group.is-local-pathway-edge:focus-visible .edge-line {
    stroke-width: 3.5;
    opacity: 1;
    filter: drop-shadow(0 0 4px var(--edge-color, #6d9391));
}

.edge-group:focus-visible {
    outline: none;
}

.edge-group:focus-visible .edge-line {
    stroke: var(--edge-color, #6d9391);
    stroke-width: 4;
    opacity: 1;
}

.network-groups { z-index: 0; pointer-events: none; }

.network-group {
    position: absolute;
    border: 1px dashed var(--path-color, #557879);
    border-radius: 18px;
    background: rgba(12, 32, 41, .42);
    box-shadow: inset 0 0 60px rgba(8, 24, 32, .22);
    opacity: .62;
}

.network-labels { z-index: 3; pointer-events: none; }

.network-label {
    position: absolute;
    padding: 5px 8px;
    border-left: 3px solid var(--path-color, #557879);
    border-radius: 2px;
    color: #d5e5e2;
    background: #091c25;
    box-shadow: 0 2px 12px rgba(0, 0, 0, .3);
    font-size: 10px;
    font-weight: 750;
    letter-spacing: .12em;
    line-height: 1.3;
    text-transform: uppercase;
}

.network-nodes { z-index: 2; pointer-events: none; }

.network-node {
    --path-color: #779797;
    position: absolute;
    pointer-events: auto;
    width: 240px;
    min-height: 64px;
    display: grid;
    align-content: center;
    gap: 2px;
    padding: 7px 36px 7px 11px;
    border: 1px solid var(--path-color);
    border-radius: 8px;
    color: #ecf6f4;
    background: linear-gradient(145deg, rgba(21, 46, 55, .98), rgba(10, 27, 35, .98));
    box-shadow: 0 9px 20px rgba(0, 0, 0, .25);
    text-align: left;
    cursor: pointer;
    transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease, border-color .15s ease;
}

.node-overview-mark { display: none; }

/* Semantic zoom keeps every card interactive while changing its visual hierarchy. */
.network-world.is-semantic-pathway .network-node {
    padding-right: 36px;
    background: linear-gradient(145deg, rgba(20, 47, 55, .98), rgba(9, 27, 35, .98));
}
.network-world.is-semantic-pathway .network-node.has-video { padding-right: 36px; }
.network-world.is-semantic-pathway .network-node small,
.network-world.is-semantic-pathway .network-node .node-context,
.network-world.is-semantic-pathway .network-node .node-preview { display: none; }
.network-world.is-semantic-pathway .network-node .node-pathway { font-size: 10px; }
.network-world.is-semantic-pathway .network-node strong { font-size: 15px; }
.network-world.is-semantic-pathway .network-node.has-video .node-play {
    top: 50%;
    right: 9px;
    width: 22px;
    height: 22px;
}

.network-world.is-semantic-overview .network-node {
    padding: 0;
    border-width: 2px;
    background: color-mix(in srgb, var(--path-color) 16%, #0a1b23 84%);
    box-shadow: 0 4px 10px rgba(0, 0, 0, .2), inset 0 0 0 1px color-mix(in srgb, var(--path-color) 28%, transparent);
}
.network-world.is-semantic-overview .network-node > .node-pathway,
.network-world.is-semantic-overview .network-node > strong,
.network-world.is-semantic-overview .network-node > small,
.network-world.is-semantic-overview .network-node > .node-context,
.network-world.is-semantic-overview .network-node > .node-preview,
.network-world.is-semantic-overview .network-node > .node-play,
.network-world.is-semantic-overview .network-node > .node-planned { display: none; }
.network-world.is-semantic-overview .node-overview-mark {
    position: absolute;
    inset: 0;
    display: grid;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    padding: 0 14px;
    overflow: hidden;
}
.network-world.is-semantic-overview .node-overview-mark::before {
    content: "";
    position: absolute;
    left: 14px;
    right: 14px;
    top: 50%;
    height: 3px;
    background: color-mix(in srgb, var(--path-color) 64%, transparent);
    transform: translateY(-50%);
}
.network-world.is-semantic-overview .node-overview-mark i {
    position: relative;
    z-index: 1;
    width: 15px;
    height: 15px;
    border: 3px solid #0a1b23;
    border-radius: 50%;
    background: var(--path-color);
    box-shadow: 0 0 0 2px var(--path-color), 0 0 10px color-mix(in srgb, var(--path-color) 60%, transparent);
}
.network-world.is-semantic-overview .node-overview-mark b {
    position: relative;
    z-index: 1;
    overflow: hidden;
    padding: 3px 5px;
    color: #edf7f5;
    background: color-mix(in srgb, #071820 86%, transparent);
    font-size: 14px;
    font-weight: 730;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.network-world.is-semantic-overview .network-node.has-video .node-overview-mark::after {
    content: "▶";
    position: absolute;
    z-index: 2;
    right: 12px;
    top: 50%;
    color: #effff9;
    font-size: 15px;
    line-height: 1;
    transform: translateY(-50%);
}
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) {
    display: grid;
    align-content: center;
    gap: 3px;
    padding: 7px 36px 7px 11px;
}
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) .node-overview-mark { display: none; }
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) > .node-pathway,
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) > strong { display: block; }
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) > .node-pathway { font-size: 10px; }
.network-world.is-semantic-overview .network-node:is(.is-search-match, .is-journey-current) > strong { font-size: 15px; }

.network-world.is-semantic-overview .atlas-pathway-label {
    padding: 12px 18px;
    border-left-width: 8px;
    font-size: 44px;
    letter-spacing: .08em;
    box-shadow: 0 5px 24px rgba(0, 0, 0, .62);
}
.network-world.is-semantic-overview .trace-branch:not(.is-context-branch) { opacity: .22; }
.network-world.is-semantic-overview .trace-trunk { opacity: .58; }
.network-world.is-semantic-overview .edge-group.is-local-pathway-edge .edge-line { opacity: .48; }
.network-world.is-semantic-overview :is(.trace-group, .edge-group, .highway-group):is(.is-selected, .is-candidate-preview) :is(.trace-trunk, .trace-branch, .edge-line, .highway-line) { opacity: 1; }

.network-node:hover,
.network-node:focus-visible {
    z-index: 4;
    outline: 0;
    transform: translateY(-3px);
    box-shadow: 0 14px 25px rgba(0, 0, 0, .36), 0 0 0 2px var(--path-color);
}

.network-node .node-pathway {
    overflow: hidden;
    color: var(--path-color);
    font-size: 7.5px;
    font-weight: 780;
    letter-spacing: .11em;
    line-height: 1.15;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
}

.network-node strong {
    overflow: hidden;
    color: #f0f7f6;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: -.015em;
    line-height: 1.18;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.network-node small {
    overflow: hidden;
    color: #8fa6a5;
    font-size: 7.5px;
    font-weight: 580;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-context {
    overflow: hidden;
    color: #a8bcba;
    font-size: 7.5px;
    font-weight: 610;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-context::before {
    content: "FOCUS  ";
    color: var(--path-color);
    font-size: 6.5px;
    font-weight: 780;
    letter-spacing: .06em;
}

.network-node.has-video {
    width: 280px;
    padding-right: 98px;
    overflow: hidden;
    border-width: 2px;
    background: linear-gradient(145deg, rgba(22, 57, 52, .99), rgba(9, 31, 34, .99));
    box-shadow: 0 10px 23px rgba(0, 0, 0, .3), 0 0 17px color-mix(in srgb, var(--path-color) 28%, transparent);
}

.node-preview {
    position: absolute;
    top: 0;
    right: 0;
    width: 86px;
    height: 100%;
    object-fit: cover;
    border-left: 1px solid color-mix(in srgb, var(--path-color) 52%, transparent);
    filter: saturate(.9) contrast(1.05);
    opacity: .78;
}

.node-play {
    position: absolute;
    top: 9px;
    right: 10px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 1px solid var(--path-color);
    border-radius: 50%;
    color: #eafff5;
    background: rgba(8, 22, 28, .84);
}

.network-node.has-video .node-play {
    top: 50%;
    right: 30px;
    width: 27px;
    height: 27px;
    border-color: rgba(255, 255, 255, .76);
    background: rgba(5, 18, 24, .82);
    transform: translateY(-50%);
}

.node-play svg { width: 15px; height: 15px; fill: currentColor; }

.node-planned {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 13px;
    height: 13px;
    border: 1px dashed var(--path-color);
    border-radius: 3px;
    overflow: hidden;
    color: transparent;
    font-size: 0;
    opacity: .62;
}

.network-node.is-search-match {
    z-index: 5;
    border-color: #fff4a6;
    box-shadow: 0 0 0 3px rgba(255, 229, 95, .22), 0 14px 25px rgba(0, 0, 0, .36);
}

.network-node.is-search-dim { opacity: .14; }
.network-node.is-pathway-muted { opacity: .23; filter: grayscale(1); pointer-events: none; box-shadow: none; }
.atlas-pathway-label.is-pathway-muted { opacity: .23; filter: grayscale(1); }

.network-world.is-route-focused .trace-group:not(.is-selected),
.network-world.is-route-focused .edge-group:not(.is-selected),
.network-world.is-route-focused .highway-group:not(.is-selected) { opacity: .035 !important; }
.network-world.is-route-focused .network-node:not(.is-trace-connected) { opacity: .11; filter: grayscale(.72); }
.network-world.is-route-focused .network-node.is-trace-connected {
    z-index: 5;
    opacity: 1;
    filter: none;
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--path-color) 66%, white 15%), 0 12px 24px rgba(0, 0, 0, .36);
}
@keyframes trace-node-confirm {
    0%, 100% { box-shadow: 0 0 0 2px color-mix(in srgb, var(--path-color) 66%, white 15%), 0 12px 24px rgba(0, 0, 0, .36); }
    45% { box-shadow: 0 0 0 7px rgba(255, 241, 144, .28), 0 0 30px color-mix(in srgb, var(--path-color) 55%, transparent); }
}
.network-node.is-trace-pulse { animation: trace-node-confirm .78s ease-out; }
.trace-role-badge,
.journey-step-badge {
    position: absolute;
    z-index: 9;
    min-width: 25px;
    height: 18px;
    display: grid;
    place-items: center;
    padding: 0 5px;
    border: 1px solid #dffbf3;
    border-radius: 9px;
    color: #071b21;
    background: #8de4bd;
    box-shadow: 0 4px 10px rgba(0, 0, 0, .32);
    font: 800 7px/1 "Instrument Sans", sans-serif;
    letter-spacing: .05em;
    pointer-events: none;
}
.trace-role-badge { top: -10px; left: 8px; }

.network-world.is-journey-active .network-node:not(.is-journey-node) { opacity: .12; filter: grayscale(.75); }
.network-world.is-journey-active .network-node.is-journey-node { opacity: .68; filter: none; }
.network-world.is-journey-active .network-node.is-journey-current {
    z-index: 7;
    opacity: 1;
    border-color: #fff3a0;
    box-shadow: 0 0 0 4px rgba(255, 226, 87, .18), 0 0 24px rgba(255, 226, 87, .34), 0 14px 26px rgba(0, 0, 0, .42);
}
.journey-step-badge {
    top: -11px;
    left: -9px;
    min-width: 20px;
    padding: 0 4px;
    border-color: #fff5ae;
    color: #241d02;
    background: #ffe567;
}

.map-crosshair {
    position: absolute;
    right: 17px;
    bottom: 16px;
    width: 28px;
    height: 28px;
    border-right: 1px solid rgba(113, 157, 156, .48);
    border-bottom: 1px solid rgba(113, 157, 156, .48);
    pointer-events: none;
}

.map-crosshair::before,
.map-crosshair::after {
    content: "";
    position: absolute;
    right: -1px;
    bottom: -1px;
    background: #4f7778;
}

.map-crosshair::before { width: 14px; height: 1px; }
.map-crosshair::after { width: 1px; height: 14px; }

.journey-panel {
    --journey-color: #ffe567;
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 13;
    width: min(320px, calc(100% - 36px));
    padding: 17px 18px 16px;
    border: 1px solid color-mix(in srgb, var(--journey-color) 75%, #fff 10%);
    border-radius: 10px;
    color: #edf7f5;
    background: rgba(9, 27, 35, .97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .42), inset 3px 0 0 var(--journey-color);
    cursor: default;
    pointer-events: auto;
    user-select: text;
}
.journey-panel > p:first-of-type {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    margin: 0 34px 5px 0;
    color: var(--journey-color);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
}
.journey-panel h3 { margin: 0; color: #f8fbf9; font-size: 18px; line-height: 1.15; }
.journey-panel h4 { margin: 15px 0 4px; color: #fff2a0; font-size: 12px; }
.journey-panel > p:last-of-type { margin: 0; color: #a8bfbd; font-size: 10px; line-height: 1.5; }
.journey-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 30px;
    height: 30px;
    border: 1px solid rgba(255, 235, 132, .32);
    border-radius: 50%;
    color: #d8dfd9;
    background: transparent;
    font: 20px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}
.journey-close:hover,
.journey-close:focus-visible { border-color: var(--journey-color); outline: 0; color: #fff; }
.journey-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7px; margin-top: 14px; }
.journey-actions button {
    min-height: 35px;
    padding: 7px 9px;
    border: 1px solid rgba(255, 235, 132, .3);
    border-radius: 6px;
    color: #e8eee9;
    background: rgba(255, 229, 103, .06);
    font: 700 9px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}
.journey-actions button:hover,
.journey-actions button:focus-visible { border-color: var(--journey-color); outline: 0; color: #fff4a7; background: rgba(255, 229, 103, .12); }
.journey-actions button:disabled { opacity: .35; cursor: default; }

.atlas-minimap {
    position: absolute;
    left: 16px;
    bottom: 16px;
    z-index: 11;
    width: 190px;
    overflow: hidden;
    border: 1px solid rgba(111, 187, 184, .42);
    border-radius: 8px;
    color: #dcebea;
    background: rgba(7, 24, 31, .92);
    box-shadow: 0 12px 30px rgba(0, 0, 0, .35);
    cursor: default;
    pointer-events: auto;
    user-select: none;
}
.minimap-toggle {
    width: 100%;
    min-height: 31px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 6px 9px;
    border: 0;
    border-bottom: 1px solid rgba(111, 187, 184, .22);
    color: #a8cac6;
    background: rgba(18, 47, 55, .72);
    font: 760 8px/1 "Instrument Sans", sans-serif;
    letter-spacing: .1em;
    text-transform: uppercase;
    cursor: pointer;
}
.minimap-toggle:focus-visible { outline: 2px solid #61d4a1; outline-offset: -2px; }
.minimap-body { padding: 7px; }
.atlas-minimap.is-collapsed { width: 132px; }
.atlas-minimap.is-collapsed .minimap-toggle { border-bottom: 0; }
.atlas-minimap.is-collapsed .minimap-body { display: none; }
#minimap-map {
    width: 100%;
    height: 132px;
    display: block;
    border: 1px solid rgba(105, 165, 163, .18);
    border-radius: 5px;
    background: #06141b;
    cursor: crosshair;
    touch-action: none;
}
.minimap-cell { fill: rgba(49, 133, 116, .14); stroke: rgba(86, 192, 167, .62); stroke-width: 18; }
.minimap-cell-liver { fill: rgba(79, 119, 138, .13); stroke: rgba(91, 160, 192, .62); }
.minimap-cell-rbc { fill: rgba(143, 76, 100, .16); stroke: rgba(198, 104, 135, .7); }
.minimap-blood { fill: rgba(155, 68, 95, .2); stroke: rgba(226, 121, 151, .7); stroke-width: 16; }
.minimap-label { fill: #9cb6b4; font: 650 180px/1 "Instrument Sans", sans-serif; pointer-events: none; }
#minimap-route path { fill: none; stroke: var(--minimap-route-color, #ffe567); stroke-width: 25; opacity: .92; }
#minimap-viewport { fill: rgba(255, 240, 145, .045); stroke: #fff092; stroke-width: 1.5; vector-effect: non-scaling-stroke; pointer-events: none; }
.minimap-body > p { margin: 6px 1px 0; overflow: hidden; color: #789897; font-size: 8px; font-weight: 660; text-overflow: ellipsis; white-space: nowrap; }

.edge-popover {
    --edge-color: #4fc5da;
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 12;
    width: min(310px, calc(100% - 36px));
    padding: 17px 18px 16px;
    border: 1px solid var(--edge-color);
    border-radius: 10px;
    color: #eaf4f2;
    background: rgba(9, 27, 35, .97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .4), inset 3px 0 0 var(--edge-color);
    cursor: default;
    pointer-events: auto;
    user-select: text;
}

.edge-popover > p {
    margin: 0 34px 6px 0;
    color: var(--edge-color);
    font-size: 8px;
    font-weight: 780;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.edge-popover h3 {
    margin: 0;
    color: #f4faf8;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -.025em;
    line-height: 1.12;
}

.edge-popover dl {
    display: grid;
    gap: 9px;
    margin: 15px 0 0;
}

.edge-popover dl div {
    display: grid;
    grid-template-columns: 72px minmax(0, 1fr);
    gap: 9px;
    padding-top: 8px;
    border-top: 1px solid rgba(143, 181, 178, .16);
}

.edge-popover dt {
    color: #6f8989;
    font-size: 8px;
    font-weight: 740;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.edge-popover dd {
    margin: 0;
    color: #bfd0ce;
    font-size: 10px;
    font-weight: 620;
    line-height: 1.35;
}

.edge-popover > .edge-note {
    margin: 13px 0 0;
    padding-top: 10px;
    border-top: 1px solid rgba(143, 181, 178, .16);
    color: #a9bfbd;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0;
    line-height: 1.45;
    text-transform: none;
}

.trace-stop-section { margin-top: 13px; padding-top: 10px; border-top: 1px solid rgba(143, 181, 178, .16); }
.trace-stop-section > p { margin: 0 0 7px; color: #718d8b; font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.trace-stop-list { display: grid; gap: 5px; max-height: 190px; overflow-y: auto; padding-right: 2px; }
.trace-stop {
    width: 100%;
    min-height: 36px;
    display: grid;
    grid-template-columns: 43px minmax(0, 1fr) 13px;
    align-items: center;
    gap: 7px;
    padding: 6px 7px;
    border: 1px solid rgba(143, 181, 178, .14);
    border-radius: 5px;
    color: #dce9e7;
    background: rgba(255, 255, 255, .025);
    font-family: "Instrument Sans", sans-serif;
    text-align: left;
    cursor: pointer;
}
.trace-stop:hover,
.trace-stop:focus-visible { border-color: var(--edge-color); outline: 0; background: color-mix(in srgb, var(--edge-color) 9%, transparent); }
.trace-stop > span:first-child { color: var(--edge-color); font-size: 7px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.trace-stop strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.trace-stop > span:last-child { color: var(--edge-color); font-size: 12px; }

.edge-popover.is-candidate-mode { width: min(370px, calc(100% - 36px)); }

.cable-candidate-picker { margin-top: 14px; }

.cable-candidate-picker > p {
    margin: 0 0 10px;
    color: #a9bfbd;
    font-size: 10px;
    line-height: 1.45;
}

.cable-candidate-list {
    display: grid;
    gap: 6px;
    max-height: min(360px, 48vh);
    padding-right: 3px;
    overflow-y: auto;
    scrollbar-color: rgba(121, 215, 223, .55) rgba(255, 255, 255, .05);
}

.cable-candidate {
    --choice-color: #79d7df;
    width: 100%;
    display: grid;
    grid-template-columns: 17px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    min-height: 48px;
    padding: 8px 9px;
    border: 1px solid rgba(143, 181, 178, .15);
    border-radius: 7px;
    color: #e8f4f2;
    background: rgba(255, 255, 255, .025);
    font-family: "Instrument Sans", sans-serif;
    text-align: left;
    cursor: pointer;
}

.cable-candidate:hover,
.cable-candidate:focus-visible {
    border-color: color-mix(in srgb, var(--choice-color) 75%, white 10%);
    outline: 0;
    background: color-mix(in srgb, var(--choice-color) 11%, transparent);
    box-shadow: inset 3px 0 0 var(--choice-color);
}

.cable-candidate-swatch {
    width: 15px;
    height: 3px;
    border-radius: 2px;
    background: var(--choice-color);
    box-shadow: 0 0 7px color-mix(in srgb, var(--choice-color) 55%, transparent);
}

.cable-candidate-copy { min-width: 0; display: grid; gap: 2px; }
.cable-candidate-copy strong { overflow: hidden; font-size: 11px; line-height: 1.2; text-overflow: ellipsis; white-space: nowrap; }
.cable-candidate-copy small { overflow: hidden; color: #819a98; font-size: 8px; line-height: 1.25; text-overflow: ellipsis; white-space: nowrap; }
.cable-candidate-arrow { color: var(--choice-color); font-size: 15px; text-align: center; }

.edge-close {
    position: absolute;
    top: 9px;
    right: 9px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(155, 191, 188, .24);
    border-radius: 50%;
    color: #b9ccca;
    background: transparent;
    font: 21px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

.edge-close:hover,
.edge-close:focus-visible {
    border-color: var(--edge-color);
    outline: 0;
    color: #fff;
}

.edge-popover.map-inspector {
    position: relative;
    top: auto;
    right: auto;
    z-index: 16;
    width: 356px;
    max-width: none;
    height: 760px;
    padding: 0;
    overflow-x: hidden;
    overflow-y: auto;
    border-width: 0 0 0 1px;
    border-radius: 0;
    background: #091820;
    box-shadow: inset 3px 0 0 color-mix(in srgb, var(--edge-color) 72%, transparent);
    scrollbar-color: #37545a #0b1a22;
    scrollbar-width: thin;
}

.map-inspector[hidden] { display: none; }

.inspector-topbar {
    position: sticky;
    top: 0;
    z-index: 4;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 10px 8px 18px;
    border-bottom: 1px solid rgba(143, 181, 178, .15);
    background: rgba(9, 24, 32, .97);
    backdrop-filter: blur(12px);
}

.inspector-topbar p {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: #9eb5b3;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.inspector-topbar i {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--edge-color);
    box-shadow: 0 0 10px color-mix(in srgb, var(--edge-color) 72%, transparent);
}

.inspector-topbar .edge-close {
    position: static;
    width: 32px;
    height: 32px;
    flex: 0 0 auto;
    font-size: 21px;
}

.metabolite-inspector-view,
.reaction-inspector-view { padding: 18px; }

.metabolite-inspector-view > #edge-pathway,
.reaction-inspector-kicker {
    margin: 0 0 7px;
    color: var(--edge-color);
    font-size: 9px;
    font-weight: 790;
    letter-spacing: .11em;
    text-transform: uppercase;
}

.reaction-inspector-view h3 {
    margin: 0;
    color: #f4faf8;
    font-size: 23px;
    font-weight: 720;
    letter-spacing: -.035em;
    line-height: 1.08;
}

.reaction-inspector-location {
    margin: 8px 0 0;
    color: #789391;
    font-size: 9px;
    font-weight: 680;
    letter-spacing: .06em;
    text-transform: uppercase;
}

.reaction-inspector-equation {
    margin: 15px 0 0;
    padding: 11px 12px;
    border: 1px solid color-mix(in srgb, var(--edge-color) 28%, transparent);
    border-radius: 7px;
    color: #d2e3e0;
    background: color-mix(in srgb, var(--edge-color) 7%, #0b1a22);
    font-size: 10px;
    font-weight: 650;
    line-height: 1.5;
}

.reaction-inspector-media {
    position: relative;
    aspect-ratio: 16 / 8.4;
    display: block;
    margin-top: 14px;
    overflow: hidden;
    border: 1px solid color-mix(in srgb, var(--edge-color) 38%, transparent);
    border-radius: 8px;
    color: #fff;
    background: #061018;
    text-decoration: none;
}

.reaction-inspector-media[hidden] { display: none; }
.reaction-inspector-media::after { content: ""; position: absolute; inset: 48% 0 0; background: linear-gradient(transparent, rgba(3, 12, 17, .92)); }
.reaction-inspector-media img { width: 100%; height: 100%; display: block; object-fit: cover; }
.reaction-inspector-media .play-mark { width: 38px; height: 38px; }
.reaction-inspector-media .play-mark svg { width: 20px; height: 20px; }
.reaction-inspector-media > span:last-child { position: absolute; right: 11px; bottom: 9px; z-index: 2; font-size: 9px; font-weight: 760; letter-spacing: .06em; text-transform: uppercase; }

.reaction-inspector-summary {
    margin: 15px 0 0;
    color: #a9bfbd;
    font-size: 11px;
    line-height: 1.58;
}

.reaction-inspector-stoich {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
    margin-top: 17px;
}

.reaction-inspector-stoich > div {
    min-width: 0;
    padding: 11px;
    border: 1px solid rgba(143, 181, 178, .14);
    border-radius: 7px;
    background: rgba(143, 181, 178, .035);
}

.reaction-inspector-stoich strong,
.reaction-inspector-connected > p {
    color: #829c9a;
    font-size: 8px;
    font-weight: 790;
    letter-spacing: .1em;
    text-transform: uppercase;
}

.reaction-inspector-stoich ul { display: grid; gap: 5px; margin: 8px 0 0; padding: 0; list-style: none; }
.reaction-inspector-stoich li { color: #c0d1ce; font-size: 9px; line-height: 1.35; }
.reaction-inspector-stoich > p { grid-column: 1 / -1; margin: 0; color: #829a98; font-size: 10px; line-height: 1.5; }

.reaction-inspector-source {
    display: grid;
    gap: 5px;
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid rgba(143, 181, 178, .14);
}

.reaction-inspector-source[hidden] { display: none; }
.reaction-inspector-source span { color: #708b89; font-size: 8px; font-weight: 760; letter-spacing: .08em; text-transform: uppercase; }
.reaction-inspector-source code { overflow-wrap: anywhere; color: #a9c2bf; font: 9px/1.45 "Instrument Sans", sans-serif; }

.reaction-inspector-connected { margin-top: 18px; }
.reaction-inspector-connected > p { margin: 0 0 8px; }
#reaction-inspector-links { display: grid; gap: 6px; }
#reaction-inspector-links button {
    position: relative;
    min-width: 0;
    display: grid;
    gap: 3px;
    padding: 9px 30px 9px 10px;
    border: 1px solid rgba(143, 181, 178, .15);
    border-radius: 6px;
    color: #c9d9d6;
    background: rgba(143, 181, 178, .035);
    text-align: left;
    cursor: pointer;
}
#reaction-inspector-links button:hover,
#reaction-inspector-links button:focus-visible { border-color: var(--edge-color); outline: 0; background: color-mix(in srgb, var(--edge-color) 8%, transparent); }
#reaction-inspector-links span { overflow: hidden; color: var(--edge-color); font-size: 7px; font-weight: 760; letter-spacing: .05em; text-overflow: ellipsis; text-transform: uppercase; white-space: nowrap; }
#reaction-inspector-links strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
#reaction-inspector-links i { position: absolute; top: 50%; right: 10px; color: var(--edge-color); font-style: normal; transform: translateY(-50%); }

.reaction-inspector-actions {
    position: sticky;
    bottom: -18px;
    display: flex;
    gap: 8px;
    margin: 18px -18px -18px;
    padding: 12px 18px 16px;
    border-top: 1px solid rgba(143, 181, 178, .16);
    background: linear-gradient(rgba(9, 24, 32, .96), #091820 45%);
}

.reaction-inspector-actions > * {
    min-height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    padding: 8px 10px;
    border: 1px solid #38545b;
    border-radius: 6px;
    color: #b8cecb;
    background: transparent;
    font: 720 9px/1 "Instrument Sans", sans-serif;
    text-decoration: none;
    cursor: pointer;
}
.reaction-inspector-actions > *:hover,
.reaction-inspector-actions > *:focus-visible { border-color: var(--edge-color); outline: 0; color: #f3fbf8; background: color-mix(in srgb, var(--edge-color) 9%, transparent); }
.reaction-inspector-actions a { color: #07141a; background: var(--edge-color); }
.reaction-inspector-actions a[hidden] { display: none; }

.network-node.is-inspected {
    z-index: 17;
    border-color: #fff5b1;
    box-shadow: 0 0 0 2px rgba(255, 237, 126, .32), 0 0 24px rgba(255, 221, 104, .28);
}

.network-footer {
    min-height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 12px 16px;
    border-top: 1px solid rgba(147, 196, 191, .18);
    background: #0d1c25;
}

.network-footer p { max-width: 760px; margin: 0; color: #7f9797; font-size: 10.5px; line-height: 1.5; }
.network-footer strong { color: #cfe0de; }

.start-section {
    display: grid;
    grid-template-columns: minmax(250px, .75fr) minmax(0, 1.4fr);
    gap: 60px;
    max-width: 1220px;
    margin: 0 auto;
    padding: 92px 24px;
    align-items: center;
}

.start-heading p:not(.learn-kicker) { margin: 19px 0 0; color: #60737b; font-size: 15px; line-height: 1.65; }

.foundation-card {
    display: grid;
    grid-template-columns: minmax(230px, .75fr) minmax(0, 1.25fr);
    min-height: 360px;
    overflow: hidden;
    border: 1px solid rgba(58, 206, 139, .45);
    border-radius: 12px;
    background: #10232d;
    color: var(--atlas-ink);
    box-shadow: 0 20px 45px rgba(6, 42, 79, .2);
}

.lesson-thumb {
    position: relative;
    min-height: 360px;
    overflow: hidden;
    background: #071018;
}

.lesson-thumb::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(5, 14, 20, .58));
    pointer-events: none;
}

.lesson-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .25s ease; }
.foundation-card:hover .lesson-thumb img { transform: scale(1.025); }

.play-mark {
    position: absolute;
    top: 50%;
    left: 50%;
    z-index: 2;
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 50%;
    background: rgba(6, 42, 79, .84);
    color: var(--white);
    box-shadow: 0 7px 20px rgba(0, 0, 0, .28);
    transform: translate(-50%, -50%);
}

.play-mark svg { width: 24px; height: 24px; fill: currentColor; }

.runtime {
    position: absolute;
    right: 9px;
    bottom: 9px;
    z-index: 3;
    padding: 4px 6px;
    border-radius: 4px;
    color: var(--white);
    background: rgba(3, 11, 16, .86);
    font-size: 10px;
    font-weight: 720;
}

.foundation-copy {
    min-width: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
}

.lesson-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    color: #73d8ae;
    font-size: 9px;
    font-weight: 780;
    letter-spacing: .12em;
}

.available-dot {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: #8ba4a4;
    letter-spacing: .08em;
}

.available-dot::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #40d993;
    box-shadow: 0 0 0 3px rgba(64, 217, 147, .11);
}

.foundation-copy h3 {
    margin: 13px 0 0;
    color: #f5fbf9;
    font-size: 32px;
    font-weight: 680;
    letter-spacing: -.04em;
    line-height: 1.1;
}

.foundation-copy > p { margin: 13px 0 0; color: #b4c6c4; font-size: 14px; line-height: 1.55; }

.foundation-copy ul {
    display: grid;
    gap: 7px;
    margin: 18px 0 22px;
    padding: 0;
    list-style: none;
}

.foundation-copy li { position: relative; padding-left: 15px; color: #b3c6c3; font-size: 12px; }

.foundation-copy li::before {
    content: "";
    position: absolute;
    top: .5em;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--atlas-line);
}

.foundation-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; }

.foundation-actions button,
.foundation-actions a {
    min-height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 12px;
    border-radius: 6px;
    font: 700 11px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

.foundation-actions button { border: 1px solid #55716f; color: #d7e4e2; background: transparent; }
.foundation-actions a { color: #72d9ae; text-decoration: none; }

.library-note {
    display: grid;
    grid-template-columns: minmax(260px, .72fr) minmax(300px, 1fr) auto;
    gap: 45px;
    align-items: center;
    padding: 70px max(24px, calc((100% - 1172px) / 2));
    background: #e2efed;
    border-top: 1px solid #c7d9d7;
}

.library-note h2 { font-size: clamp(31px, 3vw, 42px); }
.library-note > p { margin: 0; color: #577078; font-size: 15px; line-height: 1.7; }
.library-note .button { white-space: nowrap; }

.reaction-dialog {
    width: min(940px, calc(100% - 30px));
    max-height: min(780px, calc(100vh - 30px));
    padding: 0;
    overflow: auto;
    border: 1px solid #34525a;
    border-radius: 14px;
    background: var(--atlas-ground);
    color: var(--atlas-ink);
    box-shadow: 0 35px 90px rgba(0, 0, 0, .48);
}

.reaction-dialog::backdrop { background: rgba(3, 12, 17, .75); backdrop-filter: blur(5px); }

.dialog-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50%;
    color: var(--white);
    background: rgba(4, 18, 26, .82);
    font: 28px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

.dialog-layout { display: grid; grid-template-columns: minmax(300px, .88fr) minmax(0, 1.12fr); }
.dialog-visual { min-height: 510px; display: grid; background: #050c12; }

.dialog-media,
.placeholder-visual {
    position: relative;
    min-height: 510px;
    overflow: hidden;
    grid-area: 1 / 1;
}

.dialog-media::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 45%, rgba(4, 14, 20, .45));
}

.dialog-media img { width: 100%; height: 100%; display: block; object-fit: cover; }

.placeholder-visual {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 13px;
    padding: 34px;
    background:
        linear-gradient(rgba(147, 196, 191, .04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(147, 196, 191, .04) 1px, transparent 1px),
        radial-gradient(circle at 50% 45%, rgba(56, 184, 206, .12), transparent 48%),
        #07141c;
    background-size: 24px 24px, 24px 24px, auto, auto;
}

.placeholder-visual svg { width: min(260px, 85%); fill: rgba(20, 55, 64, .72); stroke: #4b8791; stroke-width: 2; }
.placeholder-visual circle { fill: #0b1d25; stroke: #5fc4a0; }
.placeholder-code { color: #65cfa4; font-size: 10px; font-weight: 780; letter-spacing: .2em; }
.placeholder-visual small { color: #839c9d; font-size: 11px; }

.dialog-copy {
    min-width: 0;
    padding: 44px 42px 34px;
    overflow-wrap: anywhere;
}

.dialog-kicker {
    margin: 0 0 11px;
    color: #6fdbad;
    font-size: 10px;
    font-weight: 760;
    letter-spacing: .12em;
    text-transform: uppercase;
}

.dialog-copy h2 { margin: 0; color: var(--white); font-size: 36px; letter-spacing: -.045em; line-height: 1.04; }

.dialog-copy > p:not(.dialog-kicker):not(.dialog-takeaway):not(.dialog-equation) {
    margin: 18px 0 0;
    color: #acc1bf;
    font-size: 14px;
    line-height: 1.65;
}

.dialog-equation {
    margin: 17px 0 0;
    padding: 10px 12px;
    border: 1px solid rgba(102, 166, 161, .22);
    border-radius: 6px;
    color: #cbe0dc;
    background: rgba(21, 51, 58, .45);
    font-size: 11px;
    font-weight: 620;
    line-height: 1.45;
}

.dialog-copy h3 { margin: 27px 0 0; color: #f2f8f7; font-size: 15px; }
.dialog-copy ul { display: grid; gap: 8px; margin: 14px 0 0; padding: 0; list-style: none; }
.dialog-copy li { position: relative; padding-left: 17px; color: #a9bfbd; font-size: 12px; line-height: 1.45; }

.dialog-copy li::before {
    content: "";
    position: absolute;
    top: .48em;
    left: 0;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--atlas-line);
}

.dialog-takeaway,
.planned-callout {
    margin: 24px 0 0;
    padding: 14px 15px;
    border-left: 3px solid var(--atlas-line);
    color: #b9ccca;
    background: rgba(53, 189, 120, .08);
    font-size: 12px;
    line-height: 1.55;
}

.dialog-takeaway strong,
.planned-callout strong { color: #e4f0ee; }
.planned-callout { border-left-color: #54b7c7; background: rgba(56, 184, 206, .08); }

.dialog-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 15px 18px;
    border-top: 1px solid rgba(137, 176, 174, .18);
    background: #0d1c25;
}

.dialog-back {
    min-height: 42px;
    padding: 9px 13px;
    border: 0;
    color: #a8bdbb;
    background: transparent;
    font: 680 12px/1 "Instrument Sans", sans-serif;
    cursor: pointer;
}

.dialog-watch { min-height: 42px; padding: 10px 14px; font-size: 12px; }
body.dialog-open { overflow: hidden; }

@media (max-width: 1120px) {
    .learn-hero { grid-template-columns: minmax(0, 1fr) minmax(380px, .9fr); gap: 38px; }
    .library-note { grid-template-columns: 1fr 1fr; }
    .library-note .button { grid-column: 2; justify-self: start; }
    .edge-popover.map-inspector { width: 326px; }
}

@media (max-width: 900px) {
    .learn-hero { grid-template-columns: 1fr; padding-top: 62px; }
    .learn-hero-copy { max-width: 760px; }
    .hero-pathway { width: min(100%, 650px); min-height: 440px; justify-self: center; transform: none; }
    .learn-guide,
    .start-section { grid-template-columns: 1fr; gap: 32px; }
    .atlas-heading { grid-template-columns: 1fr; gap: 24px; }
    .atlas-legend { grid-template-columns: repeat(3, auto); justify-content: start; }
    .network-viewport { height: 680px; }
    .network-stage { position: relative; display: block; }
    .edge-popover.map-inspector {
        position: absolute;
        top: 10px;
        right: 10px;
        width: min(356px, calc(100% - 20px));
        height: calc(100% - 20px);
        border: 1px solid var(--edge-color);
        border-radius: 10px;
        box-shadow: 0 22px 60px rgba(0, 0, 0, .55), inset 3px 0 0 color-mix(in srgb, var(--edge-color) 72%, transparent);
    }
}

@media (max-width: 760px) {
    .learn-hero { min-height: 0; padding: 54px 20px 64px; }
    .learn-hero h1 { font-size: clamp(44px, 14vw, 62px); }
    .learn-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .learn-stats div { min-width: 0; padding: 0 12px; }
    .learn-stats dd { font-size: 10px; }
    .hero-pathway { min-height: 400px; }
    .learn-guide { padding: 62px 20px; }
    .learn-guide ol { grid-template-columns: 1fr; border-top: 0; }
    .learn-guide li,
    .learn-guide li:first-child {
        display: grid;
        grid-template-columns: 34px 1fr;
        gap: 12px;
        padding: 17px 0;
        border-top: 1px solid #d0dfdf;
        border-left: 0;
    }
    .learn-guide li p { margin: 1px 0 0; }
    .atlas-section { padding: 62px 10px 70px; }
    .atlas-heading { padding: 0 10px; }
    .atlas-legend { grid-template-columns: 1fr; }
    .network-workspace { border-radius: 12px; }
    .network-topbar { grid-template-columns: 1fr; gap: 10px; padding: 12px; }
    .atlas-search-results { width: 100%; max-height: min(430px, calc(100vh - 96px)); }
    .map-actions { justify-content: stretch; }
    .map-action,
    .map-actions output { flex: 1 1 auto; }
    .map-action.map-action-text { flex-grow: 1.35; }
    .pathway-layer-bar { padding: 13px 12px; }
    .layer-bar-heading { align-items: flex-start; }
    .layer-bar-heading > div:first-child { display: grid; gap: 5px; }
    .study-preset-strip { grid-template-columns: 1fr; gap: 8px; }
    .study-preset-intro { padding: 1px 3px 8px; border-right: 0; border-bottom: 1px solid rgba(147, 196, 191, .13); }
    .study-preset-list { display: flex; overflow-x: auto; padding-bottom: 3px; scrollbar-width: thin; scroll-snap-type: x proximity; }
    .study-preset { flex: 0 0 158px; scroll-snap-align: start; }
    .pathway-toggles {
        max-height: 176px;
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        overflow-y: auto;
        padding-right: 3px;
        scrollbar-width: thin;
    }
    .pathway-toggle { width: 100%; min-height: 42px; justify-content: flex-start; }
    .atlas-controls { flex-direction: column; align-items: stretch; gap: 12px; padding: 12px; }
    .atlas-focus { min-width: 0; }
    .atlas-mode-controls { justify-content: space-between; flex-wrap: wrap; gap: 10px; }
    .atlas-journey-label { justify-content: space-between; flex: 1 1 100%; min-width: 0; white-space: normal; }
    .atlas-trace-label { justify-content: space-between; min-width: 0; white-space: normal; }
    .trace-combobox,
    .atlas-journey-label select { width: min(240px, 62vw); min-width: 0; }
    .network-subbar { align-items: flex-start; flex-direction: column; gap: 5px; padding: 9px 12px; }
    .map-state-summary { width: 100%; flex-wrap: wrap; gap: 6px 9px; }
    .map-help { text-align: left; white-space: normal; }
    .network-viewport { height: 620px; }
    .atlas-minimap { width: 150px; left: 10px; bottom: 10px; }
    #minimap-map { height: 106px; }
    .atlas-minimap:not(.is-mobile-open) { width: 122px; }
    .atlas-minimap:not(.is-mobile-open) .minimap-toggle { border-bottom: 0; }
    .atlas-minimap:not(.is-mobile-open) .minimap-body { display: none; }
    .journey-panel { top: 10px; left: 10px; width: calc(100% - 20px); }
    .edge-popover.map-inspector {
        top: auto;
        bottom: 10px;
        width: calc(100% - 20px);
        height: min(74%, 500px);
    }
    .network-footer { align-items: stretch; flex-direction: column; gap: 10px; }
    .network-footer button { min-height: 44px; }
    .start-section { padding: 70px 20px; }
    .foundation-card { grid-template-columns: 1fr; }
    .lesson-thumb { min-height: 240px; aspect-ratio: 16 / 9; }
    .foundation-copy { padding: 24px; }
    .library-note { grid-template-columns: 1fr; gap: 25px; padding: 62px 20px; }
    .library-note .button { grid-column: auto; justify-self: stretch; text-align: center; }
    .dialog-layout { grid-template-columns: minmax(0, 1fr); }
    .dialog-visual,
    .dialog-media,
    .placeholder-visual {
        width: 100%;
        min-width: 0;
        min-height: 230px;
    }
    .dialog-visual { aspect-ratio: auto; }
    .dialog-copy { padding: 30px 23px; }
    .dialog-copy h2 { font-size: 31px; }
}

@media (max-width: 480px) {
    .lesson-search input { padding-right: 34px; font-size: 13px; }
    .atlas-search-option { grid-template-columns: 4px minmax(0, 1fr); min-height: 54px; }
    .atlas-search-option-type { display: none; }
    .atlas-search-footer { display: none; }
    .reaction-dialog { overflow-x: hidden; }
    .dialog-copy h2 { font-size: clamp(26px, 8vw, 31px); }
    .learn-hero-actions { align-items: stretch; flex-direction: column; }
    .learn-hero-actions .button { text-align: center; }
    .hero-pathway { min-height: 370px; }
    .hero-enzyme { width: 190px; }
    .hero-branch { display: none; }
    .layer-bar-heading { flex-direction: column; }
    .layer-presets { width: 100%; }
    .layer-presets button { flex: 1; min-height: 40px; }
    .map-action.map-action-text { min-width: 62px; padding: 0 8px; }
    .foundation-actions,
    .dialog-footer { align-items: stretch; flex-direction: column-reverse; }
    .foundation-actions > *,
    .dialog-footer > * { width: 100%; }
}

.network-workspace.is-map-fullscreen {
    width: 100%;
    height: 100%;
    max-width: none;
    margin: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto auto auto minmax(0, 1fr);
    overflow: hidden;
    border: 0;
    border-radius: 0;
    background: #061018;
    box-shadow: none;
}

.network-workspace.is-map-fullscreen .network-topbar,
.network-workspace.is-map-fullscreen .pathway-layer-bar,
.network-workspace.is-map-fullscreen .atlas-controls,
.network-workspace.is-map-fullscreen .network-subbar {
    position: relative;
    z-index: 20;
    min-width: 0;
    max-width: 100%;
}

.network-workspace.is-map-fullscreen .pathway-layer-bar { padding: 10px 15px 11px; }
.network-workspace.is-map-fullscreen .layer-bar-heading { margin-bottom: 8px; }
.network-workspace.is-map-fullscreen .study-preset-strip {
    grid-template-columns: 158px minmax(0, 1fr);
    gap: 7px;
    margin-bottom: 7px;
    padding: 5px;
}
.network-workspace.is-map-fullscreen .study-preset-intro { padding-inline: 5px; }
.network-workspace.is-map-fullscreen .study-preset { min-height: 40px; padding-block: 5px; }
.network-workspace.is-map-fullscreen .pathway-toggles {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding: 0 0 3px;
    scrollbar-width: thin;
}
.network-workspace.is-map-fullscreen .pathway-toggle { width: auto; min-height: 36px; flex: 0 0 auto; }
.network-workspace.is-map-fullscreen .atlas-controls { padding-block: 8px; }
.network-workspace.is-map-fullscreen .network-subbar { min-height: 36px; padding-block: 6px; }
.network-workspace.is-map-fullscreen .network-stage { min-height: 0; height: 100%; overflow: hidden; }
.network-workspace.is-map-fullscreen .network-viewport { height: auto !important; min-height: 0; }
.network-workspace.is-map-fullscreen .edge-popover.map-inspector { height: 100%; }
.network-workspace.is-map-fullscreen .network-footer { display: none; }

@media (max-width: 760px) {
    .fullscreen-action { min-width: 44px !important; padding-inline: 9px !important; }
    .fullscreen-action > span {
        position: absolute;
        width: 1px;
        height: 1px;
        padding: 0;
        margin: -1px;
        overflow: hidden;
        clip: rect(0, 0, 0, 0);
        white-space: nowrap;
        border: 0;
    }
    .network-workspace.is-map-fullscreen .network-topbar { gap: 7px; padding: 8px; }
    .network-workspace.is-map-fullscreen .lesson-search input { min-height: 42px; }
    .network-workspace.is-map-fullscreen .map-action,
    .network-workspace.is-map-fullscreen .map-actions output { min-height: 40px; }
    .network-workspace.is-map-fullscreen .pathway-layer-bar { padding: 7px 9px; }
    .network-workspace.is-map-fullscreen .layer-bar-heading { display: none; }
    .network-workspace.is-map-fullscreen .study-preset-strip { grid-template-columns: 1fr; margin-bottom: 6px; padding: 0 0 4px; border: 0; background: transparent; }
    .network-workspace.is-map-fullscreen .study-preset-intro { display: none; }
    .network-workspace.is-map-fullscreen .study-preset-list { display: flex; overflow-x: auto; }
    .network-workspace.is-map-fullscreen .study-preset { min-height: 38px; flex-basis: 148px; }
    .network-workspace.is-map-fullscreen .pathway-toggles {
        max-height: none;
        display: flex;
        grid-template-columns: none;
        gap: 6px;
        overflow-x: auto;
        overflow-y: hidden;
        padding: 0 0 3px;
    }
    .network-workspace.is-map-fullscreen .pathway-toggle { min-height: 38px; }
    .network-workspace.is-map-fullscreen .atlas-controls {
        flex-direction: row;
        align-items: center;
        gap: 14px;
        overflow-x: auto;
        padding: 7px 9px;
    }
    .network-workspace.is-map-fullscreen .atlas-focus { min-width: max-content; flex-wrap: nowrap; }
    .network-workspace.is-map-fullscreen .atlas-mode-controls { min-width: max-content; flex-wrap: nowrap; }
    .network-workspace.is-map-fullscreen .atlas-journey-label { min-width: max-content; }
    .network-workspace.is-map-fullscreen .atlas-trace-label { min-width: max-content; }
    .network-workspace.is-map-fullscreen .network-subbar { min-height: 32px; padding: 5px 9px; }
    .network-workspace.is-map-fullscreen .map-help { display: none; }
    .network-workspace.is-map-fullscreen .edge-popover.map-inspector { height: calc(100% - 20px); }
}

@media (prefers-reduced-motion: reduce) {
    .network-node,
    .pathway-toggle,
    .study-preset,
    .map-action,
    .lesson-thumb img { transition: none; }
    .network-node:hover,
    .network-node:focus-visible { transform: none; }
    .network-node.is-trace-pulse { animation: none; }
}
