@scope (body.ai-page) {
:scope {
    color-scheme: dark;
    --bg: #080b11;
    --panel: #0e131c;
    --panel-raised: #121925;
    --panel-hover: #171f2c;
    --line: rgba(159, 181, 211, .12);
    --line-strong: rgba(159, 181, 211, .2);
    --text: #f2f6fc;
    --muted: #8996a9;
    --subtle: #5e6b7f;
    --cyan: #0088ff;
    --cyan-bright: #36a3ff;
    --cyan-wash: rgba(0, 136, 255, .12);
    --green: #52d6a3;
    --amber: #ffc46b;
    --red: #ff7b88;
    --radius: 16px;
    --shadow: 0 24px 70px rgba(0, 0, 0, .22);
    --font-size-scale: 1;
}

* {
    box-sizing: border-box;
}

:scope {
    min-width: 320px;
    background: var(--bg);
    scroll-behavior: smooth;
}

:scope {
    margin: 0;
    min-height: 100vh;
    color: var(--text);
    background: radial-gradient(ellipse at 78% -15%, rgba(0, 136, 255, .11), transparent 37rem), radial-gradient(ellipse at 2% 20%, rgba(0, 136, 255, .035), transparent 28rem), var(--bg);
    font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    font-size: calc(14px * var(--font-size-scale));
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

button, input {
    font: inherit;
}

button {
    color: inherit;
}

a {
    color: inherit;
    text-decoration: none;
}

    button:focus-visible, input:focus-visible, a:focus-visible {
        outline: 2px solid var(--cyan-bright);
        outline-offset: 3px;
    }

.app-shell {
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 5;
    display: flex;
    width: 72px;
    flex-direction: column;
    align-items: center;
    padding: 26px 9px 18px;
    border-right: 1px solid var(--line);
    background: rgba(9, 12, 18, .94);
    backdrop-filter: blur(18px);
}

.brand {
    display: flex;
    align-items: center;
    min-height: 54px;
    margin: 0 8px 36px;
}

    .brand img {
        display: block;
        width: 180px;
        max-height: 52px;
        object-fit: contain;
        object-position: left center;
    }

.side-label {
    margin: 0 10px 11px;
    color: var(--subtle);
    font-size: calc(10px * var(--font-size-scale));
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
}

.nav-list {
    display: grid;
    width: 100%;
    gap: 4px;
}

.nav-button {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 11px 4px;
    border: 1px solid transparent;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    text-align: left;
    transition: background .18s ease, color .18s ease, border-color .18s ease;
}

    .nav-button:hover {
        color: var(--text);
        background: rgba(255,255,255,.035);
    }

    .nav-button.active {
        border-color: rgba(0,136,255,.19);
        background: var(--cyan-wash);
        color: #eaf5ff;
    }

.nav-button .nav-text,
.nav-count {
    display: none;
}

.nav-icon {
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: currentColor;
    font-size: 17px;
    filter: grayscale(1);
}

.nav-count {
    margin-left: auto;
    color: var(--subtle);
    font-size: calc(11px * var(--font-size-scale));
    font-variant-numeric: tabular-nums;
}

.nav-button.active .nav-count {
    color: var(--cyan-bright);
}

.sidebar-spacer {
    flex: 1;
}

.cache-card {
    margin: 18px 1px 13px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(0,136,255,.09), rgba(15,20,29,.5) 70%);
}

.cache-heading {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #dbe8f8;
    font-size: calc(12px * var(--font-size-scale));
    font-weight: 650;
}

.cache-dot, .status-dot {
    width: 7px;
    height: 7px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: var(--green);
    box-shadow: 0 0 12px rgba(82,214,163,.55);
}

.cache-copy {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: calc(11px * var(--font-size-scale));
    line-height: 1.55;
}

    .cache-copy strong {
        color: #c8d5e6;
        font-weight: 600;
    }

.main {
    max-width: 1680px;
    min-height: 100vh;
    margin-left: 72px;
    padding: 0 42px 48px;
}

.topbar {
    display: flex;
    min-height: 83px;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    border-bottom: 1px solid var(--line);
}

.topbar-brand {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
}

.topbar-brand picture {
    display: block;
}

.topbar-brand img {
    display: block;
    width: 180px;
    max-height: 52px;
    object-fit: contain;
    object-position: left center;
}

.top-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.live-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 7px 10px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: rgba(255,255,255,.02);
    color: var(--muted);
    font-size: calc(11px * var(--font-size-scale));
}

    .live-pill .status-dot {
        width: 6px;
        height: 6px;
    }

.icon-button, .refresh-button {
    display: inline-flex;
    min-height: 38px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: var(--panel);
    color: #d8e3f2;
    cursor: pointer;
    transition: border-color .18s ease, background .18s ease, transform .18s ease;
}

.icon-button {
    width: 38px;
    font-size: 16px;
}

.refresh-button {
    padding: 0 14px;
    font-size: calc(12px * var(--font-size-scale));
    font-weight: 650;
}

    .icon-button:hover, .refresh-button:hover {
        transform: translateY(-1px);
        border-color: rgba(0,136,255,.48);
        background: #121a26;
    }

    .refresh-button .refresh-glyph {
        color: var(--cyan-bright);
        font-size: 16px;
    }

    .refresh-button:disabled {
        opacity: .55;
        cursor: wait;
        transform: none;
    }

    .refresh-button.busy .refresh-glyph {
        animation: spin 1.1s linear infinite;
    }



.hero {
    position: relative;
    overflow: hidden;
    margin: 32px 0 25px;
    padding: 33px 35px 31px;
    border: 1px solid rgba(123, 167, 217, .15);
    border-radius: 20px;
    background: linear-gradient(115deg, rgba(15,25,39,.96), rgba(13,20,31,.93) 58%, rgba(10,36,61,.84));
    box-shadow: var(--shadow);
}

    .hero::after {
        position: absolute;
        top: -138px;
        right: -35px;
        width: 430px;
        height: 430px;
        border: 1px solid rgba(0,136,255,.12);
        border-radius: 50%;
        content: "";
        box-shadow: 0 0 0 36px rgba(0,136,255,.025), 0 0 0 76px rgba(0,136,255,.02), 0 0 100px rgba(0,136,255,.08) inset;
        pointer-events: none;
    }

    .hero::before {
        position: absolute;
        top: 32px;
        right: 160px;
        width: 6px;
        height: 6px;
        border-radius: 50%;
        background: #48b1ff;
        box-shadow: 0 0 18px 7px rgba(0,136,255,.3);
        content: "";
    }

.hero-content {
    position: relative;
    z-index: 1;
}

.hero-heading-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 20px;
}

.hero-heading-row h1 {
    min-width: 0;
}

h1 {
    margin: 0;
    font-size: calc(clamp(31px, 4vw, 48px) * var(--font-size-scale));
    font-weight: 690;
    letter-spacing: -.055em;
    line-height: 1.07;
}

