/* =========================================================
   GTKZ FORGE
   SURFACE + SIMULATOR UX OWNER
   Loaded LAST
   ========================================================= */


/* ---------------------------------------------------------
   PUBLIC COMMAND CENTER BUTTON
   --------------------------------------------------------- */

.gtkz-command-center-link {
    min-width: 132px;
    height: 40px;

    padding: 0 12px;

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 7px;

    border:
        1px solid rgba(48,164,232,.58);

    border-radius:
        8px;

    background:
        linear-gradient(
            180deg,
            rgba(9,45,74,.98),
            rgba(4,24,43,.98)
        );

    color: #dff7ff;

    text-decoration: none;

    font-size: 10px;
    font-weight: 800;

    letter-spacing: .035em;

    white-space: nowrap;
}


.gtkz-command-center-link:hover {
    border-color:
        rgba(77,196,255,.88);

    background:
        linear-gradient(
            180deg,
            rgba(13,62,99,.98),
            rgba(5,31,54,.98)
        );
}


.gtkz-command-center-link svg {
    width: 14px;
    height: 14px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}


/* ---------------------------------------------------------
   GLOBAL ACTIVITY
   Give map + client drawer breathing room.
   --------------------------------------------------------- */

.analytics {
    align-items: stretch !important;
}


.analytics > .panel {
    min-height: 205px !important;
}


.analytics > .panel:first-child {
    min-height: 205px !important;
}


.analytics > .panel:first-child
.gtkz-global-map-shell {
    min-height: 160px !important;
    height: 160px !important;
}


/*
 * Keep drawer comfortably inside map,
 * never colliding with action row.
 */
.gtkz-client-drawer {
    left: 8px !important;
    right: 8px !important;
    bottom: 7px !important;
}


.gtkz-client-drawer-head {
    min-height: 30px !important;
}


/* Make public client website feel clickable */

.gtkz-client-site:not(.disabled) {
    color: #82d7ff !important;
}


.gtkz-client-site:not(.disabled):hover {
    color: #ffffff !important;

    text-decoration: underline !important;

    text-underline-offset: 2px;
}


/* ---------------------------------------------------------
   DEVICE TYPES — WEBSITE AS DELIVERY SURFACE
   --------------------------------------------------------- */

.gtkz-website-device-row {
    min-height: 18px;
}


.gtkz-website-device-name > span {
    display: inline-flex;

    align-items: baseline;

    gap: 4px;
}


.gtkz-website-device-domain {
    color: #598ba8 !important;

    font-size: 6.5px !important;
}


/* ---------------------------------------------------------
   SIMULATOR WORKSPACE
   Player + control surface are visually paired.
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .simulator-grid {
        align-items: start !important;

        column-gap: 18px !important;
    }


    /*
     * Existing player column:
     * narrower and centered.
     */
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) {
        width: min(100%, 820px) !important;
        max-width: 820px !important;

        justify-self: center !important;

        margin-left: auto !important;
        margin-right: auto !important;
    }


    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block)
    .sim-screen {
        width: 100% !important;

        max-width: 820px !important;

        aspect-ratio: 16 / 9 !important;

        height: auto !important;
    }


    /*
     * Remote / device controller rail.
     */
    .remote,
    .gtkz-dynamic-control {
        width: 150px !important;

        min-width: 150px !important;

        max-width: 150px !important;
    }
}


/* ---------------------------------------------------------
   DYNAMIC CONTROL SURFACE
   --------------------------------------------------------- */

.gtkz-dynamic-control {
    min-height: 300px;

    padding: 12px 10px;

    display: flex;

    flex-direction: column;

    align-items: center;

    border:
        1px solid rgba(87,134,165,.48);

    border-radius:
        24px;

    background:
        linear-gradient(
            180deg,
            #1a2733,
            #101923
        );

    box-shadow:
        inset 0 1px 0
        rgba(255,255,255,.035),
        0 14px 32px
        rgba(0,0,0,.18);

    color: #fff;
}


.gtkz-control-kicker {
    margin-bottom: 4px;

    color: #6d99b6;

    font-size: 6px;

    font-weight: 800;

    letter-spacing: .10em;

    text-transform: uppercase;
}


.gtkz-control-brand {
    margin-bottom: 11px;

    color: #ffffff;

    font-size: 10px;

    font-weight: 850;

    letter-spacing: .035em;

    text-transform: uppercase;

    text-align: center;
}


.gtkz-control-power {
    width: 28px;
    height: 28px;

    margin-bottom: 14px;

    display: flex;

    align-items: center;
    justify-content: center;

    border: 0;

    border-radius: 50%;

    background: #263644;

    color: #8acfff;

    font-size: 12px;
}


.gtkz-control-dpad {
    position: relative;

    width: 88px;
    height: 88px;

    margin-bottom: 14px;

    border:
        1px solid rgba(100,139,164,.64);

    border-radius: 50%;
}


.gtkz-control-dpad button {
    position: absolute;

    width: 27px;
    height: 27px;

    border: 0;

    background: transparent;

    color: #afc9da;

    font-size: 10px;

    cursor: pointer;
}


.gtkz-control-dpad .up {
    top: 2px;
    left: 30px;
}


.gtkz-control-dpad .down {
    bottom: 2px;
    left: 30px;
}


.gtkz-control-dpad .left {
    left: 2px;
    top: 30px;
}


.gtkz-control-dpad .right {
    right: 2px;
    top: 30px;
}


.gtkz-control-dpad .ok {
    width: 44px;
    height: 44px;

    left: 21px;
    top: 21px;

    border:
        1px solid rgba(96,136,163,.58);

    border-radius: 50%;

    background:
        #15212b;

    color: #fff;

    font-size: 11px;

    font-weight: 800;
}


.gtkz-control-quick {
    width: 100%;

    display: grid;

    grid-template-columns:
        repeat(3, minmax(0,1fr));

    gap: 5px;
}


.gtkz-control-quick button {
    min-height: 28px;

    padding: 3px;

    border:
        1px solid rgba(81,124,151,.25);

    border-radius: 7px;

    background:
        #1c2a36;

    color:
        #8ca9bb;

    font-size:
        6px;

    font-weight: 700;

    cursor: pointer;
}


.gtkz-control-selected {
    width: 100%;

    margin-top: auto;

    padding-top: 11px;

    border-top:
        1px solid rgba(79,126,156,.18);

    color:
        #6f95ad;

    font-size:
        6.5px;

    line-height:
        1.35;

    text-align: center;
}


/* ---------------------------------------------------------
   NON-TV DEVICE CONTROL
   --------------------------------------------------------- */

.gtkz-device-controller {
    border-radius: 15px;
}


.gtkz-device-control-icon {
    width: 52px;
    height: 52px;

    margin:
        18px auto 10px;

    display: flex;

    align-items: center;
    justify-content: center;

    border:
        1px solid rgba(55,157,218,.32);

    border-radius:
        15px;

    background:
        rgba(8,38,63,.75);

    color:
        #68cfff;
}


.gtkz-device-control-icon svg {
    width: 27px;
    height: 27px;

    fill: none;
    stroke: currentColor;

    stroke-width: 1.6;
}


.gtkz-device-control-copy {
    margin-bottom: 14px;

    color:
        #7d9db1;

    font-size:
        7px;

    line-height:
        1.45;

    text-align: center;
}


/* Selected target status */

.gtkz-selected-target {
    margin:
        3px 0 8px;

    color:
        #55cfff;

    font-size:
        8px;

    font-weight:
        750;

    text-align: center;
}


/* =========================================================
   GTKZ FORGE — VERTICAL BREATHING ROOM
   Move the dashboard composition down slightly
   without changing structural geometry.
   ========================================================= */

.main {
    padding-top:
        12px !important;
}


/* Top command bar separation */

.topbar {
    margin-bottom:
        10px !important;
}


/* KPI row */

.kpis {
    margin-bottom:
        10px !important;
}


/* Global Activity / Device Types / Delivery */

.analytics {
    margin-bottom:
        10px !important;
}


/* Main action buttons */

.actions {
    margin-bottom:
        11px !important;
}


/* Live Sessions + TV Experience */

.mid {
    margin-bottom:
        12px !important;
}


/* Simulator section gets more air above it */

.simulator,
#simulator,
.simulator-section {
    margin-top:
        10px !important;
}


/*
 * Keep sidebar aligned naturally with the taller page.
 */
.sidebar {
    padding-top:
        14px !important;
}


/* =========================================================
   GTKZ FORGE — VERTICAL BREATHING ROOM V2
   Stronger spacing pass
   ========================================================= */

.main {
    padding-top:
        18px !important;
}


/* Top command bar separation */

.topbar {
    margin-bottom:
        14px !important;
}


/* KPI row */

.kpis {
    margin-bottom:
        14px !important;
}


/* Global Activity / Device Types / Delivery */

.analytics {
    margin-bottom:
        14px !important;
}


/* Main action buttons */

.actions {
    margin-bottom:
        15px !important;
}


/* Live Sessions + TV Experience */

.mid {
    margin-bottom:
        16px !important;
}


/* Simulator section */

.simulator,
#simulator,
.simulator-section {
    margin-top:
        16px !important;
}


/* Slightly more breathing room inside major panels */

.panel {
    padding-top:
        10px !important;

    padding-bottom:
        10px !important;
}


/* Sidebar alignment */

.sidebar {
    padding-top:
        18px !important;
}


