@import '_content/Blazicons/Blazicons.ugzwxlf6d1.bundle.scp.css';

/* /Components/Layout/HelpModal.razor.rz.scp.css */
.help-backdrop[b-9j2ddonofp] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.82);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
}

.help-modal[b-9j2ddonofp] {
    background: #121212;
    border: 1px solid #2a2a2a;
    border-radius: 14px;
    width: min(860px, 95vw);
    max-height: 90vh;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(255, 255, 255, 0.05);
    overflow: hidden;
}

/* ── Header ── */
.help-header[b-9j2ddonofp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.1rem 1.5rem 0.9rem;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    background: #161616;
}

.help-title[b-9j2ddonofp] {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 700;
    color: white;
    text-shadow: 0 0 14px rgba(255, 220, 0, 0.5);
}

.help-close[b-9j2ddonofp] {
    background: none;
    border: 1px solid transparent;
    border-radius: 6px;
    color: #888;
    font-size: 1rem;
    cursor: pointer;
    padding: 0.2rem 0.55rem;
    transition: color 0.15s, border-color 0.15s;
    line-height: 1;
}

.help-close:hover[b-9j2ddonofp] {
    color: white;
    border-color: rgba(255, 255, 255, 0.3);
}

/* ── Table of contents ── */
.help-toc[b-9j2ddonofp] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.3rem 0.75rem;
    padding: 0.65rem 1.5rem;
    border-bottom: 1px solid #222;
    flex-shrink: 0;
    background: #141414;
}

.help-toc a[b-9j2ddonofp] {
    color: #00aaff;
    font-size: 0.78rem;
    text-decoration: none;
    white-space: nowrap;
    opacity: 0.85;
    transition: opacity 0.15s, color 0.15s;
}

.help-toc a:hover[b-9j2ddonofp] {
    opacity: 1;
    color: #44ccff;
    text-decoration: underline;
}

/* ── Scrollable body ── */
.help-body[b-9j2ddonofp] {
    flex: 1;
    overflow-y: auto;
    padding: 1.25rem 1.75rem 1rem;
    scroll-behavior: smooth;
}

.help-body[b-9j2ddonofp]::-webkit-scrollbar {
    width: 6px;
}

.help-body[b-9j2ddonofp]::-webkit-scrollbar-track {
    background: #111;
}

.help-body[b-9j2ddonofp]::-webkit-scrollbar-thumb {
    background: #333;
    border-radius: 3px;
}

.help-body[b-9j2ddonofp]::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ── Sections ── */
.help-body section[b-9j2ddonofp] {
    margin-bottom: 2rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid #1e1e1e;
}

.help-body section:last-child[b-9j2ddonofp] {
    border-bottom: none;
    margin-bottom: 0.5rem;
}

.help-body h3[b-9j2ddonofp] {
    color: #fff;
    font-size: 1rem;
    font-weight: 700;
    margin: 0 0 0.75rem 0;
    padding-bottom: 0.35rem;
    border-bottom: 1px solid #2a2a2a;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-size: 0.88rem;
}

.help-body h4[b-9j2ddonofp] {
    color: #ccc;
    font-size: 0.9rem;
    font-weight: 600;
    margin: 1rem 0 0.4rem;
}

.help-body p[b-9j2ddonofp] {
    color: #bbb;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 0.6rem;
}

.help-body ul[b-9j2ddonofp],
.help-body ol[b-9j2ddonofp] {
    color: #bbb;
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 0 0.6rem;
    padding-left: 1.4rem;
}

.help-body li[b-9j2ddonofp] {
    margin-bottom: 0.25rem;
}

.help-body strong[b-9j2ddonofp] {
    color: #e0e0e0;
}

.help-body em[b-9j2ddonofp] {
    color: #aaa;
    font-style: italic;
}

/* ── Keyboard keys ── */
.help-body kbd[b-9j2ddonofp] {
    display: inline-block;
    background: #1e1e1e;
    border: 1px solid #444;
    border-bottom-width: 2px;
    border-radius: 4px;
    color: #ddd;
    font-family: ui-monospace, 'Cascadia Code', 'Consolas', monospace;
    font-size: 0.78rem;
    padding: 0.05rem 0.4rem;
    white-space: nowrap;
}