.gradient-text {
    color: #65baff;
    background: linear-gradient(95deg, #f4f8ff 0%, #9fd6ff 49%, #0088ff 95%);
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-copy {
    max-width: 550px;
    margin: 14px 0 22px;
    color: #a6b3c6;
    font-size: calc(13px * var(--font-size-scale));
    line-height: 1.75;
}

.hero-bottom {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px 19px;
}

.hero-stat {
    color: #8191a6;
    font-size: calc(11px * var(--font-size-scale));
}

.hero-stat-link:hover,
.hero-stat-link:focus-visible {
    color: var(--cyan-bright);
    text-decoration: underline;
    text-underline-offset: 3px;
}

    .hero-stat-link:hover strong,
    .hero-stat-link:focus-visible strong {
        color: var(--cyan-bright);
    }

.hero-stat strong {
    margin-right: 4px;
    color: #eaf2fc;
    font-size: calc(13px * var(--font-size-scale));
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.hero-stat-link {
    color: #a8d7ff;
    text-decoration: underline;
    text-decoration-color: rgba(54,163,255,.55);
    text-underline-offset: 3px;
}

    .hero-stat-link strong {
        color: #a8d7ff;
    }

.hero-divider {
    width: 1px;
    height: 14px;
    background: var(--line-strong);
}

.signal-label {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    color: #d0deed;
    font-size: calc(11px * var(--font-size-scale));
}

.font-zoom {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 5px;
}

.zoom-button {
    display: grid;
    width: 30px;
    height: 30px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(120,189,255,.3);
    border-radius: 8px;
    background: rgba(0,136,255,.1);
    color: #a8d7ff;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease;
}

    .zoom-button:hover:not(:disabled) {
        border-color: rgba(120,189,255,.7);
        background: rgba(0,136,255,.22);
        color: #eaf5ff;
    }

    .zoom-button:disabled {
        opacity: .4;
        cursor: not-allowed;
    }

    .zoom-button svg {
        width: 17px;
        height: 17px;
        fill: none;
        stroke: currentColor;
        stroke-linecap: round;
        stroke-width: 1.8;
    }

.signal-glyph {
    color: inherit;
    font-size: 15px;
}

.content-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 286px;
    align-items: start;
    gap: 27px;
}

.sources-panel {
    scroll-margin-top: 16px;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin: 0 0 16px;
}

.section-heading {
    min-width: 0;
}

.section-head-tools {
    display: grid;
    flex: 0 1 250px;
    justify-items: end;
    gap: 5px;
    min-width: 155px;
}

.section-title {
    margin: 0;
    font-size: calc(18px * var(--font-size-scale));
    font-weight: 680;
    letter-spacing: -.025em;
}

.section-caption {
    margin: 3px 0 0;
    color: var(--muted);
    font-size: calc(11px * var(--font-size-scale));
}

.result-count {
    color: var(--muted);
    font-size: calc(11px * var(--font-size-scale));
    white-space: nowrap;
}

.toolbar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 12px;
    margin-bottom: 15px;
}

.topic-tabs {
    display: flex;
    min-width: 0;
    gap: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}

    .topic-tabs::-webkit-scrollbar {
        display: none;
    }

.topic-button {
    flex: 0 0 auto;
    padding: 7px 11px;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: calc(11px * var(--font-size-scale));
    transition: .18s ease;
}

    .topic-button:hover {
        color: var(--text);
        background: rgba(255,255,255,.04);
    }

    .topic-button.selected {
        border-color: rgba(0,136,255,.2);
        background: var(--cyan-wash);
        color: #a9d8ff;
    }

.search-wrap {
    position: relative;
    width: 100%;
    max-width: 250px;
}

.search-icon {
    position: absolute;
    top: 50%;
    left: 11px;
    color: var(--subtle);
    font-size: 14px;
    transform: translateY(-50%);
    pointer-events: none;
}

.search-input {
    width: 100%;
    height: 34px;
    padding: 0 11px 0 32px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: rgba(15,20,29,.85);
    color: var(--text);
    font-size: calc(11px * var(--font-size-scale));
}

    .search-input::placeholder {
        color: #657286;
    }

.story-list {
    display: grid;
    gap: 10px;
}

.story-card {
    position: relative;
    display: block;
    padding: 18px 19px 16px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: linear-gradient(135deg, rgba(17,23,33,.94), rgba(13,18,27,.94));
    transition: border-color .2s ease, transform .2s ease, background .2s ease;
}

.story-layout {
    display: grid;
    grid-template-columns: 80px minmax(0, 1fr);
    row-gap: 10px;
    column-gap: 16px;
}

    .story-layout:not(.has-thumbnail) {
        grid-template-columns: minmax(0, 1fr);
    }

.story-topline,
.story-bottom {
    grid-column: 1 / -1;
}

.story-topline {
    grid-row: 1;
    margin-bottom: 0;
}

.story-title {
    grid-row: 2;
}

.story-summary {
    grid-row: 3;
}

.story-bottom {
    grid-row: 4;
}

.story-thumbnail {
    display: block;
    width: 80px;
    min-height: 80px;
    height: 100%;
    grid-column: 1;
    grid-row: 2 / span 2;
    border: 1px solid var(--line);
    border-radius: 10px;
    object-fit: cover;
}

.story-title,
.story-summary {
    min-width: 0;
}

.story-layout.has-thumbnail .story-title,
.story-layout.has-thumbnail .story-summary {
    grid-column: 2;
}

.story-layout:not(.has-thumbnail) .story-title,
.story-layout:not(.has-thumbnail) .story-summary {
    grid-column: 1 / -1;
}

.story-card:hover {
    transform: translateY(-2px);
    border-color: rgba(0,136,255,.3);
    background: linear-gradient(135deg, rgba(19,28,41,.98), rgba(13,20,30,.98));
}

.story-topline {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-source {
    display: inline-flex;
    min-width: 0;
    align-items: center;
    gap: 8px;
    color: #bdc9da;
    font-size: calc(10px * var(--font-size-scale));
    font-weight: 680;
}

.source-monogram {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 auto;
    place-items: center;
    border: 1px solid rgba(116,169,222,.17);
    border-radius: 7px;
    background: rgba(53,86,124,.17);
    color: #92cfff;
    font-size: calc(9px * var(--font-size-scale));
    font-weight: 800;
    letter-spacing: -.03em;
}

.story-age {
    color: var(--subtle);
    font-size: calc(10px * var(--font-size-scale));
    white-space: nowrap;
}

.story-title {
    display: block;
    margin: 0;
    color: #eaf0f8;
    font-size: calc(15px * var(--font-size-scale));
    font-weight: 620;
    letter-spacing: -.015em;
    line-height: 1.45;
    transition: color .16s ease;
}

.story-card:hover .story-title,
.story-card:focus-visible .story-title {
    color: #84c7ff;
}

.story-summary {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: #8e9bae;
    font-size: calc(11px * var(--font-size-scale));
    line-height: 1.7;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.story-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.story-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.story-tag {
    padding: 3px 7px;
    border: 1px solid rgba(118,145,178,.13);
    border-radius: 5px;
    background: rgba(255,255,255,.025);
    color: #8293a9;
    font-size: calc(9px * var(--font-size-scale));
}

.read-link {
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 6px;
    color: #8cbbdf;
    font-size: calc(10px * var(--font-size-scale));
    font-weight: 620;
}

    .read-link span {
        color: var(--cyan-bright);
        font-size: 13px;
        transition: transform .16s ease;
    }

.story-card:hover .read-link span {
    transform: translate(2px, -2px);
}

.empty-state {
    padding: 46px 22px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(14,19,28,.55);
    text-align: center;
}

.empty-icon {
    display: grid;
    width: 45px;
    height: 45px;
    margin: 0 auto 13px;
    place-items: center;
    border: 1px solid rgba(0,136,255,.2);
    border-radius: 14px;
    background: var(--cyan-wash);
    color: #64b9ff;
    font-size: 21px;
}

.empty-state h3 {
    margin: 0;
    font-size: calc(14px * var(--font-size-scale));
}

.empty-state p {
    max-width: 380px;
    margin: 8px auto 0;
    color: var(--muted);
    font-size: calc(11px * var(--font-size-scale));
}

.empty-action {
    margin-top: 15px;
    padding: 8px 12px;
    border: 1px solid rgba(0,136,255,.35);
    border-radius: 8px;
    background: rgba(0,136,255,.12);
    color: #a8d7ff;
    cursor: pointer;
    font-size: calc(11px * var(--font-size-scale));
}

.right-rail {
    display: grid;
    gap: 14px;
}

.rail-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: rgba(14,19,28,.82);
}

.rail-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 15px 11px;
}

.rail-title {
    margin: 0;
    font-size: calc(12px * var(--font-size-scale));
    font-weight: 680;
}

.rail-link {
    color: #78bdff;
    cursor: pointer;
    font-size: calc(10px * var(--font-size-scale));
}

    .rail-link:hover {
        color: #b2dcff;
    }

.source-heading {
    min-width: 0;
}

.source-count {
    display: block;
    margin-top: 2px;
    color: var(--subtle);
    font-size: calc(9px * var(--font-size-scale));
}

.source-actions {
    display: flex;
    flex: 0 0 auto;
    align-items: center;
    gap: 4px;
}

.source-actions-spacer {
    flex: 0 0 8px;
}

.source-action {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 7px;
    background: rgba(255,255,255,.025);
    color: #8d9db2;
    cursor: pointer;
    font-size: 14px;
    line-height: 1;
    transition: .16s ease;
}

    .source-action:hover:not(:disabled) {
        border-color: rgba(0,136,255,.4);
        background: var(--cyan-wash);
        color: #a8d7ff;
    }

    .source-action.add {
        border-color: rgba(0,136,255,.25);
        color: #70bdff;
    }

    .source-action.reset {
        border-color: rgba(0,194,255,.28);
        color: #55cfff;
    }

        .source-action.reset:hover:not(:disabled) {
            border-color: rgba(0,194,255,.55);
            background: rgba(0,194,255,.12);
            color: #8be0ff;
        }

    .source-action:disabled {
        opacity: .32;
        cursor: not-allowed;
    }

    .source-action.reset,
    .source-action.clear-all,
    .source-action.add-all {
        width: 25px;
        height: 25px;
    }

    .source-action.clear-all {
        border-color: rgba(255,123,136,.25);
        color: #ff7b88;
    }

        .source-action.clear-all:hover:not(:disabled) {
            border-color: rgba(255,123,136,.55);
            background: rgba(255,123,136,.12);
            color: #ff9ca6;
        }

    .source-action.add-all {
        border-color: rgba(88,211,135,.28);
        color: #69d995;
    }

        .source-action.add-all:hover:not(:disabled) {
            border-color: rgba(88,211,135,.6);
            background: rgba(88,211,135,.12);
            color: #8aefad;
        }

        .source-action.clear-all svg,
        .source-action.add-all svg {
            width: 16px;
            height: 16px;
            fill: none;
            stroke: currentColor;
            stroke-linecap: round;
            stroke-linejoin: round;
            stroke-width: 1.7;
        }

.source-selection-note {
    margin: 0 15px 8px;
    color: var(--subtle);
    font-size: calc(9px * var(--font-size-scale));
}

.source-list {
    display: grid;
    padding: 0 9px 9px;
}

.source-request-note {
    margin: 0;
    padding: 0 15px 12px;
    color: var(--subtle);
    font-size: calc(9px * var(--font-size-scale));
    line-height: 1.5;
}

    .source-request-note a {
        color: inherit;
        text-decoration: underline;
        text-underline-offset: 2px;
    }

        .source-request-note a:hover {
            color: var(--cyan-bright);
        }

.source-row {
    display: flex;
    width: 100%;
    min-width: 0;
    align-items: center;
    gap: 9px;
    padding: 9px 6px;
    border: 0;
    border-top: 1px solid rgba(159,181,211,.07);
    border-radius: 7px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background .16s ease;
}

    .source-row:hover {
        background: rgba(255,255,255,.035);
    }

    .source-row.selected {
        background: rgba(0,136,255,.1);
        box-shadow: inset 2px 0 var(--cyan);
    }

    .source-row .source-monogram {
        width: 25px;
        height: 25px;
    }

.source-dialog {
    width: min(440px, calc(100vw - 28px));
    padding: 0;
    border: 1px solid var(--line-strong);
    border-radius: 16px;
    background: #101722;
    color: var(--text);
    box-shadow: 0 28px 90px rgba(0,0,0,.55);
}

    .source-dialog::backdrop {
        background: rgba(2,5,10,.76);
        backdrop-filter: blur(5px);
    }

.source-form {
    padding: 22px;
}

.source-dialog-eyebrow {
    margin: 0 0 5px;
    color: #78bdff;
    font-size: calc(9px * var(--font-size-scale));
    font-weight: 750;
    letter-spacing: .15em;
    text-transform: uppercase;
}

.source-dialog-title {
    margin: 0 0 18px;
    font-size: calc(19px * var(--font-size-scale));
    font-weight: 680;
    letter-spacing: -.03em;
}

.source-field {
    display: grid;
    gap: 6px;
    margin-top: 13px;
    color: #bdc9d8;
    font-size: calc(11px * var(--font-size-scale));
    font-weight: 620;
}

    .source-field[hidden] {
        display: none;
    }

.source-input {
    width: 100%;
    height: 40px;
    padding: 0 11px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: #0a0f17;
    color: var(--text);
    font-size: calc(12px * var(--font-size-scale));
    font-weight: 400;
}

    .source-input::placeholder {
        color: #5e6b7e;
    }

.source-help {
    margin: 10px 0 0;
    color: var(--muted);
    font-size: calc(10px * var(--font-size-scale));
    line-height: 1.6;
}

.source-form-error {
    margin: 11px 0 0;
    color: var(--red);
    font-size: calc(11px * var(--font-size-scale));
}

.source-dialog-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin-top: 22px;
}

.source-dialog-button {
    min-height: 36px;
    padding: 0 13px;
    border: 1px solid var(--line-strong);
    border-radius: 8px;
    background: transparent;
    color: #c2cede;
    cursor: pointer;
    font-size: calc(11px * var(--font-size-scale));
    font-weight: 620;
}

    .source-dialog-button.primary {
        border-color: rgba(0,136,255,.42);
        background: #0878d2;
        color: white;
    }

    .source-dialog-button:hover {
        filter: brightness(1.12);
    }

.source-meta {
    min-width: 0;
    flex: 1;
}

