/*
 * GREENBOX ROOT + LAUNCHER RECONSTRUCTION V1
 *
 * Presentation-only consumer layer for Global Theme V2.
 * No local theme engine, catalog, Matrix renderer, or settings authority.
 *
 * Most presentation paint derives from currentColor so central theme changes
 * continue to flow through the Launcher family instead of being replaced by
 * another app-local color system.
 */

body.greenbox-launcher-reconstructed-v1 {
    margin: 0 !important;
    padding: 0 !important;
    min-height: 100vh;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    line-height: 1.48;
}

body.greenbox-launcher-reconstructed-v1 *,
body.greenbox-launcher-reconstructed-v1 *::before,
body.greenbox-launcher-reconstructed-v1 *::after {
    box-sizing: border-box;
}

body.greenbox-launcher-reconstructed-v1 .page {
    width: min(1640px, calc(100% - 32px));
    margin: 24px auto 96px;
    display: grid;
    gap: 18px;
}

body.greenbox-launcher-reconstructed-v1 .hero,
body.greenbox-launcher-reconstructed-v1 .section {
    width: 100%;
    margin: 0;
    padding: clamp(18px, 2vw, 28px);
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 24%,
            transparent
        );
    border-radius: 18px;
    background:
        color-mix(
            in srgb,
            currentColor 5%,
            transparent
        );
    box-shadow:
        0 18px 44px
        rgb(0 0 0 / 0.15);
}

body.greenbox-launcher-reconstructed-v1 .hero {
    display: grid;
    gap: 14px;
}

body.greenbox-launcher-reconstructed-v1 .gb-shell-kicker {
    width: fit-content;
    display: inline-flex;
    align-items: center;
    min-height: 28px;
    padding: 4px 10px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 38%,
            transparent
        );
    border-radius: 999px;
    background:
        color-mix(
            in srgb,
            currentColor 8%,
            transparent
        );
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

body.greenbox-launcher-reconstructed-v1 .hero h1 {
    margin: 0;
    font-size:
        clamp(
            2rem,
            4vw,
            3.45rem
        );
    line-height: 1.02;
    letter-spacing: -0.045em;
}

body.greenbox-launcher-reconstructed-v1 .hero h1 .dot {
    display: none;
}

body.greenbox-launcher-reconstructed-v1 .hero > p {
    margin: 0;
    max-width: 900px;
    opacity: 0.86;
    font-size: 1.02rem;
}

body.greenbox-launcher-reconstructed-v1 .gb-shell-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 2px;
}

body.greenbox-launcher-reconstructed-v1 .gb-shell-nav a,
body.greenbox-launcher-reconstructed-v1 .mini,
body.greenbox-launcher-reconstructed-v1 .gb-r6-info-btn,
body.greenbox-launcher-reconstructed-v1 button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 38px;
    padding: 8px 12px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 38%,
            transparent
        );
    border-radius: 10px;
    background:
        color-mix(
            in srgb,
            currentColor 8%,
            transparent
        );
    color: inherit;
    font: inherit;
    font-weight: 750;
    line-height: 1.1;
    text-decoration: none;
    cursor: pointer;
    box-shadow: none;
}

body.greenbox-launcher-reconstructed-v1 .gb-shell-nav a:hover,
body.greenbox-launcher-reconstructed-v1 .gb-shell-nav a:focus-visible,
body.greenbox-launcher-reconstructed-v1 .mini:hover,
body.greenbox-launcher-reconstructed-v1 .mini:focus-visible,
body.greenbox-launcher-reconstructed-v1 .gb-r6-info-btn:hover,
body.greenbox-launcher-reconstructed-v1 .gb-r6-info-btn:focus-visible,
body.greenbox-launcher-reconstructed-v1 button:hover,
body.greenbox-launcher-reconstructed-v1 button:focus-visible {
    background:
        color-mix(
            in srgb,
            currentColor 15%,
            transparent
        );
    border-color:
        color-mix(
            in srgb,
            currentColor 60%,
            transparent
        );
    text-decoration: none;
}

body.greenbox-launcher-reconstructed-v1 :focus-visible {
    outline:
        2px solid
        currentColor;
    outline-offset: 3px;
}

