body.theme-home {
    --home-bg: #f4f9ff;
    --home-bg-soft: #ebf4ff;
    --home-surface: rgba(255, 255, 255, 0.84);
    --home-surface-strong: #ffffff;
    --home-fill: #f6faff;
    --home-fill-strong: #eef5ff;
    --home-line: rgba(16, 72, 154, 0.1);
    --home-line-strong: rgba(16, 72, 154, 0.18);
    --home-ink: #10233f;
    --home-ink-soft: #4c6486;
    --home-muted: #7f94b3;
    --home-accent: #1677ff;
    --home-accent-deep: #0f5fe0;
    --home-accent-soft: rgba(22, 119, 255, 0.1);
    --home-success: #1f8f5f;
    --home-warn: #b7791f;
    --home-danger: #c03f4f;
    --hero-input-height: 40px;
    --home-shadow: 0 18px 42px rgba(29, 78, 161, 0.08);
    --home-shadow-soft: 0 12px 28px rgba(29, 78, 161, 0.06);
    color: var(--home-ink);
    background:
        radial-gradient(circle at 12% 8%, rgba(22, 119, 255, 0.11), transparent 28%),
        radial-gradient(circle at 88% 14%, rgba(56, 189, 248, 0.12), transparent 26%),
        linear-gradient(180deg, #f8fbff 0%, #edf5ff 42%, #f9fcff 100%);
    overflow-x: hidden;
}

body.theme-home .page-bg,
body.theme-home .site-shell {
    display: none;
}

body.theme-home::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.46), transparent 22%);
    mask-image: radial-gradient(circle at center, rgba(0, 0, 0, 0.72), transparent 94%);
    opacity: 0.72;
}

body.theme-home ::selection {
    background: rgba(22, 119, 255, 0.18);
}

.home-backdrop,
.home-orbit {
    position: fixed;
    pointer-events: none;
}

.home-backdrop {
    inset: 0;
    z-index: -3;
    background:
        radial-gradient(circle at 16% 10%, rgba(255, 255, 255, 0.94), transparent 26%),
        linear-gradient(180deg, rgba(255, 255, 255, 0.18), transparent 34%);
}

.home-orbit {
    z-index: -2;
    border-radius: 999px;
    filter: blur(108px);
    opacity: 0.22;
}

.home-orbit-a {
    top: 88px;
    left: -92px;
    width: 240px;
    height: 240px;
    background: rgba(22, 119, 255, 0.15);
}

.home-orbit-b {
    right: -110px;
    top: 170px;
    width: 260px;
    height: 260px;
    background: rgba(56, 189, 248, 0.14);
}

.home-topbar {
    position: sticky;
    top: 0;
    z-index: 40;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    margin: 0;
    padding: 13px max(18px, calc((100vw - 1160px) / 2 + 18px)) 12px;
    background: rgba(255, 255, 255, 0.92);
    border-bottom: 1px solid var(--home-line);
    backdrop-filter: blur(16px);
    box-shadow: 0 1px 0 rgba(16, 72, 154, 0.03);
}

body.theme-home .brand {
    display: flex;
    align-items: center;
    gap: 14px;
    min-width: 0;
}

body.theme-home .brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border-radius: 13px;
    background: linear-gradient(135deg, #1151cf, #1677ff);
    color: #f8fbff;
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

body.theme-home .brand-mark-image {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 0 0 auto;
    width: auto;
    height: 42px;
    min-width: 0;
    max-width: 116px;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    overflow: visible;
    line-height: 0;
}

body.theme-home .brand-mark-image img {
    display: block;
    width: auto;
    height: auto;
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    object-position: left center;
}

body.theme-home .brand-copy {
    display: grid;
    gap: 2px;
}

body.theme-home .brand-copy strong {
    font-size: 0.96rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--home-ink);
}

body.theme-home .brand-copy small {
    font-size: 0.79rem;
    color: var(--home-muted);
}

body.theme-home .topnav {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 22px;
}

body.theme-home .home-topbar > .topnav:not(.topnav-live) {
    display: none;
}

body.theme-home .topnav a {
    position: relative;
    padding: 7px 0;
    color: var(--home-ink-soft);
    font-size: 0.9rem;
    font-weight: 600;
    transition: color 0.2s ease;
}