/* =========================================================
   GTKZ FORGE — VERTICAL BREATHING ROOM V3
   Strong commercial spacing pass
   ========================================================= */

.main {
    padding-top:
        24px !important;
}


/* Command bar */

.topbar {
    margin-bottom:
        18px !important;
}


/* KPI row */

.kpis {
    margin-bottom:
        18px !important;
}


/* Analytics row */

.analytics {
    margin-bottom:
        18px !important;
}


/* Action row */

.actions {
    margin-bottom:
        20px !important;
}


/* Live Sessions / TV Preview */

.mid {
    margin-bottom:
        22px !important;
}


/* Simulator */

.simulator,
#simulator,
.simulator-section {
    margin-top:
        22px !important;
}


/* More internal breathing room */

.panel {
    padding-top:
        12px !important;

    padding-bottom:
        12px !important;
}


/* KPI cards get a little more vertical room */

.kpi {
    padding-top:
        10px !important;

    padding-bottom:
        10px !important;
}


/* Action buttons breathe slightly more */

.action {
    min-height:
        52px !important;
}


/* Sidebar remains visually aligned */

.sidebar {
    padding-top:
        22px !important;
}


/* =========================================================
   GTKZ — STEP 3 PREVIEW / RIGHT RAIL ALIGNMENT
   ========================================================= */


/* ---------------------------------------------------------
   STEP 3 COMMERCIAL PREVIEW LABEL
   --------------------------------------------------------- */

.gtkz-step3-preview-head {
    width: 100%;

    margin:
        2px 0 9px;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        12px;
}


.gtkz-step3-preview-copy {
    min-width:
        0;
}


.gtkz-step3-preview-title {
    display:
        flex;

    align-items:
        baseline;

    gap:
        8px;

    color:
        #ffffff;

    font-size:
        12px;

    font-weight:
        850;

    line-height:
        1.1;
}


.gtkz-step3-number {
    color:
        #63cfff;

    font-size:
        13px;

    font-weight:
        900;
}


.gtkz-step3-preview-sub {
    margin-top:
        3px;

    color:
        #7199b4;

    font-size:
        7px;

    line-height:
        1.35;
}


.gtkz-step3-badge {
    flex:
        0 0 auto;

    padding:
        4px 7px;

    border:
        1px solid rgba(64,172,235,.35);

    border-radius:
        999px;

    background:
        rgba(5,31,51,.72);

    color:
        #75d3ff;

    font-size:
        6px;

    font-weight:
        850;

    letter-spacing:
        .07em;

    text-transform:
        uppercase;
}


/* ---------------------------------------------------------
   PLAYER / PREVIEW
   Keep it commercial and centered
   --------------------------------------------------------- */

.gtkz-step3-preview-zone {
    width:
        min(100%, 820px) !important;

    max-width:
        820px !important;

    margin-left:
        auto !important;

    margin-right:
        auto !important;
}


.gtkz-step3-preview-zone .sim-screen {
    width:
        100% !important;

    max-width:
        820px !important;

    aspect-ratio:
        16 / 9 !important;

    height:
        auto !important;
}


/* ---------------------------------------------------------
   RIGHT RAIL
   Recent Activity + Platform Status begin beside Step 3
   rather than beside Steps 1 / 2.
   --------------------------------------------------------- */

.gtkz-step3-right-rail {
    padding-top:
        166px !important;
}


/*
 * Keep right rail cards together.
 */
.gtkz-step3-right-rail
.gtkz-right-rail-card {
    width:
        100% !important;
}


/*
 * More separation between Recent Activity and Platform Status.
 */
.gtkz-step3-right-rail
.gtkz-right-rail-card
+
.gtkz-right-rail-card {
    margin-top:
        10px !important;
}


/* ---------------------------------------------------------
   Large desktop refinement
   --------------------------------------------------------- */

@media (min-width: 1500px) {

    .gtkz-step3-right-rail {
        padding-top:
            172px !important;
    }


    .gtkz-step3-preview-zone {
        max-width:
            840px !important;
    }


    .gtkz-step3-preview-zone .sim-screen {
        max-width:
            840px !important;
    }
}


/* ---------------------------------------------------------
   Smaller desktop refinement
   --------------------------------------------------------- */

@media (min-width: 901px) and (max-width: 1250px) {

    .gtkz-step3-right-rail {
        padding-top:
            150px !important;
    }
}


/* =========================================================
   GTKZ — EXACT STEP 3 / SIDE STACK ALIGNMENT
   Actual DOM owners:
     .simulator
     .side-stack
     #sim-preview-title
   ========================================================= */


/* ---------------------------------------------------------
   RIGHT RAIL
   Push the ENTIRE side-stack down to the preview level.
   --------------------------------------------------------- */

@media (min-width: 901px) {

    .side-stack {
        padding-top:
            188px !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Keep cards clean once lowered.
     */
    .side-stack > .panel {
        width:
            100% !important;
    }


    .side-stack > .panel
    +
    .side-stack > .panel {
        margin-top:
            10px !important;
    }


    /*
     * Factory Remote stays naturally beneath
     * the two operational cards.
     */
    .side-stack .rail-remote-slot {
        margin-top:
            12px !important;
    }
}


/* Large monitor */

@media (min-width: 1500px) {

    .side-stack {
        padding-top:
            198px !important;
    }
}


/* Smaller desktop */

@media (min-width: 901px) and (max-width: 1250px) {

    .side-stack {
        padding-top:
            174px !important;
    }
}


/* ---------------------------------------------------------
   STEP 3 HEADER
   --------------------------------------------------------- */

.gtkz-step3-exact-head {
    width:
        100%;

    margin:
        8px 0 9px;

    padding:
        0 4px;

    box-sizing:
        border-box;

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        12px;
}


.gtkz-step3-exact-copy {
    min-width:
        0;
}


.gtkz-step3-exact-title {
    display:
        flex;

    align-items:
        baseline;

    gap:
        7px;

    color:
        #ffffff;

    font-size:
        12px;

    line-height:
        1.1;

    font-weight:
        850;
}


.gtkz-step3-exact-number {
    color:
        #63cfff;

    font-size:
        13px;

    font-weight:
        900;
}


.gtkz-step3-exact-sub {
    margin-top:
        3px;

    color:
        #7096ae;

    font-size:
        7px;

    line-height:
        1.4;
}


.gtkz-step3-exact-badge {
    flex:
        0 0 auto;

    padding:
        4px 8px;

    border:
        1px solid rgba(67,177,238,.34);

    border-radius:
        999px;

    background:
        rgba(5,30,51,.76);

    color:
        #74d4ff;

    font-size:
        6px;

    font-weight:
        850;

    letter-spacing:
        .07em;

    text-transform:
        uppercase;
}


/* ---------------------------------------------------------
   PLAYER
   --------------------------------------------------------- */

.gtkz-step3-screen-owner {
    width:
        min(100%, 820px) !important;

    max-width:
        820px !important;

    margin-left:
        auto !important;

    margin-right:
        auto !important;
}


.gtkz-step3-screen-owner .sim-screen {
    width:
        100% !important;

    aspect-ratio:
        16 / 9 !important;

    height:
        auto !important;
}


/*
 * Launch button belongs visually to Step 3.
 */
.gtkz-step3-screen-owner
#deploy-selected {
    width:
        100% !important;

    max-width:
        820px !important;
}


/* Give Step 3 a little visual separation from Step 2 */

.gtkz-step3-screen-owner {
    margin-top:
        9px !important;
}


/* =========================================================
   GTKZ — RIGHT RAIL FINAL ALIGNMENT
   Align directly with Universal Device Simulator
   ========================================================= */

@media (min-width: 901px) {

    .side-stack,
    .gtkz-step3-right-rail {
        padding-top:
            0 !important;

        margin-top:
            0 !important;

        align-self:
            start !important;
    }


    /* Keep rail tight to simulator */
    .side-stack > .panel:first-child {
        margin-top:
            0 !important;
    }


    .side-stack > .panel
    +
    .side-stack > .panel {
        margin-top:
            10px !important;
    }


    .side-stack .rail-remote-slot {
        margin-top:
            12px !important;
    }
}


/* =========================================================
   GTKZ — RIGHT RAIL MICRO ALIGNMENT
   Tiny final drop beside Universal Device Simulator
   ========================================================= */

@media (min-width: 901px) {

    .side-stack,
    .gtkz-step3-right-rail {
        padding-top:
            0 !important;

        margin-top:
            8px !important;
    }
}


/* =========================================================
   GTKZ — RIGHT RAIL MICRO ALIGNMENT V2
   Slightly lower final position
   ========================================================= */

@media (min-width: 901px) {

    .side-stack,
    .gtkz-step3-right-rail {
        margin-top:
            14px !important;
    }
}


/* =========================================================
   GTKZ — RIGHT RAIL MICRO ALIGNMENT V3
   Final tiny drop
   ========================================================= */

@media (min-width: 901px) {

    .side-stack,
    .gtkz-step3-right-rail {
        margin-top:
            18px !important;
    }
}


/* =========================================================
   GTKZ — RIGHT RAIL MICRO ALIGNMENT V4
   Final 3px adjustment
   ========================================================= */

@media (min-width: 901px) {

    .side-stack,
    .gtkz-step3-right-rail {
        margin-top:
            21px !important;
    }
}


