/* /Components/Layout/BottomNav.razor.rz.scp.css */
.bottom-nav[b-teyb0hzcps] {
    display: none;
    position: fixed;
    top: calc(100dvh - 64px - env(safe-area-inset-bottom, 0px));
    left: 0;
    right: 0;
    height: calc(64px + env(safe-area-inset-bottom, 0px));
    z-index: 300;
    background: var(--bg-base);
    border-top: 1px solid var(--border);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    align-items: center;
    justify-content: space-around;
    transform: translateZ(0); /* Force GPU layer to prevent repaint stretch */
}

[b-teyb0hzcps] .bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    flex: 1;
    height: 100%;
    background: none;
    border: none;
    color: var(--text-dim);
    text-decoration: none;
    font-size: 0.625rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: color 0.15s ease;
    -webkit-tap-highlight-color: transparent;
}

[b-teyb0hzcps] .bottom-nav-item:hover,
[b-teyb0hzcps] .bottom-nav-item:active {
    color: var(--text-secondary);
}

[b-teyb0hzcps] .bottom-nav-item.active {
    color: #f5843b;
}

/* Create button — raised orange circle */
[b-teyb0hzcps] .bottom-nav-create {
    position: relative;
}

[b-teyb0hzcps] .bottom-nav-create-circle {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--accent-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    margin-top: -18px;
    box-shadow: 0 4px 16px rgba(245, 132, 59, 0.4);
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

[b-teyb0hzcps] .bottom-nav-create:active .bottom-nav-create-circle {
    transform: scale(0.95);
}

[b-teyb0hzcps] .bottom-nav-create.active .bottom-nav-create-circle {
    box-shadow: 0 4px 20px rgba(245, 132, 59, 0.6);
}

[b-teyb0hzcps] .bottom-nav-create span {
    margin-top: -2px;
}

@media (max-width: 768px) {
    .bottom-nav[b-teyb0hzcps] {
        display: flex;
    }
}

/* ── Create bottom sheet (mobile only) ── */
.create-backdrop[b-teyb0hzcps],
.create-popup[b-teyb0hzcps] {
    display: none;
}

@media (max-width: 768px) {
    /* Dim backdrop — tap to close */
    .create-backdrop[b-teyb0hzcps] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 399;
        background: rgba(0, 0, 0, 0.55);
        animation: backdropFadeIn-b-teyb0hzcps 0.2s ease;
    }

    @keyframes backdropFadeIn-b-teyb0hzcps {
        from { opacity: 0; }
        to   { opacity: 1; }
    }

    /* Bottom sheet */
    .create-popup[b-teyb0hzcps] {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 400;
        background: var(--bg-surface);
        border-radius: 16px 16px 0 0;
        max-height: 55vh;
        animation: sheetSlideUp-b-teyb0hzcps 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    @keyframes sheetSlideUp-b-teyb0hzcps {
        from { transform: translateY(100%); }
        to   { transform: translateY(0); }
    }

    /* Drag handle */
    .create-popup-handle[b-teyb0hzcps] {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--border-hover);
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    /* Body — scrollable */
    .create-popup-body[b-teyb0hzcps] {
        flex: 1;
        overflow-y: auto;
        padding: 0.75rem 1.25rem;
        display: flex;
        flex-direction: column;
        gap: 1rem;
    }

    /* Prompt textarea */
    .create-popup-prompt-wrap[b-teyb0hzcps] {
        background: var(--bg-sunken);
        border: 1px solid var(--border);
        border-radius: 12px;
        padding: 0.75rem;
        transition: border-color 0.15s ease;
    }

    .create-popup-prompt-wrap:focus-within[b-teyb0hzcps] {
        border-color: #f5843b;
    }

    [b-teyb0hzcps] .create-popup-prompt {
        width: 100%;
        background: none;
        border: none;
        outline: none;
        color: var(--text-primary);
        font-family: inherit;
        font-size: 0.9375rem;
        line-height: 1.5;
        resize: none;
        field-sizing: content;
        min-height: 44px;
        max-height: 120px;
    }

    [b-teyb0hzcps] .create-popup-prompt::placeholder {
        color: var(--text-dim);
    }

    /* Settings section */
    .create-popup-section[b-teyb0hzcps] {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        gap: 0.5rem;
    }

    .create-popup-label[b-teyb0hzcps] {
        width: 100%;
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    /* Aspect ratio */
    .create-popup-aspect-group[b-teyb0hzcps] {
        display: flex;
        gap: 6px;
        flex: 1;
    }

    .create-popup-aspect[b-teyb0hzcps] {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        border: 1px solid var(--border);
        background: none;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 0.6875rem;
        font-weight: 500;
        cursor: pointer;
        flex: 1;
        justify-content: center;
        transition: all 0.15s ease;
    }

    .create-popup-aspect.active[b-teyb0hzcps] {
        border-color: #f5843b;
        color: #f5843b;
        background: rgba(245, 132, 59, 0.06);
    }

    /* Aspect preview boxes */
    .aspect-preview[b-teyb0hzcps] {
        border: 1.5px solid currentColor;
        border-radius: 2px;
        opacity: 0.7;
    }

    .create-popup-aspect.active .aspect-preview[b-teyb0hzcps] {
        opacity: 1;
    }

    .aspect-portrait[b-teyb0hzcps] { width: 10px; height: 16px; }
    .aspect-square[b-teyb0hzcps]   { width: 14px; height: 14px; }
    .aspect-landscape[b-teyb0hzcps] { width: 18px; height: 11px; }

    /* Quality toggles */
    .create-popup-toggle-group[b-teyb0hzcps] {
        display: flex;
        gap: 2px;
        background: var(--bg-sunken);
        border-radius: 8px;
        padding: 3px;
        flex: 1;
    }

    .create-popup-toggle[b-teyb0hzcps] {
        flex: 1;
        padding: 0.375rem 0.625rem;
        border-radius: 6px;
        border: none;
        background: none;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .create-popup-toggle.active[b-teyb0hzcps] {
        background: #f5843b;
        color: #fff;
        box-shadow: 0 1px 4px rgba(245, 132, 59, 0.3);
    }

    .create-popup-cost[b-teyb0hzcps] {
        font-size: 0.75rem;
        color: #FFD93D;
        font-weight: 600;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* Model select */
    .create-popup-select[b-teyb0hzcps] {
        width: 100%;
        padding: 0.4375rem 2rem 0.4375rem 0.75rem;
        background-color: var(--bg-sunken);
        border: 1px solid var(--border);
        border-radius: 8px;
        color: var(--text-primary);
        font-family: inherit;
        font-size: 0.8125rem;
        line-height: 1.4;
        appearance: none;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%235c6170' stroke-width='2'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
        background-repeat: no-repeat;
        background-position: right 0.75rem center;
        cursor: pointer;
    }

    .create-popup-select:focus[b-teyb0hzcps] {
        outline: none;
        border-color: #f5843b;
    }

    .create-popup-select option[b-teyb0hzcps] {
        background-color: var(--bg-surface);
        color: var(--text-primary);
    }

    .create-popup-loading[b-teyb0hzcps] {
        font-size: 0.75rem;
        color: var(--text-dim);
    }

    /* Enhance button inside prompt wrap */
    .create-popup-enhance[b-teyb0hzcps] {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        margin-top: 0.5rem;
        padding: 0.375rem 0.75rem;
        border-radius: 8px;
        border: 1px solid rgba(245, 132, 59, 0.3);
        background: rgba(245, 132, 59, 0.08);
        color: #f5843b;
        font-family: inherit;
        font-size: 0.75rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .create-popup-enhance:hover:not(:disabled)[b-teyb0hzcps] {
        background: rgba(245, 132, 59, 0.15);
        border-color: rgba(245, 132, 59, 0.5);
    }

    .create-popup-enhance:disabled[b-teyb0hzcps] {
        opacity: 0.5;
        cursor: not-allowed;
    }

    /* Footer / submit */
    .create-popup-footer[b-teyb0hzcps] {
        padding: 0.75rem 1.25rem;
        padding-bottom: calc(0.75rem + env(safe-area-inset-bottom, 0px));
        border-top: 1px solid var(--border);
        flex-shrink: 0;
    }

    .create-popup-submit[b-teyb0hzcps] {
        width: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 0.5rem;
        padding: 0.75rem;
        border-radius: 12px;
        border: none;
        background: #f5843b;
        color: #fff;
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: 600;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .create-popup-submit:active:not(:disabled)[b-teyb0hzcps] {
        background: #e0742e;
    }

    .create-popup-submit:disabled[b-teyb0hzcps] {
        opacity: 0.4;
        cursor: not-allowed;
    }
}

/* ── More bottom sheet (mobile only) ── */
.more-backdrop[b-teyb0hzcps],
.more-popup[b-teyb0hzcps] {
    display: none;
}

@media (max-width: 768px) {
    .more-backdrop[b-teyb0hzcps] {
        display: block;
        position: fixed;
        inset: 0;
        z-index: 399;
        background: rgba(0, 0, 0, 0.55);
        animation: backdropFadeIn-b-teyb0hzcps 0.2s ease;
    }

    .more-popup[b-teyb0hzcps] {
        display: flex;
        flex-direction: column;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        z-index: 400;
        background: var(--bg-surface);
        border-radius: 16px 16px 0 0;
        max-height: 70vh;
        animation: sheetSlideUp-b-teyb0hzcps 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    }

    .more-popup-handle[b-teyb0hzcps] {
        width: 36px;
        height: 4px;
        border-radius: 2px;
        background: var(--border-hover);
        margin: 10px auto 4px;
        flex-shrink: 0;
    }

    .more-popup-body[b-teyb0hzcps] {
        flex: 1;
        overflow-y: auto;
        padding: 0.5rem 0;
        -webkit-overflow-scrolling: touch;
    }

    [b-teyb0hzcps] .more-nav-item {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        width: 100%;
        min-height: 44px;
        padding: 0 1.25rem;
        background: none;
        border: none;
        color: var(--text-secondary);
        text-decoration: none;
        font-family: inherit;
        font-size: 0.9375rem;
        font-weight: 500;
        cursor: pointer;
        transition: background 0.12s ease;
        -webkit-tap-highlight-color: transparent;
    }

    [b-teyb0hzcps] .more-nav-item:active {
        background: rgba(255, 255, 255, 0.04);
    }

    [b-teyb0hzcps] .more-nav-item.active {
        color: #f5843b;
    }

    [b-teyb0hzcps] .more-nav-item svg {
        flex-shrink: 0;
        opacity: 0.7;
    }

    [b-teyb0hzcps] .more-nav-item.active svg {
        opacity: 1;
    }

    .more-nav-divider[b-teyb0hzcps] {
        height: 1px;
        background: var(--border);
        margin: 0.375rem 1.25rem;
    }

    .more-nav-section-label[b-teyb0hzcps] {
        padding: 0.625rem 1.25rem 0.25rem;
        font-size: 0.6875rem;
        font-weight: 600;
        color: var(--text-dim);
        text-transform: uppercase;
        letter-spacing: 0.06em;
    }

    /* Language toggle inside more sheet */
    .more-lang-row[b-teyb0hzcps] {
        display: flex;
        align-items: center;
        gap: 0.875rem;
        padding: 0 1.25rem;
        min-height: 44px;
    }

    .more-lang-toggle[b-teyb0hzcps] {
        display: flex;
        gap: 2px;
        background: var(--bg-sunken);
        border-radius: 6px;
        padding: 2px;
    }

    .more-lang-btn[b-teyb0hzcps] {
        padding: 0.25rem 0.625rem;
        border-radius: 4px;
        border: none;
        background: none;
        color: var(--text-dim);
        font-family: inherit;
        font-size: 0.8125rem;
        font-weight: 600;
        cursor: pointer;
        transition: all 0.15s ease;
    }

    .more-lang-btn.more-lang-active[b-teyb0hzcps] {
        background: var(--accent);
        color: #fff;
    }

    /* Bottom safe area padding */
    .more-popup-bottom[b-teyb0hzcps] {
        padding-bottom: calc(0.5rem + env(safe-area-inset-bottom, 0px));
    }

    /* Danger item (sign out) */
    [b-teyb0hzcps] .more-nav-danger {
        color: #ef4444;
    }

    [b-teyb0hzcps] .more-nav-danger svg {
        opacity: 0.8;
    }
}
/* /Components/Layout/MainLayout.razor.rz.scp.css */
.page[b-ha1dhmw92y] {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main[b-ha1dhmw92y] {
    flex: 1;
}

#blazor-error-ui[b-ha1dhmw92y] {
    background: #2d1b1b;
    color: #f0a0a0;
    bottom: 0;
    box-shadow: 0 -1px 4px rgba(0, 0, 0, 0.4);
    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-ha1dhmw92y] {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

/* /Components/Layout/PromptBar.razor.rz.scp.css */
/* ═══════════════════════════════════════════════
   Expandable Prompt Bar — collapsed pill, expands on click
   ═══════════════════════════════════════════════ */

/* ── Group wrapper: balance + prompt bar ── */

.prompt-bar-group[b-7uo1fg300p] {
    display: flex;
    justify-content: center;
}

.prompt-bar[b-7uo1fg300p] {
    flex: 1;
    min-width: 0;
    position: relative;
}

.prompt-bar-inner[b-7uo1fg300p] {
    background: rgba(22, 24, 30, 0.92);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1.5px solid #363940;
    border-radius: 16px;
    padding: 0.875rem 1rem;
    cursor: text;
    transition: padding 0.3s ease, border-color 0.3s ease;
}

/* ── Input row: enhance icon always visible + placeholder or textarea ── */

.prompt-input-row[b-7uo1fg300p] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

/* ── Enhance icon (left of textarea) ── */

.prompt-enhance-icon[b-7uo1fg300p] {
    flex-shrink: 0;
    align-self: center;
    color: #f5843b;
    cursor: pointer;
    display: flex;
    align-items: center;
    background: none;
    border: none;
    padding: 0;
    transition: color 0.15s ease, opacity 0.15s ease;
}

.prompt-enhance-icon:hover:not(:disabled)[b-7uo1fg300p] {
    color: #ff9a52;
}

.prompt-enhance-icon:disabled[b-7uo1fg300p],
.prompt-enhance-icon-disabled[b-7uo1fg300p] {
    color: var(--text-dim);
    opacity: 0.5;
    cursor: not-allowed;
}

/* ── Always-expanded bar ── */

.prompt-bar-inner[b-7uo1fg300p] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    cursor: default;
}

.prompt-input-row[b-7uo1fg300p] {
    align-items: flex-start;
    padding-top: 0.125rem;
}

/* (backdrop removed — click-outside handled via JS) */
.prompt-expand-backdrop[b-7uo1fg300p] {
    display: none;
}

/* ── Attached image row (multi-image) ── */

.prompt-attach-row[b-7uo1fg300p] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}

/* ── Attached image preview ── */

.prompt-attach-preview[b-7uo1fg300p] {
    position: relative;
    width: 56px;
    height: 56px;
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.prompt-attach-preview img[b-7uo1fg300p] {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.prompt-attach-remove[b-7uo1fg300p] {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.7);
    border: none;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    transition: background-color 0.12s ease;
}

.prompt-attach-remove:hover[b-7uo1fg300p] {
    background: rgba(239, 68, 68, 0.8);
}

/* ── Upload skeleton ── */

.prompt-attach-skeleton[b-7uo1fg300p] {
    background: var(--bg-surface);
    border: 1px solid var(--border);
}

.prompt-attach-skeleton-inner[b-7uo1fg300p] {
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, var(--bg-surface) 25%, var(--bg-hover) 50%, var(--bg-surface) 75%);
    background-size: 200% 100%;
    animation: skeletonShimmer-b-7uo1fg300p 1.2s ease-in-out infinite;
}

@keyframes skeletonShimmer-b-7uo1fg300p {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ── Textarea ── */

[b-7uo1fg300p] .prompt-input {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    resize: none;
    field-sizing: content;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.125rem 0;
    margin: 0;
    min-width: 0;
}

[b-7uo1fg300p] .prompt-input::placeholder {
    color: var(--text-dim);
}

/* MentionEditor inside prompt bar */
[b-7uo1fg300p] .prompt-input.mention-editor-wrapper {
    flex: 1;
    min-width: 0;
    padding: 0;
}

[b-7uo1fg300p] .prompt-input .mention-editor {
    width: 100%;
    background: none;
    border: none;
    outline: none;
    box-shadow: none;
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.9375rem;
    line-height: 1.5;
    max-height: 160px;
    overflow-y: auto;
    padding: 0.125rem 0;
    margin: 0;
    min-height: 1.5em;
    border-radius: 0;
}

[b-7uo1fg300p] .prompt-input .mention-editor:focus {
    outline: none;
    border: none;
    box-shadow: none;
    background: none;
}

[b-7uo1fg300p] .prompt-input .mention-editor.is-empty[data-placeholder]::before {
    content: attr(data-placeholder);
    color: var(--text-dim);
    pointer-events: none;
}



/* ── Actions row ── */

.prompt-actions[b-7uo1fg300p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    overflow: visible;
}


/* ── Compact pill buttons ── */

.prompt-menu-wrap[b-7uo1fg300p] {
    position: relative;
}

.prompt-pill[b-7uo1fg300p] {
    height: 30px;
    padding: 0 0.625rem;
    border-radius: 999px;
    border: none;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 0.375rem;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.prompt-pill:hover[b-7uo1fg300p] {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

.prompt-pill svg[b-7uo1fg300p] {
    width: 14px;
    height: 14px;
    opacity: 0.6;
}

/* Active toggle state for pill buttons (e.g. Enhance) */
.prompt-pill-active[b-7uo1fg300p] {
    background: rgba(245, 132, 59, 0.15);
    color: #f5843b;
    border: 1px solid rgba(245, 132, 59, 0.3);
}

.prompt-pill-active:hover[b-7uo1fg300p] {
    background: rgba(245, 132, 59, 0.25);
    color: #f5843b;
}

.prompt-pill-active svg[b-7uo1fg300p] {
    opacity: 1;
}

/* ── Attach pill (uses label to trigger InputFile) ── */

.prompt-attach-pill[b-7uo1fg300p] {
    cursor: pointer;
}

/* Aspect visuals */
.aspect-visual[b-7uo1fg300p] {
    border: 1.5px solid currentColor;
    border-radius: 2px;
}

.aspect-visual-portrait[b-7uo1fg300p] {
    width: 7px;
    height: 12px;
}

.aspect-visual-square[b-7uo1fg300p] {
    width: 10px;
    height: 10px;
}

.aspect-visual-landscape[b-7uo1fg300p] {
    width: 13px;
    height: 8px;
}

/* ── Popup menu ── */

.prompt-menu-backdrop[b-7uo1fg300p] {
    position: fixed;
    inset: 0;
    z-index: 300;
}

.prompt-menu[b-7uo1fg300p] {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    min-width: 200px;
    background: #22242c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 6px;
    z-index: 301;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: menuIn-b-7uo1fg300p 0.12s ease-out;
}

@keyframes menuIn-b-7uo1fg300p {
    from { opacity: 0; transform: translateY(4px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.prompt-menu-title[b-7uo1fg300p] {
    padding: 0.375rem 0.625rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prompt-menu-item[b-7uo1fg300p] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-primary);
    font-size: 0.875rem;
    font-weight: 500;
    white-space: nowrap;
    font-family: inherit;
    cursor: pointer;
    transition: background-color 0.12s ease;
}

.prompt-menu-item:hover[b-7uo1fg300p] {
    background: rgba(255, 255, 255, 0.08);
}

.prompt-menu-item-active[b-7uo1fg300p] {
    border: 1.5px solid #f5843b;
    background: rgba(245, 132, 59, 0.08);
}

.prompt-menu-item-locked[b-7uo1fg300p] {
    opacity: 0.5;
    cursor: not-allowed;
    color: #ef4444;
}

.prompt-menu-item-locked:hover[b-7uo1fg300p] {
    background: transparent;
}

.prompt-lock-icon[b-7uo1fg300p] {
    margin-left: auto;
    color: #ef4444;
    flex-shrink: 0;
}

.preset-menu-locked[b-7uo1fg300p] {
    border-color: rgba(239, 68, 68, 0.3);
}

.prompt-menu-check[b-7uo1fg300p] {
    width: 16px;
    height: 16px;
    margin-left: auto;
    color: #f5843b;
}

.prompt-menu-meta[b-7uo1fg300p] {
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-left: auto;
}

/* ── Spacer to push submit button right ── */

.prompt-actions-spacer[b-7uo1fg300p] {
    flex: 1;
}

/* ── Keyboard shortcut hint ── */

.prompt-enter-hint[b-7uo1fg300p] {
    font-size: 0.6875rem;
    color: var(--text-dim);
    white-space: nowrap;
}

/* ── Menu price label ── */

.prompt-menu-price[b-7uo1fg300p] {
    display: inline-flex;
    align-items: center;
    gap: 0.2rem;
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-left: auto;
}

.orange-icon-sm[b-7uo1fg300p] {
    width: 14px;
    height: 14px;
    vertical-align: middle;
}

/* ── Send button ── */

.prompt-submit[b-7uo1fg300p] {
    height: 32px;
    border-radius: 999px;
    padding: 0 0.75rem;
    gap: 0.375rem;
    background: rgba(245, 132, 59, 0.12);
    border: 1px solid rgba(245, 132, 59, 0.3);
    color: #f5843b;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    flex-shrink: 0;
    font-size: 0.8125rem;
    font-weight: 700;
    font-family: inherit;
    white-space: nowrap;
    transition: all 0.15s ease;
}

.prompt-submit svg[b-7uo1fg300p] {
    width: 14px;
    height: 14px;
}

.prompt-submit span[b-7uo1fg300p] {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
}

.prompt-submit:hover:not(:disabled)[b-7uo1fg300p] {
    background: rgba(245, 132, 59, 0.22);
    border-color: rgba(245, 132, 59, 0.5);
}

.prompt-submit:disabled[b-7uo1fg300p] {
    background: rgba(255, 255, 255, 0.03);
    border-color: rgba(255, 255, 255, 0.08);
    color: var(--text-dim);
    cursor: not-allowed;
}

/* Low balance warning */
.prompt-submit-warning[b-7uo1fg300p] {
    background: rgba(239, 68, 68, 0.2);
    color: #ef6b6b;
}

.prompt-submit-warning:hover:not(:disabled)[b-7uo1fg300p] {
    background: rgba(239, 68, 68, 0.35);
    box-shadow: 0 2px 12px rgba(239, 68, 68, 0.3);
}


/* Character count */
.prompt-char-count[b-7uo1fg300p] {
    text-align: right;
    font-size: 0.6875rem;
    color: var(--text-dim);
    font-variant-numeric: tabular-nums;
}

.prompt-char-warn[b-7uo1fg300p] {
    color: #ef6b6b;
}

/* Spinner */
.spinner-sm[b-7uo1fg300p] {
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.15);
    border-top-color: currentColor;
    border-radius: 50%;
    animation: spin-b-7uo1fg300p 0.6s linear infinite;
}

@keyframes spin-b-7uo1fg300p {
    to { transform: rotate(360deg); }
}

/* ── Prompt Presets Panel ── */

.prompt-presets-panel[b-7uo1fg300p] {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 0;
    width: 340px;
    max-height: 360px;
    overflow-y: auto;
    background: #22242c;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px;
    z-index: 301;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.5);
    animation: menuIn-b-7uo1fg300p 0.12s ease-out;
}

.prompt-presets-category[b-7uo1fg300p] {
    padding: 0.5rem 0.625rem 0.25rem;
    font-size: 0.6875rem;
    font-weight: 700;
    color: var(--text-dim);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.prompt-preset-chip[b-7uo1fg300p] {
    display: block;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    line-height: 1.4;
    font-family: inherit;
    cursor: pointer;
    text-align: left;
    transition: background 0.12s ease, color 0.12s ease;
}

.prompt-preset-chip:hover[b-7uo1fg300p] {
    background: rgba(245, 132, 59, 0.1);
    color: var(--text-primary);
}

/* ── Type badge on attached preview ── */

.prompt-attach-type-badge[b-7uo1fg300p] {
    position: absolute;
    bottom: 2px;
    left: 2px;
    padding: 1px 4px;
    border-radius: 4px;
    background: rgba(245, 132, 59, 0.85);
    color: #fff;
    font-size: 0.5625rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    line-height: 1.3;
    pointer-events: none;
}

/* ═══════════════════════════════════════════════
   Gallery Picker Modal
   ═══════════════════════════════════════════════ */

.gallery-picker-backdrop[b-7uo1fg300p] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1000;
    animation: fadeIn-b-7uo1fg300p 0.15s ease-out;
}

.gallery-picker-modal[b-7uo1fg300p] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(900px, 92vw);
    max-height: 85vh;
    background: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    z-index: 1001;
    display: flex;
    flex-direction: column;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    animation: modalIn-b-7uo1fg300p 0.18s ease-out;
}

@keyframes fadeIn-b-7uo1fg300p {
    from { opacity: 0; }
    to   { opacity: 1; }
}

@keyframes modalIn-b-7uo1fg300p {
    from { opacity: 0; transform: translate(-50%, -48%) scale(0.97); }
    to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}

.gallery-picker-header[b-7uo1fg300p] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    flex-shrink: 0;
}

.gallery-picker-header h3[b-7uo1fg300p] {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--text-primary);
    white-space: nowrap;
}

.gallery-picker-search[b-7uo1fg300p] {
    flex: 1;
    height: 32px;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-primary);
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s ease;
}

.gallery-picker-search:focus[b-7uo1fg300p] {
    border-color: rgba(245, 132, 59, 0.4);
}

.gallery-picker-search[b-7uo1fg300p]::placeholder {
    color: var(--text-dim);
}

.gallery-picker-close[b-7uo1fg300p] {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: none;
    background: transparent;
    color: var(--text-dim);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.12s ease, color 0.12s ease;
    flex-shrink: 0;
}

.gallery-picker-close:hover[b-7uo1fg300p] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.gallery-picker-grid[b-7uo1fg300p] {
    flex: 1;
    overflow-y: auto;
    padding: 0.75rem;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 0.5rem;
    align-content: start;
}

.gallery-picker-item[b-7uo1fg300p] {
    position: relative;
    padding-top: 100%;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.15s ease, transform 0.12s ease;
}

/* Skeleton shimmer behind image */
.gallery-skeleton[b-7uo1fg300p] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, #1e2028 25%, #2a2d36 50%, #1e2028 75%);
    background-size: 200% 100%;
    animation: galleryShimmer-b-7uo1fg300p 1.4s ease-in-out infinite;
}

@keyframes galleryShimmer-b-7uo1fg300p {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.gallery-picker-item img[b-7uo1fg300p] {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.gallery-picker-item img.loaded[b-7uo1fg300p] {
    opacity: 1;
}

.gallery-picker-item-skeleton[b-7uo1fg300p] {
    pointer-events: none;
}

.gallery-picker-item:not(.gallery-picker-item-skeleton):hover[b-7uo1fg300p] {
    border-color: #f5843b;
    transform: scale(1.03);
}

.gallery-picker-status[b-7uo1fg300p] {
    grid-column: 1 / -1;
    text-align: center;
    padding: 1.5rem;
    color: var(--text-dim);
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}


/* ═══════════════════════════════════════════════
   Reference Config Popup
   ═══════════════════════════════════════════════ */

.ref-config-backdrop[b-7uo1fg300p] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 1002;
    animation: fadeIn-b-7uo1fg300p 0.15s ease-out;
}

.ref-config-modal[b-7uo1fg300p] {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: min(640px, 92vw);
    max-height: 88vh;
    background: #1a1c22;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 1.5rem;
    z-index: 1003;
    display: flex;
    flex-direction: column;
    gap: 1rem;
    box-shadow: 0 16px 64px rgba(0, 0, 0, 0.6);
    animation: modalIn-b-7uo1fg300p 0.18s ease-out;
    overflow-y: auto;
}

.ref-config-modal h3[b-7uo1fg300p] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
}

.ref-config-image-wrap[b-7uo1fg300p] {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    max-height: 480px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #0d0e12;
    cursor: default;
}

.ref-config-image-wrap img[b-7uo1fg300p] {
    max-width: 100%;
    max-height: 480px;
    object-fit: contain;
    display: block;
}

.ref-config-types[b-7uo1fg300p] {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.375rem;
}

.ref-config-type-btn[b-7uo1fg300p] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.25rem;
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-secondary);
    font-size: 0.6875rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.15s ease;
}

.ref-config-type-btn:hover[b-7uo1fg300p] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-primary);
}