body.theme-home .topnav a::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: -12px;
    height: 2px;
    border-radius: 999px;
    background: var(--home-accent);
    transform: scaleX(0);
    transform-origin: center;
    transition: transform 0.2s ease;
}

body.theme-home .topnav a:hover,
body.theme-home .topnav a:focus-visible {
    color: var(--home-accent-deep);
    outline: none;
}

body.theme-home .topnav a:hover::after,
body.theme-home .topnav a:focus-visible::after {
    transform: scaleX(1);
}

.home-main {
    width: min(calc(100% - 36px), 1160px);
    margin: 0 auto;
    padding: 34px 0 76px;
}

.section-band {
    position: relative;
    padding-top: 30px;
}

.section-band + .section-band {
    margin-top: 12px;
}

.section-band::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(22, 119, 255, 0.18), transparent);
}

.tool-band,
.tool-band::before {
    padding-top: 0;
}

.tool-band::before {
    display: none;
}

.tool-frame {
    display: grid;
    gap: 16px;
    max-width: 980px;
    margin: 0 auto;
}

.tool-hero {
    display: grid;
    justify-items: center;
    gap: 10px;
    text-align: center;
    padding: 8px 0 4px;
}

body.theme-home .eyebrow {
    margin: 0;
    color: #2e6ecf;
    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.tool-hero h1,
.band-head h2,
.result-head h2 {
    margin: 0;
    color: var(--home-ink);
    letter-spacing: -0.06em;
}

.tool-hero h1 {
    font-size: clamp(2.28rem, 4.6vw, 3.55rem);
    line-height: 0.98;
    font-weight: 800;
}

.tool-hero-copy,
.feedback-line,
.result-footnote {
    margin: 0;
    color: var(--home-ink-soft);
    font-size: 0.92rem;
    line-height: 1.72;
}

.tool-support {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
}

.announcement-bar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: min(100%, 720px);
    margin-top: 4px;
    padding: 8px 14px;
    border: 1px solid rgba(22, 119, 255, 0.12);
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(241, 247, 255, 0.96));
    box-shadow: 0 10px 24px rgba(29, 78, 161, 0.05);
}

.announcement-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 22px;
    padding: 0 9px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.09);
    color: var(--home-accent-deep);
    font-size: 0.71rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.announcement-bar p {
    min-width: 0;
    margin: 0;
    color: var(--home-ink-soft);
    font-size: 0.82rem;
    line-height: 1.45;
    text-align: left;
}

.tool-support span,
.sample-chip {
    display: inline-flex;
    align-items: center;
    min-height: 30px;
    padding: 0 12px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.05);
    color: var(--home-ink-soft);
    font-size: 0.75rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.generator-stage {
    display: grid;
    gap: 0;
    position: relative;
    overflow: visible;
}

.generator-form,
.result-rail,
.showcase-shell {
    display: grid;
    gap: 14px;
    padding: 16px;
    border: 1px solid var(--home-line);
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.98));
    box-shadow: var(--home-shadow-soft);
    backdrop-filter: blur(16px);
}

.generator-form {
    gap: 10px;
    padding: 10px 10px;
    position: relative;
    z-index: 6;
    overflow: visible;
}

.result-rail,
.showcase-shell {
    position: relative;
    z-index: 1;
}

.generator-shell {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px;
    align-items: stretch;
}

.field-group {
    display: grid;
    gap: 8px;
    min-width: 0;
}

.field-group-main {
    min-width: 0;
}