.source-name {
    overflow: hidden;
    color: #c5d0de;
    font-size: calc(10px * var(--font-size-scale));
    font-weight: 620;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.source-sub {
    margin-top: 1px;
    color: var(--subtle);
    font-size: calc(9px * var(--font-size-scale));
}

.source-state {
    width: 6px;
    height: 6px;
    flex: 0 0 auto;
    border-radius: 50%;
    background: #485469;
}

    .source-state.ok {
        background: var(--green);
        box-shadow: 0 0 9px rgba(82,214,163,.36);
    }

    .source-state.error {
        background: var(--red);
    }

    .source-state.loading {
        background: var(--amber);
        animation: pulse 1s ease-in-out infinite alternate;
    }



.trend-list {
    display: grid;
    gap: 6px;
    padding: 0 15px 13px;
}

.trend-item {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 9px;
    padding: 9px 10px;
    border: 1px solid rgba(120,189,255,.17);
    border-radius: 8px;
    background: rgba(120,189,255,.045);
    color: #b7c5d8;
    font: inherit;
    font-size: calc(10px * var(--font-size-scale));
    text-align: left;
    cursor: pointer;
    transition: background .16s ease, border-color .16s ease, color .16s ease, transform .16s ease;
}

    .trend-item::after {
        content: '\2192';
        margin-left: 9px;
        color: #78bdff;
        font-size: 13px;
    }

    .trend-item:hover,
    .trend-item[aria-pressed="true"] {
        border-color: rgba(120,189,255,.55);
        background: rgba(0,136,255,.14);
        color: #d4eaff;
        transform: translateX(2px);
    }

    .trend-item:focus-visible {
        outline: 2px solid #78bdff;
        outline-offset: 2px;
    }

.trend-index {
    color: #53637b;
    font-size: calc(9px * var(--font-size-scale));
    font-variant-numeric: tabular-nums;
}

.trend-count {
    margin-left: auto;
    color: #6f8097;
    font-size: calc(9px * var(--font-size-scale));
    white-space: nowrap;
}

.signal-card {
    padding: 15px;
    border-color: rgba(0,136,255,.17);
    background: linear-gradient(145deg, rgba(0,136,255,.1), rgba(14,19,28,.82) 64%);
}

    .signal-card .rail-title {
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .signal-card .signal-glyph {
        color: #6cbaff;
        font-size: 15px;
    }

    .signal-card p {
        margin: 8px 0 0;
        color: #8798ad;
        font-size: calc(10px * var(--font-size-scale));
        line-height: 1.7;
    }

    .signal-card strong {
        color: #cfdae8;
        font-weight: 650;
    }

.footer-note {
    margin-top: 22px;
    color: #5f6d80;
    font-size: calc(9px * var(--font-size-scale));
    line-height: 1.6;
}

@media (min-width: 1500px) {
    .main {
        padding-right: 56px;
        padding-left: 56px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 32px;
    }
}

@media (max-width: 1150px) {
    .main {
        padding-right: 26px;
        padding-left: 26px;
    }

    .content-grid {
        grid-template-columns: minmax(0, 1fr) 250px;
        gap: 19px;
    }

    .section-head-tools {
        flex-basis: 210px;
    }
}

@media (max-width: 920px) {
    .sidebar {
        padding: 18px 9px;
    }

    .topbar-brand img {
        width: 40px;
        height: 40px;
        max-height: none;
        max-width: 100%;
        object-position: center;
    }

    .main {
        margin-left: 72px;
    }
}

@media (max-width: 720px) {
    .main {
        padding: 0 18px 32px;
    }

    .topbar {
        min-height: 68px;
    }

    .live-pill {
        display: none;
    }

    .hero {
        margin-top: 20px;
        padding: 25px 22px;
    }

        .hero::after {
            right: -230px;
            opacity: .65;
        }

    .content-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .right-rail {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .signal-card {
        grid-column: 1 / -1;
    }
}

@media (max-width: 520px) {
    .sidebar {
        position: sticky;
        inset: 0 0 auto;
        width: 100%;
        height: auto;
        flex-direction: row;
        justify-content: center;
        padding: 8px 13px;
        border-right: 0;
        border-bottom: 1px solid var(--line);
    }

    .nav-list {
        display: flex;
        width: auto;
        flex: 0 0 auto;
        gap: 2px;
    }

    .nav-button {
        width: 34px;
        height: 34px;
        padding: 4px;
    }

    .main {
        margin-left: 0;
        padding: 0 14px 28px;
    }

    .sources-panel {
        scroll-margin-top: 72px;
    }

    .topbar {
        min-height: 58px;
    }

    .refresh-button {
        min-height: 35px;
        padding: 0 10px;
        font-size: calc(10px * var(--font-size-scale));
    }

    .hero {
        margin: 17px 0 21px;
        padding: 23px 18px;
        border-radius: 16px;
    }

    .hero-heading-row {
        gap: 10px;
        margin-bottom: 16px;
    }

    .hero-heading-row h1 {
        font-size: calc(clamp(21px, 6vw, 31px) * var(--font-size-scale));
    }

    .hero-copy {
        font-size: calc(12px * var(--font-size-scale));
    }

    .section-head {
        align-items: stretch;
        flex-direction: column;
        gap: 10px;
    }

    .section-head-tools {
        width: 100%;
        flex: none;
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        justify-items: stretch;
    }

    .search-wrap {
        max-width: none;
        min-width: 0;
    }

    .search-input {
        height: 38px;
    }

    .story-card {
        padding: 15px;
    }

    .story-layout {
        grid-template-columns: 64px minmax(0, 1fr);
        gap: 12px;
    }

    .story-thumbnail {
        width: 64px;
        min-height: 64px;
    }

    .story-title {
        font-size: calc(14px * var(--font-size-scale));
    }

    .right-rail {
        grid-template-columns: minmax(0, 1fr);
    }

    .signal-card {
        grid-column: auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        scroll-behavior: auto !important;
        animation-duration: .01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
    }
}

:root[data-theme="light"] :scope {
    color-scheme: light;
    --bg: #f3f6fa;
    --panel: #fff;
    --panel-raised: #f8fafc;
    --panel-hover: #edf2f8;
    --line: rgba(39,59,83,.13);
    --line-strong: rgba(39,59,83,.22);
    --text: #172334;
    --muted: #536277;
    --subtle: #718096;
    --cyan: #0879c9;
    --cyan-bright: #0879c9;
    --cyan-wash: rgba(8,121,201,.09);
    --shadow: 0 24px 70px rgba(40,60,84,.12);
}

    :root[data-theme="light"] :scope {
        background: radial-gradient(ellipse at 78% -15%, rgba(0,136,255,.08), transparent 37rem), var(--bg);
    }

    :root[data-theme="light"] :scope .sidebar {
        background: rgba(247,249,252,.96);
    }

    :root[data-theme="light"] :scope .nav-button:hover,
    :root[data-theme="light"] :scope .source-row:hover {
        background: rgba(39,59,83,.045);
    }

    :root[data-theme="light"] :scope .nav-button.active {
        color: #075fae;
    }

    :root[data-theme="light"] :scope .cache-card {
        background: linear-gradient(145deg, rgba(0,136,255,.08), rgba(255,255,255,.9) 70%);
    }

    :root[data-theme="light"] :scope .cache-heading,
    :root[data-theme="light"] :scope .cache-copy strong {
        color: #33465d;
    }

    :root[data-theme="light"] :scope .icon-button,
    :root[data-theme="light"] :scope .refresh-button {
        color: var(--text);
    }

        :root[data-theme="light"] :scope .icon-button:hover,
        :root[data-theme="light"] :scope .refresh-button:hover {
            background: var(--panel-hover);
        }

    :root[data-theme="light"] :scope .hero {
        border-color: rgba(64,111,157,.2);
        background: linear-gradient(115deg, rgba(255,255,255,.98), rgba(241,247,253,.96) 58%, rgba(226,241,253,.92));
    }

    :root[data-theme="light"] :scope .hero-stat-link,
    :root[data-theme="light"] :scope .hero-stat-link strong {
        color: #176da9;
    }

    :root[data-theme="light"] :scope .gradient-text {
        background: linear-gradient(95deg, #1d3856 0%, #126fb5 62%, #0879c9 100%);
        background-clip: text;
        -webkit-background-clip: text;
    }

    :root[data-theme="light"] :scope .hero-copy,
    :root[data-theme="light"] :scope .signal-label {
        color: #52647a;
    }

    :root[data-theme="light"] :scope .hero-stat:not(.hero-stat-link),
    :root[data-theme="light"] :scope .hero-stat:not(.hero-stat-link) strong {
        color: #536277;
    }

    :root[data-theme="light"] :scope .crumb-current {
        color: var(--text);
    }

    :root[data-theme="light"] :scope .zoom-button {
        border-color: rgba(8,121,201,.28);
        background: rgba(8,121,201,.08);
        color: #176da9;
    }

        :root[data-theme="light"] :scope .zoom-button:hover:not(:disabled) {
            border-color: rgba(8,121,201,.55);
            background: rgba(8,121,201,.15);
            color: #084f88;
        }

    :root[data-theme="light"] :scope .topic-button:hover {
        background: rgba(39,59,83,.05);
    }

    :root[data-theme="light"] :scope .topic-button.selected {
        color: #075fae;
    }

    :root[data-theme="light"] :scope .search-input {
        background: rgba(255,255,255,.9);
    }

        :root[data-theme="light"] :scope .search-input::placeholder {
            color: #78879a;
        }

    :root[data-theme="light"] :scope .story-card {
        background: linear-gradient(135deg, #fff, #f8fafc);
    }

        :root[data-theme="light"] :scope .story-card:hover {
            background: linear-gradient(135deg, #fff, #f1f7fc);
        }

    :root[data-theme="light"] :scope .story-source {
        color: #46586e;
    }

    :root[data-theme="light"] :scope .source-monogram {
        border-color: rgba(45,93,140,.2);
        background: rgba(8,121,201,.08);
        color: #176da9;
    }

    :root[data-theme="light"] :scope .story-title {
        color: #1a2a3d;
    }

        :root[data-theme="light"] :scope .story-title:hover,
        :root[data-theme="light"] :scope .story-card:hover .story-title,
        :root[data-theme="light"] :scope .story-card:focus-visible .story-title {
            color: #0868ad;
        }

    :root[data-theme="light"] :scope .story-summary {
        color: #58677a;
    }

    :root[data-theme="light"] :scope .story-tag {
        border-color: rgba(39,59,83,.12);
        background: rgba(39,59,83,.035);
        color: #596a7f;
    }

    :root[data-theme="light"] :scope .read-link {
        color: #41658a;
    }

    :root[data-theme="light"] :scope .empty-state,
    :root[data-theme="light"] :scope .rail-card {
        background: rgba(255,255,255,.88);
    }

    :root[data-theme="light"] :scope .source-dialog {
        background: #fff;
        box-shadow: 0 28px 90px rgba(30,48,70,.22);
    }

    :root[data-theme="light"] :scope .source-dialog-eyebrow {
        color: #176da9;
    }

    :root[data-theme="light"] :scope .source-form-error {
        color: #b52e43;
    }

    :root[data-theme="light"] :scope .empty-action {
        color: #075fae;
    }

    :root[data-theme="light"] :scope .source-dialog::backdrop {
        background: rgba(30,45,64,.38);
    }

    :root[data-theme="light"] :scope .source-field,
    :root[data-theme="light"] :scope .source-dialog-button {
        color: #46586e;
    }

    :root[data-theme="light"] :scope .source-input {
        background: #f8fafc;
    }

        :root[data-theme="light"] :scope .source-input::placeholder {
            color: #78879a;
        }

    :root[data-theme="light"] :scope .trend-item {
        border-color: rgba(45,93,140,.16);
        background: rgba(8,121,201,.045);
        color: #46586e;
    }

        :root[data-theme="light"] :scope .trend-item::after {
            color: #176da9;
        }

        :root[data-theme="light"] :scope .trend-item:hover,
        :root[data-theme="light"] :scope .trend-item[aria-pressed="true"] {
            border-color: rgba(8,121,201,.35);
            background: rgba(8,121,201,.1);
            color: #1b4d77;
        }

        :root[data-theme="light"] :scope .trend-item:focus-visible {
            outline-color: #0879c9;
        }

    :root[data-theme="light"] :scope .trend-index,
    :root[data-theme="light"] :scope .trend-count {
        color: #68798e;
    }

    :root[data-theme="light"] :scope .signal-card {
        border-color: rgba(8,121,201,.15);
        background: linear-gradient(145deg, rgba(8,121,201,.07), rgba(255,255,255,.94) 64%);
    }

        :root[data-theme="light"] :scope .signal-card p,
        :root[data-theme="light"] :scope .footer-note {
            color: #68788c;
        }

        :root[data-theme="light"] :scope .signal-card strong {
            color: #3d5067;
        }

    :root[data-theme="light"] :scope .source-action.reset {
        border-color: rgba(8,121,201,.25);
        color: #0879c9;
    }

        :root[data-theme="light"] :scope .source-action.reset:hover:not(:disabled) {
            border-color: rgba(8,121,201,.5);
            background: rgba(8,121,201,.08);
            color: #075fae;
        }

    :root[data-theme="light"] :scope .source-action.clear-all {
        border-color: rgba(190,48,67,.25);
        color: #b52e43;
    }

        :root[data-theme="light"] :scope .source-action.clear-all:hover:not(:disabled) {
            border-color: rgba(190,48,67,.5);
            background: rgba(190,48,67,.08);
            color: #922338;
        }

    :root[data-theme="light"] :scope .source-action.add-all {
        border-color: rgba(27,137,81,.25);
        color: #167242;
    }

        :root[data-theme="light"] :scope .source-action.add-all:hover:not(:disabled) {
            border-color: rgba(27,137,81,.5);
            background: rgba(27,137,81,.08);
            color: #105d34;
        }

}
html:has(> body.ai-page) {
    scroll-behavior: smooth;
}

@scope (body.home-page) {

        :scope {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        :scope {
            background-color: #000;
            color: #fff;
            font-family: 'Roboto', sans-serif;
            line-height: 1.6;
            overflow-x: hidden;
        }

        .hero {
            isolation: isolate;
            position: relative;
            display: grid;
            min-height: clamp(280px, 34vw, 420px);
            place-items: center;
            padding: 4rem 2rem;
            overflow: hidden;
            background:
                radial-gradient(ellipse at 50% 110%, rgba(0, 136, 255, .16), transparent 58%),
                linear-gradient(180deg, #03070e 0%, #050a12 100%);
            border-bottom: 1px solid rgba(0, 136, 255, .18);
        }

        .hero::before,
        .hero::after {
            content: "";
            position: absolute;
            inset: -65%;
            pointer-events: none;
        }

        .hero::before {
            z-index: 0;
            border-radius: 50%;
            background:
                radial-gradient(circle, transparent 0 25%, rgba(0, 136, 255, .19) 25.1% 25.25%, transparent 25.5% 40%, rgba(0, 136, 255, .12) 40.1% 40.25%, transparent 40.5% 56%, rgba(0, 136, 255, .08) 56.1% 56.2%, transparent 56.5%),
                conic-gradient(from 18deg, transparent 0deg 27deg, rgba(0, 136, 255, .09) 28deg 36deg, transparent 37deg 91deg, rgba(0, 136, 255, .06) 92deg 98deg, transparent 99deg 170deg, rgba(0, 136, 255, .08) 171deg 179deg, transparent 180deg 270deg, rgba(0, 136, 255, .06) 271deg 278deg, transparent 279deg);
            opacity: .78;
            -webkit-mask-image: radial-gradient(ellipse, #000 0%, transparent 72%);
            mask-image: radial-gradient(ellipse, #000 0%, transparent 72%);
            animation: rotate 48s linear infinite;
        }

        .hero::after {
            z-index: 0;
            background:
                radial-gradient(ellipse at 50% 50%, rgba(0, 136, 255, .2), transparent 38%),
                linear-gradient(90deg, transparent 20%, rgba(0, 136, 255, .07) 50%, transparent 80%);
            filter: blur(22px);
            opacity: .7;
            animation: pulse 8s ease-in-out infinite alternate;
        }

        .features {
            display: grid;
            grid-template-columns: minmax(0, 1fr);
            gap: 2rem;
            width: 100%;
            padding: 0 2rem 4rem;
            margin: 0 auto;
        }

        .feature {
            display: grid;
            grid-template-columns: 140px minmax(0, 1fr);
            align-items: start;
            gap: 1.5rem;
            background: rgba(8, 16, 27, .78);
            border: 1px solid rgba(0, 136, 255, .24);
            border-radius: 12px;
            padding: 2rem;
            width: 100%;
            color: inherit;
            text-decoration: none;
            transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            position: relative;
            overflow: hidden;
            backdrop-filter: blur(10px);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
        }

        .feature-content {
            min-width: 0;
        }

        .feature-thumb {
            display: block;
            width: 140px;
            height: 140px;
            margin: 0;
            border: 1px solid rgba(0, 136, 255, .72);
            border-radius: 12px;
            object-fit: cover;
        }

        .feature:hover {
            transform: translateY(-6px);
            border-color: rgba(0, 136, 255, .62);
            box-shadow: 0 15px 35px rgba(0, 136, 255, .13);
        }

        .feature:focus-visible {
            outline: 2px solid #00ccff;
            outline-offset: 4px;
        }

        .feature::before {
            content: "";
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 4px;
            background: linear-gradient(90deg, rgba(0, 136, 255, .55), transparent);
            transform: scaleX(0);
            transform-origin: left;
            transition: transform 0.5s ease;
        }

        .feature:hover::before {
            transform: scaleX(1);
        }

        .feature h3 {
            font-size: 1.8rem;
            margin-bottom: 1rem;
            color: #5aabf5;
            position: relative;
            display: inline-block;
        }

        .feature h3::after {
            content: "";
            position: absolute;
            bottom: -5px;
            left: 0;
            width: 100%;
            height: 2px;
            background: rgba(0, 136, 255, .55);
            transform: scaleX(0);
            transition: transform 0.3s ease;
        }

        .feature:hover h3::after {
            transform: scaleX(1);
        }

        .feature p {
            font-weight: 300;
            margin-bottom: 1.5rem;
            line-height: 1.7;
        }

        .legal-links {
            display: flex;
            justify-content: center;
            gap: 3rem;
            padding: 0rem;
            margin-top: 0rem;
            flex-wrap: wrap;
        }

        .legal-links a {
            color: #aaa;
            text-decoration: none;
            transition: all 0.3s ease;
            font-weight: 300;
        }

        .legal-links a:hover {
            color: #0099ff;
            transform: translateY(-3px);
        }
		
		.hero-header {
			position: relative;
			z-index: 1;
			display: flex;
			width: 100%;
			justify-content: center;
		}

		.hero-header img {
			width: clamp(200px, 80%, 400px);
			max-width: 100%;
			height: auto;
			filter: drop-shadow(0 0 18px rgba(0, 136, 255, .28));
		}

        footer {
            text-align: center;
            padding: 0rem;
            margin-top: 0rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
            font-weight: 300;
            color: #555;
        }

        @media (max-width: 768px) {
            .features {
                padding: 0 1rem 3rem;
            }

            .feature {
                grid-template-columns: 120px minmax(0, 1fr);
                gap: 1rem;
                padding: 1.5rem;
            }

            .feature-thumb {
                width: 120px;
                height: 120px;
            }
        }

        @media (max-width: 520px) {
            .features {
                padding: 0 .75rem 3rem;
            }

            .feature {
                grid-template-columns: 88px minmax(0, 1fr);
                gap: .75rem;
                padding: 1rem;
            }

            .feature-thumb {
                width: 88px;
                height: 88px;
            }

            .feature h3 {
                font-size: 1.4rem;
            }
        }

}
@scope (body.ft8lab-page) {

        :scope {
            color-scheme: dark;
            --sd-bg: #050a12;
            --sd-bg-alt: #0a1322;
            --sd-panel: rgba(10, 19, 34, 0.78);
            --sd-panel-strong: rgba(14, 26, 46, 0.92);
            --sd-border: rgba(0, 119, 238, 0.22);
            --sd-border-strong: rgba(0, 119, 238, 0.55);
            --sd-accent: #0077EE;
            --sd-accent-soft: rgba(0, 119, 238, 0.16);
            --sd-text: #edf5ff;
            --sd-text-soft: #b4c7de;
            --sd-text-dim: #7f95b2;
            --sd-shadow: 0 24px 70px rgba(0, 0, 0, 0.45);
            --sd-radius: 22px;
            --sd-radius-small: 16px;
            --sd-max: 1240px;
        }

        * {
            box-sizing: border-box;
        }

        :scope {
            scroll-behavior: smooth;
        }

        :scope {
            margin: 0;
            font-family: Inter, Segoe UI, Arial, Helvetica, sans-serif;
            color: var(--sd-text);
            background: radial-gradient(circle at 15% 20%, rgba(0, 119, 238, 0.18), transparent 30%), radial-gradient(circle at 85% 15%, rgba(0, 180, 255, 0.12), transparent 26%), radial-gradient(circle at 50% 90%, rgba(0, 119, 238, 0.08), transparent 32%), linear-gradient(180deg, #04080f 0%, #08101c 28%, #050a12 100%);
            line-height: 1.6;
            overflow-x: hidden;
        }

        a {
            color: inherit;
            text-decoration: none;
        }

        img {
            max-width: 100%;
            display: block;
        }

        .sd-shell {
            width: min(calc(100% - 40px), var(--sd-max));
            margin: 0 auto;
        }

        .sd-grid-glow {
            position: fixed;
            inset: 0;
            pointer-events: none;
            background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
            background-size: 36px 36px;
            mask-image: radial-gradient(circle at center, black 35%, transparent 82%);
            opacity: 0.28;
        }

        .sd-hero {
            position: relative;
            padding: 40px 0 80px;
        }

        .sd-topbar {
            display: flex;
            justify-content: space-between;
            align-items: center;
            gap: 20px;
            padding: 18px 22px;
            margin-top: 18px;
            border: 1px solid var(--sd-border);
            border-radius: 999px;
            background: rgba(7, 13, 22, 0.65);
            backdrop-filter: blur(14px);
            box-shadow: 0 14px 35px rgba(0, 0, 0, 0.22);
        }

        .sd-brand-mini {
            display: flex;
            align-items: center;
            gap: 14px;
            min-width: 0;
        }

            .sd-brand-mini img {
                width: 180px;
                max-width: 42vw;
                filter: drop-shadow(0 0 18px rgba(0, 119, 238, 0.3));
            }

            .sd-brand-mini .sd-home-logo img {
                width: 108px;
                max-width: 27vw;
                filter: none;
            }

        .sd-nav {
            display: flex;
            flex-wrap: wrap;
            justify-content: flex-end;
            gap: 14px;
            font-size: 0.92rem;
            color: var(--sd-text-soft);
        }

            .sd-nav a {
                padding: 8px 12px;
                border-radius: 999px;
                transition: 180ms ease;
            }

                .sd-nav a:hover {
                    color: var(--sd-text);
                    background: rgba(0, 119, 238, 0.12);
                    box-shadow: 0 0 0 1px rgba(0, 119, 238, 0.2) inset;
                }

        .sd-hero-body {
            display: grid;
            grid-template-columns: 1.15fr 0.85fr;
            gap: 34px;
            align-items: center;
            margin-top: 42px;
        }

        .sd-kicker {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 10px 16px;
            border: 1px solid var(--sd-border);
            border-radius: 999px;
            background: rgba(0, 119, 238, 0.09);
            color: #8cc3ff;
            font-size: 0.82rem;
            font-weight: 700;
            letter-spacing: 0.18em;
            text-transform: uppercase;
        }

            .sd-kicker::before {
                content: "";
                width: 8px;
                height: 8px;
                border-radius: 50%;
                background: var(--sd-accent);
                box-shadow: 0 0 14px var(--sd-accent);
            }

        .sd-hero-copy h1 {
            margin: 18px 0 20px;
            font-size: clamp(2.7rem, 5vw, 5.3rem);
            line-height: 0.96;
            letter-spacing: -0.04em;
        }

        .sd-hero-copy p {
            margin: 0;
            max-width: 760px;
            font-size: 1.1rem;
            color: var(--sd-text-soft);
        }

        .sd-cta-row {
            display: flex;
            flex-wrap: wrap;
            gap: 16px;
            margin-top: 28px;
        }

        .sd-btn {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 180px;
            padding: 15px 22px;
            border-radius: 14px;
            border: 1px solid transparent;
            font-weight: 700;
            letter-spacing: 0.04em;
            text-transform: uppercase;
            transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease, background 180ms ease;
        }

        .sd-btn-primary {
            background: linear-gradient(135deg, #0077EE 0%, #2498ff 100%);
            color: #ffffff;
            box-shadow: 0 12px 30px rgba(0, 119, 238, 0.38);
        }

            .sd-btn-primary:hover {
                transform: translateY(-2px);
                box-shadow: 0 18px 40px rgba(0, 119, 238, 0.5);
            }

        .sd-btn-secondary {
            background: rgba(255, 255, 255, 0.02);
            border-color: var(--sd-border-strong);
            color: var(--sd-text);
        }

            .sd-btn-secondary:hover {
                transform: translateY(-2px);
                background: rgba(0, 119, 238, 0.1);
                box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
            }

        .sd-hero-panel {
            position: relative;
            padding: 26px;
            border: 1px solid var(--sd-border);
            border-radius: var(--sd-radius);
            background: linear-gradient(180deg, rgba(11, 21, 38, 0.92) 0%, rgba(8, 15, 27, 0.84) 100%);
            box-shadow: var(--sd-shadow);
            overflow: hidden;
        }

            .sd-hero-panel::before {
                content: "";
                position: absolute;
                inset: -40% auto auto -20%;
                width: 220px;
                height: 220px;
                border-radius: 50%;
                background: radial-gradient(circle, rgba(0, 119, 238, 0.26), transparent 70%);
            }

        .sd-panel-title {
            position: relative;
            margin: 0 0 18px;
            font-size: 0.86rem;
            font-weight: 700;
            color: #84bfff;
            text-transform: uppercase;
            letter-spacing: 0.18em;
        }

        .sd-stat-grid {
            position: relative;
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 14px;
        }

        .sd-stat {
            padding: 18px;
            border: 1px solid rgba(0, 119, 238, 0.16);
            border-radius: 18px;
            background: rgba(255, 255, 255, 0.025);
            transition: 180ms ease;
        }

            .sd-stat:hover {
                transform: translateY(-3px);
                border-color: rgba(0, 119, 238, 0.42);
                box-shadow: 0 12px 22px rgba(0, 0, 0, 0.22);
            }

            .sd-stat strong {
                display: block;
                font-size: 1.05rem;
                color: var(--sd-text);
                margin-bottom: 6px;
            }

            .sd-stat span {
                color: var(--sd-text-dim);
                font-size: 0.93rem;
            }

        .sd-section {
            padding: 24px 0 76px;
        }

        .sd-section-header {
            margin-bottom: 26px;
        }

        .sd-eyebrow {
            display: inline-block;
            margin-bottom: 10px;
            color: #82bdff;
            text-transform: uppercase;
            letter-spacing: 0.22em;
            font-size: 0.8rem;
            font-weight: 800;
        }

        .sd-section-header h2 {
            margin: 0 0 10px;
            font-size: clamp(2rem, 3vw, 3rem);
            letter-spacing: -0.03em;
        }

        .sd-section-header p {
            max-width: 860px;
            margin: 0;
            color: var(--sd-text-soft);
            font-size: 1.04rem;
        }

        .sd-story {
            display: grid;
            grid-template-columns: repeat(2, minmax(0, 1fr));
            gap: 22px;
        }

        .sd-card {
            border: 1px solid var(--sd-border);
            border-radius: var(--sd-radius);
            background: var(--sd-panel);
            backdrop-filter: blur(14px);
            box-shadow: var(--sd-shadow);
        }

        .sd-card-copy {
            padding: 28px;
        }

            .sd-card-copy p {
                margin: 0 0 14px;
                color: var(--sd-text-soft);
            }

                .sd-card-copy p:last-child {
                    margin-bottom: 0;
                }

        .sd-gallery-row {
            display: flex;
            flex-wrap: wrap;
            gap: 18px;
            align-items: flex-start;
        }

        .sd-gallery-item {
            flex: 1 1 250px;
            min-width: 220px;
        }

            .sd-gallery-item figure {
                margin: 0;
            }

        .sd-thumb-frame {
            position: relative;
            overflow: visible;
            padding-top: 8px;
        }

        .sd-thumb {
            width: 100%;
            max-width: 290px;
            margin: 0 auto;
            border-radius: 18px;
            border: 1px solid rgba(255, 255, 255, 0.08);
            background: rgba(255, 255, 255, 0.02);
            box-shadow: 0 10px 24px rgba(0, 0, 0, 0.25);
            transform-origin: top center;
            transition: transform 260ms ease, box-shadow 260ms ease, border-color 260ms ease, filter 260ms ease;
            z-index: 1;
            position: relative;
        }

        .sd-thumb-frame:hover .sd-thumb,
        .sd-thumb-frame:focus-within .sd-thumb {
            transform: scale(2.22);
            border-color: rgba(0, 119, 238, 0.7);
            box-shadow: 0 26px 65px rgba(0, 0, 0, 0.48), 0 0 0 1px rgba(0, 119, 238, 0.32);
            filter: saturate(1.08);
            z-index: 12;
        }

        .sd-gallery-item figcaption {
            margin-top: 16px;
            text-align: center;
            color: var(--sd-text-dim);
            font-size: 0.92rem;
        }

        .sd-layout-panel {
            padding: 28px;
            border: 1px solid var(--sd-border);
            border-radius: var(--sd-radius);
            background: linear-gradient(180deg, rgba(8, 15, 27, 0.92) 0%, rgba(10, 19, 34, 0.84) 100%);
            box-shadow: var(--sd-shadow);
        }

        .sd-layout-grid {
            display: grid;
            grid-template-columns: 0.92fr 1.08fr;
            gap: 28px;
            align-items: center;
        }

        .sd-badges {
            display: flex;
            flex-wrap: wrap;
            gap: 12px;
            margin-top: 22px;
        }

        .sd-badge {
            padding: 11px 14px;
            border-radius: 999px;
            border: 1px solid rgba(0, 119, 238, 0.26);
            background: rgba(0, 119, 238, 0.08);
            color: #9bcfff;
            font-size: 0.84rem;
            font-weight: 700;
            letter-spacing: 0.06em;
            text-transform: uppercase;
            transition: 180ms ease;
        }

            .sd-badge:hover {
                transform: translateY(-2px);
                border-color: rgba(0, 119, 238, 0.55);
                box-shadow: 0 12px 25px rgba(0, 119, 238, 0.12);
            }

        .sd-layout-thumb-wrap {
            display: flex;
            justify-content: center;
            align-items: center;
            min-height: 350px;
            overflow: visible;
        }

        .sd-layout-thumb {
            width: min(100%, 360px);
            background: transparent;
            border-radius: 16px;
            filter: drop-shadow(0 20px 36px rgba(0, 0, 0, 0.42));
            transform-origin: center;
            transition: transform 280ms ease, filter 280ms ease;
            position: relative;
            z-index: 1;
        }

        .sd-layout-thumb-wrap:hover .sd-layout-thumb,
        .sd-layout-thumb-wrap:focus-within .sd-layout-thumb {
            transform: scale(1.85);
            filter: drop-shadow(0 28px 56px rgba(0, 0, 0, 0.56)) drop-shadow(0 0 18px rgba(0, 119, 238, 0.22));
            z-index: 10;
        }

        .sd-pages-grid {
            display: grid;
            grid-template-columns: repeat(4, minmax(0, 1fr));
            gap: 18px;
        }

        .sd-page-card {
            padding: 22px;
            border: 1px solid var(--sd-border);
            border-radius: 22px;
            background: linear-gradient(180deg, rgba(10, 19, 34, 0.9) 0%, rgba(7, 13, 22, 0.88) 100%);
            box-shadow: var(--sd-shadow);
            transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
        }

            .sd-page-card:hover {
                transform: translateY(-5px);
                border-color: rgba(0, 119, 238, 0.54);
                box-shadow: 0 26px 50px rgba(0, 0, 0, 0.32), 0 0 0 1px rgba(0, 119, 238, 0.14);
            }

        .sd-page-tag {
            display: inline-flex;
            align-items: center;
            justify-content: center;
            min-width: 62px;
            padding: 8px 12px;
            border-radius: 12px;
            background: var(--sd-accent-soft);
            color: #8bc6ff;
            font-weight: 900;
            letter-spacing: 0.14em;
            text-transform: uppercase;
            font-size: 0.92rem;
        }

        .sd-page-card h3 {
            margin: 16px 0 10px;
            font-size: 1.08rem;
        }

        .sd-page-card p {
            margin: 0;
            color: var(--sd-text-soft);
            font-size: 0.96rem;
        }

        .sd-feature-grid {
            display: grid;
            grid-template-columns: repeat(3, minmax(0, 1fr));
            gap: 18px;
        }

        .sd-feature {
            padding: 22px;
            border-radius: 22px;
            border: 1px solid var(--sd-border);
            background: var(--sd-panel-strong);
            box-shadow: var(--sd-shadow);
            transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
        }

            .sd-feature:hover {
                transform: translateY(-4px);
                border-color: rgba(0, 119, 238, 0.54);
                background: rgba(12, 23, 41, 0.96);
            }

            .sd-feature strong {
                display: block;
                margin-bottom: 8px;
                font-size: 1rem;
                color: #8fc8ff;
                letter-spacing: 0.04em;
                text-transform: uppercase;
            }

            .sd-feature p {
                margin: 0;
                color: var(--sd-text-soft);
            }

        .sd-footer {
            padding: 34px 0 60px;
            color: var(--sd-text-dim);
            text-align: center;
        }

            .sd-footer strong {
                color: var(--sd-text);
            }

        @media (max-width: 1120px) {
            .sd-hero-body,
            .sd-layout-grid,
            .sd-story {
                grid-template-columns: 1fr;
            }

            .sd-pages-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }

            .sd-feature-grid {
                grid-template-columns: repeat(2, minmax(0, 1fr));
            }
        }

        @media (max-width: 760px) {
            .sd-shell {
                width: min(calc(100% - 24px), var(--sd-max));
            }

            .sd-topbar {
                border-radius: 28px;
                align-items: flex-start;
                flex-direction: column;
            }

            .sd-nav {
                justify-content: flex-start;
            }

            .sd-hero {
                padding-top: 18px;
            }

            .sd-stat-grid,
            .sd-pages-grid,
            .sd-feature-grid {
                grid-template-columns: 1fr;
            }

            .sd-thumb-frame:hover .sd-thumb,
            .sd-thumb-frame:focus-within .sd-thumb {
                transform: scale(1.45);
            }

            .sd-layout-thumb-wrap:hover .sd-layout-thumb,
            .sd-layout-thumb-wrap:focus-within .sd-layout-thumb {
                transform: scale(1.28);
            }
        }
    
}
@scope (body.terms-page) {

        :scope {
            margin: 0;
            font-family: 'Roboto', sans-serif;
            background-color: #000;
            color: #bfbfbf;
            line-height: 1.6;
            padding: 2rem;
        }

        .container {
            max-width: 800px;
            margin: auto;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
        }

            header img {
                height: 60px;
            }

            header h1 {
                margin: 0;
                color: #fff;
                text-align: right;
            }

        h2 {
            color: #fff;
            margin-top: 2rem;
        }

        a {
            color: #fff;
            text-decoration: none;
        }

            a:hover {
                text-decoration: underline;
            }

        footer {
            margin-top: 3rem;
            font-size: 0.9rem;
            color: #888;
            border-top: 1px solid #333;
            padding-top: 1rem;
        }
    
}
@scope (body.privacy-page) {

        :scope {
            margin: 0;
            font-family: 'Roboto', sans-serif;
            background-color: #000;
            color: #bfbfbf;
            line-height: 1.6;
            padding: 2rem;
        }

        .container {
            max-width: 800px;
            margin: auto;
        }

        header {
            display: flex;
            justify-content: space-between;
            align-items: flex-start;
            margin-bottom: 2rem;
        }

            header img {
                height: 60px;
            }

            header h1 {
                margin: 0;
                color: #fff;
                text-align: right;
            }

        h2 {
            color: #fff;
        }

        a {
            color: #fff;
            text-decoration: none;
        }

            a:hover {
                text-decoration: underline;
            }

        footer {
            margin-top: 3rem;
            font-size: 0.9rem;
            color: #888;
            border-top: 1px solid #333;
            padding-top: 1rem;
        }
    
}
@scope (body.guf-page) {

    :scope {
      --bg: #05070a;
      --bg-alt: #0b0f16;
      --text: #e5e9f0;
      --muted: #8b92a3;
      --accent: #0088FF;
      --accent-soft: rgba(0, 136, 255, 0.18);
      --border: #1b2333;
    }

    * {
      box-sizing: border-box;
    }

    :scope {
      margin: 0;
      padding: 0;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      background: radial-gradient(circle at top, #0b1220 0, #05070a 55%, #020308 100%);
      color: var(--text);
      line-height: 1.6;
    }

    .page {
      max-width: 960px;
      margin: 0 auto;
      padding: 32px 18px 40px;
    }

    header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      margin-bottom: 28px;
    }

    .logo {
      display: flex;
      align-items: center;
      gap: 10px;
    }

    .logo img {
      height: 32px;
      width: auto;
      filter: drop-shadow(0 0 6px rgba(0, 136, 255, 0.6));
    }

    .logo span {
      font-size: 14px;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: var(--muted);
    }

    .tagline {
      font-size: 12px;
      color: var(--muted);
      text-align: right;
    }

    h1 {
      font-size: 26px;
      margin: 0 0 6px;
      color: var(--text);
    }

    h2 {
      font-size: 18px;
      margin: 22px 0 8px;
      color: var(--text);
    }

    h3 {
      font-size: 15px;
      margin: 14px 0 6px;
      color: var(--text);
    }

    .pill {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 10px;
      border-radius: 999px;
      background: var(--accent-soft);
      border: 1px solid rgba(0, 136, 255, 0.4);
      color: var(--accent);
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 0.12em;
      margin-bottom: 12px;
    }

    .pill-dot {
      width: 6px;
      height: 6px;
      border-radius: 50%;
      background: var(--accent);
      box-shadow: 0 0 8px rgba(0, 136, 255, 0.8);
    }

    .card {
      background: linear-gradient(135deg, rgba(0, 136, 255, 0.08), rgba(11, 15, 22, 0.96));
      border-radius: 14px;
      border: 1px solid var(--border);
      padding: 14px 14px 12px;
      margin-bottom: 18px;
    }

    .card-title {
      font-size: 13px;
      font-weight: 600;
      color: var(--accent);
      margin-bottom: 6px;
      text-transform: uppercase;
      letter-spacing: 0.14em;
    }

    .card p {
      margin: 4px 0;
      font-size: 13px;
      color: var(--muted);
    }

    .grid {
      display: grid;
      grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
      gap: 18px;
      margin-top: 18px;
    }

    @media (max-width: 768px) {
      .grid {
        grid-template-columns: minmax(0, 1fr);
      }
    }

    ul {
      margin: 6px 0 8px;
      padding-left: 18px;
      font-size: 13px;
    }

    li {
      margin: 2px 0;
      color: var(--muted);
    }

    strong {
      color: var(--text);
      font-weight: 600;
    }

    .section {
      background: var(--bg-alt);
      border-radius: 12px;
      border: 1px solid var(--border);
      padding: 12px 14px;
      margin-bottom: 14px;
    }

    .section-header {
      display: flex;
      justify-content: space-between;
      align-items: baseline;
      margin-bottom: 6px;
    }

    .section-header h2 {
      margin: 0;
    }

    .section-header span {
      font-size: 11px;
      color: var(--muted);
      text-transform: uppercase;
      letter-spacing: 0.12em;
    }

    .code {
      font-family: "JetBrains Mono", "SF Mono", Menlo, monospace;
      font-size: 12px;
      background: #05070a;
      border-radius: 8px;
      border: 1px solid #141b2b;
      padding: 8px 10px;
      color: #cbd5f5;
      overflow-x: auto;
      margin-top: 6px;
    }

    .footer-note {
      margin-top: 18px;
      font-size: 11px;
      color: var(--muted);
      text-align: right;
    }

    a {
      color: var(--accent);
      text-decoration: none;
    }

    a:hover {
      text-decoration: underline;
    }
  
}
@scope (body.steam-page) {

    :scope {
      background-color: #000;
      color: #eee;
      font-family: sans-serif;
      margin: 20px;
    }
    h1 {
      margin-bottom: 10px;
    }
    .grid {
      display: flex;
      flex-wrap: wrap;
      gap: 16px;
    }
    .item {
      border: 1px solid #444;
      padding: 8px;
      width: 220px;
      box-sizing: border-box;
      font-size: 12px;
      background-color: #111;
    }
    .item img {
      display: block;
      max-width: 200px;
      max-height: 150px;
      margin-bottom: 6px;
      object-fit: contain;
      background: #222;
    }
    .url a {
      color: #66ccff;
      text-decoration: none;
    }
    .url a:hover {
      text-decoration: underline;
    }
  
}
@scope (body.pocketpc-page) {

    :scope {
      --accent: #0099FF;
      --bg: #f9fafc;
      --text: #1f2937;
      --muted: #6b7280;
      --card: #ffffff;
      --border: #e5e7eb;
    }
    :scope {
      margin: 0;
      font-family: 'Roboto', sans-serif;
      background: var(--bg);
      color: var(--text);
    }
    header {
      background: #111827;
      color: white;
      text-align: center;
      padding: 32px 16px;
    }
    header img {
      max-width: 180px;
      margin-bottom: 12px;
    }
    h1 {
      margin: 0;
      font-size: 1.8rem;
      font-weight: 500;
    }
    main {
      max-width: 800px;
      margin: 40px auto;
      padding: 0 16px;
    }
    .file-list {
      display: grid;
      gap: 20px;
    }
    .file-card {
      background: var(--card);
      border: 1px solid var(--border);
      border-radius: 12px;
      padding: 20px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.05);
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: transform 0.1s ease, box-shadow 0.2s ease;
    }
    .file-card:hover {
      transform: translateY(-2px);
      box-shadow: 0 6px 18px rgba(0,0,0,0.08);
    }
    .file-info {
      flex: 1;
      min-width: 200px;
    }
    .file-name {
      font-weight: 500;
      font-size: 1.05rem;
    }
    .file-meta {
      font-size: 0.9rem;
      color: var(--muted);
      margin-top: 4px;
    }
    .btn {
      background: var(--accent);
      color: white;
      border: none;
      padding: 10px 14px;
      border-radius: 8px;
      font-weight: 500;
      text-decoration: none;
      transition: background 0.2s ease;
    }
    .btn:hover {
      background: #007acc;
    }
    footer {
      text-align: center;
      font-size: 0.85rem;
      color: var(--muted);
      margin: 40px 0 20px;
    }
  
}
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}
@keyframes pulse {
    to {
        opacity: .35;
    }
}
@keyframes rotate {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

@scope (body.guf-page) {
.guf-copy {
  font-size: 13px;
  color: var(--muted);
}
}
@scope (body.ft8lab-page) {
.sd-card-lead {
    margin-top: 0;
    color: var(--sd-text-soft);
}
.sd-card-tail {
    margin-bottom: 0;
    color: var(--sd-text-soft);
}
}

@scope (body.hexen-page) {
    :scope {
        margin: 0;
        min-width: 320px;
        background: #080b11;
        color: #f5f7fa;
        font-family: 'Roboto', sans-serif;
        line-height: 1.6;
        overflow-x: hidden;
    }

    * {
        box-sizing: border-box;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .hexen-shell {
        width: min(1160px, calc(100% - 48px));
        margin: 0 auto;
    }

    .hexen-hero {
        position: relative;
        display: flex;
        min-height: 680px;
        flex-direction: column;
        background: linear-gradient(90deg, rgba(5, 8, 13, .96) 0%, rgba(5, 8, 13, .78) 48%, rgba(5, 8, 13, .22) 100%), linear-gradient(0deg, #080b11 0%, transparent 34%), url("hexen/steam/library_hero_3840x1240.png") center 42% / cover no-repeat;
    }

    .hexen-topbar {
        display: flex;
        align-items: center;
        justify-content: flex-start;
        gap: 18px;
        padding-top: 24px;
    }

    .hexen-brand {
        color: #fff;
        font-size: .85rem;
        font-weight: 700;
        letter-spacing: .16em;
    }

    .hexen-brand img {
        display: block;
        width: 108px;
        height: auto;
    }

    .hexen-product-logo {
        display: block;
        width: 200px;
        max-width: calc(100% - 126px);
        height: auto;
    }

    .hexen-footer a:hover {
        color: #f4bd51;
    }

    .hexen-hero-content {
        padding-top: clamp(100px, 15vh, 170px);
        padding-bottom: 72px;
    }

    .hexen-eyebrow {
        margin: 0 0 15px;
        color: #ffc85e;
        font-size: .78rem;
        font-weight: 700;
        letter-spacing: .17em;
        text-transform: uppercase;
    }

    .hexen-hero h1 {
        max-width: 720px;
        margin: 0;
        font-size: clamp(3rem, 7vw, 5.5rem);
        font-weight: 500;
        letter-spacing: -.055em;
        line-height: 1.02;
        text-wrap: balance;
    }

    .hexen-intro {
        max-width: 650px;
        margin: 24px 0 0;
        color: rgba(239, 244, 251, .8);
        font-size: clamp(1rem, 1.7vw, 1.2rem);
        font-weight: 300;
        line-height: 1.75;
    }

    .hexen-store-links {
        display: flex;
        flex-wrap: wrap;
        gap: 14px;
        margin-top: 32px;
    }

    .hexen-store-button {
        display: flex;
        width: 190px;
        height: 64px;
        align-items: center;
        justify-content: center;
        overflow: hidden;
        padding: 0;
        border: 1px solid rgba(255, 255, 255, .16);
        border-radius: 999px;
        background: rgba(10, 14, 21, .86);
        box-shadow: 0 10px 28px rgba(0, 0, 0, .25);
        transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .hexen-store-button img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: contain;
    }

    .hexen-store-button:hover {
        transform: translateY(-3px);
        border-color: rgba(255, 255, 255, .42);
        background: #111925;
    }

    .hexen-store-button:focus-visible,
    .hexen-footer a:focus-visible {
        outline: 2px solid #ffc85e;
        outline-offset: 4px;
    }

    .hexen-play-button {
        border-color: rgba(88, 183, 124, .55);
    }

    .hexen-steam-button {
        border-color: rgba(104, 165, 220, .55);
    }

    .hexen-store-kicker {
        color: #aeb8c6;
        font-size: .7rem;
        letter-spacing: .06em;
    }

    .hexen-store-name {
        font-size: 1.15rem;
        font-weight: 700;
    }

    .hexen-platform-note {
        margin: 13px 0 0;
        color: rgba(223, 231, 241, .58);
        font-size: .82rem;
    }

    .hexen-intro-section {
        padding-top: 92px;
        padding-bottom: 96px;
    }

    .hexen-section-heading {
        max-width: 700px;
        margin-bottom: 38px;
    }

    .hexen-section-heading h2,
    .hexen-final-cta h2 {
        margin: 0;
        font-size: clamp(2rem, 4vw, 3.1rem);
        font-weight: 500;
        letter-spacing: -.04em;
        line-height: 1.1;
        text-align: left;
    }

    .hexen-section-heading > p:last-child {
        max-width: 590px;
        margin: 16px 0 0;
        color: #a8b2c0;
    }

    .hexen-showcase {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(260px, .8fr);
        align-items: center;
        gap: clamp(28px, 5vw, 68px);
        padding: clamp(18px, 3vw, 34px);
        border: 1px solid rgba(154, 177, 207, .15);
        border-radius: 18px;
        background: linear-gradient(135deg, rgba(22, 30, 42, .9), rgba(11, 15, 22, .96));
        box-shadow: 0 28px 70px rgba(0, 0, 0, .25);
    }

    .hexen-showcase-art img {
        display: block;
        width: 100%;
        border-radius: 11px;
        box-shadow: 0 18px 40px rgba(0, 0, 0, .35);
    }

    .hexen-showcase-copy h3 {
        margin: 0 0 15px;
        color: #fff;
        font-size: clamp(1.5rem, 2.5vw, 2rem);
        font-weight: 500;
        line-height: 1.2;
    }

    .hexen-showcase-copy p {
        margin: 0 0 14px;
        color: #aeb8c6;
        font-weight: 300;
    }

    .hexen-showcase-copy p:last-child {
        margin-bottom: 0;
    }

    .hexen-highlights {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
        margin-top: 18px;
    }

    .hexen-highlight {
        padding: 25px;
        border: 1px solid rgba(154, 177, 207, .13);
        border-radius: 13px;
        background: rgba(16, 22, 31, .8);
    }

    .hexen-highlight-number {
        color: #ffc85e;
        font-size: 1.45rem;
        font-weight: 700;
        letter-spacing: -.03em;
    }

    .hexen-highlight h3 {
        margin: 8px 0 5px;
        font-size: 1rem;
        font-weight: 500;
    }

    .hexen-highlight p {
        margin: 0;
        color: #9ba7b7;
        font-size: .9rem;
        font-weight: 300;
    }

    .hexen-final-cta {
        border-top: 1px solid rgba(154, 177, 207, .12);
        border-bottom: 1px solid rgba(154, 177, 207, .12);
        background: radial-gradient(ellipse at 12% 50%, rgba(238, 168, 50, .09), transparent 35rem), #0c1119;
    }

    .hexen-final-cta-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding-top: 46px;
        padding-bottom: 46px;
    }

    .hexen-final-cta .hexen-eyebrow {
        margin-bottom: 9px;
    }

    .hexen-store-links-compact {
        flex-shrink: 0;
        margin-top: 0;
    }

    .hexen-footer {
        padding: 28px 24px;
        color: #707c8b;
        font-size: .83rem;
        text-align: center;
    }

    .hexen-footer span {
        padding: 0 6px;
        color: #435061;
    }

    @media (max-width: 760px) {
        .hexen-hero {
            min-height: auto;
            background-position: 58% center;
        }

        .hexen-hero-content {
            padding-top: 110px;
            padding-bottom: 70px;
        }

        .hexen-showcase {
            grid-template-columns: minmax(0, 1fr);
        }

        .hexen-showcase-copy {
            max-width: 620px;
        }

        .hexen-highlights {
            grid-template-columns: minmax(0, 1fr);
        }

        .hexen-final-cta-inner {
            align-items: flex-start;
            flex-direction: column;
        }
    }

    @media (max-width: 480px) {
        .hexen-shell {
            width: min(100% - 32px, 1160px);
        }

        .hexen-brand {
            font-size: .73rem;
        }

        .hexen-hero h1 {
            font-size: clamp(2.8rem, 14vw, 4rem);
        }

        .hexen-store-links {
            flex-direction: column;
        }

        .hexen-intro-section {
            padding-top: 64px;
            padding-bottom: 64px;
        }
    }
}

@scope (body.camlab-page) {
    :scope {
        margin: 0;
        min-width: 320px;
        overflow-x: hidden;
        background: radial-gradient(ellipse at 83% 0%, rgba(0, 136, 255, .12), transparent 36rem), #080b11;
        color: #f5f7fa;
        font-family: 'Roboto', sans-serif;
        line-height: 1.65;
    }

    * {
        box-sizing: border-box;
    }

    a {
        color: inherit;
        text-decoration: none;
    }

    .camlab-shell {
        width: min(1160px, calc(100% - 48px));
        margin: 0 auto;
    }

    .camlab-back {
        color: #f5f7fa;
        font-size: .86rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
    }

    .camlab-text-link {
        color: #aab7c8;
        font-size: .88rem;
        transition: color .2s ease;
    }

    .camlab-text-link:hover {
        color: #55c3ff;
    }

    .camlab-text-link span {
        margin-left: 5px;
        color: #43b9ff;
    }

    .camlab-hero {
        display: grid;
        min-height: 625px;
        grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr);
        align-items: center;
        gap: clamp(32px, 5vw, 68px);
        padding-top: 48px;
        padding-bottom: 70px;
    }

    .camlab-hero-copy {
        padding: 20px 0;
    }

    .camlab-eyebrow {
        display: flex;
        align-items: center;
        gap: 10px;
        margin: 0 0 17px;
        color: #63c5ff;
        font-size: .73rem;
        font-weight: 700;
        letter-spacing: .15em;
        text-transform: uppercase;
    }

    .camlab-live-dot,
    .camlab-caption-dot {
        width: 8px;
        height: 8px;
        flex: 0 0 auto;
        border-radius: 50%;
        background: #53d8aa;
        box-shadow: 0 0 14px rgba(83, 216, 170, .55);
    }

    .camlab-brand-row {
        display: flex;
        width: 100%;
        min-width: 0;
        align-items: center;
        gap: 18px;
        margin: 0 0 25px;
    }

    .camlab-brand-row .hexen-brand {
        flex: 0 0 108px;
    }

    .camlab-brand-row .hexen-brand img {
        display: block;
        width: 108px;
        height: auto;
    }

    .camlab-brand-row .camlab-logo {
        display: block;
        flex: 0 0 130px;
        min-width: 0;
        width: 130px;
        height: auto;
    }

    .camlab-hero h1 {
        max-width: 590px;
        margin: 0;
        font-size: clamp(2.65rem, 5.5vw, 4.5rem);
        font-weight: 500;
        letter-spacing: -.055em;
        line-height: 1.04;
        text-wrap: balance;
    }

    .camlab-hero h1 span,
    .camlab-section-heading h2 span,
    .camlab-compare-copy h2 span {
        color: #60c4ff;
    }

    .camlab-lead {
        max-width: 545px;
        margin: 22px 0 0;
        color: #aeb8c6;
        font-size: 1.08rem;
        font-weight: 300;
        line-height: 1.8;
    }

    .camlab-actions {
        display: flex;
        flex-wrap: wrap;
        gap: 12px;
        margin-top: 29px;
    }

    .camlab-button {
        display: inline-flex;
        min-height: 48px;
        align-items: center;
        justify-content: center;
        gap: 12px;
        padding: 10px 17px;
        border: 1px solid transparent;
        border-radius: 8px;
        font-size: .9rem;
        font-weight: 500;
        transition: transform .2s ease, border-color .2s ease, background .2s ease;
    }

    .camlab-button:hover {
        transform: translateY(-2px);
    }

    .camlab-button-primary {
        background: #078ce2;
        color: #fff;
        box-shadow: 0 8px 24px rgba(0, 136, 255, .2);
    }

    .camlab-button-primary:hover {
        background: #159ef4;
    }

    .camlab-button-quiet {
        border-color: rgba(154, 177, 207, .2);
        background: rgba(255, 255, 255, .025);
        color: #d5deea;
    }

    .camlab-button-quiet:hover {
        border-color: rgba(96, 196, 255, .48);
    }

    .camlab-platform-note {
        margin: 14px 0 0;
        color: #748195;
        font-size: .8rem;
    }

    .camlab-hero-visual {
        margin: 0;
        padding: 12px;
        border: 1px solid rgba(154, 177, 207, .17);
        border-radius: 15px;
        background: linear-gradient(145deg, rgba(23, 32, 45, .92), rgba(9, 13, 20, .95));
        box-shadow: 0 28px 80px rgba(0, 0, 0, .42), 0 0 48px rgba(0, 136, 255, .07);
    }

    .camlab-hero-visual img {
        display: block;
        width: 100%;
        height: auto;
        border-radius: 8px;
    }

    .camlab-hero-visual figcaption {
        display: flex;
        align-items: center;
        gap: 9px;
        padding: 13px 5px 1px;
        color: #9eabbc;
        font-size: .8rem;
    }

    .camlab-caption-dot {
        width: 6px;
        height: 6px;
    }

    .camlab-camera-band {
        border-top: 1px solid rgba(154, 177, 207, .12);
        border-bottom: 1px solid rgba(154, 177, 207, .12);
        background: rgba(15, 21, 30, .7);
    }

    .camlab-camera-inner {
        display: flex;
        min-height: 100px;
        align-items: center;
        justify-content: space-between;
        gap: 26px;
    }

    .camlab-camera-inner > p:first-child {
        margin: 0;
        color: #dce5f0;
        font-size: .92rem;
        font-weight: 500;
    }

    .camlab-camera-brands {
        display: flex;
        align-items: center;
        gap: 18px;
    }

    .camlab-camera-brands a {
        display: grid;
        width: 142px;
        height: 58px;
        place-items: center;
        overflow: hidden;
        padding: 8px 12px;
        border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 8px;
        background: #fff;
        transition: transform .2s ease, border-color .2s ease;
    }

    .camlab-camera-brands a:hover {
        transform: translateY(-2px);
        border-color: rgba(96, 196, 255, .55);
    }

    .camlab-camera-brands img {
        display: block;
        max-width: 100%;
        max-height: 100%;
        object-fit: contain;
    }

    .camlab-camera-note {
        max-width: 235px;
        margin: 0;
        color: #8491a4;
        font-size: .77rem;
        line-height: 1.5;
        text-align: right;
    }

    .camlab-workflow,
    .camlab-tools,
    .camlab-gallery {
        padding-top: 100px;
        padding-bottom: 100px;
    }

    .camlab-section-heading {
        max-width: 730px;
        margin-bottom: 38px;
    }

    .camlab-section-heading .camlab-eyebrow,
    .camlab-compare-copy .camlab-eyebrow,
    .camlab-manual-inner .camlab-eyebrow {
        margin-bottom: 13px;
    }

    .camlab-section-heading h2,
    .camlab-compare-copy h2,
    .camlab-manual-inner h2 {
        margin: 0;
        font-size: clamp(2rem, 4.2vw, 3.35rem);
        font-weight: 500;
        letter-spacing: -.045em;
        line-height: 1.12;
        text-wrap: balance;
    }

    .camlab-section-heading > p:last-child {
        max-width: 650px;
        margin: 16px 0 0;
        color: #9eabbc;
        font-weight: 300;
    }

    .camlab-workflow-grid {
        display: grid;
        grid-template-columns: minmax(0, 1.2fr) minmax(280px, .8fr);
        gap: 52px;
        align-items: start;
    }

    .camlab-steps {
        display: grid;
        gap: 22px;
    }

    .camlab-step {
        display: grid;
        grid-template-columns: 46px minmax(0, 1fr);
        gap: 14px;
    }

    .camlab-step-number {
        padding-top: 2px;
        color: #48b7ff;
        font-size: .8rem;
        font-weight: 700;
        letter-spacing: .08em;
    }

    .camlab-step h3,
    .camlab-workflow-note h3,
    .camlab-tool-card h3 {
        margin: 0 0 6px;
        color: #f1f5fa;
        font-size: 1.05rem;
        font-weight: 500;
    }

    .camlab-step p,
    .camlab-workflow-note > p:not(.camlab-note-label),
    .camlab-tool-card p {
        margin: 0;
        color: #98a5b7;
        font-size: .91rem;
        font-weight: 300;
        line-height: 1.75;
    }

    .camlab-code-line {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 9px;
        margin-top: 5px;
        padding: 13px 15px;
        border: 1px solid rgba(154, 177, 207, .13);
        border-radius: 9px;
        background: #0d131d;
        color: #c6d7e8;
        font-family: Consolas, 'SFMono-Regular', monospace;
        font-size: .78rem;
    }

    .camlab-code-line b {
        color: #49baff;
        font-weight: 400;
    }

    .camlab-workflow-note {
        padding: 25px;
        border: 1px solid rgba(68, 168, 236, .22);
        border-radius: 12px;
        background: linear-gradient(145deg, rgba(15, 41, 63, .55), rgba(14, 20, 29, .84));
    }

    .camlab-note-label {
        margin: 0 0 13px;
        color: #62c4ff;
        font-size: .7rem;
        font-weight: 700;
        letter-spacing: .12em;
        text-transform: uppercase;
    }

    .camlab-workflow-note h3 {
        margin-bottom: 10px;
        font-size: 1.25rem;
    }

    .camlab-workflow-note .camlab-text-link {
        display: inline-block;
        margin-top: 20px;
        color: #d8e8f8;
    }

    .camlab-compare-section {
        padding: 76px 0;
        border-top: 1px solid rgba(154, 177, 207, .1);
        border-bottom: 1px solid rgba(154, 177, 207, .1);
        background: radial-gradient(ellipse at 82% 40%, rgba(0, 136, 255, .09), transparent 32rem), #0b1018;
    }

    .camlab-compare-layout {
        display: grid;
        grid-template-columns: minmax(240px, .72fr) minmax(0, 1.28fr);
        align-items: center;
        gap: clamp(30px, 5vw, 64px);
    }

    .camlab-compare-copy h2 {
        font-size: clamp(2rem, 3.6vw, 2.8rem);
    }

    .camlab-compare-copy > p:not(.camlab-eyebrow):not(.camlab-compare-hint) {
        margin: 16px 0 0;
        color: #a0adbd;
        font-weight: 300;
    }

    .camlab-compare-hint {
        margin: 17px 0 0;
        color: #65c5ff;
        font-size: .8rem;
    }

    .camlab-compare-hint span {
        margin-right: 7px;
        font-size: 1rem;
    }

    .camlab-compare {
        position: relative;
        overflow: hidden;
        aspect-ratio: 16 / 9;
        margin: 0;
        border: 1px solid rgba(154, 177, 207, .24);
        border-radius: 12px;
        background: #080b11;
        box-shadow: 0 25px 65px rgba(0, 0, 0, .35);
        isolation: isolate;
    }

    .camlab-compare-base,
    .camlab-compare-overlay {
        position: absolute;
        inset: 0;
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    .camlab-compare-overlay {
        clip-path: inset(0 calc(100% - var(--camlab-position, 50%)) 0 0);
    }

    .camlab-compare-label {
        position: absolute;
        z-index: 2;
        top: 13px;
        padding: 5px 8px;
        border: 1px solid rgba(255, 255, 255, .14);
        border-radius: 5px;
        background: rgba(4, 8, 13, .78);
        color: #fff;
        font-size: .68rem;
        font-weight: 700;
        letter-spacing: .1em;
        pointer-events: none;
    }

    .camlab-compare-label-before {
        left: 13px;
    }

    .camlab-compare-label-after {
        right: 13px;
    }

    .camlab-compare-divider {
        position: absolute;
        z-index: 3;
        top: 0;
        bottom: 0;
        left: var(--camlab-position, 50%);
        width: 2px;
        background: #eaf7ff;
        box-shadow: 0 0 16px rgba(0, 0, 0, .6);
        pointer-events: none;
        transform: translateX(-50%);
    }

    .camlab-compare-divider span {
        position: absolute;
        top: 50%;
        left: 50%;
        display: grid;
        width: 38px;
        height: 38px;
        place-items: center;
        border: 2px solid #fff;
        border-radius: 50%;
        background: #078ce2;
        color: #fff;
        font-size: 1rem;
        box-shadow: 0 4px 16px rgba(0, 0, 0, .5);
        transform: translate(-50%, -50%);
    }

    .camlab-compare-slider {
        position: absolute;
        z-index: 4;
        inset: 0;
        width: 100%;
        height: 100%;
        margin: 0;
        appearance: none;
        background: transparent;
        cursor: ew-resize;
        opacity: 0;
    }

    .camlab-compare-slider::-webkit-slider-runnable-track {
        height: 100%;
        background: transparent;
    }

    .camlab-compare-slider::-webkit-slider-thumb {
        width: 38px;
        height: 100%;
        appearance: none;
        background: transparent;
    }

    .camlab-compare-slider::-moz-range-track {
        height: 100%;
        background: transparent;
    }

    .camlab-compare-slider::-moz-range-thumb {
        width: 38px;
        height: 100%;
        border: 0;
        background: transparent;
    }

    .camlab-compare-slider:focus-visible {
        border-radius: 12px;
        outline: 3px solid #60c4ff;
        outline-offset: -4px;
        opacity: .01;
    }

    .camlab-compare:has(.camlab-compare-slider:focus-visible) .camlab-compare-divider span {
        box-shadow: 0 0 0 4px rgba(96, 196, 255, .7), 0 4px 16px rgba(0, 0, 0, .5);
    }

    .camlab-tool-grid {
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 14px;
    }

    .camlab-tool-card {
        min-height: 230px;
        padding: 21px;
        border: 1px solid rgba(154, 177, 207, .13);
        border-radius: 11px;
        background: linear-gradient(145deg, rgba(18, 25, 36, .9), rgba(11, 15, 22, .9));
    }

    .camlab-tool-icon {
        display: inline-grid;
        width: 34px;
        height: 34px;
        place-items: center;
        margin-bottom: 20px;
        border: 1px solid rgba(69, 177, 247, .24);
        border-radius: 8px;
        background: rgba(0, 136, 255, .09);
        color: #55bcff;
        font-size: .73rem;
        font-weight: 700;
    }

    .camlab-tool-card h3 {
        margin-bottom: 8px;
    }

    .camlab-tool-card p {
        font-size: .84rem;
    }

    .camlab-tool-detail {
        display: inline-block;
        margin-top: 12px;
        color: #60c4ff;
        font-size: .72rem;
        line-height: 1.5;
    }

    .camlab-gallery {
        padding-top: 10px;
    }

    .camlab-gallery-heading {
        margin-bottom: 30px;
    }

    .camlab-gallery-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 16px;
    }

    .camlab-gallery-card {
        overflow: hidden;
        margin: 0;
        border: 1px solid rgba(154, 177, 207, .14);
        border-radius: 11px;
        background: #0e141e;
    }

    .camlab-gallery-card img {
        display: block;
        width: 100%;
        aspect-ratio: 16 / 10;
        object-fit: cover;
        object-position: top center;
        background: #080b11;
    }

    .camlab-gallery-card figcaption {
        display: grid;
        gap: 4px;
        padding: 14px 16px 17px;
    }

    .camlab-gallery-card figcaption strong {
        color: #e8eef6;
        font-size: .88rem;
        font-weight: 500;
    }

    .camlab-gallery-card figcaption span {
        color: #909db0;
        font-size: .77rem;
        line-height: 1.55;
    }

    .camlab-manual-band {
        border-top: 1px solid rgba(154, 177, 207, .12);
        border-bottom: 1px solid rgba(154, 177, 207, .12);
        background: radial-gradient(ellipse at 10% 50%, rgba(0, 136, 255, .1), transparent 34rem), #0c1119;
    }

    .camlab-manual-inner {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 32px;
        padding-top: 50px;
        padding-bottom: 50px;
    }

    .camlab-manual-inner > div {
        max-width: 700px;
    }

    .camlab-manual-inner h2 {
        font-size: clamp(1.9rem, 3.5vw, 2.7rem);
    }

    .camlab-manual-inner > div > p:last-child {
        max-width: 630px;
        margin: 13px 0 0;
        color: #9eabbc;
        font-weight: 300;
    }

    .camlab-manual-inner .camlab-button {
        flex: 0 0 auto;
    }

    .camlab-footer {
        display: flex;
        min-height: 78px;
        align-items: center;
        justify-content: center;
        gap: 10px;
        color: #758195;
        font-size: .82rem;
    }

    .camlab-footer a {
        color: #c1ccda;
    }

    .camlab-footer a:hover {
        color: #60c4ff;
    }

    :is(a, button, input):focus-visible {
        outline: 2px solid #60c4ff;
        outline-offset: 4px;
    }

    @media (max-width: 960px) {
        .camlab-hero {
            min-height: auto;
            grid-template-columns: minmax(0, 1fr);
            gap: 28px;
            padding-top: 54px;
            padding-bottom: 58px;
        }

        .camlab-hero-copy {
            max-width: 700px;
            padding: 0;
        }

        .camlab-hero-visual {
            max-width: 820px;
        }

        .camlab-camera-inner {
            flex-wrap: wrap;
            justify-content: center;
            padding-top: 20px;
            padding-bottom: 20px;
        }

        .camlab-camera-inner > p:first-child {
            width: 100%;
            text-align: center;
        }

        .camlab-camera-note {
            max-width: none;
            text-align: center;
        }

        .camlab-tool-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 720px) {
        .camlab-workflow-grid,
        .camlab-compare-layout {
            grid-template-columns: minmax(0, 1fr);
        }

        .camlab-workflow-note {
            max-width: 620px;
        }

        .camlab-compare-layout {
            gap: 28px;
        }

        .camlab-gallery-grid {
            grid-template-columns: repeat(2, minmax(0, 1fr));
        }
    }

    @media (max-width: 520px) {
        .camlab-shell {
            width: min(100% - 32px, 1160px);
        }

        .camlab-hero {
            padding-top: 40px;
            padding-bottom: 44px;
        }

        .camlab-hero h1 {
            font-size: clamp(2.55rem, 12vw, 3.55rem);
        }

        .camlab-lead {
            font-size: 1rem;
        }

        .camlab-actions {
            align-items: stretch;
            flex-direction: column;
        }

        .camlab-button {
            width: 100%;
        }

        .camlab-camera-inner {
            gap: 14px;
        }

        .camlab-camera-brands {
            gap: 10px;
        }

        .camlab-camera-brands a {
            width: 126px;
            height: 52px;
        }

        .camlab-workflow,
        .camlab-tools,
        .camlab-gallery {
            padding-top: 68px;
            padding-bottom: 68px;
        }

        .camlab-workflow-grid {
            gap: 30px;
        }

        .camlab-tool-grid,
        .camlab-gallery-grid {
            grid-template-columns: minmax(0, 1fr);
        }

        .camlab-tool-card {
            min-height: 0;
        }

        .camlab-compare-section {
            padding: 60px 0;
        }

        .camlab-manual-inner {
            align-items: flex-start;
            flex-direction: column;
            padding-top: 40px;
            padding-bottom: 40px;
        }

        .camlab-manual-inner .camlab-button {
            width: 100%;
        }
    }

    @media (prefers-reduced-motion: reduce) {
        *,
        *::before,
        *::after {
            scroll-behavior: auto !important;
            transition-duration: .01ms !important;
        }
    }
}