/* =========================================================
   GTKZ — PLAYER + REMOTE FINAL REFINEMENT
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       PLAYER
       Smaller hero preview, still visually dominant
       ----------------------------------------------------- */

    .gtkz-step3-screen-owner,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) {
        width:
            min(100%, 720px) !important;

        max-width:
            720px !important;

        margin-left:
            auto !important;

        margin-right:
            auto !important;
    }


    .gtkz-step3-screen-owner .sim-screen,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) .sim-screen {
        width:
            100% !important;

        max-width:
            720px !important;

        aspect-ratio:
            16 / 9 !important;

        height:
            auto !important;
    }


    .gtkz-step3-screen-owner #deploy-selected,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) #deploy-selected {
        width:
            100% !important;

        max-width:
            720px !important;
    }


    /* -----------------------------------------------------
       REMOTE
       Center vertically beside the player workspace
       ----------------------------------------------------- */

    .side-stack {
        position:
            relative !important;
    }


    .side-stack .rail-remote-slot {
        display:
            flex !important;

        justify-content:
            center !important;

        align-items:
            center !important;

        min-height:
            430px !important;

        margin-top:
            8px !important;
    }


    .side-stack .remote,
    .side-stack .gtkz-dynamic-control {
        margin-left:
            auto !important;

        margin-right:
            auto !important;
    }
}


/* Slightly larger screens */

@media (min-width: 1500px) {

    .gtkz-step3-screen-owner,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) {
        max-width:
            740px !important;
    }


    .gtkz-step3-screen-owner .sim-screen,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) .sim-screen {
        max-width:
            740px !important;
    }


    .gtkz-step3-screen-owner #deploy-selected,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) #deploy-selected {
        max-width:
            740px !important;
    }


    .side-stack .rail-remote-slot {
        min-height:
            440px !important;
    }
}


/* =========================================================
   GTKZ PUBLIC — RIGHT RAIL READABILITY UPGRADE
   Recent System Activity + Platform Status
   ========================================================= */

@media (min-width: 901px) {


    /* -----------------------------------------------------
       CARD SHELL
       ----------------------------------------------------- */

    .side-stack > .panel {
        min-height:
            150px !important;

        padding:
            12px 12px 11px !important;

        border:
            1px solid rgba(44,142,203,.40) !important;

        border-radius:
            10px !important;

        background:
            linear-gradient(
                180deg,
                rgba(7,30,51,.98),
                rgba(3,19,33,.98)
            ) !important;

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.025),
            0 8px 24px rgba(0,0,0,.12) !important;
    }


    /* -----------------------------------------------------
       CARD HEADER
       ----------------------------------------------------- */

    .side-stack > .panel .panel-head {
        min-height:
            32px !important;

        margin-bottom:
            9px !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            space-between !important;

        gap:
            10px !important;
    }


    .side-stack > .panel .panel-title {
        color:
            #ffffff !important;

        font-size:
            13px !important;

        font-weight:
            850 !important;

        line-height:
            1.12 !important;

        letter-spacing:
            .01em !important;
    }


    /* View All */

    #system-activity
    .panel-head
    span:not(.panel-title) {
        color:
            #53c9ff !important;

        font-size:
            9px !important;

        font-weight:
            750 !important;

        white-space:
            nowrap !important;
    }


    /* Platform operational state */

    .side-stack > .panel
    .panel-head
    .live {
        color:
            #00e894 !important;

        font-size:
            8px !important;

        font-weight:
            800 !important;

        line-height:
            1.15 !important;

        text-align:
            right !important;

        max-width:
            88px !important;
    }


    /* -----------------------------------------------------
       RECENT SYSTEM ACTIVITY
       ----------------------------------------------------- */

    #system-activity
    .activity-list {
        display:
            flex !important;

        flex-direction:
            column !important;

        gap:
            0 !important;
    }


    #system-activity
    .activity-row {
        min-height:
            27px !important;

        padding:
            5px 1px !important;

        display:
            grid !important;

        grid-template-columns:
            minmax(0, 1fr) auto !important;

        align-items:
            center !important;

        gap:
            10px !important;

        border-top:
            1px solid rgba(65,126,164,.15) !important;

        color:
            #d9effc !important;

        font-size:
            9px !important;

        line-height:
            1.2 !important;
    }


    #system-activity
    .activity-row:first-child {
        border-top:
            0 !important;
    }


    #system-activity
    .activity-row span:first-child {
        color:
            #d9f2ff !important;

        font-size:
            9px !important;

        font-weight:
            650 !important;

        white-space:
            nowrap !important;
    }


    #system-activity
    .activity-row span:first-child::first-letter {
        color:
            #00e894 !important;
    }


    #system-activity
    .activity-row span:last-child {
        color:
            #79a8c6 !important;

        font-size:
            8px !important;

        font-weight:
            700 !important;

        text-transform:
            uppercase !important;

        letter-spacing:
            .035em !important;
    }


    /* -----------------------------------------------------
       PLATFORM STATUS
       ----------------------------------------------------- */

    .side-stack > .panel
    .status-row {
        min-height:
            25px !important;

        padding:
            4px 1px !important;

        display:
            grid !important;

        grid-template-columns:
            minmax(0, 1fr) auto !important;

        align-items:
            center !important;

        gap:
            10px !important;

        border-top:
            1px solid rgba(65,126,164,.15) !important;

        font-size:
            9px !important;
    }


    .side-stack > .panel
    .status-row:first-of-type {
        border-top:
            0 !important;
    }


    .side-stack > .panel
    .status-row span:first-child {
        color:
            #d9f2ff !important;

        font-size:
            9px !important;

        font-weight:
            650 !important;

        white-space:
            nowrap !important;
    }


    .side-stack > .panel
    .status-row span:last-child {
        color:
            #00e894 !important;

        font-size:
            8px !important;

        font-weight:
            850 !important;

        letter-spacing:
            .025em !important;

        white-space:
            nowrap !important;
    }


    /* -----------------------------------------------------
       GIVE THE RAIL MORE WIDTH UTILIZATION
       ----------------------------------------------------- */

    .side-stack {
        min-width:
            210px !important;
    }


    .side-stack > .panel {
        width:
            100% !important;

        box-sizing:
            border-box !important;
    }
}


/* Slightly larger desktop */

@media (min-width: 1500px) {

    .side-stack {
        min-width:
            220px !important;
    }


    .side-stack > .panel .panel-title {
        font-size:
            13.5px !important;
    }


    #system-activity
    .activity-row span:first-child,
    .side-stack > .panel
    .status-row span:first-child {
        font-size:
            9.5px !important;
    }


    #system-activity
    .activity-row span:last-child,
    .side-stack > .panel
    .status-row span:last-child {
        font-size:
            8.5px !important;
    }
}


/* =========================================================
   GTKZ — FULL PAGE VERTICAL POSITION
   Lower composition / tighten bottom dead space
   ========================================================= */

@media (min-width: 901px) {

    /* Move the entire working dashboard lower */
    .main {
        padding-top:
            42px !important;

        padding-bottom:
            4px !important;
    }


    /* Do not leave artificial space after the simulator */
    .simulator {
        margin-bottom:
            0 !important;

        padding-bottom:
            8px !important;
    }


    /* Main simulator/rail row finishes tightly */
    .simulator + *,
    .simulator-section {
        margin-bottom:
            0 !important;
    }


    /* Side rail ends naturally with the remote */
    .side-stack {
        padding-bottom:
            0 !important;
    }


    .side-stack .rail-remote-slot {
        padding-bottom:
            0 !important;

        margin-bottom:
            0 !important;
    }
}


/* =========================================================
   GTKZ PUBLIC — PAGE SCALE / PRESENCE UPGRADE
   Make the whole dashboard feel closer and more substantial
   at 100% browser zoom.
   ========================================================= */

@media (min-width: 901px) {

    /* Undo the excessive downward push */
    .main {
        padding-top:
            24px !important;

        padding-bottom:
            10px !important;
    }


    /* Slightly larger overall UI typography */
    html,
    body {
        font-size:
            14px !important;
    }


    /* Main content gets more visual presence */
    .content,
    .main-content,
    main {
        font-size:
            1.03em !important;
    }


    /* Increase vertical rhythm without giant gaps */
    .topbar {
        margin-bottom:
            16px !important;
    }

    .kpis,
    .analytics {
        margin-bottom:
            16px !important;
    }

    .actions {
        margin-bottom:
            18px !important;
    }

    .mid {
        margin-bottom:
            20px !important;
    }


    /* Simulator occupies more of the viewport */
    .simulator {
        min-height:
            560px !important;

        padding:
            14px !important;
    }


    /* Device / TV choices grow slightly */
    .device-option,
    .tv-option {
        height:
            60px !important;

        min-height:
            60px !important;
    }


    .gtkz-device-icon {
        transform:
            scale(1.08);
    }


    /* Player grows back slightly from the 720px reduction */
    .gtkz-step3-screen-owner,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) {
        width:
            min(100%, 780px) !important;

        max-width:
            780px !important;
    }


    .gtkz-step3-screen-owner .sim-screen,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) .sim-screen {
        width:
            100% !important;

        max-width:
            780px !important;

        aspect-ratio:
            16 / 9 !important;

        height:
            auto !important;
    }


    .gtkz-step3-screen-owner #deploy-selected,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) #deploy-selected {
        max-width:
            780px !important;

        min-height:
            42px !important;

        font-size:
            12px !important;
    }


    /* Right rail stronger and a little wider */
    .side-stack {
        min-width:
            225px !important;
    }


    .side-stack > .panel {
        min-height:
            160px !important;
    }


    .side-stack > .panel .panel-title {
        font-size:
            14px !important;
    }


    #system-activity
    .activity-row span:first-child,
    .side-stack > .panel
    .status-row span:first-child {
        font-size:
            10px !important;
    }


    #system-activity
    .activity-row span:last-child,
    .side-stack > .panel
    .status-row span:last-child {
        font-size:
            9px !important;
    }


    /* Remote gets a little more authority */
    .side-stack .remote,
    .side-stack .gtkz-dynamic-control {
        width:
            160px !important;

        min-width:
            160px !important;

        max-width:
            160px !important;
    }
}