/* ── Tables ── */
.help-table[b-9j2ddonofp] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin: 0.5rem 0 0.75rem;
}

.help-table th[b-9j2ddonofp] {
    text-align: left;
    color: #888;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.6rem;
    border-bottom: 1px solid #2a2a2a;
}

.help-table td[b-9j2ddonofp] {
    padding: 0.4rem 0.6rem;
    color: #bbb;
    border-bottom: 1px solid #1a1a1a;
    vertical-align: top;
}

.help-table tr:last-child td[b-9j2ddonofp] {
    border-bottom: none;
}

.help-table tr:hover td[b-9j2ddonofp] {
    background: rgba(255, 255, 255, 0.02);
    color: #ccc;
}

/* ── Tips and notes ── */
.help-tip[b-9j2ddonofp] {
    background: rgba(0, 170, 255, 0.07);
    border-left: 3px solid rgba(0, 170, 255, 0.5);
    border-radius: 0 5px 5px 0;
    padding: 0.5rem 0.75rem !important;
    color: #88ccff !important;
    font-size: 0.83rem !important;
    margin: 0.5rem 0 0.25rem !important;
}

.help-note[b-9j2ddonofp] {
    background: rgba(255, 160, 0, 0.07);
    border-left: 3px solid rgba(255, 160, 0, 0.5);
    border-radius: 0 5px 5px 0;
    padding: 0.5rem 0.75rem !important;
    color: #ffcc88 !important;
    font-size: 0.83rem !important;
    margin: 0.5rem 0 0.25rem !important;
}

/* ── Save type badges (inline in help) ── */
.help-badge[b-9j2ddonofp] {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    white-space: nowrap;
}

.help-badge-pattern[b-9j2ddonofp] {
    background: #2a1a4a;
    color: #c080ff;
}

.help-badge-square[b-9j2ddonofp] {
    background: #1a2a1a;
    color: #60cc60;
}

/* ── Footer ── */
.help-footer[b-9j2ddonofp] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.7rem 1.5rem;
    border-top: 1px solid #222;
    flex-shrink: 0;
    background: #141414;
}

.help-footer-hint[b-9j2ddonofp] {
    color: #555;
    font-size: 0.78rem;
}

.help-footer-hint kbd[b-9j2ddonofp] {
    background: #1a1a1a;
    border-color: #333;
    color: #888;
    font-size: 0.72rem;
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-1e6zdadua1] {
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100vh;
}