body.greenbox-launcher-reconstructed-v1 .summary,
body.greenbox-launcher-reconstructed-v1 .gb-mission-panel,
body.greenbox-launcher-reconstructed-v1 .mini-row,
body.greenbox-launcher-reconstructed-v1 .gb-card-actions,
body.greenbox-launcher-reconstructed-v1 .gb-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.greenbox-launcher-reconstructed-v1 .summary-box,
body.greenbox-launcher-reconstructed-v1 .gb-mission-chip,
body.greenbox-launcher-reconstructed-v1 .gb-meta-pill,
body.greenbox-launcher-reconstructed-v1 .status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    width: fit-content;
    min-height: 30px;
    padding: 5px 10px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 26%,
            transparent
        );
    border-radius: 999px;
    background:
        color-mix(
            in srgb,
            currentColor 7%,
            transparent
        );
    font-size: 0.83rem;
    font-weight: 760;
}

body.greenbox-launcher-reconstructed-v1 #infraHeroChip {
    margin: 0;
}

body.greenbox-launcher-reconstructed-v1 .section h2 {
    margin: 0 0 6px;
    font-size:
        clamp(
            1.35rem,
            2.3vw,
            1.9rem
        );
    line-height: 1.15;
    letter-spacing: -0.025em;
}

body.greenbox-launcher-reconstructed-v1 .section h3 {
    margin: 8px 0 6px;
    font-size: 1.04rem;
    line-height: 1.25;
}

body.greenbox-launcher-reconstructed-v1 .note {
    margin: 0 0 16px;
    opacity: 0.76;
}

body.greenbox-launcher-reconstructed-v1 .card-grid,
body.greenbox-launcher-reconstructed-v1 .alert-history-grid {
    display: grid;
    grid-template-columns:
        repeat(
            auto-fit,
            minmax(
                min(100%, 285px),
                1fr
            )
        );
    gap: 14px;
}

body.greenbox-launcher-reconstructed-v1 .card,
body.greenbox-launcher-reconstructed-v1 .service-card,
body.greenbox-launcher-reconstructed-v1 .alert-entry,
body.greenbox-launcher-reconstructed-v1 .gb-action-history-card,
body.greenbox-launcher-reconstructed-v1 .active-issues-panel {
    min-width: 0;
    padding: 16px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 20%,
            transparent
        );
    border-radius: 14px;
    background:
        color-mix(
            in srgb,
            currentColor 4%,
            transparent
        );
}

body.greenbox-launcher-reconstructed-v1 .card:hover,
body.greenbox-launcher-reconstructed-v1 .service-card:hover {
    border-color:
        color-mix(
            in srgb,
            currentColor 42%,
            transparent
        );
    background:
        color-mix(
            in srgb,
            currentColor 7%,
            transparent
        );
}

body.greenbox-launcher-reconstructed-v1 .host,
body.greenbox-launcher-reconstructed-v1 .gb-url-local,
body.greenbox-launcher-reconstructed-v1 .gb-url-private,
body.greenbox-launcher-reconstructed-v1 .gb-url-tailscale,
body.greenbox-launcher-reconstructed-v1 .gb-url-ts,
body.greenbox-launcher-reconstructed-v1 .gb-url-internal,
body.greenbox-launcher-reconstructed-v1 .gb-url-cloudflare,
body.greenbox-launcher-reconstructed-v1 .gb-url-cf,
body.greenbox-launcher-reconstructed-v1 .gb-url-external {
    overflow-wrap: anywhere;
    word-break: break-word;
    font-family:
        ui-monospace,
        SFMono-Regular,
        Menlo,
        Consolas,
        monospace;
    font-size: 0.82rem;
    line-height: 1.45;
}

body.greenbox-launcher-reconstructed-v1 .gb-url-local,
body.greenbox-launcher-reconstructed-v1 .gb-url-private,
body.greenbox-launcher-reconstructed-v1 .gb-url-tailscale,
body.greenbox-launcher-reconstructed-v1 .gb-url-ts,
body.greenbox-launcher-reconstructed-v1 .gb-url-internal {
    color: #2ed7a3;
}

body.greenbox-launcher-reconstructed-v1 .gb-url-cloudflare,
body.greenbox-launcher-reconstructed-v1 .gb-url-cf {
    color: #f3ad49;
}

body.greenbox-launcher-reconstructed-v1 .gb-url-external {
    color: #65c8e8;
}

body.greenbox-launcher-reconstructed-v1 .gb-btn-local,
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="local"],
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="private"],
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="tailscale"],
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="internal"] {
    border-color: #2ed7a3;
    color: #2ed7a3;
}