.ref-config-type-btn svg[b-7uo1fg300p] {
    width: 18px;
    height: 18px;
    opacity: 0.6;
}

.ref-config-type-active[b-7uo1fg300p] {
    border-color: #f5843b;
    background: rgba(245, 132, 59, 0.12);
    color: #f5843b;
}

.ref-config-type-active svg[b-7uo1fg300p] {
    opacity: 1;
}

.ref-config-mask-tools[b-7uo1fg300p] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.ref-config-mask-hint[b-7uo1fg300p] {
    margin: 0;
    font-size: 0.75rem;
    font-style: italic;
    color: var(--text-dim);
}

.ref-config-mask-toolbar[b-7uo1fg300p] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.ref-config-brush-slider[b-7uo1fg300p] {
    flex: 1;
    height: 4px;
    accent-color: #f5843b;
    cursor: pointer;
}

.ref-config-confirm[b-7uo1fg300p] {
    width: 100%;
    height: 40px;
    border-radius: 10px;
    border: none;
    background: #f5843b;
    color: #fff;
    font-size: 0.875rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    transition: background 0.15s ease;
}

.ref-config-confirm:hover[b-7uo1fg300p] {
    background: #ff9a52;
}

/* ── Responsive ── */

@media (max-width: 768px) {
    .prompt-bar-group[b-7uo1fg300p] {
        display: none;
    }
}