main[b-1e6zdadua1] {
    flex: 1;
    background-color: #0d0d0d;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

article[b-1e6zdadua1] {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}

.sidebar[b-1e6zdadua1] {
    background-image: linear-gradient(180deg, rgb(5, 39, 103) 0%, #3a0647 70%);
}

.top-row[b-1e6zdadua1] {
    background-color: #f7f7f7;
    border-bottom: 1px solid #d6d5d5;
    justify-content: flex-end;
    height: 3.5rem;
    display: flex;
    align-items: center;
}

    .top-row[b-1e6zdadua1]  a, .top-row[b-1e6zdadua1]  .btn-link {
        white-space: nowrap;
        margin-left: 1.5rem;
        text-decoration: none;
    }

    .top-row[b-1e6zdadua1]  a:hover, .top-row[b-1e6zdadua1]  .btn-link:hover {
        text-decoration: underline;
    }

    .top-row[b-1e6zdadua1]  a:first-child {
        overflow: hidden;
        text-overflow: ellipsis;
    }

@media (max-width: 640.98px) {
    .top-row[b-1e6zdadua1] {
        justify-content: space-between;
    }

    .top-row[b-1e6zdadua1]  a, .top-row[b-1e6zdadua1]  .btn-link {
        margin-left: 0;
    }
}

@media (min-width: 641px) {
    .page[b-1e6zdadua1] {
        flex-direction: row;
    }

    .sidebar[b-1e6zdadua1] {
        width: 250px;
        height: 100vh;
        position: sticky;
        top: 0;
    }

    .top-row[b-1e6zdadua1] {
        position: sticky;
        top: 0;
        z-index: 1;
    }

    .top-row.auth[b-1e6zdadua1]  a:first-child {
        flex: 1;
        text-align: right;
        width: 0;
    }

    .top-row[b-1e6zdadua1], article[b-1e6zdadua1] {
        padding-left: 2rem !important;
        padding-right: 1.5rem !important;
    }
}

#blazor-error-ui[b-1e6zdadua1] {
    color-scheme: light only;
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss[b-1e6zdadua1] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }
/* /Components/Layout/NavMenu.razor.rz.scp.css */
.navbar-toggler[b-m2p9gsmltn] {
    appearance: none;
    cursor: pointer;
    width: 3.5rem;
    height: 2.5rem;
    color: white;
    position: absolute;
    top: 0.5rem;
    right: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255, 255, 255, 0.55%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") no-repeat center/1.75rem rgba(255, 255, 255, 0.1);
}

.navbar-toggler:checked[b-m2p9gsmltn] {
    background-color: rgba(255, 255, 255, 0.5);
}

.top-row[b-m2p9gsmltn] {
    min-height: 3.5rem;
    background-color: rgba(0,0,0,0.4);
}

.navbar-brand[b-m2p9gsmltn] {
    font-size: 1.1rem;
}

.color-picker-label[b-m2p9gsmltn] {
    color: #aaa;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    padding: 1rem 1rem 0.4rem 1rem;
}

.section-header[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-right: 0.5rem;
}

.section-header .color-picker-label[b-m2p9gsmltn] {
    padding-bottom: 0.4rem;
}

.btn-icon[b-m2p9gsmltn] {
    background: none;
    border: 1px solid transparent;
    border-radius: 5px;
    color: #aaa;
    cursor: pointer;
    padding: 0.25rem 0.4rem;
    display: flex;
    align-items: center;
    transition: color 0.15s, border-color 0.15s;
}

.btn-icon:hover[b-m2p9gsmltn] {
    color: white;
    border-color: rgba(255,255,255,0.3);
}

.btn-icon:disabled[b-m2p9gsmltn] {
    color: #333;
    cursor: not-allowed;
    border-color: transparent;
}

.btn-icon-danger:not(:disabled):hover[b-m2p9gsmltn] {
    color: #f66;
    border-color: #f66;
}

.btn-icon-replace:not(:disabled):hover[b-m2p9gsmltn] {
    color: #7df;
    border-color: #7df;
}

.btn-icon-help:hover[b-m2p9gsmltn] {
    color: #ffdd44;
    border-color: #ffdd44;
}

.nav-icon[b-m2p9gsmltn] {
    width: 0.8rem;
    height: 0.8rem;
}

.color-row[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.color-row .color-swatch[b-m2p9gsmltn] {
    flex: 1;
    min-width: 0;
}

.nav-item[b-m2p9gsmltn] {
    padding-bottom: 0.35rem;
}

.color-swatch[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.45rem 0.75rem;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    gap: 0.65rem;
}

.color-swatch:hover[b-m2p9gsmltn] {
    border-color: rgba(255,255,255,0.5);
}

.color-swatch.selected[b-m2p9gsmltn] {
    border-color: white;
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.5);
}

.color-name[b-m2p9gsmltn] {
    color: white;
    font-size: 0.9rem;
    font-weight: 500;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

.nav-divider[b-m2p9gsmltn] {
    height: 1px;
    background: #333;
    margin: 0.75rem 1rem;
}

.square-thumb[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    width: 100%;
    padding: 0.35rem 0.5rem;
    border: 2px solid transparent;
    border-radius: 6px;
    cursor: pointer;
    background: #111;
    transition: border-color 0.15s, box-shadow 0.15s;
    gap: 0.6rem;
}

.square-thumb:hover[b-m2p9gsmltn] {
    border-color: rgba(255,255,255,0.4);
}

.square-thumb.selected[b-m2p9gsmltn] {
    border-color: white;
    box-shadow: 0 0 8px 2px rgba(255,255,255,0.4);
}

.thumb-img[b-m2p9gsmltn] {
    width: 38px;
    height: 38px;
    object-fit: cover;
    border-radius: 3px;
    flex-shrink: 0;
    image-rendering: pixelated;
}

.nav-scrollable[b-m2p9gsmltn] {
    display: none;
}

.navbar-toggler:checked ~ .nav-scrollable[b-m2p9gsmltn] {
    display: block;
}

@media (min-width: 641px) {
    .navbar-toggler[b-m2p9gsmltn] {
        display: none;
    }

    .nav-scrollable[b-m2p9gsmltn] {
        display: block;
        height: calc(100vh - 3.5rem);
        overflow-y: auto;
    }
}

/* ── Add Color Modal (scoped to NavMenu) ── */
.modal-backdrop[b-m2p9gsmltn] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card[b-m2p9gsmltn] {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    min-width: 300px;
    max-width: 90vw;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.modal-title[b-m2p9gsmltn] {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.modal-field[b-m2p9gsmltn] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-field label[b-m2p9gsmltn] {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-field input[type="text"][b-m2p9gsmltn] {
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
    width: 100%;
    box-sizing: border-box;
}

.modal-field input[type="text"]:focus[b-m2p9gsmltn] {
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0,170,255,0.2);
}

.modal-error[b-m2p9gsmltn] {
    color: #f66;
    font-size: 0.85rem;
    margin: 0;
}

.modal-actions[b-m2p9gsmltn] {
    display: flex;
    justify-content: flex-end;
    gap: 0.5rem;
}

/* Color preview swatch in the modal */
.color-preview-swatch[b-m2p9gsmltn] {
    width: 100%;
    height: 52px;
    border-radius: 8px;
    border: 2px solid #555;
    transition: background-color 0.1s;
}

.color-picker-row[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.native-color-picker[b-m2p9gsmltn] {
    width: 48px;
    height: 38px;
    padding: 2px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #111;
    cursor: pointer;
    flex-shrink: 0;
}

.hex-preview[b-m2p9gsmltn] {
    color: white;
    font-size: 0.95rem;
    font-family: monospace;
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    padding: 0.3rem 0.6rem;
}

/* ── Replace Color Modal ── */
.replace-color-preview[b-m2p9gsmltn] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
}

.replace-swatch[b-m2p9gsmltn] {
    display: inline-block;
    width: 28px;
    height: 28px;
    border-radius: 5px;
    border: 2px solid rgba(255,255,255,0.3);
    flex-shrink: 0;
}

.replace-name[b-m2p9gsmltn] {
    color: white;
    font-size: 0.95rem;
}

.replace-target-picker[b-m2p9gsmltn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
}

.replace-target-swatch[b-m2p9gsmltn] {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s;
    padding: 0;
}

.replace-target-swatch:hover[b-m2p9gsmltn] {
    border-color: rgba(255,255,255,0.6);
}

.replace-target-swatch.selected[b-m2p9gsmltn] {
    border-color: white;
    box-shadow: 0 0 0 2px rgba(255,255,255,0.4);
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-mqm9bkptoc],
.components-reconnect-repeated-attempt-visible[b-mqm9bkptoc],
.components-reconnect-failed-visible[b-mqm9bkptoc],
.components-pause-visible[b-mqm9bkptoc],
.components-resume-failed-visible[b-mqm9bkptoc],
.components-rejoining-animation[b-mqm9bkptoc] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-retrying[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-failed[b-mqm9bkptoc],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-mqm9bkptoc] {
    display: block;
}


#components-reconnect-modal[b-mqm9bkptoc] {
    background-color: white;
    width: 20rem;
    margin: 20vh auto;
    padding: 2rem;
    border: 0;
    border-radius: 0.5rem;
    box-shadow: 0 3px 6px 2px rgba(0, 0, 0, 0.3);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-mqm9bkptoc 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-mqm9bkptoc 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-mqm9bkptoc 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-mqm9bkptoc]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-mqm9bkptoc 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-mqm9bkptoc {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-mqm9bkptoc {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-mqm9bkptoc {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-mqm9bkptoc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-mqm9bkptoc] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-mqm9bkptoc] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-mqm9bkptoc] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-mqm9bkptoc] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-mqm9bkptoc] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-mqm9bkptoc] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-mqm9bkptoc 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-mqm9bkptoc] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-mqm9bkptoc {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Home.razor.rz.scp.css */
.color-picker-row[b-ytfvzuqilx] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.native-color-picker[b-ytfvzuqilx] {
    width: 48px;
    height: 36px;
    padding: 2px;
    border: 1px solid #444;
    border-radius: 6px;
    background: #111;
    cursor: pointer;
}

.hex-preview[b-ytfvzuqilx] {
    color: #aaa;
    font-size: 0.9rem;
    font-family: monospace;
}

/* Toast notification */
.toast-notification[b-ytfvzuqilx] {
    position: fixed;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%) translateY(1rem);
    background: #1a3a1a;
    border: 1px solid #2d6a2d;
    color: #7f7;
    padding: 0.65rem 1.4rem;
    border-radius: 8px;
    font-size: 0.95rem;
    font-weight: 500;
    box-shadow: 0 4px 20px rgba(0,0,0,0.6);
    z-index: 2000;
    opacity: 0;
    transition: opacity 0.25s ease, transform 0.25s ease;
    pointer-events: none;
}