/* Larger screens */

@media (min-width: 1500px) {

    .gtkz-step3-screen-owner,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) {
        max-width:
            810px !important;
    }

    .gtkz-step3-screen-owner .sim-screen,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) .sim-screen {
        max-width:
            810px !important;
    }

    .gtkz-step3-screen-owner #deploy-selected,
    .simulator-grid > div:nth-child(3):not(.gtkz-step3-block) #deploy-selected {
        max-width:
            810px !important;
    }

    .side-stack {
        min-width:
            235px !important;
    }
}


/* =========================================================
   GTKZ — FULL COMPOSITION DROP
   Move every MAIN dashboard section down together.
   Preserve internal spacing/alignment.
   ========================================================= */

@media (min-width: 901px) {

    /*
     * Approx. 2-inch visual drop.
     * This moves:
     * - command bar
     * - KPIs
     * - analytics
     * - action row
     * - sessions
     * - TV preview
     * - simulator
     * - right rail
     *
     * together as one composition.
     */

    main,
    .main {
        padding-top:
            180px !important;
    }


    /*
     * Do NOT separately push the side rail.
     * It should travel with the main composition
     * and keep the alignment we already dialed in.
     */

    .side-stack,
    .gtkz-step3-right-rail {
        padding-top:
            0 !important;

        margin-top:
            21px !important;
    }
}


/* =========================================================
   GTKZ FORGE — FINAL PAGE GEOMETRY CORRECTION
   Sidebar full document height
   Normal top/bottom rhythm
   Right rail pulled inward
   ========================================================= */

@media (min-width: 901px) {


    /* -----------------------------------------------------
       APP SHELL
       ----------------------------------------------------- */

    .app {
        min-height:
            100vh !important;

        height:
            auto !important;

        align-items:
            stretch !important;

        grid-template-columns:
            210px minmax(0, 1fr) !important;
    }


    /* -----------------------------------------------------
       SIDEBAR
       Full page rail — not just viewport height
       ----------------------------------------------------- */

    .sidebar {
        position:
            relative !important;

        top:
            auto !important;

        bottom:
            auto !important;

        height:
            auto !important;

        min-height:
            100% !important;

        max-height:
            none !important;

        align-self:
            stretch !important;

        overflow:
            visible !important;

        padding-top:
            18px !important;

        padding-bottom:
            22px !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Ensure the dark rail visually continues
     * for the complete document height.
     */
    .sidebar::after {
        content:
            "";

        position:
            absolute;

        top:
            0;

        bottom:
            0;

        right:
            0;

        width:
            1px;

        background:
            rgba(39,113,160,.28);

        pointer-events:
            none;
    }


    /* -----------------------------------------------------
       MAIN PAGE POSITION
       Kill the 180px artificial drop.
       ----------------------------------------------------- */

    main,
    .main {
        padding-top:
            18px !important;

        padding-bottom:
            18px !important;

        margin-top:
            0 !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Restore sensible section rhythm.
     */

    .topbar {
        margin-top:
            0 !important;

        margin-bottom:
            14px !important;
    }


    .kpis {
        margin-bottom:
            14px !important;
    }


    .analytics {
        margin-bottom:
            14px !important;
    }


    .actions {
        margin-bottom:
            16px !important;
    }


    .mid {
        margin-bottom:
            18px !important;
    }


    .simulator {
        margin-top:
            16px !important;

        margin-bottom:
            0 !important;
    }


    /* -----------------------------------------------------
       LOWER SIMULATOR WORKSPACE
       Bring right rail inward from browser edge.
       ----------------------------------------------------- */

    .bottom {
        grid-template-columns:
            minmax(0, 1fr) 225px !important;

        column-gap:
            14px !important;

        padding-right:
            18px !important;

        box-sizing:
            border-box !important;

        align-items:
            start !important;
    }


    .side-stack,
    .gtkz-step3-right-rail {
        width:
            225px !important;

        min-width:
            225px !important;

        max-width:
            225px !important;

        justify-self:
            start !important;

        margin-top:
            21px !important;

        margin-right:
            0 !important;

        padding-top:
            0 !important;
    }


    .side-stack > .panel {
        width:
            100% !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Keep remote centered under the status cards.
     */

    .side-stack .rail-remote-slot {
        width:
            100% !important;

        display:
            flex !important;

        justify-content:
            center !important;
    }


    /* -----------------------------------------------------
       REMOVE EXCESS DEAD SPACE AT DOCUMENT END
       ----------------------------------------------------- */

    .bottom,
    .simulator,
    .side-stack,
    .rail-remote-slot {
        padding-bottom:
            0 !important;
    }


    body {
        padding-bottom:
            0 !important;
    }
}


/* =========================================================
   LARGE DESKTOP
   ========================================================= */

@media (min-width: 1500px) {

    .app {
        grid-template-columns:
            220px minmax(0, 1fr) !important;
    }


    .bottom {
        grid-template-columns:
            minmax(0, 1fr) 235px !important;

        padding-right:
            22px !important;
    }


    .side-stack,
    .gtkz-step3-right-rail {
        width:
            235px !important;

        min-width:
            235px !important;

        max-width:
            235px !important;
    }
}


/* =========================================================
   GTKZ — BOTTOM ALIGNMENT FINAL PASS
   Top geometry is locked.
   Align simulator, right rail and sidebar bottoms.
   ========================================================= */

@media (min-width: 901px) {


    /* -----------------------------------------------------
       FULL PAGE / SIDEBAR HEIGHT
       ----------------------------------------------------- */

    .app {
        min-height:
            100vh !important;

        height:
            auto !important;

        align-items:
            stretch !important;
    }


    .sidebar {
        position:
            relative !important;

        align-self:
            stretch !important;

        height:
            auto !important;

        min-height:
            100% !important;

        max-height:
            none !important;

        bottom:
            auto !important;

        padding-bottom:
            28px !important;

        background:
            #03111f !important;
    }


    /*
     * Extend the visual sidebar rail all the way down
     * even when main content is taller than viewport.
     */
    .sidebar::before {
        content:
            "";

        position:
            absolute;

        top:
            0;

        left:
            0;

        right:
            0;

        bottom:
            -1000px;

        z-index:
            -1;

        background:
            #03111f;

        pointer-events:
            none;
    }


    /* -----------------------------------------------------
       LOWER WORKSPACE
       Simulator + right rail finish on same baseline
       ----------------------------------------------------- */

    .bottom {
        align-items:
            stretch !important;
    }


    .simulator {
        height:
            100% !important;

        min-height:
            0 !important;

        margin-bottom:
            0 !important;

        padding-bottom:
            10px !important;
    }


    .side-stack {
        display:
            flex !important;

        flex-direction:
            column !important;

        align-self:
            stretch !important;

        height:
            auto !important;

        min-height:
            100% !important;

        padding-bottom:
            10px !important;
    }


    /*
     * Activity and status stay at top of rail.
     */
    .side-stack > .panel {
        flex:
            0 0 auto !important;
    }


    /*
     * Remote consumes remaining vertical space and
     * centers inside it so bottom aligns with simulator.
     */
    .side-stack .rail-remote-slot {
        flex:
            1 1 auto !important;

        min-height:
            0 !important;

        margin-top:
            14px !important;

        margin-bottom:
            0 !important;

        padding-bottom:
            0 !important;

        display:
            flex !important;

        align-items:
            center !important;

        justify-content:
            center !important;
    }


    .side-stack .remote,
    .side-stack .gtkz-dynamic-control {
        margin:
            auto !important;
    }


    /* -----------------------------------------------------
       FINAL BOTTOM EDGE
       ----------------------------------------------------- */

    main,
    .main {
        padding-bottom:
            10px !important;
    }


    .bottom,
    .simulator,
    .side-stack {
        margin-bottom:
            0 !important;
    }
}


/* =========================================================
   GTKZ — SINGLE FLOW / NO VISIBLE SCROLLBARS
   + MIDDLE SECTION DROP
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       REMOVE NESTED SCROLL CONTAINERS
       ----------------------------------------------------- */

    html,
    body,
    .app,
    main,
    .main,
    .content,
    .main-content,
    .sidebar,
    .bottom,
    .simulator,
    .simulator-grid,
    .side-stack,
    .rail-remote-slot {
        max-height:
            none !important;

        overflow-y:
            visible !important;

        overflow-x:
            visible !important;
    }


    /*
     * Sidebar should simply grow with document.
     */
    .sidebar {
        height:
            auto !important;

        min-height:
            100% !important;

        overflow:
            visible !important;
    }


    /*
     * Right rail also belongs to document flow.
     */
    .side-stack {
        height:
            auto !important;

        min-height:
            0 !important;

        overflow:
            visible !important;
    }


    /*
     * Kill any custom scrollbar tracks left by older rules.
     */
    .sidebar::-webkit-scrollbar,
    .side-stack::-webkit-scrollbar,
    .main::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .content::-webkit-scrollbar,
    .main-content::-webkit-scrollbar,
    .bottom::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }


    .sidebar,
    .side-stack,
    main,
    .main,
    .content,
    .main-content,
    .bottom {
        scrollbar-width:
            none !important;
    }


    /* -----------------------------------------------------
       PAGE SCROLL
       Keep wheel/touch movement available but hide bar.
       ----------------------------------------------------- */

    html,
    body {
        overflow-y:
            auto !important;

        scrollbar-width:
            none !important;
    }


    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;
    }


    /* -----------------------------------------------------
       MIDDLE SECTION
       Move Live Sessions + TV Preview down as a unit.
       ----------------------------------------------------- */

    .mid {
        margin-top:
            28px !important;

        margin-bottom:
            18px !important;
    }


    /*
     * Action row stays attached to middle section,
     * but with enough separation to read cleanly.
     */
    .actions {
        margin-bottom:
            18px !important;
    }


    /*
     * Simulator follows naturally after middle block.
     */
    .bottom {
        margin-top:
            22px !important;
    }


    /* -----------------------------------------------------
       LEFT RAIL TO DOCUMENT BOTTOM
       ----------------------------------------------------- */

    .app {
        align-items:
            stretch !important;
    }


    .sidebar {
        align-self:
            stretch !important;

        padding-bottom:
            28px !important;
    }


    /*
     * Dark sidebar background continues through page.
     */
    .sidebar::before {
        bottom:
            -2000px !important;
    }
}