.field-label,
.result-label,
.result-meta-item span {
    color: var(--home-muted);
    font-size: 0.73rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

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

.input-shell {
    display: flex;
    align-items: center;
    min-width: 0;
    gap: 10px;
    min-height: var(--hero-input-height);
    height: var(--hero-input-height);
    padding: 0 8px;
    border: 1px solid var(--home-line-strong);
    border-radius: 16px;
    background: var(--home-surface-strong);
    box-shadow: none;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

.input-shell:focus-within {
    border-color: rgba(22, 119, 255, 0.42);
    box-shadow: 0 0 0 2px rgba(22, 119, 255, 0.1);
    background: #ffffff;
}

.input-prefix {
    flex: 0 0 auto;
    min-width: 30px;
    padding-right: 8px;
    border-right: 1px solid var(--home-line);
    color: var(--home-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

body.theme-home input,
body.theme-home textarea,
body.theme-home select {
    width: 100%;
    max-width: 100%;
    color: var(--home-ink);
    font: inherit;
}

body.theme-home input#github-url {
    border: none;
    background: transparent;
    padding: 0;
    min-height: 0;
    height: auto;
    min-width: 0;
    font-size: 0.88rem;
    line-height: 1.2;
    border-radius: 0 !important;
    box-shadow: none;
    appearance: none;
    -webkit-appearance: none;
    overflow: visible;
    outline: none;
}

body.theme-home input#github-url:focus {
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
    outline: none;
}

.input-reset {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 26px;
    padding: 0 9px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.05);
    color: var(--home-ink-soft);
    font-size: 0.74rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.input-reset:hover,
.input-reset:focus-visible {
    border-color: rgba(22, 119, 255, 0.22);
    background: rgba(22, 119, 255, 0.09);
    color: var(--home-accent-deep);
    transform: translateY(-1px);
    outline: none;
}

.input-reset[hidden] {
    display: none;
}

.tool-actions {
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    min-height: 0;
    margin-top: 0;
}

body.theme-home .button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: var(--hero-input-height);
    padding: 0 15px;
    border-radius: 12px;
    border: 1px solid transparent;
    font-size: 0.88rem;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        opacity 0.2s ease;
}

body.theme-home .button:hover,
body.theme-home .button:focus-visible,
.sponsor-tile:hover,
.sponsor-tile:focus-visible {
    transform: translateY(-1px);
    outline: none;
}

body.theme-home .button-primary {
    color: #f8fbff;
    background: linear-gradient(135deg, var(--home-accent), var(--home-accent-deep));
    box-shadow: 0 8px 18px rgba(22, 119, 255, 0.14);
}

body.theme-home .button-primary:hover,
body.theme-home .button-primary:focus-visible {
    box-shadow: 0 10px 22px rgba(22, 119, 255, 0.18);
}

body.theme-home .button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.tool-actions .button {
    height: var(--hero-input-height);
    min-height: var(--hero-input-height);
    align-self: stretch;
}

body.theme-home input#github-url::placeholder {
    color: #92a5c0;
}

body.theme-home select {
    min-height: 44px;
    border: 1px solid var(--home-line-strong);
    border-radius: 16px;
    background-color: #ffffff;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    appearance: none;
    background-image:
        linear-gradient(45deg, transparent 50%, var(--home-ink-soft) 50%),
        linear-gradient(135deg, var(--home-ink-soft) 50%, transparent 50%);
    background-position:
        calc(100% - 21px) calc(1.2em + 1px),
        calc(100% - 15px) calc(1.2em + 1px);
    background-size: 6px 6px;
    background-repeat: no-repeat;
    padding: 0 42px 0 14px;
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease;
}

body.theme-home select:focus {
    border-color: rgba(22, 119, 255, 0.42);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.12);
    background-color: #ffffff;
    outline: none;
}

.select-shell {
    width: min(100%, 206px);
    max-width: 206px;
}

.node-picker {
    position: relative;
    width: 100%;
}

.node-picker.is-open {
    z-index: 38;
}

.node-select-native {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    pointer-events: none;
}

.node-select-trigger {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 38px;
    padding: 0 10px;
    border: 1px solid var(--home-line-strong);
    border-radius: 14px;
    background: #ffffff;
    text-align: left;
    color: var(--home-ink);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62);
    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background-color 0.2s ease,
        transform 0.2s ease;
}

.node-select-trigger:hover,
.node-select-trigger:focus-visible,
.node-picker.is-open .node-select-trigger {
    border-color: rgba(22, 119, 255, 0.26);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
    background: #ffffff;
    outline: none;
}

.node-select-main {
    display: grid;
    gap: 1px;
    min-width: 0;
}