.toast-notification.show[b-ytfvzuqilx] {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* Setup panel */
.setup-panel[b-ytfvzuqilx] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 70vh;
    color: white;
}

.setup-title[b-ytfvzuqilx] {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    text-shadow: 0 0 16px rgba(255,220,0,0.7);
}

.setup-subtitle[b-ytfvzuqilx] {
    color: #aaa;
    margin-bottom: 2rem;
}

.setup-form[b-ytfvzuqilx] {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 2rem 2.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    min-width: 280px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.6);
}

.setup-field[b-ytfvzuqilx] {
    display: flex;
    flex-direction: column;
    gap: 0.3rem;
}

.setup-field label[b-ytfvzuqilx] {
    color: #bbb;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.setup-field input[type="number"][b-ytfvzuqilx] {
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 1.1rem;
    width: 100%;
    outline: none;
    transition: border-color 0.15s;
}

.setup-field input[type="number"]:focus[b-ytfvzuqilx] {
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0,170,255,0.25);
}

.btn-start[b-ytfvzuqilx] {
    margin-top: 0.5rem;
    padding: 0.6rem 1.5rem;
    background: #00aaff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s, box-shadow 0.15s;
}

.btn-start:hover[b-ytfvzuqilx] {
    background: #0088dd;
    box-shadow: 0 0 12px rgba(0,170,255,0.5);
}