/* =========================================================
   GTKZ — ONE PAGE SCROLLBAR + MID/BOTTOM PERFECT ALIGNMENT
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       1) ONLY ONE SCROLLBAR: THE PAGE ITSELF
       ----------------------------------------------------- */

    html,
    body {
        overflow-y: auto !important;
        overflow-x: hidden !important;
        scrollbar-width: thin !important;
        scrollbar-color: #1e90ff #07111d !important;
    }

    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        width: 12px !important;
        height: 12px !important;
        display: block !important;
    }

    html::-webkit-scrollbar-track,
    body::-webkit-scrollbar-track {
        background: #07111d !important;
        border-left: 1px solid rgba(56, 189, 248, .18) !important;
    }

    html::-webkit-scrollbar-thumb,
    body::-webkit-scrollbar-thumb {
        background:
            linear-gradient(
                180deg,
                #1ea0ff 0%,
                #5b7cff 40%,
                #7c4dff 75%,
                #00d4ff 100%
            ) !important;

        border-radius: 999px !important;
        border: 2px solid #07111d !important;
        box-shadow:
            0 0 10px rgba(30, 160, 255, .35),
            0 0 18px rgba(124, 77, 255, .18) !important;
    }

    /* -----------------------------------------------------
       2) KILL INTERNAL / NESTED SCROLLBARS
       ----------------------------------------------------- */

    .sidebar,
    main,
    .main,
    .content,
    .main-content,
    .mid,
    .bottom,
    .side-stack,
    .simulator,
    .simulator-grid,
    .rail-remote-slot {
        overflow: visible !important;
        max-height: none !important;
    }

    .sidebar::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .main::-webkit-scrollbar,
    .content::-webkit-scrollbar,
    .main-content::-webkit-scrollbar,
    .mid::-webkit-scrollbar,
    .bottom::-webkit-scrollbar,
    .side-stack::-webkit-scrollbar,
    .simulator::-webkit-scrollbar,
    .simulator-grid::-webkit-scrollbar,
    .rail-remote-slot::-webkit-scrollbar {
        width: 0 !important;
        height: 0 !important;
        display: none !important;
    }

    .sidebar,
    main,
    .main,
    .content,
    .main-content,
    .mid,
    .bottom,
    .side-stack,
    .simulator,
    .simulator-grid,
    .rail-remote-slot {
        scrollbar-width: none !important;
    }

    /* -----------------------------------------------------
       3) MOVE LIVE SESSIONS + TV PREVIEW DOWN
       AND MAKE THEIR BOTTOMS MEET THE NEXT ROW
       ----------------------------------------------------- */

    .mid {
        margin-top: 22px !important;
        margin-bottom: 0 !important;
        row-gap: 0 !important;
        align-items: stretch !important;
    }

    .mid > * {
        align-self: stretch !important;
        margin-bottom: 0 !important;
    }

    /* Close the gap under Live Sessions / TV Preview */
    .bottom {
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-items: start !important;
    }

    /* Right rail should start exactly with simulator line */
    .side-stack {
        margin-top: 0 !important;
        padding-top: 0 !important;
        align-self: start !important;
    }

    /* -----------------------------------------------------
       4) LEFT BAR CONTINUES FULL HEIGHT
       ----------------------------------------------------- */

    .app {
        align-items: stretch !important;
    }

    .sidebar {
        align-self: stretch !important;
        min-height: 100% !important;
        height: auto !important;
    }

    .sidebar::before {
        bottom: -2400px !important;
    }
}


/* =========================================================
   GTKZ — REMOVE FAKE PAGE HEIGHT
   Real document flow only.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       REMOVE SIDEBAR OVERFLOW HACK
       This was creating thousands of pixels of dead space.
       ----------------------------------------------------- */

    .sidebar::before {
        display:
            none !important;

        content:
            none !important;
    }


    /* -----------------------------------------------------
       APP SHELL NOW PAINTS THE LEFT RAIL
       for the real document height.
       ----------------------------------------------------- */

    .app {
        min-height:
            100vh !important;

        height:
            auto !important;

        align-items:
            stretch !important;

        background:
            linear-gradient(
                90deg,
                #03111f 0,
                #03111f 210px,
                transparent 210px,
                transparent 100%
            ) !important;
    }


    .sidebar {
        min-height:
            100% !important;

        height:
            auto !important;

        align-self:
            stretch !important;

        background:
            transparent !important;

        overflow:
            visible !important;
    }


    /* -----------------------------------------------------
       ONE REAL PAGE SCROLLBAR
       ----------------------------------------------------- */

    html,
    body {
        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;

        scrollbar-width:
            auto !important;
    }


    html::-webkit-scrollbar,
    body::-webkit-scrollbar {
        display:
            block !important;

        width:
            11px !important;
    }


    /* -----------------------------------------------------
       NO INTERNAL SCROLLBARS
       ----------------------------------------------------- */

    .sidebar,
    main,
    .main,
    .content,
    .main-content,
    .mid,
    .bottom,
    .simulator,
    .simulator-grid,
    .side-stack,
    .rail-remote-slot {
        overflow:
            visible !important;

        max-height:
            none !important;

        scrollbar-width:
            none !important;
    }


    .sidebar::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .main::-webkit-scrollbar,
    .content::-webkit-scrollbar,
    .main-content::-webkit-scrollbar,
    .mid::-webkit-scrollbar,
    .bottom::-webkit-scrollbar,
    .simulator::-webkit-scrollbar,
    .simulator-grid::-webkit-scrollbar,
    .side-stack::-webkit-scrollbar,
    .rail-remote-slot::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }


    /* -----------------------------------------------------
       REAL DOCUMENT END
       ----------------------------------------------------- */

    main,
    .main,
    .bottom,
    .simulator,
    .side-stack,
    .rail-remote-slot {
        margin-bottom:
            0 !important;

        padding-bottom:
            0 !important;
    }


    body {
        padding-bottom:
            0 !important;

        margin-bottom:
            0 !important;
    }
}


/* Wider desktop sidebar */

@media (min-width: 1500px) {

    .app {
        background:
            linear-gradient(
                90deg,
                #03111f 0,
                #03111f 220px,
                transparent 220px,
                transparent 100%
            ) !important;
    }
}


/* =========================================================
   GTKZ — REMOVE INNER SCROLLBAR
   Keep ONLY browser/page scrollbar.
   ========================================================= */

@media (min-width: 901px) {

    /* The document owns vertical scrolling */
    html,
    body {
        overflow-y:
            auto !important;

        overflow-x:
            hidden !important;
    }


    /*
     * App and content shells must NEVER become
     * independent scroll containers.
     */
    .app,
    .main,
    main,
    .content,
    .main-content {
        height:
            auto !important;

        min-height:
            0 !important;

        max-height:
            none !important;

        overflow-y:
            visible !important;

        overflow-x:
            visible !important;

        scrollbar-width:
            none !important;
    }


    .app::-webkit-scrollbar,
    .main::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .content::-webkit-scrollbar,
    .main-content::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }


    /*
     * Lower workspace and rails stay in normal flow.
     */
    .mid,
    .bottom,
    .simulator,
    .simulator-grid,
    .side-stack,
    .rail-remote-slot,
    .sidebar {
        max-height:
            none !important;

        overflow-y:
            visible !important;

        overflow-x:
            visible !important;

        scrollbar-width:
            none !important;
    }


    .mid::-webkit-scrollbar,
    .bottom::-webkit-scrollbar,
    .simulator::-webkit-scrollbar,
    .simulator-grid::-webkit-scrollbar,
    .side-stack::-webkit-scrollbar,
    .rail-remote-slot::-webkit-scrollbar,
    .sidebar::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }
}


/* =========================================================
   GTKZ — KILL LEGACY INNER VIEWPORT SCROLL
   Keep ONLY the browser/document scrollbar.
   ========================================================= */

