/* /Components/GerrymanderingGrid.razor.rz.scp.css */
.gm-grid[b-3r143e708u] {
    display: grid;
    gap: .25rem;
    margin: 3px 25%;
}

.gm-cell[b-3r143e708u] {
    aspect-ratio: 1 / 1;
    border-radius: 6px;
    box-shadow: 0 0 0 1px rgba(0,0,0,.08) inset;
    position: relative; /* so we can place bar absolutely */
}

.gm-bar-container[b-3r143e708u] {
    position: absolute;
    top: 10%; /* halfway down cell */
    left: 50%; /* halfway across cell */
    transform: translate(-50%, -50%); /* center from its own width/height */
    border-radius: 10px;
    margin: 2%;
    width: 90%;
    height: 6px;
    background-color: blue; /* base background */
}

.gm-bar-fill[b-3r143e708u] {
    height: 100%;
    background-color: red; /* fill color */
    border-radius: 10px; /* match container's rounding */
}

.gm-center-label[b-3r143e708u] {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #000;
    font-weight: 550;
    pointer-events: none;
    font-size: .9rem;
}
/* /Layout/MainLayout.razor.rz.scp.css */
.page[b-zwxhgak8cx] {
    position: relative;
    display: flex;
    flex-direction: column;
}

main[b-zwxhgak8cx] {
    flex: 1;
}

.sidebar[b-zwxhgak8cx] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-zwxhgak8cx] {
    background-color: var(--surface-color);
    color: var(--text-color);
    border-bottom: 1px solid var(--border-color);
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-zwxhgak8cx]  a, .top-row[b-zwxhgak8cx]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
        color: var(--text-color)
    }

    .top-row[b-zwxhgak8cx]  a:hover, .top-row[b-zwxhgak8cx]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-zwxhgak8cx]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-zwxhgak8cx] {
        justify-content: space-between;
    }

    .top-row[b-zwxhgak8cx]  a, .top-row[b-zwxhgak8cx]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-zwxhgak8cx] {
        flex-direction: row;
    }

    .sidebar[b-zwxhgak8cx] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-zwxhgak8cx] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-zwxhgak8cx]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-zwxhgak8cx], article[b-zwxhgak8cx] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}
/* /Layout/ResponsiveSurface.razor.rz.scp.css */
:root[b-1uqhhfp2rj] {
    --max-content-width: 600px;
    --surface-pad: 5px;
}

.surface[b-1uqhhfp2rj] {
    display: grid;
    grid-template-columns: minmax(0,1fr); /* real track, not shrink-wrapped */
    justify-content: center; /* center the track */
    align-items: start;
    min-height: 100svh;
    padding: 5px 5px;
}

    .surface .frame[b-1uqhhfp2rj] {
        display: flex;
        flex-direction: column;
        padding: 10px;
        background: var(--surface-color);
        justify-self: center;
        width: min(600px, 100%); /* 600 unless container is narrower */
        min-width: 0; /* allow shrinking against long content */
        box-sizing: border-box;
        border: 2px solid rgba(255,255,255,0.06);
        border-radius: 16px;
    }

    /* PHONE MODE: fixed-size, no internal scroll (unless allowed) */
    .surface.mode-phone .frame[b-1uqhhfp2rj] {
        min-height: 100%;
    }

    .surface.mode-desktop .frame[b-1uqhhfp2rj] {
        box-shadow: none;
        min-height: 100%;
    }

    .surface.mode-auto .frame[b-1uqhhfp2rj] {
        min-height: 100%;
    }

/* AUTO MODE: switch based on width breakpoint */
@media (min-width: 641px) {
    .surface.mode-auto .frame[b-1uqhhfp2rj] {
        box-shadow: none;
    }
}
