:root {
    --ink: #173246;
    --muted: #5c6e7e;
    --teal: #0f9a8c;
    --teal-deep: #0b756c;
    --mint: #e7f7f3;
    --mint-strong: #d5f3ec;
    --line: #e4edf2;
    --soft: #f4f7f9;
    --card: #ffffff;
    --shadow: 0 16px 40px rgba(23, 50, 70, 0.08);
    --font: "Segoe UI", "Helvetica Neue", sans-serif;
    --hub-bg: #ffffff;
    --hub-header-bg: #ffffff;
    --hub-header-border: #eef2f4;
    --hub-nav-text: #1c3144;
    --hub-nav-active-bg: #e5f6f1;
    --hub-text-soft: #41566a;
    --hub-input-bg: #f8fafb;
    --hub-input-border: #dfe5ea;
    --hub-input-text: #1c3144;
    --hub-chip-bg: #ffffff;
    --hub-chip-text: #607384;
    --hub-chip-count: #8aa0b0;
    --hub-chip-active-border: #d5e0e8;
    --hub-mode-bg: #f8fafb;
    --hub-mode-border: #dfe5ea;
    --hub-mode-text: #1c3144;
    --hub-disabled-btn-bg: #d8e0e6;
    --hub-disabled-btn-text: #8b98a5;
    --hub-hero-bg:
        radial-gradient(circle at 50% 35%, rgba(15, 154, 140, 0.16), transparent 20rem),
        linear-gradient(180deg, #f4fbf9 0%, #ffffff 78%);
    --hub-lane-hero-bg:
        radial-gradient(circle at 82% 18%, rgba(15, 154, 140, 0.12), transparent 16rem),
        linear-gradient(180deg, #edf9f6 0%, #f7fffd 52%, #ffffff 100%);
    --hub-lane-card-bg: linear-gradient(180deg, #f7fffd 0%, #ffffff 100%);
    --hub-lane-badge-bg: rgba(255, 255, 255, 0.82);
    --hub-lane-badge-border: #dce8e4;
    --hub-search-placeholder: #8b98a5;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --ink: #e8f4f2;
    --muted: #9bb3ad;
    --teal-deep: #7ee0d4;
    --mint: #1a4540;
    --mint-strong: #123632;
    --line: #1e3d38;
    --soft: #0e2421;
    --card: #102825;
    --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
    --hub-bg: #071916;
    --hub-header-bg: #0a1f1c;
    --hub-header-border: #1e3d38;
    --hub-nav-text: #d8ebe7;
    --hub-nav-active-bg: #123632;
    --hub-text-soft: #9bb3ad;
    --hub-input-bg: #102825;
    --hub-input-border: #1e3d38;
    --hub-input-text: #e8f4f2;
    --hub-chip-bg: #102825;
    --hub-chip-text: #9bb3ad;
    --hub-chip-count: #7a9690;
    --hub-chip-active-border: #2a524c;
    --hub-mode-bg: #102825;
    --hub-mode-border: #1e3d38;
    --hub-mode-text: #e8f4f2;
    --hub-disabled-btn-bg: #1e3d38;
    --hub-disabled-btn-text: #7a9690;
    --hub-hero-bg:
        radial-gradient(circle at 50% 35%, rgba(15, 154, 140, 0.14), transparent 20rem),
        linear-gradient(180deg, #0a1f1c 0%, #071916 78%);
    --hub-lane-hero-bg:
        radial-gradient(circle at 82% 18%, rgba(15, 154, 140, 0.1), transparent 16rem),
        linear-gradient(180deg, #0e2421 0%, #0a1f1c 52%, #071916 100%);
    --hub-lane-card-bg: linear-gradient(180deg, #123632 0%, #102825 100%);
    --hub-lane-badge-bg: rgba(16, 40, 37, 0.88);
    --hub-lane-badge-border: #1e3d38;
    --hub-search-placeholder: #7a9690;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --ink: #e8f4f2;
        --muted: #9bb3ad;
        --teal-deep: #7ee0d4;
        --mint: #1a4540;
        --mint-strong: #123632;
        --line: #1e3d38;
        --soft: #0e2421;
        --card: #102825;
        --shadow: 0 16px 40px rgba(0, 0, 0, 0.35);
        --hub-bg: #071916;
        --hub-header-bg: #0a1f1c;
        --hub-header-border: #1e3d38;
        --hub-nav-text: #d8ebe7;
        --hub-nav-active-bg: #123632;
        --hub-text-soft: #9bb3ad;
        --hub-input-bg: #102825;
        --hub-input-border: #1e3d38;
        --hub-input-text: #e8f4f2;
        --hub-chip-bg: #102825;
        --hub-chip-text: #9bb3ad;
        --hub-chip-count: #7a9690;
        --hub-chip-active-border: #2a524c;
        --hub-mode-bg: #102825;
        --hub-mode-border: #1e3d38;
        --hub-mode-text: #e8f4f2;
        --hub-disabled-btn-bg: #1e3d38;
        --hub-disabled-btn-text: #7a9690;
        --hub-hero-bg:
            radial-gradient(circle at 50% 35%, rgba(15, 154, 140, 0.14), transparent 20rem),
            linear-gradient(180deg, #0a1f1c 0%, #071916 78%);
        --hub-lane-hero-bg:
            radial-gradient(circle at 82% 18%, rgba(15, 154, 140, 0.1), transparent 16rem),
            linear-gradient(180deg, #0e2421 0%, #0a1f1c 52%, #071916 100%);
        --hub-lane-card-bg: linear-gradient(180deg, #123632 0%, #102825 100%);
        --hub-lane-badge-bg: rgba(16, 40, 37, 0.88);
        --hub-lane-badge-border: #1e3d38;
        --hub-search-placeholder: #7a9690;
        color-scheme: dark;
    }
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

html {
    scroll-behavior: smooth;
}

body.hub {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    margin: 0;
    color: var(--ink);
    background: var(--hub-bg);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.5;
}

body.hub main {
    flex: 1 0 auto;
}

img,
svg {
    display: block;
}

a {
    color: inherit;
}

button,
input {
    font: inherit;
}

.hub-skip {
    position: absolute;
    left: 16px;
    top: -40px;
    z-index: 20;
    padding: 8px 12px;
    background: var(--ink);
    color: #fff;
}

.hub-skip:focus {
    top: 8px;
}

.hub-header {
    position: sticky;
    top: 0;
    z-index: 10;
    display: flex;
    justify-content: center;
    min-height: 76px;
    padding: 12px 0;
    border-bottom: 1px solid var(--hub-header-border);
    background: var(--hub-header-bg);
}

.hub-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
}

.hub-brand {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-self: start;
    min-width: 0;
    text-decoration: none;
}

.hub-brand-logo {
    display: block;
    width: auto;
    height: 28px;
}

:root[data-theme="dark"] .hub-header .hub-brand-logo {
    filter: brightness(0) invert(1);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hub-header .hub-brand-logo {
        filter: brightness(0) invert(1);
    }
}

.hub-brand-title {
    color: var(--teal);
    font-size: 1.25rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 30px;
    white-space: nowrap;
}

.hub-mark {
    display: grid;
    flex: 0 0 auto;
    grid-template-columns: repeat(3, 8px);
    gap: 3px;
}

.hub-mark span {
    width: 8px;
    height: 8px;
    border-radius: 2px;
    background: var(--teal);
}

.hub-mark .is-soft {
    background: #8fe0d4;
}

.hub-mark-lg {
    grid-template-columns: repeat(3, 14px);
    gap: 5px;
}

.hub-mark-lg span {
    width: 14px;
    height: 14px;
    border-radius: 4px;
}

.hub-nav {
    display: flex;
    gap: 2px;
    align-items: center;
    justify-self: center;
}

.hub-nav a {
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 14px;
    border-radius: 999px;
    color: var(--hub-nav-text);
    font-size: 0.98rem;
    font-weight: 400;
    text-decoration: none;
    white-space: nowrap;
}

.hub-nav a[aria-current="page"] {
    background: var(--hub-nav-active-bg);
    font-weight: 700;
}

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

.hub-bar-actions {
    display: flex;
    gap: 8px;
    align-items: center;
    justify-self: end;
}

.hub-mode-toggle {
    display: inline-grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid var(--hub-mode-border);
    border-radius: 999px;
    background: var(--hub-mode-bg);
    color: var(--hub-mode-text);
    cursor: pointer;
}

.hub-mode-toggle:hover {
    border-color: var(--teal);
    background: var(--card);
}

.hub-mode-toggle:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 2px;
}

.hub-mode-toggle .icon {
    width: 18px;
    height: 18px;
}

.hub-mode-icon {
    display: none;
    place-items: center;
}

:root .hub-mode-icon-moon {
    display: grid;
}

:root[data-theme="light"] .hub-mode-icon-moon {
    display: grid;
}

:root[data-theme="light"] .hub-mode-icon-sun {
    display: none;
}

:root[data-theme="dark"] .hub-mode-icon-moon {
    display: none;
}

:root[data-theme="dark"] .hub-mode-icon-sun {
    display: grid;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hub-mode-icon-moon {
        display: none;
    }

    :root:not([data-theme="light"]) .hub-mode-icon-sun {
        display: grid;
    }
}

.hub-search {
    position: relative;
    justify-self: end;
    width: min(140px, 100%);
}

.hub-search-input {
    width: 100%;
    height: 36px;
    padding: 0 10px 0 32px;
    border: 1px solid var(--hub-input-border);
    border-radius: 999px;
    background: var(--hub-input-bg);
    color: var(--hub-input-text);
    font: inherit;
    font-size: 0.875rem;
    font-weight: 600;
}

.hub-search-input::placeholder {
    color: var(--hub-search-placeholder);
    font-weight: 500;
}

.hub-search-input:focus {
    outline: 2px solid var(--teal);
    outline-offset: 1px;
    border-color: var(--teal);
    background: var(--card);
}

.hub-search-icon {
    position: absolute;
    top: 50%;
    left: 10px;
    color: var(--hub-search-placeholder);
    transform: translateY(-50%);
    pointer-events: none;
}

.hub-search-icon .icon {
    width: 14px;
    height: 14px;
}

.hub-btn {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    justify-content: center;
    justify-self: end;
    min-height: 42px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--teal);
    color: #f7fffd;
    font-weight: 750;
    text-decoration: none;
    cursor: pointer;
}

.hub-btn:hover {
    background: var(--teal-deep);
}

.hub-btn-lg {
    min-height: 48px;
    padding: 0 18px;
    justify-self: start;
}

.hub-btn-block {
    width: 100%;
    margin-top: 16px;
}

.hub-btn .icon {
    width: 16px;
    height: 16px;
}

.hub-btn[aria-pressed="true"] {
    background: var(--mint-strong);
    color: var(--teal-deep);
}

.hub-lane-hero {
    padding: 28px 0 36px;
    background: var(--hub-lane-hero-bg);
    border-bottom: 1px solid var(--line);
}

.hub-lane-hero.is-gigcx {
    background:
        radial-gradient(circle at 82% 18%, rgba(74, 95, 110, 0.32), transparent 16rem),
        linear-gradient(180deg, rgba(74, 95, 110, 0.28) 0%, rgba(74, 95, 110, 0.1) 48%, #ffffff 100%);
}

:root[data-theme="dark"] .hub-lane-hero.is-gigcx {
    background:
        radial-gradient(circle at 82% 18%, rgba(74, 95, 110, 0.45), transparent 16rem),
        linear-gradient(180deg, #4a5f6e 0%, rgba(74, 95, 110, 0.42) 52%, #071916 100%);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hub-lane-hero.is-gigcx {
        background:
            radial-gradient(circle at 82% 18%, rgba(74, 95, 110, 0.45), transparent 16rem),
            linear-gradient(180deg, #4a5f6e 0%, rgba(74, 95, 110, 0.42) 52%, #071916 100%);
    }
}

.hub-crumb {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    align-items: center;
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 0.88rem;
    font-weight: 600;
}

.hub-crumb a {
    color: var(--teal-deep);
    text-decoration: none;
}

.hub-crumb a:hover {
    text-decoration: underline;
}

.hub-crumb span[aria-hidden="true"] {
    color: #a8b6c2;
}

.hub-crumb span[aria-current="page"] {
    color: var(--hub-text-soft);
}

.hub-lane-kicker {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-lane-hero h1 {
    max-width: 14ch;
    margin: 0 0 16px;
    color: var(--ink);
    font-size: clamp(2.4rem, 4.8vw, 3.6rem);
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1.02;
}

.hub-lane-lede {
    max-width: 42rem;
    margin: 0 0 22px;
    color: var(--hub-text-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}

.hub-lane-badge {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid var(--hub-lane-badge-border);
    border-radius: 999px;
    background: var(--hub-lane-badge-bg);
    color: var(--hub-text-soft);
    font-size: 0.88rem;
    font-weight: 600;
}

.hub-lane-badge-icon {
    display: grid;
    flex: 0 0 auto;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--teal);
}

.hub-lane-badge-icon::after {
    content: "";
    width: 5px;
    height: 9px;
    margin-top: -2px;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
}

.hub-catalog.is-lane {
    padding-top: 28px;
}

.hub-catalog.is-home {
    padding-top: 20px;
}

.hub-home-kicker {
    margin: 0 0 10px;
    color: var(--teal);
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-home-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hub-home-lede {
    max-width: 42rem;
    margin: 0 0 28px;
    color: var(--hub-text-soft);
    font-size: 1.02rem;
    line-height: 1.55;
}

.hub-features {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 36px;
    padding: 0;
    list-style: none;
}

.hub-feature {
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.hub-feature-icon {
    display: grid;
    width: 42px;
    height: 42px;
    margin-bottom: 14px;
    place-items: center;
    border-radius: 12px;
    background: var(--mint);
    color: var(--teal);
}

.hub-feature-icon .icon {
    width: 22px;
    height: 22px;
}

.hub-feature h3 {
    margin: 0 0 8px;
    font-size: 1.05rem;
    letter-spacing: -0.02em;
}

.hub-feature p {
    margin: 0;
    color: var(--hub-text-soft);
    font-size: 0.92rem;
    line-height: 1.5;
}

.hub-home-search {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid var(--line);
}

.hub-home-search-title {
    margin: 0 0 12px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hub-home-lanes-title {
    margin: 0 0 14px;
    color: var(--ink);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}

.hub-lane-cards {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
}

.hub-lane-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--hub-lane-card-bg);
    color: inherit;
    text-decoration: none;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-lane-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow);
}

.hub-lane-card-kicker {
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.hub-lane-card-title {
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.03em;
}

.hub-lane-card-text {
    flex: 1;
    color: var(--hub-text-soft);
    font-size: 0.95rem;
    line-height: 1.5;
}

.hub-lane-card-action {
    margin-top: 6px;
    color: var(--teal-deep);
    font-size: 0.92rem;
    font-weight: 700;
}

.hub-hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 52px 20px 44px;
    text-align: center;
    background: var(--hub-hero-bg);
}

.hub-hero-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hub-lockup {
    display: flex;
    gap: 14px;
    align-items: center;
    justify-content: center;
    margin: 0 0 18px;
    font-size: clamp(1.6rem, 3vw, 2.3rem);
}

.hub-hero h1 {
    width: 100%;
    margin: 0 0 32px;
    font-size: clamp(3rem, calc((min(100vw, 1160px) - 40px) / 10.25), 7.25rem);
    font-weight: 800;
    letter-spacing: -0.045em;
    line-height: 0.98;
}

@keyframes hub-hero-fade-in-up {
    from {
        opacity: 0;
        transform: translate3d(0, 0.42em, 0);
    }

    to {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}

.hub-hero-line {
    display: block;
    width: 100%;
    white-space: nowrap;
    animation: hub-hero-fade-in-up 0.85s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes hub-hero-glow-run {
    0% {
        background-position: 100% center;
    }

    68.42% {
        background-position: 0% center;
    }

    100% {
        background-position: 0% center;
    }
}

.hub-hero-accent {
    display: block;
    width: 100%;
    background: linear-gradient(
        90deg,
        var(--teal) 0%,
        var(--teal) 38%,
        var(--teal-deep) 42%,
        #6ec9bc 50%,
        var(--teal-deep) 58%,
        var(--teal) 62%,
        var(--teal) 100%
    );
    background-size: 300% 100%;
    background-clip: text;
    -webkit-background-clip: text;
    color: transparent;
    -webkit-text-fill-color: transparent;
    opacity: 0;
    animation:
        hub-hero-fade-in-up 0.95s cubic-bezier(0.22, 1, 0.36, 1) 0.32s both,
        hub-hero-glow-run 9.5s linear 1.15s infinite;
}

.hub-wrap {
    width: min(1120px, calc(100% - 40px));
    margin: 0 auto;
}

.hub-card {
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
}

.hub-card-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 12px;
    background: color-mix(in srgb, var(--accent, var(--teal)) 14%, var(--card));
    color: var(--accent, var(--teal));
}

.hub-card-icon .icon {
    width: 22px;
    height: 22px;
}

.hub-tag {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    margin: 14px 0 0;
    padding: 0 8px;
    border-radius: 999px;
    background: var(--mint);
    color: var(--teal-deep);
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.hub-tag-line {
    background: var(--card);
    box-shadow: inset 0 0 0 1px var(--line);
}

.hub-card h2 {
    margin: 12px 0 8px;
    font-size: 1.35rem;
    letter-spacing: -0.03em;
}

.hub-summary {
    margin: 0;
    color: var(--hub-text-soft);
}

.hub-catalog {
    padding: 34px 0 72px;
}

.hub-filter-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 16px;
    align-items: center;
    justify-content: space-between;
}

.hub-filter-bar .hub-search {
    flex: 0 0 auto;
    width: min(200px, 100%);
    margin-left: auto;
}

.hub-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    flex: 1 1 auto;
    min-width: 0;
}

.hub-chip {
    display: inline-flex;
    gap: 6px;
    align-items: center;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 999px;
    color: var(--hub-chip-text);
    background: var(--hub-chip-bg);
    font-size: 0.92rem;
    font-weight: 400;
    text-decoration: none;
}

.hub-chip span {
    color: var(--hub-chip-count);
    font-variant-numeric: tabular-nums;
}

.hub-chip[aria-current="true"] {
    border-color: var(--hub-chip-active-border);
    color: var(--ink);
    font-weight: 800;
    box-shadow: var(--shadow);
}

.hub-count {
    margin: 18px 0;
    color: var(--muted);
    font-size: 0.92rem;
}

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

.hub-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    height: 100%;
}

.hub-card:hover {
    border-color: var(--teal);
    box-shadow: var(--shadow);
}

.hub-card-top {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    align-items: flex-start;
}

.hub-tags {
    display: flex;
    gap: 6px;
}

.hub-tags .hub-tag {
    margin: 0;
}

.hub-card h2 {
    font-size: 1.15rem;
}

.hub-summary {
    font-size: 0.95rem;
}

.hub-more {
    margin-top: 8px;
}

.hub-more summary {
    color: var(--teal);
    font-weight: 700;
    cursor: pointer;
    list-style: none;
}

.hub-more summary::-webkit-details-marker {
    display: none;
}

.hub-more p {
    margin: 8px 0 0;
    color: var(--hub-text-soft);
}

.hub-card-spacer {
    flex: 1 1 auto;
    min-height: 1.5rem;
    width: 100%;
}

.hub-card .hub-btn {
    margin-top: 0;
}

.hub-card .hub-btn.is-disabled {
    background: var(--hub-disabled-btn-bg);
    color: var(--hub-disabled-btn-text);
    cursor: not-allowed;
    pointer-events: none;
}

.hub-empty {
    margin: 8px 0 0;
    color: var(--muted);
}

.hub-footer {
    flex-shrink: 0;
    display: flex;
    justify-content: center;
    margin-top: 32px;
    padding: 28px 0 32px;
    background: #213c50;
}

.hub-footer-bar {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 16px;
    align-items: center;
    width: min(1120px, calc(100% - 40px));
}

.hub-footer-brand {
    display: inline-flex;
    gap: 10px;
    align-items: center;
    justify-self: start;
    min-width: 0;
    color: #e8f1f8;
    text-decoration: none;
}

.hub-footer-brand .hub-brand-logo {
    height: 24px;
    filter: brightness(0) invert(1);
}

.hub-footer-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.hub-footer-lede {
    margin: 0;
    justify-self: center;
    max-width: min(480px, 100%);
    color: rgba(232, 241, 248, 0.82);
    font-size: 0.92rem;
    line-height: 1.5;
    text-align: center;
}

.hub-footer-admin {
    justify-self: end;
    color: rgba(232, 241, 248, 0.92);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
}

.hub-footer-admin:hover {
    color: #ffffff;
    text-decoration: underline;
}

.hub-footer-admin:focus-visible {
    outline: 2px solid rgba(232, 241, 248, 0.65);
    outline-offset: 3px;
    border-radius: 4px;
}

.hub-logout-form {
    display: contents;
    margin: 0;
}

.hub-logout-toggle {
    font: inherit;
}

.hub-gate {
    margin: 24px 0 0;
    padding: 20px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--card);
    color: var(--hub-text-soft);
    text-align: center;
}

.hub-login-modal[hidden] {
    display: none !important;
}

.hub-login-modal {
    position: fixed;
    inset: 0;
    z-index: 40;
    display: grid;
    place-items: center;
    padding: 20px;
}

.hub-login-modal:not([hidden]) .hub-login-backdrop {
    animation: hub-login-fade-in 0.22s ease-out both;
}

.hub-login-modal:not([hidden]) .hub-login-dialog {
    animation: hub-login-rise-in 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.hub-login-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(7, 25, 22, 0.52);
    backdrop-filter: blur(6px);
}

.hub-login-dialog {
    position: relative;
    z-index: 1;
    width: min(400px, 100%);
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: var(--card);
    box-shadow:
        0 24px 48px rgba(7, 25, 22, 0.18),
        0 0 0 1px rgba(255, 255, 255, 0.04) inset;
}

:root[data-theme="dark"] .hub-login-dialog {
    box-shadow:
        0 28px 56px rgba(0, 0, 0, 0.45),
        0 0 0 1px rgba(255, 255, 255, 0.06) inset;
}

.hub-login-close {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 2;
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    padding: 0;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.72);
    color: var(--muted);
    font-size: 1.45rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

:root[data-theme="dark"] .hub-login-close {
    background: rgba(16, 40, 37, 0.85);
    border-color: var(--line);
}

.hub-login-close:hover {
    background: var(--card);
    border-color: var(--line);
    color: var(--ink);
}

.hub-login-head {
    padding: 28px 28px 22px;
    text-align: center;
    background:
        radial-gradient(circle at 50% -20%, rgba(15, 154, 140, 0.2), transparent 55%),
        linear-gradient(180deg, var(--mint) 0%, var(--card) 100%);
    border-bottom: 1px solid var(--line);
}

:root[data-theme="dark"] .hub-login-head {
    background:
        radial-gradient(circle at 50% -20%, rgba(15, 154, 140, 0.22), transparent 55%),
        linear-gradient(180deg, var(--mint-strong) 0%, var(--card) 100%);
}

.hub-login-icon {
    display: inline-grid;
    place-items: center;
    width: 52px;
    height: 52px;
    margin: 0 auto 14px;
    border-radius: 16px;
    background: var(--card);
    color: var(--teal);
    box-shadow: 0 8px 20px rgba(15, 154, 140, 0.14);
}

.hub-login-icon .icon {
    width: 24px;
    height: 24px;
}

.hub-login-kicker {
    margin: 0 0 6px;
    color: var(--teal);
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.hub-login-dialog h2 {
    margin: 0 0 8px;
    color: var(--ink);
    font-size: 1.35rem;
    font-weight: 700;
    letter-spacing: -0.03em;
}

.hub-login-lede {
    margin: 0;
    color: var(--hub-text-soft);
    font-size: 0.92rem;
    line-height: 1.55;
}

.hub-login-body {
    padding: 22px 28px 26px;
}

.hub-login-note {
    margin: 0;
    padding: 14px 16px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--soft);
    color: var(--muted);
    font-size: 0.88rem;
    line-height: 1.5;
    text-align: center;
}

.hub-login-note code {
    font-size: 0.85em;
}

.hub-google-signin {
    position: relative;
    width: 100%;
    max-width: 320px;
    min-height: 44px;
    margin: 0 auto;
}

.hub-google-signin-face {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    min-height: 44px;
    padding: 0 22px;
    border: 1px solid var(--hub-input-border);
    border-radius: 999px;
    background: var(--hub-input-bg);
    color: var(--hub-input-text);
    font-family: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    letter-spacing: -0.01em;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.hub-google-signin-face:hover {
    border-color: var(--teal);
    box-shadow: 0 0 0 3px rgba(15, 154, 140, 0.12);
}

.hub-google-signin-face:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

.hub-google-signin-face:disabled {
    cursor: wait;
    opacity: 0.72;
}

.hub-google-signin-mark {
    flex: 0 0 auto;
}

.hub-google-signin-proxy {
    position: absolute;
    left: -9999px;
    top: 0;
    width: 320px;
    height: 44px;
    overflow: hidden;
}

.hub-google-signin-proxy > div,
.hub-google-signin-proxy iframe {
    width: 320px !important;
    min-height: 44px !important;
    height: 44px !important;
    margin: 0 !important;
}

.hub-google-signin.is-google-fallback-visible .hub-google-signin-face {
    display: none;
}

.hub-google-signin.is-google-fallback-visible .hub-google-signin-proxy {
    position: static;
    left: auto;
    width: 100%;
    max-width: 320px;
    height: auto;
    min-height: 44px;
    margin: 0 auto;
    overflow: visible;
}

:root[data-theme="dark"] .hub-login-modal {
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .hub-login-modal {
        color-scheme: dark;
    }
}

.hub-login-footnote {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin: 18px 0 0;
    padding-top: 16px;
    border-top: 1px solid var(--line);
    color: var(--muted);
    font-size: 0.82rem;
    line-height: 1.45;
}

.hub-login-footnote-icon {
    flex: 0 0 auto;
    margin-top: 1px;
    color: var(--teal);
}

.hub-login-footnote-icon .icon {
    width: 18px;
    height: 18px;
}

@keyframes hub-login-fade-in {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes hub-login-rise-in {
    from {
        opacity: 0;
        transform: translateY(12px) scale(0.98);
    }

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

@media (prefers-reduced-motion: reduce) {
    .hub-login-modal:not([hidden]) .hub-login-backdrop,
    .hub-login-modal:not([hidden]) .hub-login-dialog {
        animation: none;
    }
}

body.hub-login-open {
    overflow: hidden;
}

:focus-visible {
    outline: 2px solid var(--teal);
    outline-offset: 3px;
}

@media (max-width: 980px) {
    .hub-features {
        grid-template-columns: 1fr 1fr;
    }

    .hub-lane-cards {
        grid-template-columns: 1fr;
    }

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

    .hub-header {
        padding: 14px 0;
    }

    .hub-bar,
    .hub-footer-bar {
        width: min(1120px, calc(100% - 32px));
    }

    .hub-bar {
        display: flex;
        flex-wrap: wrap;
        justify-content: center;
        gap: 10px;
    }

    .hub-filter-bar .hub-search {
        flex: 1 1 100%;
        max-width: none;
        margin-left: 0;
    }

    .hub-nav {
        justify-content: center;
        overflow-x: auto;
    }

    .hub-hero h1 {
        font-size: clamp(2.25rem, calc((100vw - 32px) / 10.25), 4.5rem);
    }

    .hub-hero-line {
        white-space: normal;
    }
}

@media (max-width: 720px) {
    .hub-features {
        grid-template-columns: 1fr;
    }

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

    .hub-footer {
        margin-top: 24px;
        padding:
            24px max(16px, env(safe-area-inset-right, 0px))
            calc(28px + env(safe-area-inset-bottom, 0px))
            max(16px, env(safe-area-inset-left, 0px));
    }

    .hub-footer-bar {
        grid-template-columns: 1fr;
        justify-items: center;
        gap: 14px;
        width: min(1120px, calc(100% - 24px));
        text-align: center;
    }

    .hub-footer-brand {
        justify-self: center;
        flex-wrap: wrap;
        justify-content: center;
        max-width: 100%;
    }

    .hub-footer-title {
        font-size: 1rem;
        overflow-wrap: anywhere;
        text-align: center;
    }

    .hub-footer-lede {
        justify-self: center;
        max-width: none;
        padding: 0 4px;
        font-size: 0.86rem;
        line-height: 1.45;
    }

    .hub-footer-admin {
        justify-self: center;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 8px 18px;
        border-radius: 999px;
        background: rgba(255, 255, 255, 0.08);
    }

    .hub-footer-admin:hover {
        background: rgba(255, 255, 255, 0.14);
    }
}

@media (max-width: 480px) {
    .hub-footer-lede {
        font-size: 0.82rem;
    }
}

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

    .hub-hero-line {
        opacity: 1;
        animation: none;
        transform: none;
    }

    .hub-hero-accent {
        opacity: 1;
        background: none;
        animation: none;
        transform: none;
        color: var(--teal);
        -webkit-text-fill-color: currentColor;
    }
}