@media (min-width: 901px) {

    /*
     * The browser/document owns scrolling.
     */
    html {
        height:
            auto !important;

        min-height:
            100% !important;

        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;
    }

    body {
        height:
            auto !important;

        min-height:
            100vh !important;

        max-height:
            none !important;

        overflow-x:
            hidden !important;

        overflow-y:
            visible !important;
    }


    /*
     * Legacy Final Boss shells must NOT create
     * their own 100vh scrolling viewport.
     */
    .app,
    .stage,
    .finalboss-stage,
    .gtkz-stage,
    .dashboard-stage,
    .page-stage,
    .workspace,
    .shell,
    .layout,
    .main,
    main {
        height:
            auto !important;

        min-height:
            0 !important;

        max-height:
            none !important;

        overflow:
            visible !important;

        overflow-y:
            visible !important;

        overflow-x:
            visible !important;

        scrollbar-width:
            none !important;
    }


    /*
     * App still fills at least one viewport,
     * but grows naturally with document content.
     */
    .app {
        min-height:
            100vh !important;
    }


    /*
     * Left rail grows with the app.
     */
    .sidebar {
        position:
            relative !important;

        height:
            auto !important;

        min-height:
            100% !important;

        max-height:
            none !important;

        overflow:
            visible !important;

        align-self:
            stretch !important;
    }


    /*
     * Lower content and right rail remain normal-flow.
     */
    .mid,
    .bottom,
    .simulator,
    .simulator-grid,
    .side-stack,
    .rail-remote-slot {
        height:
            auto !important;

        max-height:
            none !important;

        overflow:
            visible !important;
    }


    /*
     * Explicitly suppress scrollbar rendering on
     * every internal shell.
     */
    .app::-webkit-scrollbar,
    .stage::-webkit-scrollbar,
    .finalboss-stage::-webkit-scrollbar,
    .gtkz-stage::-webkit-scrollbar,
    .dashboard-stage::-webkit-scrollbar,
    .page-stage::-webkit-scrollbar,
    .workspace::-webkit-scrollbar,
    .shell::-webkit-scrollbar,
    .layout::-webkit-scrollbar,
    .sidebar::-webkit-scrollbar,
    .main::-webkit-scrollbar,
    main::-webkit-scrollbar,
    .mid::-webkit-scrollbar,
    .bottom::-webkit-scrollbar,
    .simulator::-webkit-scrollbar,
    .simulator-grid::-webkit-scrollbar,
    .side-stack::-webkit-scrollbar,
    .rail-remote-slot::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }
}


/* =========================================================
   GTKZ — STEP 3 COMMERCIAL WORKSPACE
   Live TV Simulator | Factory Remote | Activity/Status
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       STEP 3 OUTER FRAME
       ----------------------------------------------------- */

    .gtkz-step3-workspace {
        margin-top: 16px;

        padding: 12px;

        border:
            1px solid rgba(42,139,198,.34);

        border-radius:
            10px;

        background:
            linear-gradient(
                180deg,
                rgba(6,28,48,.96),
                rgba(3,18,31,.98)
            );

        box-shadow:
            inset 0 1px 0 rgba(255,255,255,.025),
            0 14px 32px rgba(0,0,0,.12);

        overflow:
            hidden;
    }


    /* -----------------------------------------------------
       STEP 3 HEADING
       ----------------------------------------------------- */

    .gtkz-step3-workspace-head {
        margin-bottom: 10px;

        display: flex;

        align-items: flex-end;

        justify-content: space-between;

        gap: 12px;
    }


    .gtkz-step3-workspace-title {
        display: flex;

        align-items: baseline;

        gap: 7px;

        color: #fff;

        font-size: 13px;

        font-weight: 850;
    }


    .gtkz-step3-workspace-number {
        color: #62cfff;

        font-size: 14px;

        font-weight: 900;
    }


    .gtkz-step3-workspace-sub {
        margin-top: 3px;

        color: #7298b1;

        font-size: 7.5px;

        line-height: 1.4;
    }


    .gtkz-step3-workspace-badge {
        padding: 4px 8px;

        border:
            1px solid rgba(56,176,239,.34);

        border-radius:
            999px;

        background:
            rgba(5,30,50,.76);

        color:
            #7bd7ff;

        font-size:
            6px;

        font-weight:
            850;

        letter-spacing:
            .07em;

        text-transform:
            uppercase;

        white-space:
            nowrap;
    }


    /* -----------------------------------------------------
       3-COLUMN WORKSPACE
       ----------------------------------------------------- */

    .gtkz-step3-grid {
        display: grid;

        grid-template-columns:
            minmax(0, 1fr)
            165px
            230px;

        gap: 14px;

        align-items: stretch;
    }


    /* -----------------------------------------------------
       LIVE TV COLUMN
       ----------------------------------------------------- */

    .gtkz-step3-live {
        min-width: 0;

        display: flex;

        flex-direction: column;
    }


    .gtkz-step3-live-label,
    .gtkz-step3-remote-label,
    .gtkz-step3-ops-label {
        margin-bottom: 6px;

        color: #7da4bd;

        font-size: 7px;

        font-weight: 800;

        letter-spacing: .07em;

        text-transform: uppercase;
    }


    .gtkz-step3-live .sim-screen {
        width: 100% !important;

        max-width: none !important;

        aspect-ratio: 16 / 9 !important;

        height: auto !important;
    }


    .gtkz-step3-live #deploy-selected {
        width: 100% !important;

        max-width: none !important;

        margin-top: 8px !important;
    }


    /* -----------------------------------------------------
       REMOTE COLUMN
       ----------------------------------------------------- */

    .gtkz-step3-remote {
        min-width: 0;

        display: flex;

        flex-direction: column;

        align-items: center;
    }


    .gtkz-step3-remote .rail-remote-slot {
        width: 100% !important;

        min-height: 0 !important;

        margin: 0 !important;

        padding: 0 !important;

        display: flex !important;

        align-items: flex-start !important;

        justify-content: center !important;

        flex: 1 1 auto !important;
    }


    .gtkz-step3-remote .remote,
    .gtkz-step3-remote .gtkz-dynamic-control {
        width: 150px !important;

        min-width: 150px !important;

        max-width: 150px !important;

        margin: 0 auto !important;
    }


    /* -----------------------------------------------------
       ACTIVITY / STATUS COLUMN
       ----------------------------------------------------- */

    .gtkz-step3-ops {
        min-width: 0;

        display: flex;

        flex-direction: column;

        gap: 10px;
    }


    .gtkz-step3-ops > .panel {
        width: 100% !important;

        margin: 0 !important;

        box-sizing: border-box !important;
    }


    .gtkz-step3-ops #system-activity {
        flex: 0 0 auto;
    }


    .gtkz-step3-ops .panel:last-child {
        flex: 0 0 auto;
    }


    /* -----------------------------------------------------
       OLD LOWER GRID / SIDE RAIL
       They no longer control Step 3 geometry.
       ----------------------------------------------------- */

    .bottom {
        display: block !important;

        margin-top: 0 !important;

        padding-top: 0 !important;
    }


    .side-stack {
        display: contents !important;

        width: auto !important;

        min-width: 0 !important;

        max-width: none !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    /* -----------------------------------------------------
       RESPONSIVE LARGE DESKTOP
       ----------------------------------------------------- */

    @media (min-width: 1500px) {

        .gtkz-step3-grid {
            grid-template-columns:
                minmax(0, 1fr)
                175px
                240px;
        }


        .gtkz-step3-remote .remote,
        .gtkz-step3-remote .gtkz-dynamic-control {
            width: 158px !important;

            min-width: 158px !important;

            max-width: 158px !important;
        }
    }
}


/* =========================================================
   GTKZ FORGE — FULL DOCUMENT SIDEBAR
   Extend GTKZ FORGE / FINAL BOSS COMMAND CENTER
   rail to the true bottom of the page.
   ========================================================= */

