:root {
    color-scheme: light;
}
body {
    font-family:
        system-ui,
        -apple-system,
        Segoe UI,
        Roboto,
        Helvetica,
        Arial,
        sans-serif;
    font-size: 16px;
    margin: 0;
    padding: 0;
}
select {
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    color: grey;
    background-color: #f0f0f0;
    font-size: 14px;
}
input[type="color"] {
    width: 50px;
    height: 24px;
    background-color: #f0f0f0;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 0px;
}
input[type="number"] {
    width: 43px;
    height: 16px;
    background-color: #f0f0f0;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 2px;
    color: grey;
    font-size: 14px;
    font-weight: bold;
}
input[type="text"] {
    width: 60px;
    height: 32px;
    background-color: #e8e8e8;
    border-width: 1px;
    border-color: rgb(181, 180, 180);
    padding: 0px;
    font-size: 14px;
}
.user-select-none {
    user-select: none;
    -webkit-user-select: none; /* Safari */
    -moz-user-select: none; /* Firefox */
    -ms-user-select: none; /* IE/Edge legacy */
}
/* *-------- --------------------------------------*/
/* *--------                WINDOWS/PANELS       --*/
/* *-------- --------------------------------------*/
.full-overlay {
    background: rgba(240, 240, 240, 0.9);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(2px);
    color: #222;
}
.panel {
    background: rgba(240, 240, 240, 0.5);
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
    color: #222;

    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}
/* *-------- --------------------------------------*/
/* *--------                 BUTTONS             --*/
/* *-------- --------------------------------------*/
.iconbutton {
    background: transparent;
    border: none;
    color: #474d56;

    cursor: pointer;
    font-size: 22px;
    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        transform 0.15s ease;
}
.iconbutton:hover {
    transform: scale(1.15);
    filter: brightness(1.15);
}
.iconbutton:active {
    transform: scale(1.05) translateY(2px);
}
.release-btn {
    position: absolute;

    width: 32px;
    height: 32px;

    border-radius: 50%;

    background: radial-gradient(circle at 35% 35%, #7fc3ff 0%, #3f92e6 60%, #2d6fb8 100%);

    border: 1px solid rgba(40, 90, 160, 0.6);

    color: white;
    font-size: 16px;
    font-weight: 700;

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

    cursor: pointer;

    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);

    transition:
        transform 0.12s ease,
        box-shadow 0.12s ease,
        filter 0.12s ease;
}
.release-btn:hover {
    transform: scale(1.15);
    box-shadow:
        0 0 6px rgba(60, 140, 255, 0.4),
        0 2px 6px rgba(0, 0, 0, 0.25);
}
.release-btn:active {
    transform: scale(1.05);
    filter: brightness(1.1);
}
/* *-------- --------------------------------------*/
/* *--------                 LABELS              --*/
/* *-------- --------------------------------------*/
.infopanel-label {
    font-size: 14px;
    color: #474d56;
    letter-spacing: 0.03em;
    text-transform: uppercase;
}
.infopanel-bigval {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 28px;
    font-weight: 700;
    color: #4f78a4;
    text-align: center;
    letter-spacing: -0.01em; /* subtle tightening */
}
.infopanel-smallval {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum";
    font-size: 22px;
    font-weight: 700;
    color: #5881a1;
    text-align: center;
}
.controlpanel-sizelabels {
    background: none;
    font-size: 12px;
    font-weight: 600;
    color: #6f7379; /* muted grey text */
    padding-left: 8px;
    padding-top: 8px;

    border: 1px solid #c9c9c9; /* soft neutral border */
}
.btn-sizing {
    background: rgba(255, 255, 255, 0.25); /* lighter than ON */

    border: 1px solid #c9c9c9; /* soft neutral border */
    border-radius: 4px;

    color: #6f7379; /* muted grey text */

    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;

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

    cursor: pointer;
    user-select: none;
}
.btn-sizing:hover {
    transform: translateX(2px);
}

.btn-std {
    background: rgba(221, 224, 227, 0.25); /* lighter than ON */
    border: 2px solid #9b8d8d; /* soft neutral border */
    border-radius: 18px;
    color: #5a5b5c; /* muted grey text */

    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;

    cursor: pointer;
    user-select: none;
}
.btn-std:hover {
    background: rgba(171, 200, 228, 0.25); /* lighter than ON */
}
.btn-std:active {
    transform: translateX(3px);
}
/* -------------------------------------- */
/* STACK PANE (LIGHT MODE)               */
/* -------------------------------------- */

.stack-pane-pane {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);

    border: 1px solid rgba(0, 0, 0, 0.25);
    box-shadow:
        0 1px 2px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);

    overflow: hidden;
}
.stack-pane-label {
    text-transform: uppercase;
    color: #606469;
}
.stack-pane-btn {
    border: none;
    padding: 0px;
    font-size: 16px;
    font-weight: bold;
    color: grey;
    background: transparent;
}
.stack-pane-btn:hover {
    transform: translateX(3px);
    font-size: 20px;
}
.stack-pane-btn:active {
    transform: scale(0.95);
}
/* *-------- --------------------------------------*/
/* *--------                 TOGGLES              --*/
/* *-------- --------------------------------------*/
.std-toggle-off {
    width: 60px;
    height: 24px;

    background: rgba(220, 220, 220, 0.1); /* lighter than ON */

    border: 1px solid #c9c9c9; /* soft neutral border */
    border-radius: 4px;

    /* very gentle inner highlight, less contrast than ON */
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.6) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);

    color: #6f7379; /* muted grey text */
    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.06em;
    text-transform: uppercase;

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

    cursor: pointer;
    user-select: none;
}
.std-toggle-off:hover {
    transform: translateX(2px);
}

.std-toggle-on {
    width: 60px;
    height: 24px;

    background: rgba(255, 255, 255, 0.45);

    border: 1px solid #8d9dad; /* subtle blue tint border */
    border-radius: 4px;

    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.8) inset,
        0 1px 2px rgba(0, 0, 0, 0.1);

    color: #487ef0;

    font-family: system-ui, sans-serif;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;

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

    cursor: pointer;

    transition:
        background 0.15s ease,
        border-color 0.15s ease,
        box-shadow 0.15s ease;
}
.std-toggle-on:hover {
    transform: translateX(2px);
}