.node-select-main strong {
    overflow: hidden;
    color: var(--home-ink);
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-select-note {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.68rem;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex-wrap: wrap;
}

.node-select-note-prefix {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-select-note.is-sponsored {
    color: #1a63d6;
    font-weight: 600;
}

.node-select-note.is-linked {
    cursor: pointer;
    text-decoration: underline;
    text-decoration-color: rgba(22, 119, 255, 0.32);
    text-underline-offset: 2px;
}

.node-select-note.is-linked:hover,
.node-select-note.is-linked:focus-visible {
    color: var(--home-accent-deep);
    text-decoration-color: rgba(22, 119, 255, 0.52);
    outline: none;
}

.node-select-caret {
    width: 8px;
    height: 8px;
    border-right: 1.5px solid #6f82a3;
    border-bottom: 1.5px solid #6f82a3;
    transform: rotate(45deg);
    transition: transform 0.2s ease;
}

.node-picker.is-open .node-select-caret {
    transform: rotate(-135deg) translate(-1px, -1px);
}

.latency-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 54px;
    min-height: 22px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1;
    letter-spacing: -0.01em;
}

.latency-pill-neutral {
    background: rgba(126, 147, 179, 0.12);
    color: #6d7f99;
}

.latency-pill-fast {
    background: rgba(98, 200, 122, 0.16);
    color: #228a45;
}

.latency-pill-medium {
    background: rgba(255, 184, 77, 0.18);
    color: #b77411;
}

.latency-pill-slow,
.latency-pill-offline {
    background: rgba(255, 122, 122, 0.14);
    color: #d05757;
}

.node-select-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    z-index: 35;
    display: grid;
    gap: 4px;
    width: min(520px, calc(100vw - 32px));
    min-width: 100%;
    max-height: 320px;
    padding: 8px;
    overflow: auto;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 18px 40px rgba(29, 78, 161, 0.14);
    backdrop-filter: blur(20px);
}

.node-select-menu[hidden] {
    display: none !important;
}

.node-picker .node-select-menu {
    top: calc(100% + 6px);
    gap: 3px;
    width: min(420px, calc(100vw - 32px));
    min-width: max(100%, 320px);
    max-height: 300px;
    padding: 6px;
    border-radius: 16px;
}

.node-select-option {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 8px 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    color: var(--home-ink);
    text-align: left;
    transition:
        background-color 0.2s ease,
        transform 0.2s ease;
}

.node-select-option:hover,
.node-select-option:focus-visible {
    background: rgba(22, 119, 255, 0.06);
    outline: none;
}

.node-select-option.is-active {
    background: rgba(22, 119, 255, 0.1);
}