@media (min-width: 901px) {

    html,
    body {
        min-height:
            100%;
    }


    body {
        margin:
            0 !important;
    }


    /*
     * App becomes the full document grid owner.
     * It stretches with all content below the fold.
     */
    .app {
        min-height:
            100vh !important;

        height:
            auto !important;

        align-items:
            stretch !important;

        background:
            linear-gradient(
                90deg,
                #03111f 0,
                #03111f 210px,
                transparent 210px,
                transparent 100%
            ) !important;
    }


    /*
     * Sidebar now stretches naturally with the app.
     * No fixed viewport height.
     * No fake thousands-of-pixels extension.
     */
    .sidebar {
        position:
            relative !important;

        align-self:
            stretch !important;

        height:
            auto !important;

        min-height:
            100% !important;

        max-height:
            none !important;

        overflow:
            visible !important;

        background:
            #03111f !important;

        padding-bottom:
            32px !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Make sure the old fake extension stays dead.
     */
    .sidebar::before {
        display:
            none !important;

        content:
            none !important;
    }


    /*
     * Clean vertical divider for the full rail.
     */
    .sidebar::after {
        content:
            "";

        position:
            absolute;

        top:
            0;

        right:
            0;

        bottom:
            0;

        width:
            1px;

        background:
            rgba(37,116,165,.34);

        pointer-events:
            none;
    }
}


/* Larger desktop sidebar width */

@media (min-width: 1500px) {

    .app {
        background:
            linear-gradient(
                90deg,
                #03111f 0,
                #03111f 220px,
                transparent 220px,
                transparent 100%
            ) !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR FINAL OWNER
   Full-height, anchored, one page scrollbar only.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       APP GRID
       ----------------------------------------------------- */

    .app {
        align-items:
            start !important;

        min-height:
            100vh !important;

        background:
            #020b14 !important;
    }


    /* -----------------------------------------------------
       SIDEBAR
       Stay visible while main document scrolls.
       ----------------------------------------------------- */

    .sidebar {
        position:
            sticky !important;

        top:
            0 !important;

        align-self:
            start !important;

        width:
            210px !important;

        min-width:
            210px !important;

        height:
            100vh !important;

        min-height:
            100vh !important;

        max-height:
            100vh !important;

        padding:
            18px 10px 14px !important;

        box-sizing:
            border-box !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        overflow:
            hidden !important;

        background:
            linear-gradient(
                180deg,
                #031321 0%,
                #020c16 100%
            ) !important;

        border-right:
            1px solid rgba(42,126,180,.34) !important;

        z-index:
            30 !important;
    }


    /*
     * Remove all old fake extension layers.
     */
    .sidebar::before,
    .sidebar::after {
        display:
            none !important;

        content:
            none !important;
    }


    /* -----------------------------------------------------
       SIDEBAR NAV AREA
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        flex:
            0 1 auto !important;

        min-height:
            0 !important;

        overflow:
            visible !important;
    }


    /*
     * Keep sidebar typography compact enough
     * to fit the complete menu without its own scrollbar.
     */
    .sidebar a,
    .sidebar .nav-item {
        line-height:
            1.15 !important;
    }


    /* -----------------------------------------------------
       GTKZ FORGE BRAND CARD
       Pin to bottom of rail.
       ----------------------------------------------------- */

    .sidebar .bottom,
    .sidebar .sidebar-bottom,
    .sidebar .brand-card,
    .sidebar .forge-card {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        flex:
            0 0 auto !important;
    }


    /*
     * Current build's bottom GTKZ FORGE card is often
     * the last direct sidebar child.
     */
    .sidebar > :last-child {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;
    }


    /* -----------------------------------------------------
       ONLY MAIN DOCUMENT SCROLLS
       ----------------------------------------------------- */

    html,
    body {
        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;
    }


    .sidebar {
        scrollbar-width:
            none !important;
    }


    .sidebar::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;
    }
}


/* Larger desktop */

@media (min-width: 1500px) {

    .sidebar {
        width:
            220px !important;

        min-width:
            220px !important;

        padding-left:
            14px !important;

        padding-right:
            14px !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR FINAL OWNER
   Full-height, anchored, one page scrollbar only.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       APP GRID
       ----------------------------------------------------- */

    .app {
        align-items:
            start !important;

        min-height:
            100vh !important;

        background:
            #020b14 !important;
    }


    /* -----------------------------------------------------
       SIDEBAR
       Stay visible while main document scrolls.
       ----------------------------------------------------- */

    .sidebar {
        position:
            sticky !important;

        top:
            0 !important;

        align-self:
            start !important;

        width:
            210px !important;

        min-width:
            210px !important;

        height:
            100vh !important;

        min-height:
            100vh !important;

        max-height:
            100vh !important;

        padding:
            18px 10px 14px !important;

        box-sizing:
            border-box !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        overflow:
            hidden !important;

        background:
            linear-gradient(
                180deg,
                #031321 0%,
                #020c16 100%
            ) !important;

        border-right:
            1px solid rgba(42,126,180,.34) !important;

        z-index:
            30 !important;
    }


    /*
     * Remove all old fake extension layers.
     */
    .sidebar::before,
    .sidebar::after {
        display:
            none !important;

        content:
            none !important;
    }


    /* -----------------------------------------------------
       SIDEBAR NAV AREA
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        flex:
            0 1 auto !important;

        min-height:
            0 !important;

        overflow:
            visible !important;
    }


    /*
     * Keep sidebar typography compact enough
     * to fit the complete menu without its own scrollbar.
     */
    .sidebar a,
    .sidebar .nav-item {
        line-height:
            1.15 !important;
    }


    /* -----------------------------------------------------
       GTKZ FORGE BRAND CARD
       Pin to bottom of rail.
       ----------------------------------------------------- */

    .sidebar .bottom,
    .sidebar .sidebar-bottom,
    .sidebar .brand-card,
    .sidebar .forge-card {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        flex:
            0 0 auto !important;
    }


    /*
     * Current build's bottom GTKZ FORGE card is often
     * the last direct sidebar child.
     */
    .sidebar > :last-child {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;
    }


    /* -----------------------------------------------------
       ONLY MAIN DOCUMENT SCROLLS
       ----------------------------------------------------- */

    html,
    body {
        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;
    }


    .sidebar {
        scrollbar-width:
            none !important;
    }


    .sidebar::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;
    }
}


/* Larger desktop */

@media (min-width: 1500px) {

    .sidebar {
        width:
            220px !important;

        min-width:
            220px !important;

        padding-left:
            14px !important;

        padding-right:
            14px !important;
    }
}


/* =========================================================
   GTKZ FORGE — DOCUMENT HEIGHT SIDEBAR + REAL FOOTER
   Sidebar follows the real page height.
   GTKZ FORGE badge is pinned to document bottom.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       APP GRID
       Tallest column defines the real document height.
       ----------------------------------------------------- */

    .app {
        min-height:
            100vh !important;

        height:
            auto !important;

        align-items:
            stretch !important;

        background:
            #020b14 !important;
    }


    /* -----------------------------------------------------
       SIDEBAR
       REMOVE sticky viewport behavior.
       Let it stretch with the main page.
       ----------------------------------------------------- */

    .sidebar {
        position:
            relative !important;

        top:
            auto !important;

        bottom:
            auto !important;

        align-self:
            stretch !important;

        width:
            210px !important;

        min-width:
            210px !important;

        height:
            auto !important;

        min-height:
            100% !important;

        max-height:
            none !important;

        padding:
            18px 10px 18px !important;

        box-sizing:
            border-box !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        overflow:
            visible !important;

        background:
            linear-gradient(
                180deg,
                #031321 0%,
                #020c16 100%
            ) !important;

        border-right:
            1px solid rgba(42,126,180,.34) !important;

        z-index:
            1 !important;
    }


    /*
     * Keep all old artificial extensions dead.
     */
    .sidebar::before {
        display:
            none !important;

        content:
            none !important;
    }


    /*
     * Real full-height right border.
     */
    .sidebar::after {
        content:
            "";

        display:
            block !important;

        position:
            absolute;

        top:
            0;

        right:
            0;

        bottom:
            0;

        width:
            1px;

        background:
            rgba(43,127,180,.34);

        pointer-events:
            none;
    }


    /* -----------------------------------------------------
       NAVIGATION
       Natural content at top.
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        flex:
            0 0 auto !important;

        overflow:
            visible !important;
    }


    /* -----------------------------------------------------
       GTKZ FORGE BADGE / FOOTER
       Last sidebar element gets pushed to real page bottom.
       ----------------------------------------------------- */

    .sidebar > :last-child {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        flex:
            0 0 auto !important;
    }


    /*
     * Known footer/card aliases in case the component
     * already has one of these classes.
     */
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        flex:
            0 0 auto !important;
    }


    /* -----------------------------------------------------
       MAKE THE GTKZ FORGE FOOTER FEEL LIKE A FOOTER
       ----------------------------------------------------- */

    .sidebar > :last-child {
        width:
            100% !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Give the bottom badge more presence.
     */
    .sidebar > :last-child {
        min-height:
            92px !important;
    }


    /* -----------------------------------------------------
       ONLY DOCUMENT SCROLLS
       ----------------------------------------------------- */

    html,
    body {
        overflow-x:
            hidden !important;

        overflow-y:
            auto !important;
    }


    .sidebar {
        scrollbar-width:
            none !important;
    }


    .sidebar::-webkit-scrollbar {
        display:
            none !important;

        width:
            0 !important;

        height:
            0 !important;
    }
}


/* Larger desktop */