body.greenbox-launcher-reconstructed-v1 .gb-btn-cloudflare,
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="cloudflare"] {
    border-color: #f3ad49;
    color: #f3ad49;
}

body.greenbox-launcher-reconstructed-v1 .gb-btn-external,
body.greenbox-launcher-reconstructed-v1 [data-gb-authority="external"] {
    border-color: #65c8e8;
    color: #65c8e8;
}

body.greenbox-launcher-reconstructed-v1 .status-healthy {
    border-color: #2ed7a3;
}

body.greenbox-launcher-reconstructed-v1 .status-warning,
body.greenbox-launcher-reconstructed-v1 .card-warning {
    border-color: #e6bd55;
}

body.greenbox-launcher-reconstructed-v1 .status-unknown,
body.greenbox-launcher-reconstructed-v1 .card-unknown {
    border-color: #91a2b5;
}

body.greenbox-launcher-reconstructed-v1 .active-issues-panel.clear {
    opacity: 0.8;
}

body.greenbox-launcher-reconstructed-v1 .active-issue {
    padding: 8px 10px;
    border-radius: 9px;
    background:
        color-mix(
            in srgb,
            currentColor 6%,
            transparent
        );
}

body.greenbox-launcher-reconstructed-v1 .alert-entry {
    display: grid;
    gap: 6px;
}

body.greenbox-launcher-reconstructed-v1 .alert-title,
body.greenbox-launcher-reconstructed-v1 .gb-action-history-title {
    font-weight: 800;
}

body.greenbox-launcher-reconstructed-v1 .alert-meta,
body.greenbox-launcher-reconstructed-v1 .gb-action-history-meta,
body.greenbox-launcher-reconstructed-v1 .gb-latency {
    opacity: 0.68;
    font-size: 0.8rem;
}

body.greenbox-launcher-reconstructed-v1 #greenbox-search-filter-v1,
body.greenbox-launcher-reconstructed-v1 .greenbox-search-clone-v3 {
    width: 100%;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    box-shadow: none;
}

body.greenbox-launcher-reconstructed-v1 .gbsf-row {
    display: grid;
    grid-template-columns:
        minmax(0, 1fr)
        auto;
    gap: 10px;
    align-items: center;
}

body.greenbox-launcher-reconstructed-v1 .gbsf-buttons {
    display: grid;
    grid-template-columns:
        repeat(
            4,
            minmax(0, 1fr)
        );
    gap: 8px;
    margin-top: 10px;
}

body.greenbox-launcher-reconstructed-v1 .gbsf-filter.active {
    background:
        color-mix(
            in srgb,
            currentColor 18%,
            transparent
        );
    border-color:
        color-mix(
            in srgb,
            currentColor 68%,
            transparent
        );
}

body.greenbox-launcher-reconstructed-v1 .gbsf-count {
    margin-top: 8px;
    opacity: 0.8;
    font-size: 0.84rem;
    font-weight: 700;
}

body.greenbox-launcher-reconstructed-v1 input,
body.greenbox-launcher-reconstructed-v1 select,
body.greenbox-launcher-reconstructed-v1 textarea {
    width: 100%;
    min-height: 42px;
    padding: 9px 11px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 32%,
            transparent
        );
    border-radius: 10px;
    background:
        color-mix(
            in srgb,
            currentColor 4%,
            transparent
        );
    color: inherit;
    font: inherit;
}

body.greenbox-launcher-reconstructed-v1 input::placeholder,
body.greenbox-launcher-reconstructed-v1 textarea::placeholder {
    color: inherit;
    opacity: 0.5;
}

body.greenbox-launcher-reconstructed-v1 #gb-control-section {
    display: grid;
    gap: 10px;
}

body.greenbox-launcher-reconstructed-v1 .gb-token {
    max-width: 720px;
}

body.greenbox-launcher-reconstructed-v1 #gb-action-output {
    min-height: 56px;
    padding: 12px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 22%,
            transparent
        );
    border-radius: 12px;
    background:
        color-mix(
            in srgb,
            currentColor 4%,
            transparent
        );
    overflow-wrap: anywhere;
}

body.greenbox-launcher-reconstructed-v1 dialog {
    width:
        min(
            760px,
            calc(100% - 32px)
        );
    max-height:
        min(
            82vh,
            900px
        );
    padding: 0;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 30%,
            transparent
        );
    border-radius: 16px;
    background: Canvas;
    color: CanvasText;
    box-shadow:
        0 28px 90px
        rgb(0 0 0 / 0.42);
}