.node-select-option-main {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.node-select-option-heading {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.node-select-option-main strong {
    overflow: hidden;
    font-size: 0.84rem;
    font-weight: 700;
    line-height: 1.15;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.node-select-option-main small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--home-muted);
    font-size: 0.7rem;
    line-height: 1.3;
    white-space: normal;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.node-select-option-main .node-select-note {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    -webkit-box-orient: initial;
    -webkit-line-clamp: initial;
}

.node-note-chip {
    display: inline-flex;
    align-items: center;
    max-width: 100%;
    padding: 2px 7px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.1);
    color: #1a63d6;
    font-size: 0.65rem;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.node-note-chip.is-linked {
    cursor: pointer;
}

.node-note-chip.is-linked:hover,
.node-note-chip.is-linked:focus-visible {
    background: rgba(22, 119, 255, 0.16);
    color: var(--home-accent-deep);
    outline: none;
}

.node-select-status {
    min-width: 28px;
    color: #2b8a52;
    font-size: 0.7rem;
    line-height: 1;
    text-align: right;
}

.node-select-status.is-offline {
    color: #d05757;
}

.generator-row,
.result-meta-strip {
    display: grid;
    grid-template-columns: 206px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: start;
}

.generator-row {
    position: relative;
    overflow: visible;
    z-index: 2;
}

.sample-shell {
    min-width: 0;
}

.sample-list {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    min-height: 38px;
    align-items: center;
    align-content: flex-start;
}

.sample-chip:hover,
.sample-chip:focus-visible {
    border-color: rgba(22, 119, 255, 0.24);
    background: rgba(22, 119, 255, 0.09);
    color: var(--home-accent-deep);
    transform: translateY(-1px);
    outline: none;
}

.feedback-line {
    min-height: 1.6em;
    padding: 0 2px;
    color: var(--home-muted);
    font-size: 0.86rem;
}

.generator-form.is-loading .input-shell {
    border-color: rgba(22, 119, 255, 0.34);
    box-shadow: 0 0 0 3px rgba(22, 119, 255, 0.08);
    background: #ffffff;
}

.generator-form.is-loading .input-prefix {
    color: var(--home-accent-deep);
}

.feedback-line.is-success {
    color: var(--home-success);
}

.feedback-line.is-error {
    color: var(--home-danger);
}

.result-rail {
    gap: 12px;
    margin-top: 14px;
    overflow: hidden;
    opacity: 1;
    transform: translateY(0);
    max-height: 1200px;
    transition:
        max-height 0.32s ease,
        margin-top 0.24s ease,
        opacity 0.22s ease,
        transform 0.22s ease,
        padding 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease;
}

.result-rail.is-hidden {
    margin-top: 0;
    padding-top: 0;
    padding-bottom: 0;
    max-height: 0;
    border-color: transparent;
    box-shadow: none;
    opacity: 0;
    transform: translateY(-8px);
    pointer-events: none;
}

.result-head,
.node-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.result-head-copy {
    display: grid;
    gap: 5px;
    min-width: 0;
}

.result-head h2 {
    font-size: 1.1rem;
    line-height: 1.16;
    font-weight: 700;
}

.badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 30px;
    padding: 0 11px;
    border: 1px solid rgba(22, 119, 255, 0.18);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.08);
    color: var(--home-accent-deep);
    font-size: 0.77rem;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.badge.warn {
    border-color: rgba(183, 121, 31, 0.22);
    background: rgba(183, 121, 31, 0.1);
    color: var(--home-warn);
}

.badge.offline {
    border-color: rgba(192, 63, 79, 0.22);
    background: rgba(192, 63, 79, 0.1);
    color: var(--home-danger);
}

.result-meta-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.result-meta-item {
    display: grid;
    gap: 6px;
    padding: 11px 13px;
    border: 1px solid var(--home-line);
    border-radius: 16px;
    background: var(--home-fill);
}

.result-meta-item strong {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.4;
    letter-spacing: -0.03em;
    color: var(--home-ink);
}

.result-switcher {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.result-switch {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 34px;
    padding: 0 12px;
    border: 1px solid var(--home-line);
    border-radius: 999px;
    background: transparent;
    color: var(--home-ink-soft);
    font-size: 0.8rem;
    font-weight: 600;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.result-switch:hover,
.result-switch:focus-visible {
    border-color: rgba(22, 119, 255, 0.24);
    background: rgba(22, 119, 255, 0.07);
    color: var(--home-accent-deep);
    outline: none;
}

.result-switch.is-active {
    border-color: rgba(22, 119, 255, 0.22);
    background: rgba(22, 119, 255, 0.1);
    color: var(--home-accent-deep);
}

.result-switch.is-disabled,
.result-switch:disabled {
    cursor: not-allowed;
    opacity: 0.45;
}

.result-panels {
    display: grid;
    gap: 10px;
}

.result-panel {
    display: none;
}

.result-panel.is-active {
    display: grid;
    gap: 10px;
}

.result-block,
.result-command {
    display: grid;
    gap: 8px;
    padding: 10px 12px;
    border: 1px solid var(--home-line);
    border-radius: 18px;
    background: var(--home-surface-strong);
}

.result-item-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.result-copy-mini {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 28px;
    padding: 0 10px;
    border: 1px solid rgba(22, 119, 255, 0.14);
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.04);
    color: var(--home-ink-soft);
    font-size: 0.74rem;
    font-weight: 600;
    line-height: 1;
    transition:
        border-color 0.2s ease,
        background-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease,
        opacity 0.2s ease;
}

.result-copy-mini:hover,
.result-copy-mini:focus-visible {
    border-color: rgba(22, 119, 255, 0.24);
    background: rgba(22, 119, 255, 0.08);
    color: var(--home-accent-deep);
    transform: translateY(-1px);
    outline: none;
}

.result-copy-mini:disabled,
.result-copy-mini.is-disabled {
    opacity: 0.45;
    cursor: not-allowed;
    transform: none;
}

.result-link,
.result-command code,
.result-block code {
    display: block;
    word-break: break-all;
    padding: 9px 12px;
    border: 1px solid rgba(22, 119, 255, 0.1);
    border-radius: 14px;
    background: linear-gradient(180deg, rgba(244, 249, 255, 0.96), rgba(238, 245, 255, 0.92));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
    font-family: var(--font-code);
    font-size: 0.82rem;
    line-height: 1.58;
}

.result-link {
    color: var(--home-accent-deep);
}

.result-link[href="#"] {
    color: var(--home-muted);
    pointer-events: none;
}

.result-command code,
.result-block code {
    white-space: pre-wrap;
}

.result-command code {
    color: var(--home-ink);
}

.result-block code {
    color: var(--home-ink-soft);
}

.result-footer {
    display: grid;
    gap: 10px;
}

.result-footnote {
    font-size: 0.84rem;
    color: var(--home-muted);
}

.node-grid {
    display: grid;
    gap: 0;
    max-width: 980px;
    margin: 4px auto 0;
}

.node-grid-hidden {
    display: none !important;
}

.node-grid > .node-card:first-child {
    border-top: 1px solid var(--home-line);
}

.node-card {
    display: grid;
    gap: 10px;
    padding: 15px 0;
    border-bottom: 1px solid var(--home-line);
}

.node-top h3 {
    margin: 4px 0 0;
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--home-ink);
}

.node-top .eyebrow {
    color: var(--home-muted);
}

.node-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 18px;
    color: var(--home-ink-soft);
    font-size: 0.84rem;
}