@media (min-width: 1500px) {

    .sidebar {
        width:
            220px !important;

        min-width:
            220px !important;

        padding-left:
            14px !important;

        padding-right:
            14px !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR CONTENT STRETCH
   Use the full document-height rail.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       SIDEBAR INTERNAL LAYOUT
       ----------------------------------------------------- */

    .sidebar {
        display:
            flex !important;

        flex-direction:
            column !important;

        height:
            auto !important;

        min-height:
            100% !important;

        padding-top:
            18px !important;

        padding-bottom:
            18px !important;
    }


    /*
     * All normal sidebar children participate
     * in the vertical distribution.
     */
    .sidebar > * {
        flex:
            0 0 auto;
    }


    /* -----------------------------------------------------
       TOP BRAND / COMMAND CENTER AREA
       ----------------------------------------------------- */

    .sidebar > :first-child {
        margin-bottom:
            18px !important;
    }


    /* -----------------------------------------------------
       NAVIGATION BODY
       Give the menu real vertical presence.
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        display:
            flex !important;

        flex-direction:
            column !important;

        flex:
            1 1 auto !important;

        min-height:
            0 !important;

        justify-content:
            flex-start !important;
    }


    /* -----------------------------------------------------
       SECTION HEADINGS
       More breathing room between functional groups.
       ----------------------------------------------------- */

    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            18px !important;

        margin-bottom:
            8px !important;
    }


    /*
     * First section doesn't need the extra top margin.
     */
    .sidebar nav
    h3:first-child,
    .sidebar nav
    h4:first-child,
    .sidebar .nav
    .section-title:first-child,
    .sidebar .sidebar-nav
    .section-title:first-child {
        margin-top:
            0 !important;
    }


    /* -----------------------------------------------------
       NAV ITEMS
       Larger click targets and more breathing room.
       ----------------------------------------------------- */

    .sidebar a,
    .sidebar .nav-item {
        min-height:
            28px !important;

        display:
            flex !important;

        align-items:
            center !important;

        padding-top:
            5px !important;

        padding-bottom:
            5px !important;

        box-sizing:
            border-box !important;
    }


    /*
     * Slightly more separation between groups.
     */
    .sidebar .nav-group,
    .sidebar .menu-group,
    .sidebar .sidebar-group {
        margin-bottom:
            13px !important;
    }


    /* -----------------------------------------------------
       DISTRIBUTE MAJOR GROUPS DOWN THE RAIL
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav {
        gap:
            2px !important;
    }


    /*
     * If the menu sections are direct children,
     * give each section some visual separation.
     */
    .sidebar nav > *,
    .sidebar .nav > *,
    .sidebar .sidebar-nav > * {
        flex-shrink:
            0 !important;
    }


    /* -----------------------------------------------------
       FOOTER / GTKZ FORGE BADGE
       ----------------------------------------------------- */

    .sidebar > :last-child,
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        min-height:
            104px !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        align-items:
            center !important;

        justify-content:
            center !important;

        flex:
            0 0 auto !important;
    }


    /* -----------------------------------------------------
       OPTIONAL VISUAL RHYTHM
       Make the full rail feel intentional.
       ----------------------------------------------------- */

    .sidebar {
        background:
            linear-gradient(
                180deg,
                #031321 0%,
                #02101c 58%,
                #020b14 100%
            ) !important;
    }
}


/* Slightly more room on large screens */

@media (min-width: 1500px) {

    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            21px !important;
    }


    .sidebar a,
    .sidebar .nav-item {
        min-height:
            30px !important;
    }


    .sidebar > :last-child,
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        min-height:
            112px !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR CONTENT STRETCH V2
   Stronger full-height command rail distribution.
   ========================================================= */

@media (min-width: 901px) {

    /* More room between major sidebar groups */
    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            26px !important;

        margin-bottom:
            10px !important;
    }


    /* Navigation entries feel less compressed */
    .sidebar a,
    .sidebar .nav-item {
        min-height:
            34px !important;

        padding-top:
            7px !important;

        padding-bottom:
            7px !important;

        font-size:
            11px !important;
    }


    /* Give grouped blocks more separation */
    .sidebar .nav-group,
    .sidebar .menu-group,
    .sidebar .sidebar-group {
        margin-bottom:
            18px !important;
    }


    /*
     * Let the menu occupy more of the rail before
     * the GTKZ FORGE footer takes over.
     */
    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        flex:
            1 1 auto !important;

        justify-content:
            flex-start !important;
    }


    /*
     * Extra visual rhythm between direct navigation children.
     */
    .sidebar nav > *,
    .sidebar .nav > *,
    .sidebar .sidebar-nav > * {
        margin-bottom:
            2px !important;
    }


    /* Footer remains anchored at true bottom */
    .sidebar > :last-child,
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        margin-top:
            auto !important;

        min-height:
            118px !important;
    }
}


/* Larger desktop gets even more vertical presence */

@media (min-width: 1500px) {

    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            30px !important;
    }


    .sidebar a,
    .sidebar .nav-item {
        min-height:
            36px !important;

        font-size:
            11.5px !important;
    }


    .sidebar > :last-child,
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        min-height:
            126px !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR CONTENT STRETCH V3
   Stronger vertical fill without moving footer.
   ========================================================= */

@media (min-width: 901px) {

    /* Navigation owns the open vertical space */
    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        flex:
            1 1 auto !important;

        display:
            flex !important;

        flex-direction:
            column !important;

        justify-content:
            flex-start !important;

        min-height:
            0 !important;
    }


    /* More distance between major section headings */
    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            34px !important;

        margin-bottom:
            12px !important;
    }


    /* Individual links get more vertical presence */
    .sidebar a,
    .sidebar .nav-item {
        min-height:
            39px !important;

        padding-top:
            9px !important;

        padding-bottom:
            9px !important;

        font-size:
            11.5px !important;

        line-height:
            1.2 !important;
    }


    /* Stronger separation between logical groups */
    .sidebar .nav-group,
    .sidebar .menu-group,
    .sidebar .sidebar-group {
        margin-bottom:
            24px !important;
    }


    /*
     * Any direct nav children get a little extra rhythm.
     * This helps even when the markup isn't wrapped in groups.
     */
    .sidebar nav > *,
    .sidebar .nav > *,
    .sidebar .sidebar-nav > * {
        margin-bottom:
            4px !important;
    }


    /*
     * Push the final navigation section farther down,
     * but keep the actual GTKZ FORGE footer locked.
     */
    .sidebar nav > :last-child,
    .sidebar .nav > :last-child,
    .sidebar .sidebar-nav > :last-child {
        margin-bottom:
            20px !important;
    }


    /* Footer stays exactly at the bottom */
    .sidebar > :last-child,
    .sidebar .sidebar-bottom,
    .sidebar .bottom-brand,
    .sidebar .brand-card,
    .sidebar .forge-card,
    .sidebar .gtkz-forge-card {
        margin-top:
            auto !important;

        margin-bottom:
            0 !important;

        min-height:
            118px !important;
    }
}


/* More breathing room on large monitors */

@media (min-width: 1500px) {

    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            38px !important;
    }


    .sidebar a,
    .sidebar .nav-item {
        min-height:
            42px !important;

        padding-top:
            10px !important;

        padding-bottom:
            10px !important;

        font-size:
            12px !important;
    }


    .sidebar .nav-group,
    .sidebar .menu-group,
    .sidebar .sidebar-group {
        margin-bottom:
            28px !important;
    }
}


/* =========================================================
   GTKZ FORGE — FINAL TIGHTEN + SIDEBAR MICRO DROP
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       SIDEBAR — just a little lower
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        padding-top:
            10px !important;
    }


    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        margin-top:
            36px !important;
    }


    /* -----------------------------------------------------
       PAGE — slight visual shrink
       Keep readability intact.
       ----------------------------------------------------- */

    .main,
    main {
        padding-left:
            9px !important;

        padding-right:
            9px !important;
    }


    .panel {
        padding-left:
            9px !important;

        padding-right:
            9px !important;
    }


    .actions {
        gap:
            8px !important;
    }


    .mid,
    .bottom {
        column-gap:
            10px !important;
    }


    /*
     * Slightly reduce oversized vertical dimensions
     * without touching type hierarchy.
     */
    .device-option,
    .tv-option {
        min-height:
            56px !important;

        height:
            56px !important;
    }


    /*
     * Step 3 stays prominent, just a little more compact.
     */
    .gtkz-step3-stage {
        gap:
            12px !important;
    }


    .gtkz-preview-col .sim-screen {
        min-height:
            370px !important;
    }


    .gtkz-step3-stage .remote,
    .gtkz-step3-stage .gtkz-dynamic-control {
        height:
            370px !important;

        min-height:
            370px !important;
    }
}


/* =========================================================
   GTKZ FORGE — SIDEBAR + TITLE HEAD MICRO DROP
   Final visual alignment pass.
   ========================================================= */

@media (min-width: 901px) {

    /* -----------------------------------------------------
       SIDEBAR CONTENT — bring it down a little more
       ----------------------------------------------------- */

    .sidebar nav,
    .sidebar .nav,
    .sidebar .sidebar-nav,
    .sidebar .menu {
        padding-top:
            18px !important;
    }


    /* -----------------------------------------------------
       SECTION TITLES — lower the text slightly
       ----------------------------------------------------- */

    .sidebar h3,
    .sidebar h4,
    .sidebar .section-title,
    .sidebar .nav-section-title {
        padding-top:
            4px !important;

        margin-top:
            38px !important;

        line-height:
            1.2 !important;
    }


    /* -----------------------------------------------------
       PANEL / CARD HEADERS — lower content inside heads
       ----------------------------------------------------- */

    .panel-head,
    .card-head,
    .section-head,
    .gtkz-step3-workspace-head,
    .gtkz-step3-heading {
        padding-top:
            4px !important;

        box-sizing:
            border-box !important;
    }


    /* -----------------------------------------------------
       MAIN TITLES — tiny visual drop
       ----------------------------------------------------- */

    .panel-title,
    .card-title,
    .section-title,
    .gtkz-step3-title,
    .gtkz-sim-start-title {
        position:
            relative !important;

        top:
            2px !important;
    }


    /* -----------------------------------------------------
       SUBTITLES — follow the title slightly
       ----------------------------------------------------- */

    .gtkz-step3-subtitle,
    .gtkz-sim-start-sub,
    .panel-subtitle,
    .section-subtitle {
        position:
            relative !important;

        top:
            2px !important;
    }


    /* -----------------------------------------------------
       ACTION / STATUS HEAD TEXT
       ----------------------------------------------------- */

    .side-stack .panel-head,
    .gtkz-step3-side .panel-head {
        padding-top:
            5px !important;
    }
}