/* Grid page layout */
.lb-page[b-ytfvzuqilx] {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    padding: 0.5rem 0 0 0;
}

/* Toolbar */
.grid-toolbar[b-ytfvzuqilx] {
    display: flex;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
    flex-shrink: 0;
}

.btn-save[b-ytfvzuqilx], .btn-load[b-ytfvzuqilx] {
    padding: 0.35rem 1rem;
    border: 1px solid #444;
    border-radius: 5px;
    background: #1a1a1a;
    color: #ccc;
    font-size: 0.85rem;
    cursor: pointer;
    transition: background 0.15s, color 0.15s;
}

.btn-save:hover[b-ytfvzuqilx] { background: #1a3a1a; color: #7f7; }
.btn-load:hover[b-ytfvzuqilx] { background: #1a2a3a; color: #7af; }

.grid-title[b-ytfvzuqilx] {
    color: white;
    font-size: 1rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
}

.toolbar-sep[b-ytfvzuqilx] {
    width: 1px;
    background: #333;
    margin: 0 0.25rem;
    align-self: stretch;
}

/* ── Modals ── */
.modal-backdrop[b-ytfvzuqilx] {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.modal-card[b-ytfvzuqilx] {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 1.75rem 2rem;
    min-width: 320px;
    max-width: 90vw;
    box-shadow: 0 8px 40px rgba(0,0,0,0.8);
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}

.modal-card-wide[b-ytfvzuqilx] {
    min-width: 420px;
}

.modal-title[b-ytfvzuqilx] {
    color: white;
    font-size: 1.15rem;
    font-weight: 600;
    margin: 0;
}

.modal-field[b-ytfvzuqilx] {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.modal-field label[b-ytfvzuqilx] {
    color: #aaa;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.modal-field input[type="text"][b-ytfvzuqilx] {
    background: #111;
    border: 1px solid #444;
    border-radius: 6px;
    color: white;
    padding: 0.5rem 0.75rem;
    font-size: 1rem;
    outline: none;
    transition: border-color 0.15s;
}

.modal-field input[type="text"]:focus[b-ytfvzuqilx] {
    border-color: #00aaff;
    box-shadow: 0 0 0 2px rgba(0,170,255,0.2);
}

.type-options[b-ytfvzuqilx] {
    display: flex;
    gap: 0.75rem;
}

.type-option[b-ytfvzuqilx] {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.4rem;
    padding: 0.55rem 0.75rem;
    border: 2px solid #333;
    border-radius: 8px;
    color: #bbb;
    cursor: pointer;
    font-size: 0.95rem;
    transition: border-color 0.15s, color 0.15s, background 0.15s;
    user-select: none;
}

.type-option input[type="radio"][b-ytfvzuqilx] { display: none; }

.type-option:hover[b-ytfvzuqilx] { border-color: #555; color: white; }

.type-option.selected[b-ytfvzuqilx] {
    border-color: #00aaff;
    color: white;
    background: rgba(0,170,255,0.1);
}

.modal-error[b-ytfvzuqilx] {
    color: #f66;
    font-size: 0.85rem;
    margin: 0;
}

.modal-actions[b-ytfvzuqilx] {
    display: flex;
    justify-content: flex-end;
    gap: 0.6rem;
    margin-top: 0.25rem;
}

.modal-actions-3[b-ytfvzuqilx] {
    justify-content: space-between;
}

.btn-modal-cancel[b-ytfvzuqilx] {
    padding: 0.45rem 1.1rem;
    background: transparent;
    border: 1px solid #444;
    border-radius: 6px;
    color: #aaa;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.15s, color 0.15s;
}

.btn-modal-cancel:hover[b-ytfvzuqilx] { border-color: #888; color: white; }

.btn-modal-confirm[b-ytfvzuqilx] {
    padding: 0.45rem 1.1rem;
    background: #00aaff;
    border: none;
    border-radius: 6px;
    color: white;
    cursor: pointer;
    font-size: 0.9rem;
    font-weight: 600;
    transition: background 0.15s;
}

.btn-modal-confirm:hover[b-ytfvzuqilx] { background: #0088dd; }

.rename-input[b-ytfvzuqilx] {
    background: #111;
    border: 1px solid #00aaff;
    border-radius: 5px;
    color: white;
    padding: 0.25rem 0.5rem;
    font-size: 0.95rem;
    width: 140px;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,170,255,0.2);
}

/* Saves list */
.modal-empty[b-ytfvzuqilx] {
    color: #666;
    text-align: center;
    padding: 1rem 0;
    margin: 0;
}

.saves-list[b-ytfvzuqilx] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    max-height: 50vh;
    overflow-y: auto;
}

.save-item[b-ytfvzuqilx] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: #111;
    border: 1px solid #2a2a2a;
    border-radius: 7px;
    padding: 0.55rem 0.75rem;
    gap: 0.75rem;
}

.save-item-info[b-ytfvzuqilx] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    flex: 1;
    min-width: 0;
    overflow: hidden;
}

.save-name[b-ytfvzuqilx] {
    color: white;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.save-badge[b-ytfvzuqilx] {
    font-size: 0.7rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 4px;
    white-space: nowrap;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.save-badge-pattern[b-ytfvzuqilx] { background: #2a1a4a; color: #c080ff; }
.save-badge-square[b-ytfvzuqilx]  { background: #1a2a1a; color: #60cc60; }

.save-meta[b-ytfvzuqilx] {
    color: #555;
    font-size: 0.78rem;
    white-space: nowrap;
}

.save-item-actions[b-ytfvzuqilx] {
    display: flex;
    gap: 0.4rem;
}

.btn-load-item[b-ytfvzuqilx] {
    padding: 0.3rem 0.8rem;
    background: #00aaff;
    border: none;
    border-radius: 5px;
    color: white;
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
}

.btn-load-item:hover[b-ytfvzuqilx] { background: #0088dd; }

.btn-delete-item[b-ytfvzuqilx] {
    padding: 0.3rem 0.55rem;
    background: transparent;
    border: 1px solid #333;
    border-radius: 5px;
    color: #666;
    font-size: 0.78rem;
    cursor: pointer;
    transition: border-color 0.15s, color 0.15s;
}

.btn-delete-item:hover[b-ytfvzuqilx] { border-color: #c00; color: #f44; }

/* Grid */
.grid-wrapper[b-ytfvzuqilx] {
    flex: 1;
    min-height: 0;
    background: #000;
    border: 3px solid white;
    border-radius: 8px;
    padding: 8px;
    box-shadow: inset 0 0 40px rgba(0,0,0,0.8), 0 4px 20px rgba(0,0,0,0.5);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    container-type: size;
}

/* Sized like the old .lb-grid — the 2×2 layout lives inside */
.grid-area[b-ytfvzuqilx] {
    display: grid;
    grid-template-columns: 26px 1fr;
    grid-template-rows: 20px 1fr;
    height: min(100cqh, 100cqw * var(--rows) / var(--cols));
    width:  min(100cqw, 100cqh * var(--cols) / var(--rows));
}

.legend-corner[b-ytfvzuqilx] {
    /* empty top-left cell */
}

.col-legend[b-ytfvzuqilx] {
    display: grid;
    gap: 3px;
    align-items: end;
    padding-bottom: 3px;
}

.row-legend[b-ytfvzuqilx] {
    display: grid;
    gap: 3px;
    align-items: center;
    justify-items: end;
    padding-right: 3px;
}

.legend-num[b-ytfvzuqilx] {
    font-size: 11px;
    color: #aaa;
    text-align: center;
    overflow: hidden;
    white-space: nowrap;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.legend-num.selected[b-ytfvzuqilx] {
    color: #ffcc00;
    font-weight: 700;
}

.lb-grid[b-ytfvzuqilx] {
    display: grid;
    gap: 3px;
    width: 100%;
    height: 100%;
    background: white;
}

.lb-cell[b-ytfvzuqilx] {
    background-color: #111;
    border-radius: 3px;
    cursor: pointer;
    transition: background-color 0.1s;
    border: 1px solid white;
    min-width: 0;
    min-height: 0;
}

.lb-cell:hover[b-ytfvzuqilx] {
    border-color: rgba(255,255,255,0.25);
    background-color: #1e1e1e;
}

.lb-cell.lit[b-ytfvzuqilx] {
    border-color: rgba(255,255,255,0.45);
}

.lb-cell.in-selected-row:not(.lit)[b-ytfvzuqilx],
.lb-cell.in-selected-col:not(.lit)[b-ytfvzuqilx] {
    background-color: #1e1a08 !important;
    border-color: rgba(255, 204, 0, 0.4) !important;
}

.lb-cell.lit.in-selected-row[b-ytfvzuqilx],
.lb-cell.lit.in-selected-col[b-ytfvzuqilx] {
    border-color: rgba(255, 204, 0, 0.4) !important;
}

.lb-cell.anchor-cell[b-ytfvzuqilx] {
    box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.55) !important;
}

/* ── Triangle cells ── */
.lb-tri-cell[b-ytfvzuqilx] {
    position: relative;
    overflow: hidden;
    cursor: default;
    background-color: #111;
}

/* Suppress default square hover since individual triangles handle it */
.lb-tri-cell:hover[b-ytfvzuqilx] {
    background-color: #111;
}

.lb-tri[b-ytfvzuqilx] {
    position: absolute;
    inset: 0;
    cursor: pointer;
    background-color: #111;
    transition: background-color 0.1s;
}

.lb-tri[b-ytfvzuqilx]::after {
    content: '';
    position: absolute;
    inset: 0;
    background: transparent;
    transition: background 0.1s;
    pointer-events: none;
}

.lb-tri:hover[b-ytfvzuqilx]::after {
    background: rgba(255, 255, 255, 0.18);
}

.lb-tri-top[b-ytfvzuqilx]    { clip-path: polygon(0% 0%, 100% 0%, 50% 50%); }
.lb-tri-right[b-ytfvzuqilx]  { clip-path: polygon(100% 0%, 100% 100%, 50% 50%); }
.lb-tri-bottom[b-ytfvzuqilx] { clip-path: polygon(100% 100%, 0% 100%, 50% 50%); }
.lb-tri-left[b-ytfvzuqilx]   { clip-path: polygon(0% 100%, 0% 0%, 50% 50%); }

/* Thin X divider lines between the four triangles */
.lb-tri-dividers[b-ytfvzuqilx] {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 5;
    background-image:
        linear-gradient(to bottom right, transparent calc(50% - 0.5px), rgba(255,255,255,0.25) 50%, transparent calc(50% + 0.5px)),
        linear-gradient(to bottom left,  transparent calc(50% - 0.5px), rgba(255,255,255,0.25) 50%, transparent calc(50% + 0.5px));
}

/* Selection overlay for triangle cells (replaces background approach) */
.lb-tri-cell.in-selected-row[b-ytfvzuqilx]::before,
.lb-tri-cell.in-selected-col[b-ytfvzuqilx]::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255, 204, 0, 0.10);
    border-color: rgba(255, 204, 0, 0.4) !important;
    pointer-events: none;
    z-index: 10;
}

/* Override the standard selection background on tri-cells (triangles cover it) */
.lb-tri-cell.in-selected-row:not(.lit)[b-ytfvzuqilx],
.lb-tri-cell.in-selected-col:not(.lit)[b-ytfvzuqilx] {
    background-color: #111 !important;
}

/* Anchor highlight for triangle cells */
.lb-tri-cell.anchor-cell[b-ytfvzuqilx] {
    box-shadow: none !important;
}
.lb-tri-cell.anchor-cell[b-ytfvzuqilx]::after {
    content: '';
    position: absolute;
    inset: 0;
    border: 2px solid rgba(255, 255, 255, 0.55);
    pointer-events: none;
    z-index: 10;
}

/* Row / column context menu */
.ctx-backdrop[b-ytfvzuqilx] {
    position: fixed;
    inset: 0;
    z-index: 900;
}

.ctx-menu[b-ytfvzuqilx] {
    position: fixed;
    z-index: 901;
    background: #1e1e1e;
    border: 1px solid #3a3a3a;
    border-radius: 8px;
    padding: 0.3rem 0;
    min-width: 200px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.7);
    display: flex;
    flex-direction: column;
}

.ctx-section-label[b-ytfvzuqilx] {
    color: #ffcc00;
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.07em;
    padding: 0.35rem 0.9rem 0.15rem;
    user-select: none;
}

.ctx-divider[b-ytfvzuqilx] {
    height: 1px;
    background: #333;
    margin: 0.3rem 0;
}

.ctx-item[b-ytfvzuqilx] {
    display: block;
    width: 100%;
    text-align: left;
    padding: 0.4rem 0.9rem;
    background: transparent;
    border: none;
    color: #ccc;
    font-size: 0.88rem;
    cursor: pointer;
    transition: background 0.1s, color 0.1s;
}

.ctx-item:hover:not(:disabled)[b-ytfvzuqilx] {
    background: rgba(255,255,255,0.07);
    color: #fff;
}

.ctx-item:disabled[b-ytfvzuqilx] {
    opacity: 0.35;
    cursor: not-allowed;
}

.ctx-item-danger[b-ytfvzuqilx] { color: #cc8888; }
.ctx-item-danger:hover:not(:disabled)[b-ytfvzuqilx] {
    background: rgba(200,0,0,0.15) !important;
    color: #f88 !important;
}

.ctx-item-cancel[b-ytfvzuqilx] { color: #888; }

/* Color legend strip */
.color-legend[b-ytfvzuqilx] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    padding: 0.4rem 0.25rem 0;
    flex-shrink: 0;
}

.color-legend-item[b-ytfvzuqilx] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.78rem;
    color: white;
    white-space: nowrap;
}

.color-legend-item.color-legend-dim[b-ytfvzuqilx] {
    color: #666;
}

.color-legend-dot[b-ytfvzuqilx] {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    flex-shrink: 0;
    display: inline-block;
}

.color-legend-stamp[b-ytfvzuqilx] {
    border-radius: 2px;
    background-size: cover;
    background-position: center;
}

.color-legend-sep[b-ytfvzuqilx] {
    width: 1px;
    background: #333;
    align-self: stretch;
    flex-shrink: 0;
    margin: 0 0.25rem;
}