.node-meta code {
    padding: 0;
    border: none;
    background: none;
    color: var(--home-ink);
    font-size: 0.84rem;
}

.empty-state {
    padding: 16px 0;
    color: var(--home-muted);
    font-size: 0.91rem;
}

.band-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 18px;
    padding-bottom: 12px;
}

.band-head-compact {
    justify-content: flex-start;
}

.band-head h2 {
    font-size: 1.04rem;
    line-height: 1.2;
    font-weight: 700;
}

.showcase-band .band-head {
    position: relative;
    align-items: center;
    min-height: 20px;
    padding: 0 0 10px 12px;
}

.showcase-band .band-head::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    bottom: 12px;
    width: 3px;
    border-radius: 999px;
    background: linear-gradient(180deg, #2b78ff, #5ab1ff);
}

.showcase-band .band-head .eyebrow {
    display: none;
}

.showcase-band .band-head h2 {
    font-size: 0.95rem;
    letter-spacing: -0.02em;
}

.showcase-shell {
    max-width: 1100px;
    margin: 0 auto;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 18px;
    box-shadow: 0 10px 28px rgba(29, 78, 161, 0.06);
}

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

.sponsor-tile {
    position: relative;
    aspect-ratio: 2.18 / 1;
    min-height: 66px;
    overflow: hidden;
    border: 1px solid var(--home-line);
    border-radius: 8px;
    background: #ffffff;
    box-shadow: none;
    transition:
        transform 0.22s ease,
        box-shadow 0.22s ease,
        border-color 0.22s ease;
}

.sponsor-tile:hover,
.sponsor-tile:focus-visible {
    border-color: rgba(22, 119, 255, 0.28);
    box-shadow: 0 8px 18px rgba(29, 78, 161, 0.08);
}

.sponsor-media {
    position: absolute;
    inset: 0;
    display: grid;
    place-items: center;
    padding: 8px 12px;
    background: #ffffff;
}

.sponsor-media::after {
    display: none;
}

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

.sponsor-meta {
    display: none;
}

.sponsor-tile-placeholder {
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.98)),
        linear-gradient(90deg, rgba(22, 119, 255, 0.06), rgba(56, 189, 248, 0.04));
}

.sponsor-tile-placeholder::before,
.sponsor-tile-placeholder::after {
    content: "";
    position: absolute;
    left: 16px;
    right: 16px;
    border-radius: 999px;
    background: rgba(22, 119, 255, 0.11);
}

.sponsor-tile-placeholder::before {
    top: 19px;
    height: 10px;
}

.sponsor-tile-placeholder::after {
    top: 37px;
    width: 42%;
    height: 8px;
}

.sponsor-tile-placeholder .sponsor-meta {
    color: var(--home-ink);
}

.skeleton-card {
    gap: 12px;
}

.skeleton-line {
    height: 10px;
    border-radius: 999px;
    background: linear-gradient(90deg, rgba(22, 119, 255, 0.08), rgba(22, 119, 255, 0.18), rgba(22, 119, 255, 0.08));
    background-size: 200% 100%;
    animation: shimmer 1.5s linear infinite;
}

.skeleton-line.short {
    width: 42%;
}