body.greenbox-launcher-reconstructed-v1 dialog::backdrop {
    background:
        rgb(0 0 0 / 0.62);
}

body.greenbox-launcher-reconstructed-v1 .gb-r6-dh,
body.greenbox-launcher-reconstructed-v1 .gb-r6-db {
    padding: 18px;
}

body.greenbox-launcher-reconstructed-v1 .gb-r6-dh {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    border-bottom:
        1px solid
        color-mix(
            in srgb,
            currentColor 18%,
            transparent
        );
}

body.greenbox-launcher-reconstructed-v1 .gb-r6-tags,
body.greenbox-launcher-reconstructed-v1 .gb-r6-links {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.greenbox-launcher-reconstructed-v1 .gb-r6-tag {
    display: inline-flex;
    padding: 4px 8px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 22%,
            transparent
        );
    border-radius: 999px;
    font-size: 0.78rem;
}

body.greenbox-launcher-reconstructed-v1 .foot {
    padding: 10px 2px;
    opacity: 0.58;
    text-align: center;
    font-size: 0.8rem;
}

body.greenbox-launcher-reconstructed-v1 .is-hidden {
    display: none !important;
}

body.greenbox-launcher-reconstructed-v1 .error-box {
    padding: 14px;
    border:
        1px solid
        #d77b7b;
    border-radius: 12px;
    background:
        rgb(120 20 20 / 0.14);
    overflow-wrap: anywhere;
}

body.greenbox-launcher-reconstructed-v1 .greenbox-theme-settings-control {
    position: fixed;
    right: 18px;
    bottom: 18px;
    z-index: 9000;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border:
        1px solid
        color-mix(
            in srgb,
            currentColor 52%,
            transparent
        );
    border-radius: 999px;
    background:
        color-mix(
            in srgb,
            Canvas 88%,
            transparent
        );
    color: inherit;
    font-weight: 800;
    text-decoration: none;
    box-shadow:
        0 12px 34px
        rgb(0 0 0 / 0.28);
    backdrop-filter: blur(10px);
}

body.greenbox-launcher-reconstructed-v1 .greenbox-theme-settings-control:hover,
body.greenbox-launcher-reconstructed-v1 .greenbox-theme-settings-control:focus-visible {
    background:
        color-mix(
            in srgb,
            currentColor 14%,
            Canvas
        );
    text-decoration: none;
}

@supports not (
    background:
        color-mix(
            in srgb,
            white,
            black
        )
) {
    body.greenbox-launcher-reconstructed-v1 .hero,
    body.greenbox-launcher-reconstructed-v1 .section,
    body.greenbox-launcher-reconstructed-v1 .card,
    body.greenbox-launcher-reconstructed-v1 .service-card,
    body.greenbox-launcher-reconstructed-v1 .alert-entry,
    body.greenbox-launcher-reconstructed-v1 .gb-action-history-card,
    body.greenbox-launcher-reconstructed-v1 .active-issues-panel {
        background:
            rgb(8 14 18 / 0.72);
        border-color:
            rgb(255 255 255 / 0.16);
    }
}

@media (max-width: 820px) {

    body.greenbox-launcher-reconstructed-v1 .page {
        width:
            min(
                100% - 18px,
                1640px
            );
        margin-top: 10px;
    }

    body.greenbox-launcher-reconstructed-v1 .hero,
    body.greenbox-launcher-reconstructed-v1 .section {
        padding: 16px;
        border-radius: 14px;
    }

    body.greenbox-launcher-reconstructed-v1 .gbsf-row {
        grid-template-columns: 1fr;
    }

    body.greenbox-launcher-reconstructed-v1 .gbsf-buttons {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

    body.greenbox-launcher-reconstructed-v1
    .greenbox-theme-settings-control {
        right: 10px;
        bottom: 10px;
    }
}

@media (prefers-reduced-motion: reduce) {

    body.greenbox-launcher-reconstructed-v1 *,
    body.greenbox-launcher-reconstructed-v1 *::before,
    body.greenbox-launcher-reconstructed-v1 *::after {
        scroll-behavior:
            auto !important;

        transition:
            none !important;

        animation-duration:
            0.001ms !important;

        animation-iteration-count:
            1 !important;
    }
}
