.homebase-main-launch {
    position: relative;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: 58px minmax(0, 1fr) auto;
    gap: 14px;
    align-items: center;
    width: 100%;
    min-height: 112px;
    margin: 16px 0 0;
    padding: 16px 18px;
    overflow: hidden;
    border: 1px solid rgba(77, 166, 255, 0.48);
    border-radius: 12px;
    color: #eaf7ff;
    background:
        radial-gradient(circle at 9% 20%, rgba(77, 166, 255, 0.24), transparent 32%),
        linear-gradient(135deg, rgba(34, 67, 98, 0.96), rgba(18, 31, 45, 0.98));
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.1),
        0 8px 22px rgba(0, 0, 0, 0.3);
    text-align: left;
}

.homebase-main-icon {
    display: grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border: 1px solid rgba(125, 196, 255, 0.48);
    border-radius: 10px;
    color: #b9ddff;
    background: rgba(77, 166, 255, 0.12);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
    font-size: 37px;
    font-weight: 400;
    line-height: 1;
}

.homebase-main-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.homebase-main-kicker {
    color: #7dc4ff;
    font-size: 9px;
    font-weight: 800;
    letter-spacing: 0.14em;
    line-height: 1.2;
    text-transform: uppercase;
}

.homebase-main-title {
    color: #f2f8fc;
    font-size: 22px;
    font-weight: 900;
    letter-spacing: 0.01em;
    line-height: 1.05;
}

.homebase-main-description {
    margin-top: 2px;
    color: #b9c7d4;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.homebase-main-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-width: 132px;
    min-height: 50px;
    margin: 0;
    padding: 11px 16px;
    border: 1px solid rgba(125, 196, 255, 0.42);
    border-radius: 999px;
    color: #7dc4ff;
    background: rgba(77, 166, 255, 0.09);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.homebase-main-action:hover {
    border-color: rgba(125, 196, 255, 0.78);
    background: rgba(77, 166, 255, 0.2);
}

.homebase-main-action:focus-visible {
    outline: 2px solid #7dc4ff;
    outline-offset: 3px;
}

.homebase-main-action > span {
    font-size: 24px;
    font-weight: 400;
    line-height: 0.7;
}

body:not(.theme-retro):not(.theme-navcom):not(.theme-ops1940):not(.theme-win95) .homebase-main-launch {
    border: 1px solid var(--glass-line-soft);
    border-radius: 20px;
    background:
        linear-gradient(180deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.055)),
        rgba(6, 14, 22, 0.26);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        0 14px 34px rgba(0, 0, 0, 0.16);
}

body:not(.theme-retro):not(.theme-navcom):not(.theme-ops1940):not(.theme-win95) .homebase-main-action {
    border-radius: 999px;
    color: #eaf7ff;
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.18);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

body:not(.theme-retro):not(.theme-navcom):not(.theme-ops1940):not(.theme-win95) .homebase-main-action:hover {
    background: rgba(255, 255, 255, 0.17);
}

.homebase-main-launch .homebase-asset-status {
    width: fit-content;
    max-width: 100%;
    margin-top: 6px;
    padding: 2px 6px;
    border: 1px solid rgba(170, 183, 198, 0.24);
    border-radius: 999px;
    color: #aab7c6;
    background: rgba(170, 183, 198, 0.06);
    font-size: 9px;
    font-weight: 700;
    line-height: 1.35;
}

.homebase-main-launch .homebase-asset-status.ok {
    color: #a9d6ff;
    border-color: rgba(77, 166, 255, 0.4);
    background: rgba(77, 166, 255, 0.08);
}

.homebase-main-launch .homebase-asset-status.update {
    color: #ffe0a8;
    border-color: rgba(255, 180, 74, 0.55);
    background: rgba(255, 180, 74, 0.12);
}

.homebase-main-launch .homebase-asset-status.warn {
    color: #ffd0ca;
    border-color: rgba(255, 111, 97, 0.38);
    background: rgba(255, 111, 97, 0.08);
}