/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-u5gx6tn5yp],
.components-reconnect-repeated-attempt-visible[b-u5gx6tn5yp],
.components-reconnect-failed-visible[b-u5gx6tn5yp],
.components-pause-visible[b-u5gx6tn5yp],
.components-resume-failed-visible[b-u5gx6tn5yp],
.components-rejoining-animation[b-u5gx6tn5yp] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-retrying[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-failed[b-u5gx6tn5yp],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-u5gx6tn5yp] {
    display: block;
}


#components-reconnect-modal[b-u5gx6tn5yp] {
    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-u5gx6tn5yp 0.5s both;
    &[open]

{
    animation: components-reconnect-modal-slideUp-b-u5gx6tn5yp 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s, components-reconnect-modal-fadeInOpacity-b-u5gx6tn5yp 0.5s ease-in-out 0.3s;
    animation-fill-mode: both;
}

}

#components-reconnect-modal[b-u5gx6tn5yp]::backdrop {
    background-color: rgba(0, 0, 0, 0.4);
    animation: components-reconnect-modal-fadeInOpacity-b-u5gx6tn5yp 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-u5gx6tn5yp {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-u5gx6tn5yp {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-u5gx6tn5yp {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-u5gx6tn5yp] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-u5gx6tn5yp] {
    margin: 0;
    text-align: center;
}

#components-reconnect-modal button[b-u5gx6tn5yp] {
    border: 0;
    background-color: #6b9ed2;
    color: white;
    padding: 4px 24px;
    border-radius: 4px;
}

    #components-reconnect-modal button:hover[b-u5gx6tn5yp] {
        background-color: #3b6ea2;
    }

    #components-reconnect-modal button:active[b-u5gx6tn5yp] {
        background-color: #6b9ed2;
    }

.components-rejoining-animation[b-u5gx6tn5yp] {
    position: relative;
    width: 80px;
    height: 80px;
}

    .components-rejoining-animation div[b-u5gx6tn5yp] {
        position: absolute;
        border: 3px solid #0087ff;
        opacity: 1;
        border-radius: 50%;
        animation: components-rejoining-animation-b-u5gx6tn5yp 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
    }

        .components-rejoining-animation div:nth-child(2)[b-u5gx6tn5yp] {
            animation-delay: -0.5s;
        }