@media (max-width: 980px) {
    .home-topbar {
        flex-wrap: wrap;
        gap: 14px;
    }

    body.theme-home .topnav {
        order: 2;
        width: 100%;
        justify-content: flex-start;
        gap: 18px;
        overflow-x: auto;
        padding-bottom: 2px;
    }

    .generator-shell,
    .generator-row {
        grid-template-columns: 1fr;
    }

    .select-shell {
        width: 100%;
        max-width: none;
    }

    .tool-actions {
        width: 100%;
    }

    body.theme-home .button {
        width: 100%;
    }

    .showcase-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

@media (max-width: 760px) {
    .home-topbar {
        padding: 12px 18px 10px;
    }

    body.theme-home .brand-copy small,
    body.theme-home .topnav {
        display: none;
    }

    .home-main {
        width: min(calc(100% - 24px), 720px);
        padding: 32px 0 68px;
    }

    .section-band {
        padding-top: 28px;
    }

    .tool-hero {
        padding-top: 4px;
    }

    .tool-hero h1 {
        font-size: clamp(2.18rem, 10vw, 3.08rem);
    }

    .tool-hero-copy {
        font-size: 0.9rem;
    }

    .announcement-bar {
        width: 100%;
        gap: 8px;
        padding: 8px 11px;
        border-radius: 18px;
    }

    .announcement-bar p {
        font-size: 0.78rem;
    }

    .generator-form,
    .result-rail,
    .showcase-shell {
        padding: 13px;
        border-radius: 22px;
    }

    .generator-form {
        gap: 9px;
        padding: 9px 9px;
    }

    .input-shell {
        min-height: 38px;
        height: 38px;
        padding: 0 7px;
    }

    .node-select-trigger {
        min-height: 38px;
        padding: 0 10px;
    }

    .node-select-menu {
        width: 100%;
        min-width: 100%;
    }

    body.theme-home input#github-url {
        font-size: 0.84rem;
    }

    .input-reset {
        min-height: 26px;
        padding: 0 9px;
        font-size: 0.7rem;
    }

    body.theme-home .button {
        min-height: 38px;
        padding: 0 15px;
        font-size: 0.84rem;
    }

    .tool-actions .button {
        height: 38px;
        min-height: 38px;
    }

    .latency-pill {
        min-width: 56px;
        padding: 0 7px;
    }

    .node-select-option {
        grid-template-columns: minmax(0, 1fr) auto;
    }

    .node-select-status {
        display: none;
    }

    .result-meta-strip {
        grid-template-columns: 1fr;
    }

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

    .result-head,
    .node-top,
    .result-item-head {
        display: grid;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .result-head .badge,
    .node-top .badge,
    .result-item-head .result-copy-mini {
        justify-self: start;
    }

    .result-switcher {
        gap: 7px;
    }

    .result-switch {
        min-height: 32px;
        padding: 0 11px;
        font-size: 0.78rem;
    }

    .sponsor-tile {
        min-height: 60px;
    }
}

@media (max-width: 560px) {
    .home-topbar {
        padding: 12px 14px 10px;
    }

    .home-main {
        width: calc(100% - 20px);
    }

    body.theme-home .brand-mark {
        width: 40px;
        height: 40px;
    }

    body.theme-home .brand-mark-image {
        height: 40px;
        max-width: min(104px, 34vw);
    }

    .tool-support span,
    .sample-chip {
        font-size: 0.74rem;
    }

    .tool-hero h1 {
        line-height: 1.02;
    }

    .generator-form,
    .result-rail,
    .showcase-shell,
    .sponsor-tile {
        border-radius: 20px;
    }

    .showcase-shell {
        padding: 11px;
    }

    .showcase-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 6px;
    }

    .sponsor-tile {
        min-height: 56px;
        border-radius: 7px;
    }

    .input-prefix {
        min-width: 30px;
        padding-right: 8px;
    }

    .result-link,
    .result-command code,
    .result-block code {
        font-size: 0.8rem;
        padding: 8px 11px;
    }

    .sponsor-media {
        padding: 7px 10px;
    }
}

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

    .skeleton-line,
    .sample-chip,
    .sponsor-tile,
    body.theme-home .topnav a,
    .result-switch,
    .result-copy-mini {
        animation: none !important;
        transition: none !important;
    }
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

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