.homebase-overlay {
    position: fixed;
    inset: 0;
    z-index: 100300;
    padding: 12px;
    background: rgba(0, 0, 0, 0.82);
}

.homebase-overlay.active {
    display: flex;
}

.homebase-overlay-window {
    display: grid;
    grid-template-rows: 38px minmax(0, 1fr);
    width: 100%;
    height: 100%;
    overflow: hidden;
    border: 2px solid #708179;
    border-radius: 8px;
    background: #080808;
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.62);
}

.homebase-overlay-titlebar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 5px 7px 5px 12px;
    color: #f2f7f4;
    background: linear-gradient(90deg, #174a78, #102c49);
    font: 700 12px/1.1 "Segoe UI", sans-serif;
}

.homebase-overlay-titlebar button {
    min-height: 26px;
    padding: 4px 10px;
    border: 1px solid #a9b8b1;
    border-radius: 4px;
    color: #f5f7f6;
    background: #27332f;
    cursor: pointer;
}

#homebaseFrame {
    width: 100%;
    height: 100%;
    border: 0;
    background: #080808;
}

body.homebase-environment-open {
    overflow: hidden;
}

body.theme-retro .homebase-main-launch {
    border: 3px solid;
    border-color: #92989e #292c2f #242629 #858b91;
    border-radius: 8px;
    background: linear-gradient(180deg, #6e737a, #484d53);
    box-shadow: inset 0 2px 3px rgba(255, 255, 255, 0.16), inset 0 -5px 9px rgba(0, 0, 0, 0.25);
}

body.theme-retro .homebase-main-icon {
    color: #171300;
    border: 2px solid;
    border-color: #fff0a0 #8c6f05 #6d5600 #f6d85b;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffe66f, #d9a916);
}
body.theme-retro .homebase-main-kicker,
body.theme-retro .homebase-main-title,
body.theme-retro .homebase-main-action,
body.theme-retro .homebase-main-launch .homebase-asset-status.ok { color: var(--piper-yellow); }
body.theme-retro .homebase-main-description { color: #eee8d2; }
body.theme-retro .homebase-main-action {
    color: #171300;
    border-color: #fff0a0 #8c6f05 #6d5600 #f6d85b;
    border-radius: 4px;
    background: linear-gradient(180deg, #ffe66f, #d9a916);
}
body.theme-retro .homebase-overlay-window { border: 4px solid #25282b; border-radius: 12px; background: #222428; box-shadow: 0 24px 80px #000; }
body.theme-retro .homebase-overlay-titlebar { color: #f4f4f4; background: linear-gradient(180deg, #45494e, #202225); font-family: Arial, sans-serif; }
body.theme-retro .homebase-overlay-titlebar button { border: 2px solid; border-color: #aeb3b8 #292c2f #242629 #9ca1a6; border-radius: 4px; color: #fff; background: linear-gradient(#555b61, #303439); }

body.theme-navcom .homebase-main-launch {
    border: 3px solid;
    border-color: #68717a #151719 #111315 #596169;
    border-radius: 5px;
    background: linear-gradient(180deg, #3b4046, #22262a);
    font-family: "Courier New", monospace;
}
body.theme-navcom .homebase-main-icon,
body.theme-navcom .homebase-main-action { color: #33ff33; border-color: #3d623d; border-radius: 3px; background: #080b08; }
body.theme-navcom .homebase-main-kicker,
body.theme-navcom .homebase-main-title,
body.theme-navcom .homebase-main-launch .homebase-asset-status.ok { color: #33ff33; text-shadow: 0 0 5px rgba(51, 255, 51, 0.45); }
body.theme-navcom .homebase-main-description { color: #a7afb7; }
body.theme-navcom .homebase-overlay-window { border: 3px solid; border-color: #68717a #151719 #111315 #596169; border-radius: 5px; background: #090a0b; box-shadow: 0 24px 80px #000; }
body.theme-navcom .homebase-overlay-titlebar { color: #33ff33; background: linear-gradient(180deg, #30343a, #111315); font-family: "Courier New", monospace; letter-spacing: .08em; }
body.theme-navcom .homebase-overlay-titlebar button { border-radius: 3px; color: #d8dde2; background: #282c30; }

body.theme-ops1940 .homebase-main-launch {
    border: 1px solid #050403;
    border-top-color: #665c4b;
    border-left-color: #4b4030;
    border-radius: 3px;
    background: linear-gradient(180deg, #211e18, #0d0c09);
    box-shadow: inset 0 1px 0 rgba(255, 235, 176, 0.08), 0 5px 12px rgba(0, 0, 0, 0.5);
    font-family: "Courier New", monospace;
}
body.theme-ops1940 .homebase-main-icon,
body.theme-ops1940 .homebase-main-action { color: #1b1105; border-color: #f0d28b #624113 #432906 #c49543; border-radius: 2px; background: linear-gradient(#e7c36f, #a8772e); text-shadow: 0 1px 0 rgba(255, 235, 176, 0.28); }
body.theme-ops1940 .homebase-main-kicker,
body.theme-ops1940 .homebase-main-title,
body.theme-ops1940 .homebase-main-launch .homebase-asset-status.ok { color: #f2ca67; }
body.theme-ops1940 .homebase-main-description { color: #c3a66f; }
body.theme-ops1940 .homebase-overlay-window { border: 2px solid #4e3518; border-radius: 3px; background: #080705; box-shadow: 0 24px 80px #000; }
body.theme-ops1940 .homebase-overlay-titlebar { color: #f0d38d; background: linear-gradient(180deg, #2a241b, #090806); font-family: 'MS33558', "Courier New", monospace; letter-spacing: .08em; text-transform: uppercase; }
body.theme-ops1940 .homebase-overlay-titlebar button { border-color: #9a7231; border-radius: 2px; color: #ead8ab; background: #241b10; }

body.theme-win95 .homebase-main-launch {
    border: 2px solid;
    border-color: #fff #404040 #404040 #fff;
    border-radius: 0;
    color: #000;
    background: #c0c0c0;
    box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.4);
    font-family: "MS Sans Serif", Tahoma, Arial, sans-serif;
}
body.theme-win95 .homebase-main-icon,
body.theme-win95 .homebase-main-action { border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; color: #000; background: #c0c0c0; }
body.theme-win95 .homebase-main-kicker,
body.theme-win95 .homebase-main-title,
body.theme-win95 .homebase-main-description,
body.theme-win95 .homebase-main-launch .homebase-asset-status,
body.theme-win95 .homebase-main-launch .homebase-asset-status.ok { color: #000; }
body.theme-win95 .homebase-overlay { padding: 4px; background: #008080; }
body.theme-win95 .homebase-overlay-window { grid-template-rows: 26px minmax(0, 1fr); border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; background: #c0c0c0; box-shadow: 5px 5px 0 rgba(0, 0, 0, 0.45); }
body.theme-win95 .homebase-overlay-titlebar { padding: 2px 3px 2px 6px; color: #fff; background: #000080; font: 700 12px/1 "MS Sans Serif", Tahoma, Arial, sans-serif; }
body.theme-win95 .homebase-overlay-titlebar button { min-height: 20px; padding: 1px 7px; border: 2px solid; border-color: #fff #404040 #404040 #fff; border-radius: 0; color: #000; background: #c0c0c0; }
body.theme-win95 #homebaseFrame { background: #008080; }

@media (max-width: 650px) {
    .homebase-main-launch {
        grid-template-columns: 48px minmax(0, 1fr);
        gap: 11px;
        padding: 14px;
    }

    .homebase-main-icon {
        width: 48px;
        height: 48px;
        font-size: 31px;
    }

    .homebase-main-action {
        grid-column: 2;
        justify-self: start;
        width: min(240px, 100%);
        min-height: 54px;
        margin-top: 6px;
    }

    .homebase-overlay {
        padding: 0;
    }

    .homebase-overlay-window {
        border: 0;
        border-radius: 0;
    }
}