@keyframes components-rejoining-animation-b-u5gx6tn5yp {
    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/Layout/Sidebar.razor.rz.scp.css */
.sidebar[b-ltsdgre0rs] {
    position: fixed;
    top: 0;
    left: 0;
    width: 62px;
    height: 100vh;
    overflow-y: auto;
    overflow-x: hidden;
    background-color: var(--bg-base);
    border-right: none;
    scrollbar-width: thin;
    scrollbar-color: #292c32 transparent;
    z-index: 300;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-left: 4px;
}

.sidebar-brand[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 62px;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.15s ease;
    width: 100%;
    flex-shrink: 0;
}

.sidebar-brand:hover[b-ltsdgre0rs] {
    opacity: 0.85;
}

.sidebar-brand-logo[b-ltsdgre0rs] {
    height: 28px;
    width: auto;
    filter: brightness(0.6) sepia(1) saturate(10) hue-rotate(350deg);
}

.sidebar-nav[b-ltsdgre0rs] {
    padding: 0.25rem 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.sidebar-section[b-ltsdgre0rs] {
    padding: 0.25rem 0 0.25rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    width: 100%;
}

.sidebar-divider[b-ltsdgre0rs] {
    height: 1px;
    width: 40px;
    background: var(--border);
    margin: 0.5rem auto;
}

.sidebar-support-btn[b-ltsdgre0rs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: auto;
    margin-bottom: 0.75rem;
    padding: 0.5rem 0.25rem;
    border-radius: 10px;
    border: 1.5px solid rgba(88, 101, 242, 0.5);
    background: rgba(88, 101, 242, 0.08);
    color: #5865F2;
    text-decoration: none;
    font-size: 0.55rem;
    font-weight: 600;
    letter-spacing: 0.02em;
    transition: all 0.15s ease;
    cursor: pointer;
    width: 56px;
    text-align: center;
    flex-shrink: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sidebar-support-btn:hover[b-ltsdgre0rs] {
    background: rgba(88, 101, 242, 0.16);
    border-color: rgba(88, 101, 242, 0.8);
    color: #7289DA;
    transform: translateY(-1px);
}

.sidebar-support-btn svg[b-ltsdgre0rs] {
    flex-shrink: 0;
    opacity: 0.9;
}

[b-ltsdgre0rs] .sidebar-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.3rem;
    padding: 0.5rem 0;
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 0.55rem;
    font-weight: 500;
    transition: color 0.15s ease, background-color 0.15s ease;
    cursor: pointer;
    white-space: nowrap;
    text-align: center;
    width: 100%;
    position: relative;
    background: none;
    border: none;
    font-family: inherit;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 58px;
}

[b-ltsdgre0rs] .sidebar-item svg {
    flex-shrink: 0;
    opacity: 0.85;
    transition: opacity 0.15s ease;
}



[b-ltsdgre0rs] .sidebar-item:hover {
    color: #f5843b;
    background-color: rgba(245, 132, 59, 0.08);
}

[b-ltsdgre0rs] .sidebar-item:hover svg {
    opacity: 1;
}

[b-ltsdgre0rs] .sidebar-item.active {
    color: #f5843b;
    background-color: rgba(245, 132, 59, 0.08);
    border: 1.5px solid rgba(245, 132, 59, 0.5);
}

[b-ltsdgre0rs] .sidebar-item.active svg {
    opacity: 1;
}

/* === Fixed top bar === */
.sidebar-topbar[b-ltsdgre0rs] {
    position: fixed;
    top: 0;
    left: 62px;
    right: 0;
    height: 62px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 1.25rem 0 1.5rem;
    background-color: var(--bg-base);
    z-index: 100;
}

.topbar-left[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.topbar-center-warning[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.8125rem;
    color: #facc15;
    background: rgba(250, 204, 21, 0.08);
    border: 1px solid rgba(250, 204, 21, 0.2);
    border-radius: 8px;
    padding: 0.5rem 1rem;
    white-space: nowrap;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
}

.topbar-right[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
    flex-shrink: 0;
}

.sidebar-topright-balance[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    height: 37px;
    padding: 0 0.7rem;
    border-radius: 8px;
    background-color: rgba(245, 132, 59, 0.08);
    border: 1.5px solid rgba(245, 132, 59, 0.5);
    color: #f5843b;
    font-weight: 700;
    font-size: 0.875rem;
    font-variant-numeric: tabular-nums;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
    text-decoration: none;
}

.sidebar-topright-balance:hover[b-ltsdgre0rs] {
    background-color: rgba(245, 132, 59, 0.14);
    border-color: rgba(245, 132, 59, 0.7);
    color: #f5843b;
}

/* Shared icon button (console, bell) */
.sidebar-topright-icon[b-ltsdgre0rs] {
    width: 37px;
    height: 37px;
    border-radius: 50%;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    padding: 0;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
    position: relative;
    text-decoration: none;
    font-family: inherit;
}

.sidebar-topright-icon:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.topright-badge[b-ltsdgre0rs] {
    position: absolute;
    top: -3px;
    right: -3px;
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 8px;
    background: #ef4444;
    color: #fff;
    font-size: 0.625rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid var(--bg-base);
    animation: badgeIn-b-ltsdgre0rs 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes badgeIn-b-ltsdgre0rs {
    from { transform: scale(0); }
    to { transform: scale(1); }
}

/* Nickname button */
.sidebar-topright-nickname[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    height: 37px;
    padding: 0 0.75rem;
    border-radius: 8px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.75rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.sidebar-topright-nickname:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.sidebar-topright-nickname.nickname-tier[b-ltsdgre0rs] {
    color: var(--tier-color);
    border-color: color-mix(in srgb, var(--tier-color) 80%, transparent);
    background: color-mix(in srgb, var(--tier-color) 12%, transparent);
}

.sidebar-topright-nickname.nickname-tier:hover[b-ltsdgre0rs] {
    color: var(--tier-color);
    border-color: var(--tier-color);
    background: color-mix(in srgb, var(--tier-color) 20%, transparent);
}

.sidebar-topright-nickname.nickname-tier svg[b-ltsdgre0rs] {
    color: var(--tier-color);
}

.sidebar-topright-nickname svg[b-ltsdgre0rs] {
    opacity: 0.6;
    flex-shrink: 0;
}

.sidebar-topright-user[b-ltsdgre0rs] {
    position: relative;
}

.sidebar-menu-backdrop[b-ltsdgre0rs] {
    position: fixed;
    inset: 0;
    z-index: 105;
}

.sidebar-topright-menu[b-ltsdgre0rs] {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 160px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 4px;
    z-index: 110;
    box-shadow: var(--shadow-lg);
    animation: sidebarMenuIn-b-ltsdgre0rs 0.12s ease-out;
}

@keyframes sidebarMenuIn-b-ltsdgre0rs {
    from { opacity: 0; transform: translateY(4px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.sidebar-menu-item[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 7px;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
    transition: all 0.12s ease;
    cursor: pointer;
}

.sidebar-menu-item:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.sidebar-menu-danger:hover[b-ltsdgre0rs] {
    color: #ef6b6b;
    background: rgba(239, 68, 68, 0.08);
}

.sidebar-menu-divider[b-ltsdgre0rs] {
    height: 1px;
    background: var(--border);
    margin: 4px 0.5rem;
}

/* Language toggle */
.sidebar-lang-row[b-ltsdgre0rs] {
    cursor: default;
}

.sidebar-lang-row:hover[b-ltsdgre0rs] {
    background: transparent;
}

.lang-toggle[b-ltsdgre0rs] {
    display: flex;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 6px;
    padding: 2px;
    gap: 2px;
    margin-left: auto;
}

.lang-toggle-btn[b-ltsdgre0rs] {
    padding: 3px 10px;
    border: none;
    border-radius: 4px;
    background: transparent;
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s ease;
    line-height: 1.4;
}

.lang-toggle-btn:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
}

.lang-toggle-active[b-ltsdgre0rs] {
    background: rgba(255, 255, 255, 0.12);
    color: var(--text-primary);
}

/* Notification bell wrap */
.sidebar-topright-bell-wrap[b-ltsdgre0rs] {
    position: relative;
}

/* Bell dropdown */
.bell-dropdown[b-ltsdgre0rs] {
    position: absolute;
    top: calc(100% + 8px);
    right: -40px;
    width: 320px;
    max-height: 400px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 110;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: sidebarMenuIn-b-ltsdgre0rs 0.12s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.bell-dropdown-header[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
}

.bell-dropdown-title[b-ltsdgre0rs] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.bell-mark-read[b-ltsdgre0rs] {
    background: none;
    border: none;
    color: var(--accent);
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.bell-mark-read:hover[b-ltsdgre0rs] {
    text-decoration: underline;
}

.bell-dropdown-empty[b-ltsdgre0rs] {
    padding: 2rem 1rem;
    text-align: center;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.bell-dropdown-list[b-ltsdgre0rs] {
    overflow-y: auto;
    max-height: 340px;
    scrollbar-width: thin;
    scrollbar-color: #292c32 transparent;
}

.bell-dropdown-item[b-ltsdgre0rs] {
    display: flex;
    gap: 0.625rem;
    padding: 0.625rem 1rem;
    transition: background-color 0.12s ease;
}

.bell-dropdown-item:hover[b-ltsdgre0rs] {
    background: rgba(255, 255, 255, 0.03);
}

.bell-unread[b-ltsdgre0rs] {
    background: rgba(91, 127, 245, 0.04);
}

.bell-item-icon[b-ltsdgre0rs] {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.bell-icon-success[b-ltsdgre0rs] {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.bell-icon-error[b-ltsdgre0rs] {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.bell-icon-info[b-ltsdgre0rs] {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.bell-item-content[b-ltsdgre0rs] {
    flex: 1;
    min-width: 0;
}

.bell-item-title[b-ltsdgre0rs] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.bell-item-message[b-ltsdgre0rs] {
    font-size: 0.75rem;
    color: var(--text-muted);
    line-height: 1.4;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.bell-item-time[b-ltsdgre0rs] {
    font-size: 0.6875rem;
    color: var(--text-dim);
    margin-top: 2px;
}

/* Bell dropdown footer */
.bell-dropdown-footer[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
    padding: 0.625rem 1rem;
    border-top: 1px solid var(--border);
    color: var(--accent);
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    transition: background-color 0.12s ease;
    cursor: pointer;
}

.bell-dropdown-footer:hover[b-ltsdgre0rs] {
    background: rgba(91, 127, 245, 0.06);
}

.bell-dropdown-footer svg[b-ltsdgre0rs] {
    opacity: 0.7;
}

/* Gift dropdown */
.topright-dot[b-ltsdgre0rs] {
    position: absolute;
    top: 2px;
    right: 2px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    border: 2px solid var(--bg-base);
    animation: badgeIn-b-ltsdgre0rs 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gift-dropdown[b-ltsdgre0rs] {
    position: absolute;
    top: calc(100% + 8px);
    right: -20px;
    width: 260px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 110;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: sidebarMenuIn-b-ltsdgre0rs 0.12s ease-out;
    overflow: hidden;
}

.gift-dropdown-header[b-ltsdgre0rs] {
    padding: 0.75rem 1rem;
    border-bottom: 1px solid var(--border);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.gift-dropdown-item[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.625rem 1rem;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
}

.gift-dropdown-item:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.gift-reward-amount[b-ltsdgre0rs] {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 0.25rem;
    color: #f5843b;
    font-weight: 700;
}

/* Balance glow animations */
.sidebar-topright-balance.balance-glow-up[b-ltsdgre0rs] {
    animation: balanceGlowUp-b-ltsdgre0rs 0.5s ease;
}

.sidebar-topright-balance.balance-glow-down[b-ltsdgre0rs] {
    animation: balanceGlowDown-b-ltsdgre0rs 0.5s ease;
}

@keyframes balanceGlowUp-b-ltsdgre0rs {
    0%   { box-shadow: 0 0 0 0 rgba(245, 132, 59, 0); }
    30%  { box-shadow: 0 0 12px 4px rgba(245, 132, 59, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(245, 132, 59, 0); }
}

@keyframes balanceGlowDown-b-ltsdgre0rs {
    0%   { box-shadow: 0 0 0 0 rgba(239, 107, 107, 0); }
    30%  { box-shadow: 0 0 12px 4px rgba(239, 107, 107, 0.4); }
    100% { box-shadow: 0 0 0 0 rgba(239, 107, 107, 0); }
}

/* Topbar page title */
[b-ltsdgre0rs] .topbar-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
}

[b-ltsdgre0rs] .topbar-count {
    font-size: 0.8125rem;
    color: var(--text-dim);
    font-weight: 500;
    white-space: nowrap;
}

/* === View-as-User toggle === */
.view-toggle-active[b-ltsdgre0rs] {
    color: #f59e0b !important;
    border-color: rgba(245, 158, 11, 0.5) !important;
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.2);
}

.view-toggle-active:hover[b-ltsdgre0rs] {
    background: rgba(245, 158, 11, 0.18) !important;
    border-color: rgba(245, 158, 11, 0.7) !important;
}

.view-toggle-label[b-ltsdgre0rs] {
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.5625rem;
    font-weight: 600;
    color: #f59e0b;
    white-space: nowrap;
    animation: viewLabelIn-b-ltsdgre0rs 0.2s ease-out;
    pointer-events: none;
}

@keyframes viewLabelIn-b-ltsdgre0rs {
    from { opacity: 0; transform: translateX(-4px); }
    to { opacity: 1; transform: translateX(0); }
}

/* View mode dropdown */
.viewmode-dropdown[b-ltsdgre0rs] {
    position: absolute;
    top: calc(100% + 8px);
    right: -20px;
    width: 220px;
    background: var(--bg-surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    z-index: 110;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
    animation: sidebarMenuIn-b-ltsdgre0rs 0.12s ease-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.viewmode-dropdown-header[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    padding: 0.625rem 0.875rem;
    border-bottom: 1px solid var(--border);
}

.viewmode-dropdown-title[b-ltsdgre0rs] {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.viewmode-dropdown-list[b-ltsdgre0rs] {
    padding: 4px;
}

.viewmode-divider[b-ltsdgre0rs] {
    height: 1px;
    background: var(--border);
    margin: 4px 0.5rem;
}

.viewmode-item[b-ltsdgre0rs] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding: 0.5rem 0.625rem;
    border-radius: 7px;
    border: none;
    background: none;
    color: var(--text-secondary);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.12s ease;
    text-align: left;
}

.viewmode-item:hover[b-ltsdgre0rs] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
}

.viewmode-item-active[b-ltsdgre0rs] {
    color: #f59e0b;
    background: rgba(245, 158, 11, 0.08);
}

.viewmode-item-active:hover[b-ltsdgre0rs] {
    background: rgba(245, 158, 11, 0.12);
}

.viewmode-item-icon[b-ltsdgre0rs] {
    flex-shrink: 0;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.viewmode-icon-admin[b-ltsdgre0rs] {
    background: rgba(245, 158, 11, 0.12);
    color: #f59e0b;
}

.viewmode-icon-free[b-ltsdgre0rs] {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-muted);
}

.viewmode-item-credits[b-ltsdgre0rs] {
    margin-left: auto;
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-dim);
    display: flex;
    align-items: center;
    gap: 0.2rem;
}

.viewmode-check[b-ltsdgre0rs] {
    margin-left: auto;
    color: #f59e0b;
    flex-shrink: 0;
}

.orange-icon-xs[b-ltsdgre0rs] {
    width: 11px;
    height: 11px;
}

@media (max-width: 768px) {
    .sidebar[b-ltsdgre0rs] {
        display: none;
    }

    .sidebar-topbar[b-ltsdgre0rs] {
        display: none;
    }
}
/* /Components/Pages/Characters.razor.rz.scp.css */
/* ═══ Loading / Access ═══ */
.char-loading[b-b27p1qlvn4] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
}

.char-no-access[b-b27p1qlvn4] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
	color: #5c6170;
	font-size: 1rem;
}

.char-page[b-b27p1qlvn4] {
	padding: 24px;
}

/* ═══ GRID VIEW ═══ */
.char-grid[b-b27p1qlvn4] {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 1100px) {
	.char-grid[b-b27p1qlvn4] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.char-grid[b-b27p1qlvn4] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
	.char-grid[b-b27p1qlvn4] { grid-template-columns: repeat(2, 1fr); }
}

.char-card[b-b27p1qlvn4] {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #1a1c22;
	border: 1px solid #292c32;
	border-radius: 12px;
	padding: 28px 16px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	min-height: 200px;
	aspect-ratio: 2 / 3;
	font-family: 'Inter', sans-serif;
	color: #b0b4bc;
}

.char-card:hover[b-b27p1qlvn4] {
	border-color: #5b7ff544;
	background: #1e2028;
}

.char-card-create[b-b27p1qlvn4] {
	border-style: dashed;
	border-color: #35383f;
	background: transparent;
}

.char-card-create:hover[b-b27p1qlvn4] {
	border-color: #5b7ff5;
	background: #5b7ff508;
}

.char-card-create-icon[b-b27p1qlvn4] {
	color: #5c6170;
	transition: color 0.2s;
}

.char-card-create:hover .char-card-create-icon[b-b27p1qlvn4] {
	color: #5b7ff5;
}

.char-card-create-label[b-b27p1qlvn4] {
	font-size: 0.85rem;
	color: #5c6170;
	transition: color 0.2s;
}

.char-card-create:hover .char-card-create-label[b-b27p1qlvn4] {
	color: #5b7ff5;
}

.char-card-badge[b-b27p1qlvn4] {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #5b7ff522;
	color: #5b7ff5;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.char-card-icon[b-b27p1qlvn4] {
	color: #5c6170;
}

/* Preview image on character card */
.char-card-has-preview[b-b27p1qlvn4] {
	padding: 0;
	overflow: hidden;
	justify-content: flex-end;
}

.char-card-preview[b-b27p1qlvn4] {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	border-radius: 11px;
}

.char-card-has-preview[b-b27p1qlvn4]::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 11px;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.char-card-has-preview .char-card-name[b-b27p1qlvn4] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 24px 12px 4px;
	margin: 0;
}

.char-card-has-preview .char-card-meta[b-b27p1qlvn4] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 12px 10px;
	margin: 0;
}

.char-card-has-preview .char-card-badge[b-b27p1qlvn4] {
	z-index: 2;
}

/* Active preview button indicator */
[b-b27p1qlvn4] .char-preview-active {
	color: #4ade80 !important;
	background: #1a3025 !important;
}

.char-card-name[b-b27p1qlvn4] {
	font-size: 0.88rem;
	font-weight: 500;
	color: #e0e0e0;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.char-card-meta[b-b27p1qlvn4] {
	font-size: 0.75rem;
	color: #5c6170;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* ═══ EDIT MODE — Character-specific overrides ═══ */

.char-container[b-b27p1qlvn4] {
	padding-bottom: 3rem;
}

/* Reference image previews (inline in premise section) */
.char-ref-previews[b-b27p1qlvn4] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.char-ref-preview-wrap[b-b27p1qlvn4] {
	position: relative;
}

.char-ref-thumb[b-b27p1qlvn4] {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #292c32;
	display: block;
}

.char-ref-remove[b-b27p1qlvn4] {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ff6b6b;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.1s;
}

.char-ref-remove:hover[b-b27p1qlvn4] {
	transform: scale(1.15);
}

/* Reference URL inputs in controls row */
.char-ref-urls[b-b27p1qlvn4] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.char-ref-row[b-b27p1qlvn4] {
	display: flex;
	gap: 6px;
	align-items: center;
}

.char-ref-url-input[b-b27p1qlvn4] {
	flex: 1;
	font-size: 0.8125rem !important;
	padding: 0.4rem 0.625rem !important;
}

.char-add-ref[b-b27p1qlvn4] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px dashed #292c32;
	border-radius: 6px;
	color: #5c6170;
	font-size: 0.75rem;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	padding: 5px 10px;
	transition: all 0.15s;
	align-self: flex-start;
}

.char-add-ref:hover[b-b27p1qlvn4] {
	border-color: #f5843b;
	color: #f5843b;
}

/* Test prompt row */
.char-test-row[b-b27p1qlvn4] {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	flex: 1;
}

.char-test-input[b-b27p1qlvn4] {
	flex: 1;
}

/* Cost badge inside generate button */
.char-cost-badge[b-b27p1qlvn4] {
	background: rgba(255, 255, 255, 0.2);
	padding: 1px 7px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	margin-left: 2px;
}

/* Result row: thumbnail + text in line */
.char-result-row[b-b27p1qlvn4] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.char-result-thumb[b-b27p1qlvn4] {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #292c32;
	flex-shrink: 0;
	cursor: pointer;
	transition: transform 0.15s;
}

.char-result-thumb:hover[b-b27p1qlvn4] {
	transform: scale(1.8);
	z-index: 10;
	position: relative;
}

/* ═══ VARIATIONS ═══ */

/* Variation count badge on grid cards */
.char-variation-badge[b-b27p1qlvn4] {
	position: absolute;
	top: 8px;
	left: 8px;
	background: #f5843b22;
	color: #f5843b;
	font-size: 0.65rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	z-index: 2;
}

/* "Variation of: {name}" label in edit header */
.char-variation-of-label[b-b27p1qlvn4] {
	font-size: 0.8rem;
	color: #f5843b;
	margin-top: 2px;
	font-weight: 500;
}

/* Variations section in edit mode */
.char-variations-section[b-b27p1qlvn4] {
	background: #1a1c22;
	border: 1px solid #292c32;
	border-radius: 12px;
	padding: 16px 20px;
	margin-top: 8px;
}

.char-variations-header[b-b27p1qlvn4] {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

/* Variation cards list */
.char-variations-list[b-b27p1qlvn4] {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

/* Individual variation card */
.char-variation-card[b-b27p1qlvn4] {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #14151a;
	border: 1px solid #292c32;
	border-radius: 8px;
	padding: 8px 14px;
	cursor: pointer;
	transition: all 0.15s;
	font-family: 'Inter', sans-serif;
	color: #b0b4bc;
}

.char-variation-card:hover[b-b27p1qlvn4] {
	border-color: #5b7ff544;
	background: #1e2028;
}

.char-variation-card-thumb[b-b27p1qlvn4] {
	width: 32px;
	height: 32px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #292c32;
	flex-shrink: 0;
}

.char-variation-card-icon[b-b27p1qlvn4] {
	color: #5c6170;
	flex-shrink: 0;
}

.char-variation-card-name[b-b27p1qlvn4] {
	font-size: 0.82rem;
	font-weight: 500;
	white-space: nowrap;
}

/* Locked buttons */
[b-b27p1qlvn4] .whatif-length-btn.locked {
	opacity: 0.35;
	cursor: not-allowed;
}
/* /Components/Pages/Environments.razor.rz.scp.css */
/* ═══ Loading / Access ═══ */
.env-loading[b-qu0grknx4l] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
}

.env-no-access[b-qu0grknx4l] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
	color: #5c6170;
	font-size: 1rem;
}

.env-page[b-qu0grknx4l] {
	padding: 24px;
}

/* ═══ GRID VIEW ═══ */
.env-grid[b-qu0grknx4l] {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 1100px) {
	.env-grid[b-qu0grknx4l] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.env-grid[b-qu0grknx4l] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
	.env-grid[b-qu0grknx4l] { grid-template-columns: repeat(2, 1fr); }
}

.env-card[b-qu0grknx4l] {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #1a1c22;
	border: 1px solid #292c32;
	border-radius: 12px;
	padding: 28px 16px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	min-height: 200px;
	aspect-ratio: 2 / 3;
	font-family: 'Inter', sans-serif;
	color: #b0b4bc;
}

.env-card:hover[b-qu0grknx4l] {
	border-color: #5b7ff544;
	background: #1e2028;
}

.env-card-create[b-qu0grknx4l] {
	border-style: dashed;
	border-color: #35383f;
	background: transparent;
}

.env-card-create:hover[b-qu0grknx4l] {
	border-color: #5b7ff5;
	background: #5b7ff508;
}

.env-card-create-icon[b-qu0grknx4l] {
	color: #5c6170;
	transition: color 0.2s;
}

.env-card-create:hover .env-card-create-icon[b-qu0grknx4l] {
	color: #5b7ff5;
}

.env-card-create-label[b-qu0grknx4l] {
	font-size: 0.85rem;
	color: #5c6170;
	transition: color 0.2s;
}

.env-card-create:hover .env-card-create-label[b-qu0grknx4l] {
	color: #5b7ff5;
}

.env-card-badge[b-qu0grknx4l] {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #5b7ff522;
	color: #5b7ff5;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.env-card-icon[b-qu0grknx4l] {
	color: #5c6170;
}

/* Preview image on environment card */
.env-card-has-preview[b-qu0grknx4l] {
	padding: 0;
	overflow: hidden;
	justify-content: flex-end;
}

.env-card-preview[b-qu0grknx4l] {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	border-radius: 11px;
}

.env-card-has-preview[b-qu0grknx4l]::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 11px;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.env-card-has-preview .env-card-name[b-qu0grknx4l] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 24px 12px 4px;
	margin: 0;
}

.env-card-has-preview .env-card-meta[b-qu0grknx4l] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 12px 10px;
	margin: 0;
}

.env-card-has-preview .env-card-badge[b-qu0grknx4l] {
	z-index: 2;
}

/* Active preview button indicator */
[b-qu0grknx4l] .env-preview-active {
	color: #4ade80 !important;
	background: #1a3025 !important;
}

.env-card-name[b-qu0grknx4l] {
	font-size: 0.88rem;
	font-weight: 500;
	color: #e0e0e0;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.env-card-meta[b-qu0grknx4l] {
	font-size: 0.75rem;
	color: #5c6170;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

/* ═══ EDIT MODE — Environment-specific overrides ═══ */

.env-container[b-qu0grknx4l] {
	padding-bottom: 3rem;
}

/* Reference image previews (inline in premise section) */
.env-ref-previews[b-qu0grknx4l] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.env-ref-preview-wrap[b-qu0grknx4l] {
	position: relative;
}

.env-ref-thumb[b-qu0grknx4l] {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #292c32;
	display: block;
}

.env-ref-remove[b-qu0grknx4l] {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ff6b6b;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.1s;
}

.env-ref-remove:hover[b-qu0grknx4l] {
	transform: scale(1.15);
}

/* Reference URL inputs in controls row */
.env-ref-urls[b-qu0grknx4l] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.env-ref-row[b-qu0grknx4l] {
	display: flex;
	gap: 6px;
	align-items: center;
}

.env-ref-url-input[b-qu0grknx4l] {
	flex: 1;
	font-size: 0.8125rem !important;
	padding: 0.4rem 0.625rem !important;
}

.env-add-ref[b-qu0grknx4l] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px dashed #292c32;
	border-radius: 6px;
	color: #5c6170;
	font-size: 0.75rem;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	padding: 5px 10px;
	transition: all 0.15s;
	align-self: flex-start;
}

.env-add-ref:hover[b-qu0grknx4l] {
	border-color: #f5843b;
	color: #f5843b;
}

/* Test prompt row */
.env-test-row[b-qu0grknx4l] {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	flex: 1;
}

.env-test-input[b-qu0grknx4l] {
	flex: 1;
}

/* Cost badge inside generate button */
.env-cost-badge[b-qu0grknx4l] {
	background: rgba(255, 255, 255, 0.2);
	padding: 1px 7px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	margin-left: 2px;
}

/* Result row: thumbnail + text in line */
.env-result-row[b-qu0grknx4l] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.env-result-thumb[b-qu0grknx4l] {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #292c32;
	flex-shrink: 0;
	cursor: pointer;
	transition: transform 0.15s;
}

.env-result-thumb:hover[b-qu0grknx4l] {
	transform: scale(1.8);
	z-index: 10;
	position: relative;
}

/* Locked buttons */
[b-qu0grknx4l] .whatif-length-btn.locked {
	opacity: 0.35;
	cursor: not-allowed;
}
/* /Components/Pages/Maintenance.razor.rz.scp.css */
.maintenance-container[b-nwi10ryycs] {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #0d0e12;
    padding: 2rem;
}

.maintenance-card[b-nwi10ryycs] {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 440px;
    width: 100%;
    padding: 3rem 2.5rem;
    background: #1a1c22;
    border: 1px solid #292c32;
    border-radius: 16px;
}

.maintenance-logo[b-nwi10ryycs] {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 1.5rem;
    border-radius: 16px;
}

.maintenance-heading[b-nwi10ryycs] {
    font-size: 1.5rem;
    font-weight: 700;
    color: #e8eaf0;
    margin: 0 0 1rem;
}

.maintenance-message[b-nwi10ryycs] {
    font-size: 0.9375rem;
    color: #a0a4b0;
    line-height: 1.6;
    margin: 0 0 2rem;
}

.maintenance-discord-btn[b-nwi10ryycs] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: #5865F2;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.9375rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
    cursor: pointer;
}

.maintenance-discord-btn:hover[b-nwi10ryycs] {
    background: #4752c4;
    transform: translateY(-1px);
}

.maintenance-login-link[b-nwi10ryycs] {
    display: inline-block;
    margin-top: 1.25rem;
    font-size: 0.8125rem;
    color: #5c6170;
    text-decoration: none;
    transition: color 0.15s ease;
}

.maintenance-login-link:hover[b-nwi10ryycs] {
    color: #f5843b;
}
/* /Components/Pages/Notifications.razor.rz.scp.css */
.notif-page-header[b-35s2v0lsqc] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}

.notif-page-header h2[b-35s2v0lsqc] {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
    margin: 0;
}

.notif-page-actions[b-35s2v0lsqc] {
    display: flex;
    gap: 0.5rem;
}

.notif-action-btn[b-35s2v0lsqc] {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: 8px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    color: var(--text-secondary);
    font-size: 0.8125rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.notif-action-btn:hover[b-35s2v0lsqc] {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.notif-action-danger:hover[b-35s2v0lsqc] {
    color: #ef6b6b;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}

.notif-empty[b-35s2v0lsqc] {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 4rem 2rem;
    color: var(--text-muted);
    text-align: center;
}

.notif-empty svg[b-35s2v0lsqc] {
    opacity: 0.3;
}

.notif-empty p[b-35s2v0lsqc] {
    margin: 0;
    font-size: 0.9375rem;
}

.notif-list[b-35s2v0lsqc] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.notif-card[b-35s2v0lsqc] {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    padding: 0.875rem 1rem;
    border-radius: 10px;
    border: 1px solid var(--border);
    background: var(--bg-surface);
    transition: background-color 0.12s ease;
}

.notif-card:hover[b-35s2v0lsqc] {
    background: rgba(255, 255, 255, 0.03);
}

.notif-unread[b-35s2v0lsqc] {
    border-left: 3px solid var(--accent);
    background: rgba(91, 127, 245, 0.04);
}

.notif-icon[b-35s2v0lsqc] {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 2px;
}

.notif-icon-success[b-35s2v0lsqc] {
    background: rgba(34, 197, 94, 0.12);
    color: #22c55e;
}

.notif-icon-error[b-35s2v0lsqc] {
    background: rgba(239, 68, 68, 0.12);
    color: #ef4444;
}

.notif-icon-info[b-35s2v0lsqc] {
    background: rgba(59, 130, 246, 0.12);
    color: #3b82f6;
}

.notif-content[b-35s2v0lsqc] {
    flex: 1;
    min-width: 0;
}

.notif-title[b-35s2v0lsqc] {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
}

.notif-message[b-35s2v0lsqc] {
    font-size: 0.8125rem;
    color: var(--text-muted);
    line-height: 1.4;
    margin-top: 2px;
}

.notif-time[b-35s2v0lsqc] {
    font-size: 0.75rem;
    color: var(--text-dim);
    margin-top: 4px;
}

.notif-actions[b-35s2v0lsqc] {
    display: flex;
    gap: 0.375rem;
    flex-shrink: 0;
    margin-top: 2px;
}

.notif-btn[b-35s2v0lsqc] {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid var(--border);
    background: none;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.12s ease;
    padding: 0;
}

.notif-btn-read:hover[b-35s2v0lsqc] {
    color: var(--accent);
    border-color: rgba(91, 127, 245, 0.3);
    background: rgba(91, 127, 245, 0.08);
}

.notif-btn-delete:hover[b-35s2v0lsqc] {
    color: #ef6b6b;
    border-color: rgba(239, 68, 68, 0.3);
    background: rgba(239, 68, 68, 0.08);
}
/* /Components/Pages/StyleCreator.razor.rz.scp.css */
/* ═══ Loading / Access ═══ */
.sc-loading[b-0rdqzz0cej] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
}

.sc-no-access[b-0rdqzz0cej] {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 300px;
	color: #5c6170;
	font-size: 1rem;
}

.sc-page[b-0rdqzz0cej] {
	padding: 24px;
}

/* ═══ GRID VIEW ═══ */
.sc-grid[b-0rdqzz0cej] {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 16px;
}

@media (max-width: 1100px) {
	.sc-grid[b-0rdqzz0cej] { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 800px) {
	.sc-grid[b-0rdqzz0cej] { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 550px) {
	.sc-grid[b-0rdqzz0cej] { grid-template-columns: repeat(2, 1fr); }
}

.sc-card[b-0rdqzz0cej] {
	position: relative;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background: #1a1c22;
	border: 1px solid #292c32;
	border-radius: 12px;
	padding: 28px 16px;
	cursor: pointer;
	transition: all 0.2s;
	text-align: center;
	min-height: 200px;
	aspect-ratio: 2 / 3;
	font-family: 'Inter', sans-serif;
	color: #b0b4bc;
}

.sc-card:hover[b-0rdqzz0cej] {
	border-color: #5b7ff544;
	background: #1e2028;
}

.sc-card-create[b-0rdqzz0cej] {
	border-style: dashed;
	border-color: #35383f;
	background: transparent;
}

.sc-card-create:hover[b-0rdqzz0cej] {
	border-color: #5b7ff5;
	background: #5b7ff508;
}

.sc-card-create-icon[b-0rdqzz0cej] {
	color: #5c6170;
	transition: color 0.2s;
}

.sc-card-create:hover .sc-card-create-icon[b-0rdqzz0cej] {
	color: #5b7ff5;
}

.sc-card-create-label[b-0rdqzz0cej] {
	font-size: 0.85rem;
	color: #5c6170;
	transition: color 0.2s;
}

.sc-card-create:hover .sc-card-create-label[b-0rdqzz0cej] {
	color: #5b7ff5;
}

.sc-card-badge[b-0rdqzz0cej] {
	position: absolute;
	top: 8px;
	right: 8px;
	background: #5b7ff522;
	color: #5b7ff5;
	font-size: 0.68rem;
	font-weight: 600;
	padding: 2px 7px;
	border-radius: 4px;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.sc-card-badge-default[b-0rdqzz0cej] {
	background: #f5c54222;
	color: #f5c542;
}

.sc-card-icon[b-0rdqzz0cej] {
	color: #5c6170;
}

/* Preview image on style card */
.sc-card-has-preview[b-0rdqzz0cej] {
	padding: 0;
	overflow: hidden;
	justify-content: flex-end;
}

.sc-card-preview[b-0rdqzz0cej] {
	width: 100%;
	height: 100%;
	object-fit: cover;
	position: absolute;
	inset: 0;
	border-radius: 11px;
}

.sc-card-has-preview[b-0rdqzz0cej]::after {
	content: '';
	position: absolute;
	inset: 0;
	border-radius: 11px;
	background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 70%);
	pointer-events: none;
	z-index: 1;
}

.sc-card-has-preview .sc-card-name[b-0rdqzz0cej] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 24px 12px 4px;
	margin: 0;
}

.sc-card-has-preview .sc-card-meta[b-0rdqzz0cej] {
	position: relative;
	z-index: 2;
	width: 100%;
	padding: 0 12px 10px;
	margin: 0;
}

.sc-card-has-preview .sc-card-badge[b-0rdqzz0cej] {
	z-index: 2;
}

/* Active preview button indicator */
[b-0rdqzz0cej] .sc-preview-active {
	color: #4ade80 !important;
	background: #1a3025 !important;
}

.sc-card-name[b-0rdqzz0cej] {
	font-size: 0.88rem;
	font-weight: 500;
	color: #e0e0e0;
	line-height: 1.3;
	overflow: hidden;
	text-overflow: ellipsis;
	white-space: nowrap;
	max-width: 100%;
}

.sc-card-meta[b-0rdqzz0cej] {
	font-size: 0.75rem;
	color: #5c6170;
}

/* ═══ EDIT MODE — Style-specific overrides ═══ */

.sc-container[b-0rdqzz0cej] {
	padding-bottom: 3rem;
}

/* Reference image previews (inline in premise section) */
.sc-ref-previews[b-0rdqzz0cej] {
	display: flex;
	gap: 8px;
	flex-wrap: wrap;
	margin-top: 0.5rem;
}

.sc-ref-preview-wrap[b-0rdqzz0cej] {
	position: relative;
}

.sc-ref-thumb[b-0rdqzz0cej] {
	width: 64px;
	height: 64px;
	border-radius: 8px;
	object-fit: cover;
	border: 1px solid #292c32;
	display: block;
}

.sc-ref-remove[b-0rdqzz0cej] {
	position: absolute;
	top: -4px;
	right: -4px;
	width: 18px;
	height: 18px;
	border-radius: 50%;
	background: #ff6b6b;
	color: #fff;
	border: none;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	transition: transform 0.1s;
}

.sc-ref-remove:hover[b-0rdqzz0cej] {
	transform: scale(1.15);
}

/* Reference URL inputs in controls row */
.sc-ref-urls[b-0rdqzz0cej] {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.sc-ref-row[b-0rdqzz0cej] {
	display: flex;
	gap: 6px;
	align-items: center;
}

.sc-ref-url-input[b-0rdqzz0cej] {
	flex: 1;
	font-size: 0.8125rem !important;
	padding: 0.4rem 0.625rem !important;
}

.sc-add-ref[b-0rdqzz0cej] {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	background: none;
	border: 1px dashed #292c32;
	border-radius: 6px;
	color: #5c6170;
	font-size: 0.75rem;
	font-family: 'Inter', sans-serif;
	cursor: pointer;
	padding: 5px 10px;
	transition: all 0.15s;
	align-self: flex-start;
}

.sc-add-ref:hover[b-0rdqzz0cej] {
	border-color: #f5843b;
	color: #f5843b;
}

/* Test prompt row */
.sc-test-row[b-0rdqzz0cej] {
	display: flex;
	gap: 0.625rem;
	align-items: center;
	flex: 1;
}

.sc-test-input[b-0rdqzz0cej] {
	flex: 1;
}

/* Cost badge inside generate button */
.sc-cost-badge[b-0rdqzz0cej] {
	background: rgba(255, 255, 255, 0.2);
	padding: 1px 7px;
	border-radius: 4px;
	font-size: 0.72rem;
	font-weight: 600;
	margin-left: 2px;
}

/* Result row: thumbnail + text in line */
.sc-result-row[b-0rdqzz0cej] {
	display: flex;
	align-items: center;
	gap: 12px;
	flex: 1;
	min-width: 0;
}

.sc-result-thumb[b-0rdqzz0cej] {
	width: 48px;
	height: 48px;
	border-radius: 6px;
	object-fit: cover;
	border: 1px solid #292c32;
	flex-shrink: 0;
	cursor: pointer;
	transition: transform 0.15s;
}

.sc-result-thumb:hover[b-0rdqzz0cej] {
	transform: scale(1.8);
	z-index: 10;
	position: relative;
}

/* Locked buttons */
[b-0rdqzz0cej] .whatif-length-btn.locked {
	opacity: 0.35;
	cursor: not-allowed;
}
/* /Components/Pages/UserDetail.razor.rz.scp.css */
/* === User Header === */
.ud-header-card[b-6247ro21g1] {
    background: #1a1c22;
    border: 1px solid #292c32;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ud-header-row[b-6247ro21g1] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
}

.ud-avatar-icon[b-6247ro21g1] {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(245, 160, 106, 0.15);
    flex-shrink: 0;
}

.ud-user-info[b-6247ro21g1] {
    flex: 1;
}

.ud-username-row[b-6247ro21g1] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ud-username[b-6247ro21g1] {
    margin: 0;
    font-size: 1.125rem;
    font-weight: 700;
    color: #e0e2e8;
}

.ud-discord-id[b-6247ro21g1] {
    font-size: 0.8125rem;
    color: #5c6170;
    font-family: monospace;
}

.ud-balance-block[b-6247ro21g1] {
    text-align: right;
}

.ud-balance-label[b-6247ro21g1] {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #7a7f8e;
}

.ud-balance-value[b-6247ro21g1] {
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.ud-balance-value.positive[b-6247ro21g1] { color: #4ade80; }
.ud-balance-value.negative[b-6247ro21g1] { color: #f87171; }

/* === Badge === */
.ud-badge[b-6247ro21g1] {
    display: inline-flex;
    align-items: center;
    padding: 0.125rem 0.5rem;
    border-radius: 6px;
    font-size: 0.6875rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.ud-badge-active[b-6247ro21g1] {
    background: rgba(74, 222, 128, 0.12);
    color: #4ade80;
}

.ud-badge-banned[b-6247ro21g1] {
    background: rgba(248, 113, 113, 0.12);
    color: #f87171;
}

/* === Stat Cards === */
.ud-stats-grid[b-6247ro21g1] {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 1rem;
    margin-bottom: 1.25rem;
}

.ud-stat-card[b-6247ro21g1] {
    background: #13141a;
    border: 1px solid #292c32;
    border-radius: 10px;
    padding: 1rem 1.125rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.ud-stat-label[b-6247ro21g1] {
    font-size: 0.6875rem;
    font-weight: 500;
    color: #7a7f8e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ud-stat-value[b-6247ro21g1] {
    font-size: 1.125rem;
    font-weight: 700;
    color: #e0e2e8;
}

/* === Info Row === */
.ud-info-row[b-6247ro21g1] {
    display: flex;
    gap: 1.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
    padding: 1rem;
    background: #13141a;
    border: 1px solid #292c32;
    border-radius: 10px;
}

.ud-info-item-label[b-6247ro21g1] {
    font-size: 0.6875rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: #7a7f8e;
}

.ud-info-item-value[b-6247ro21g1] {
    font-size: 0.875rem;
    color: #c0c4ce;
}

/* === Credit Controls === */
.ud-controls-row[b-6247ro21g1] {
    display: flex;
    gap: 0.5rem;
    align-items: flex-end;
    flex-wrap: wrap;
}

.ud-controls-input-group[b-6247ro21g1] {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
    width: 120px;
}

.ud-controls-label[b-6247ro21g1] {
    font-size: 0.6875rem;
    font-weight: 600;
    color: #7a7f8e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ud-controls-input[b-6247ro21g1] {
    background: #13141a;
    border: 1px solid #292c32;
    border-radius: 8px;
    padding: 0.5rem 0.625rem;
    color: #e0e2e8;
    font-size: 0.8125rem;
    font-family: inherit;
    outline: none;
    transition: border-color 0.15s;
}

.ud-controls-input:focus[b-6247ro21g1] {
    border-color: #5b7ff5;
}

.ud-ban-spacer[b-6247ro21g1] {
    margin-left: auto;
}

.ud-btn-ban[b-6247ro21g1] {
    height: 36px;
    background: rgba(248, 113, 113, 0.15);
    color: #f87171;
    border: 1px solid rgba(248, 113, 113, 0.3);
}

.ud-btn-unban[b-6247ro21g1] {
    height: 36px;
    background: rgba(74, 222, 128, 0.15);
    color: #4ade80;
    border: 1px solid rgba(74, 222, 128, 0.3);
}

/* === Generation History === */
.ud-section-card[b-6247ro21g1] {
    background: #1a1c22;
    border: 1px solid #292c32;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.ud-section-header[b-6247ro21g1] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.25rem;
}

.ud-section-title[b-6247ro21g1] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.ud-section-title h3[b-6247ro21g1] {
    margin: 0;
    font-size: 1rem;
    font-weight: 600;
    color: #e0e2e8;
}

.ud-section-count[b-6247ro21g1] {
    font-size: 0.8125rem;
    color: #7a7f8e;
}

/* === Table === */
.ud-table-wrap[b-6247ro21g1] {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.ud-table[b-6247ro21g1] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.8125rem;
}

.ud-table th[b-6247ro21g1] {
    text-align: left;
    padding: 0.625rem 0.75rem;
    font-size: 0.6875rem;
    font-weight: 600;
    color: #7a7f8e;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 1px solid #292c32;
    white-space: nowrap;
}

.ud-table td[b-6247ro21g1] {
    padding: 0.625rem 0.75rem;
    color: #c0c4ce;
    border-bottom: 1px solid rgba(41, 44, 50, 0.5);
}

.ud-table tbody tr:hover[b-6247ro21g1] {
    background: rgba(255, 255, 255, 0.02);
}

.ud-time-cell[b-6247ro21g1] {
    color: #5c6170;
    white-space: nowrap;
}

.ud-prompt-cell[b-6247ro21g1] {
    max-width: 250px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.ud-error-row td[b-6247ro21g1] {
    padding: 0.25rem 0.75rem 0.5rem 2.5rem;
    font-size: 0.75rem;
    color: #f87171;
    border-bottom: 1px solid rgba(41, 44, 50, 0.5);
}

.ud-muted[b-6247ro21g1] {
    color: #5c6170;
}

.ud-refund-text[b-6247ro21g1] {
    font-size: 0.75rem;
    color: #4ade80;
}

.ud-empty-state[b-6247ro21g1] {
    text-align: center;
    padding: 1.5rem;
    color: #5c6170;
    font-size: 0.875rem;
}

/* === Responsive === */
@media (max-width: 640px) {
    .ud-stats-grid[b-6247ro21g1] {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }

    .ud-info-row[b-6247ro21g1] {
        flex-direction: column;
        gap: 0.75rem;
    }

    .ud-controls-row[b-6247ro21g1] {
        flex-direction: column;
        align-items: stretch;
    }

    .ud-controls-input-group[b-6247ro21g1] {
        width: auto;
    }

    .ud-ban-spacer[b-6247ro21g1] {
        margin-left: 0;
    }

    .ud-header-row[b-6247ro21g1] {
        flex-direction: column;
        text-align: center;
    }

    .ud-balance-block[b-6247ro21g1] {
        text-align: center;
    }
}
/* /Components/UI/BalanceModal.razor.rz.scp.css */
.balance-modal-backdrop[b-z1k7g8375s] {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: balanceModalFadeIn-b-z1k7g8375s 0.15s ease-out;
}

@keyframes balanceModalFadeIn-b-z1k7g8375s {
    from { opacity: 0; }
    to { opacity: 1; }
}

.balance-modal[b-z1k7g8375s] {
    position: relative;
    width: 400px;
    max-width: 95vw;
    background: #1a1c22;
    border: 1px solid #292c32;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    animation: balanceModalSlideIn-b-z1k7g8375s 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes balanceModalSlideIn-b-z1k7g8375s {
    from { opacity: 0; transform: scale(0.96) translateY(8px); }
    to { opacity: 1; transform: scale(1) translateY(0); }
}

/* Header */
.balance-modal-header[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1.125rem 1.25rem;
    border-bottom: 1px solid #292c32;
}

.balance-modal-header-left[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.balance-modal-title[b-z1k7g8375s] {
    font-size: 1rem;
    font-weight: 700;
    color: #e0e2e8;
}

.balance-modal-amount[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 1rem;
    font-weight: 700;
    color: #f5843b;
}

.balance-modal-close[b-z1k7g8375s] {
    background: none;
    border: none;
    color: #5c6170;
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    border-radius: 6px;
    transition: color 0.15s, background 0.15s;
}

.balance-modal-close:hover[b-z1k7g8375s] {
    color: #e0e2e8;
    background: rgba(255, 255, 255, 0.06);
}

/* Body */
.balance-modal-body[b-z1k7g8375s] {
    padding: 1.125rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.875rem;
}

/* Boosty link */
.balance-modal-boosty[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 0.875rem;
    border-radius: 10px;
    background: rgba(245, 132, 59, 0.06);
    border: 1px solid rgba(245, 132, 59, 0.18);
    color: #f5843b;
    text-decoration: none;
    transition: background 0.15s, border-color 0.15s;
}

.balance-modal-boosty:hover[b-z1k7g8375s] {
    background: rgba(245, 132, 59, 0.12);
    border-color: rgba(245, 132, 59, 0.35);
}

.balance-modal-boosty svg:first-child[b-z1k7g8375s] {
    flex-shrink: 0;
}

.balance-modal-boosty-text[b-z1k7g8375s] {
    display: flex;
    flex-direction: column;
    gap: 0.1rem;
    flex: 1;
    min-width: 0;
}

.balance-modal-boosty-title[b-z1k7g8375s] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #e0e2e8;
}

.balance-modal-boosty-sub[b-z1k7g8375s] {
    font-size: 0.75rem;
    color: #8b8f9a;
}

.balance-modal-boosty-arrow[b-z1k7g8375s] {
    flex-shrink: 0;
    color: #5c6170;
    transition: color 0.15s;
}

.balance-modal-boosty:hover .balance-modal-boosty-arrow[b-z1k7g8375s] {
    color: #f5843b;
}

/* Section label */
.balance-modal-section[b-z1k7g8375s] {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.balance-modal-section-label[b-z1k7g8375s] {
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #5c6170;
}

/* Converter */
.balance-modal-converter[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.625rem;
}

.balance-modal-converter-input-wrap[b-z1k7g8375s] {
    flex: 1;
    display: flex;
    align-items: center;
    background: #14151a;
    border: 1px solid #292c32;
    border-radius: 8px;
    padding: 0 0.75rem;
    transition: border-color 0.15s;
}

.balance-modal-converter-input-wrap:focus-within[b-z1k7g8375s] {
    border-color: #5b7ff5;
}

.balance-modal-converter-input[b-z1k7g8375s] {
    flex: 1;
    background: none;
    border: none;
    color: #e0e2e8;
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    padding: 0.5rem 0;
    outline: none;
    min-width: 0;
    -moz-appearance: textfield;
}

.balance-modal-converter-input[b-z1k7g8375s]::-webkit-outer-spin-button,
.balance-modal-converter-input[b-z1k7g8375s]::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.balance-modal-converter-input[b-z1k7g8375s]::placeholder {
    color: #3a3d44;
}

.balance-modal-converter-currency[b-z1k7g8375s] {
    font-size: 0.875rem;
    font-weight: 600;
    color: #5c6170;
    flex-shrink: 0;
}

.balance-modal-converter-arrow[b-z1k7g8375s] {
    flex-shrink: 0;
}

.balance-modal-converter-result[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.5rem 0.75rem;
    background: #14151a;
    border: 1px solid #292c32;
    border-radius: 8px;
    min-width: 80px;
    justify-content: center;
    font-size: 1rem;
    font-weight: 700;
    color: #f5843b;
    font-variant-numeric: tabular-nums;
}

.balance-modal-converter-rate[b-z1k7g8375s] {
    font-size: 0.6875rem;
    color: #3a3d44;
    text-align: right;
}

/* Discord button */
.balance-modal-discord-btn[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem;
    border-radius: 8px;
    background: rgba(88, 101, 242, 0.1);
    border: 1px solid rgba(88, 101, 242, 0.25);
    color: #7289da;
    font-size: 0.8125rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
}

.balance-modal-discord-btn:hover[b-z1k7g8375s] {
    background: rgba(88, 101, 242, 0.18);
    border-color: rgba(88, 101, 242, 0.45);
}

/* Divider */
.balance-modal-divider[b-z1k7g8375s] {
    height: 1px;
    background: #292c32;
}

/* Promo */
.balance-modal-promo-form[b-z1k7g8375s] {
    display: flex;
    gap: 0.5rem;
}

.balance-modal-promo-input[b-z1k7g8375s] {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    border: 1px solid #292c32;
    background: #14151a;
    color: #e0e2e8;
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 500;
    letter-spacing: 0.03em;
    text-transform: uppercase;
    outline: none;
    transition: border-color 0.15s;
}

.balance-modal-promo-input[b-z1k7g8375s]::placeholder {
    text-transform: none;
    color: #5c6170;
    letter-spacing: 0;
}

.balance-modal-promo-input:focus[b-z1k7g8375s] {
    border-color: #5b7ff5;
}

.balance-modal-promo-input:disabled[b-z1k7g8375s] {
    opacity: 0.5;
}

.balance-modal-promo-btn[b-z1k7g8375s] {
    padding: 0.5rem 1rem;
    border-radius: 8px;
    border: none;
    background: #5b7ff5;
    color: #fff;
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.15s;
    white-space: nowrap;
    flex-shrink: 0;
}

.balance-modal-promo-btn:hover:not(:disabled)[b-z1k7g8375s] {
    background: #4a6ee0;
}

.balance-modal-promo-btn:disabled[b-z1k7g8375s] {
    opacity: 0.5;
    cursor: not-allowed;
}

.balance-modal-promo-message[b-z1k7g8375s] {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.8125rem;
    font-weight: 600;
    animation: promoMsgIn-b-z1k7g8375s 0.2s ease-out;
}

@keyframes promoMsgIn-b-z1k7g8375s {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.promo-success[b-z1k7g8375s] {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.25);
    color: #4ade80;
}

.promo-error[b-z1k7g8375s] {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.25);
    color: #f87171;
}

.balance-modal-promo-login[b-z1k7g8375s] {
    text-align: center;
    padding: 1rem 0;
    color: #5c6170;
    font-size: 0.8125rem;
}

/* Shared */
[b-z1k7g8375s] .orange-icon {
    width: 18px;
    height: 18px;
}

/* === Mobile === */
@media (max-width: 640px) {
    .balance-modal[b-z1k7g8375s] {
        width: 100vw;
        max-width: 100vw;
        border-radius: 0;
        border: none;
        max-height: 100dvh;
        overflow-y: auto;
    }

    .balance-modal-body[b-z1k7g8375s] {
        padding: 1rem;
    }

    .balance-modal-header[b-z1k7g8375s] {
        padding: 1rem;
    }
}
