/* /Components/Layout/MainLayout.razor.rz.scp.css */
.admin-shell[b-zpakkllooq] {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    background: transparent;
    color: var(--text-primary);
    font-family: var(--font-sans);
}

/* —— Header: frosted glass bar, Vercel / Linear style —— */
.top-nav[b-zpakkllooq] {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--nav-glass);
    backdrop-filter: saturate(180%) blur(14px);
    -webkit-backdrop-filter: saturate(180%) blur(14px);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 1px 2px rgba(30, 41, 59, 0.03), 0 8px 24px -16px rgba(30, 41, 59, 0.12);
}

.top-nav-inner[b-zpakkllooq] {
    max-width: var(--content-max, 1280px);
    margin: 0 auto;
    padding: 0 1.5rem;
    height: var(--header-h, 64px);
    display: flex;
    align-items: center;
    gap: 2rem;
}

.brand[b-zpakkllooq] {
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    font-family: var(--font-display);
    font-weight: 700;
    font-size: 1.15rem;
    letter-spacing: -0.02em;
    color: var(--text-primary);
    text-decoration: none;
    white-space: nowrap;
}

.brand:hover[b-zpakkllooq] {
    text-decoration: none;
}

.brand-mark[b-zpakkllooq] {
    display: inline-grid;
    place-items: center;
    width: 2rem;
    height: 2rem;
    border-radius: 9px;
    background: linear-gradient(135deg, #046bd2 0%, #6d4ae8 60%, #a855f7 100%);
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
    box-shadow: 0 4px 12px -2px rgba(79, 70, 229, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform var(--dur-fast, 0.15s) var(--ease, ease);
}

.brand:hover .brand-mark[b-zpakkllooq] {
    transform: rotate(-6deg) scale(1.05);
}

.brand-text[b-zpakkllooq] {
    background: linear-gradient(90deg, var(--accent-nav), var(--accent));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Pill navigation; NavLink renders its own <a>, so the scoped styles reach it through ::deep. */
.top-nav-links[b-zpakkllooq] {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    flex: 1;
    padding: 0.25rem;
}

.top-nav-links[b-zpakkllooq]  .top-link,
.top-link[b-zpakkllooq] {
    appearance: none;
    border: none;
    background: transparent;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 500;
    color: var(--text-muted);
    text-decoration: none;
    padding: 0.5rem 0.95rem;
    border-radius: 999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    line-height: 1.2;
    white-space: nowrap;
    transition: color var(--dur-fast, 0.15s) var(--ease, ease), background var(--dur-fast, 0.15s) var(--ease, ease), box-shadow var(--dur-fast, 0.15s) var(--ease, ease);
}

.top-nav-links[b-zpakkllooq]  .top-link:hover,
.top-link:hover[b-zpakkllooq] {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.05);
    text-decoration: none;
}

.top-nav-links[b-zpakkllooq]  a.top-link.active {
    color: var(--accent);
    background: var(--accent-soft);
    font-weight: 600;
    box-shadow: inset 0 0 0 1px rgba(4, 107, 210, 0.15);
}

.mega[b-zpakkllooq] {
    position: static;
}

.mega-chevron[b-zpakkllooq] {
    width: 0.38rem;
    height: 0.38rem;
    border-right: 1.5px solid currentColor;
    border-bottom: 1.5px solid currentColor;
    transform: rotate(45deg) translateY(-1px);
    opacity: 0.65;
    transition: transform var(--dur-fast, 0.15s) var(--ease, ease);
}

.mega.is-open .mega-chevron[b-zpakkllooq],
.mega:hover .mega-chevron[b-zpakkllooq] {
    transform: rotate(225deg) translateY(-1px);
}

.mega.is-open .mega-trigger[b-zpakkllooq],
.mega:hover .mega-trigger[b-zpakkllooq] {
    color: var(--text-primary);
    background: rgba(15, 23, 42, 0.05);
}

/* Dropdown: floating card under the header */
.mega-panel[b-zpakkllooq] {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    width: min(calc(100% - 3rem), 980px);
    margin: 0;
    padding: 0;
    background: var(--bg-primary);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 16px;
    box-shadow: 0 24px 48px -12px rgba(30, 41, 59, 0.22), 0 4px 12px rgba(30, 41, 59, 0.06);
    z-index: 110;
    animation: mega-fade-b-zpakkllooq var(--dur, 0.25s) var(--ease, ease) both;
}

/* Invisible bridge so the hover does not drop in the 8px gap. */
.mega-panel[b-zpakkllooq]::before {
    content: "";
    position: absolute;
    inset: -10px 0 auto 0;
    height: 10px;
}

@keyframes mega-fade-b-zpakkllooq {
    from {
        opacity: 0;
        transform: translate(-50%, -6px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.mega.is-open .mega-panel[b-zpakkllooq],
.mega:hover .mega-panel[b-zpakkllooq],
.mega:focus-within .mega-panel[b-zpakkllooq] {
    display: block;
}

.mega-panel-inner[b-zpakkllooq] {
    padding: 1.25rem;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem 1.25rem;
}

.mega-col[b-zpakkllooq] {
    min-width: 0;
}

.mega-col-title[b-zpakkllooq] {
    margin: 0 0 0.5rem;
    padding: 0 0.75rem;
    font-size: 0.72rem;
    font-weight: 600;
    line-height: 1.3;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.mega-col-links[b-zpakkllooq] {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
}

.mega-col-links[b-zpakkllooq]  .mega-item {
    display: block;
    padding: 0.6rem 0.75rem;
    margin: 0;
    border-radius: 10px;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    font-size: 0.92rem;
    line-height: 1.35;
    transition: background var(--dur-fast, 0.15s) var(--ease, ease), color var(--dur-fast, 0.15s) var(--ease, ease);
}

.mega-col-links[b-zpakkllooq]  .mega-item:hover {
    background: var(--bg-secondary);
    text-decoration: none;
}

.mega-col-links[b-zpakkllooq]  .mega-item.active {
    background: var(--accent-soft);
    color: var(--accent);
}

.mega-col-links[b-zpakkllooq]  .mega-item-desc {
    display: block;
    margin-top: 0.15rem;
    font-size: 0.8rem;
    font-weight: 400;
    color: var(--text-muted);
    line-height: 1.4;
}

.mega-note[b-zpakkllooq] {
    margin: 0.5rem 0 0;
    font-size: 0.875rem;
    color: #64748b;
    line-height: 1.5;
}

/* —— User block —— */
.top-nav-user[b-zpakkllooq] {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    margin-left: auto;
}

.user-chip[b-zpakkllooq] {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0.75rem 0.2rem 0.2rem;
    border: 1px solid var(--border-color);
    border-radius: 999px;
    background: var(--bg-primary);
}

.user-avatar[b-zpakkllooq] {
    display: inline-grid;
    place-items: center;
    width: 1.85rem;
    height: 1.85rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #0ea5e9, #6366f1);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.user-name[b-zpakkllooq] {
    font-size: 0.85rem;
    color: var(--text-secondary);
    font-weight: 600;
}

.btn-logout[b-zpakkllooq] {
    appearance: none;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    padding: 0.45rem 0.9rem;
    border-radius: 999px;
    cursor: pointer;
    transition: background var(--dur-fast, 0.15s) var(--ease, ease), color var(--dur-fast, 0.15s) var(--ease, ease), border-color var(--dur-fast, 0.15s) var(--ease, ease);
}

.btn-logout:hover[b-zpakkllooq] {
    color: var(--danger-color);
    background: var(--danger-light);
    border-color: rgba(220, 38, 38, 0.15);
}

.admin-content[b-zpakkllooq] {
    flex: 1;
    width: 100%;
    max-width: var(--content-max, 1280px);
    margin: 0 auto;
    padding: 2.5rem 1.5rem 3.5rem;
}

@media (max-width: 860px) {
    .top-nav-inner[b-zpakkllooq] {
        flex-wrap: wrap;
        height: auto;
        min-height: 60px;
        padding: 0.6rem 1rem;
        gap: 0.5rem;
    }

    .brand-text[b-zpakkllooq] {
        display: none;
    }

    .mega[b-zpakkllooq] {
        position: relative;
    }

    .mega-panel[b-zpakkllooq] {
        left: 0;
        transform: none;
        width: min(92vw, 420px);
        animation: none;
    }

    .mega-panel-inner[b-zpakkllooq] {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        padding: 1rem;
    }

    .user-name[b-zpakkllooq] {
        display: none;
    }

    .user-chip[b-zpakkllooq] {
        padding: 0.2rem;
    }

    .admin-content[b-zpakkllooq] {
        padding: 1.75rem 1rem 2.5rem;
    }
}
/* /Components/Layout/ReconnectModal.razor.rz.scp.css */
.components-reconnect-first-attempt-visible[b-iuhf4w9dw9],
.components-reconnect-repeated-attempt-visible[b-iuhf4w9dw9],
.components-reconnect-failed-visible[b-iuhf4w9dw9],
.components-pause-visible[b-iuhf4w9dw9],
.components-resume-failed-visible[b-iuhf4w9dw9],
.components-rejoining-animation[b-iuhf4w9dw9] {
    display: none;
}

#components-reconnect-modal.components-reconnect-show .components-reconnect-first-attempt-visible[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-show .components-rejoining-animation[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-paused .components-pause-visible[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-resume-failed .components-resume-failed-visible[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-retrying[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-retrying .components-reconnect-repeated-attempt-visible[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-retrying .components-rejoining-animation[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-failed[b-iuhf4w9dw9],
#components-reconnect-modal.components-reconnect-failed .components-reconnect-failed-visible[b-iuhf4w9dw9] {
    display: block;
}

#components-reconnect-modal[b-iuhf4w9dw9] {
    background-color: #fff;
    width: 22rem;
    margin: 20vh auto;
    padding: 2rem 1.75rem;
    border: 1px solid var(--border-color, #e2e8f0);
    border-top: 3px solid var(--accent, #046bd2);
    border-radius: var(--radius-lg, 0.5rem);
    box-shadow: var(--shadow-lg, 0 16px 40px rgba(30, 41, 59, 0.12));
    color: var(--text-primary, #1e293b);
    font-family: var(--font-sans, system-ui, sans-serif);
    opacity: 0;
    transition: display 0.5s allow-discrete, overlay 0.5s allow-discrete;
    animation: components-reconnect-modal-fadeOutOpacity-b-iuhf4w9dw9 0.5s both;

    &[open] {
        animation: components-reconnect-modal-slideUp-b-iuhf4w9dw9 1.5s cubic-bezier(.05, .89, .25, 1.02) 0.3s,
            components-reconnect-modal-fadeInOpacity-b-iuhf4w9dw9 0.5s ease-in-out 0.3s;
        animation-fill-mode: both;
    }
}

#components-reconnect-modal[b-iuhf4w9dw9]::backdrop {
    background-color: rgba(30, 41, 59, 0.45);
    animation: components-reconnect-modal-fadeInOpacity-b-iuhf4w9dw9 0.5s ease-in-out;
    opacity: 1;
}

@keyframes components-reconnect-modal-slideUp-b-iuhf4w9dw9 {
    0% {
        transform: translateY(30px) scale(0.95);
    }

    100% {
        transform: translateY(0);
    }
}

@keyframes components-reconnect-modal-fadeInOpacity-b-iuhf4w9dw9 {
    0% {
        opacity: 0;
    }

    100% {
        opacity: 1;
    }
}

@keyframes components-reconnect-modal-fadeOutOpacity-b-iuhf4w9dw9 {
    0% {
        opacity: 1;
    }

    100% {
        opacity: 0;
    }
}

.components-reconnect-container[b-iuhf4w9dw9] {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
}

#components-reconnect-modal p[b-iuhf4w9dw9] {
    margin: 0;
    text-align: center;
    color: var(--text-secondary, #334155);
    line-height: 1.45;
}

#components-reconnect-modal button[b-iuhf4w9dw9] {
    border: 1px solid transparent;
    background-color: var(--accent, #046bd2);
    color: #fff;
    font: inherit;
    font-weight: 500;
    padding: 0.65rem 1.5rem;
    border-radius: var(--radius-md, 0.375rem);
    cursor: pointer;
    transition: background 0.15s ease;
}

#components-reconnect-modal button:hover[b-iuhf4w9dw9] {
    background-color: var(--accent-dark, #045cb4);
}

#components-reconnect-modal button:active[b-iuhf4w9dw9] {
    background-color: var(--accent, #046bd2);
}

.components-rejoining-animation[b-iuhf4w9dw9] {
    position: relative;
    width: 80px;
    height: 80px;
}

.components-rejoining-animation div[b-iuhf4w9dw9] {
    position: absolute;
    border: 3px solid var(--accent, #046bd2);
    opacity: 1;
    border-radius: 50%;
    animation: components-rejoining-animation-b-iuhf4w9dw9 1.5s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.components-rejoining-animation div:nth-child(2)[b-iuhf4w9dw9] {
    animation-delay: -0.5s;
}

@keyframes components-rejoining-animation-b-iuhf4w9dw9 {
    0% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 40px;
        left: 40px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 80px;
        height: 80px;
        opacity: 0;
    }
}
/* /Components/Pages/Billing.razor.rz.scp.css */
/* —— Toolbar (title + filters in one surface) —— */
.billing-toolbar[b-4cw7ix2qzn] {
    position: relative;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    box-shadow: var(--shadow-sm);
    padding: 1.25rem 1.5rem 1rem;
    margin-bottom: 1.5rem;
    overflow: hidden;
}

.billing-toolbar[b-4cw7ix2qzn]::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent), #8b5cf6 55%, #2f9e6f);
}

.billing-toolbar-title[b-4cw7ix2qzn] {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    margin-bottom: 1.1rem;
}

.billing-toolbar-title h1[b-4cw7ix2qzn] {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-primary);
}

.billing-toolbar-sub[b-4cw7ix2qzn] {
    font-size: 0.85rem;
    color: var(--text-muted);
}

.billing-toolbar-controls[b-4cw7ix2qzn] {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 1rem 1.5rem;
}

.billing-field[b-4cw7ix2qzn] {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0;
}

.billing-field-client[b-4cw7ix2qzn] {
    flex: 1 1 220px;
    max-width: 320px;
}

.billing-field-label[b-4cw7ix2qzn] {
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--text-muted);
}

.billing-field select[b-4cw7ix2qzn],
.billing-range input[type="date"][b-4cw7ix2qzn] {
    height: 2.25rem;
    padding: 0 0.7rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-secondary);
    color: var(--text-primary);
    font: inherit;
    font-size: 0.9rem;
    transition: border-color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease), background var(--dur-fast) var(--ease);
}

.billing-field select:hover[b-4cw7ix2qzn],
.billing-range input[type="date"]:hover[b-4cw7ix2qzn] {
    background: var(--bg-primary);
}

.billing-field select:focus[b-4cw7ix2qzn],
.billing-range input[type="date"]:focus[b-4cw7ix2qzn] {
    outline: none;
    border-color: var(--accent);
    background: var(--bg-primary);
    box-shadow: 0 0 0 3px var(--accent-soft);
}

.billing-presets[b-4cw7ix2qzn] {
    display: inline-flex;
    padding: 3px;
    gap: 2px;
    border-radius: 10px;
    background: var(--bg-tertiary);
}

.billing-preset[b-4cw7ix2qzn] {
    height: 1.9rem;
    padding: 0 0.8rem;
    border: 0;
    border-radius: 7px;
    background: none;
    color: var(--text-secondary);
    font: inherit;
    font-size: 0.85rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease), box-shadow var(--dur-fast) var(--ease);
}

.billing-preset:hover[b-4cw7ix2qzn] {
    color: var(--text-primary);
}

.billing-preset.is-active[b-4cw7ix2qzn] {
    background: var(--bg-primary);
    color: var(--accent);
    font-weight: 600;
    box-shadow: 0 1px 3px rgba(30, 41, 59, 0.12);
}

.billing-range[b-4cw7ix2qzn] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

.billing-range-sep[b-4cw7ix2qzn] {
    color: var(--text-muted);
}

.billing-range-clear[b-4cw7ix2qzn] {
    width: 1.75rem;
    height: 1.75rem;
    border: 0;
    border-radius: 50%;
    background: var(--bg-tertiary);
    color: var(--text-muted);
    font-size: 1rem;
    line-height: 1;
    cursor: pointer;
}

.billing-range-clear:hover[b-4cw7ix2qzn] {
    color: var(--danger-color);
    background: var(--danger-light);
}

.billing-toolbar-foot[b-4cw7ix2qzn] {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 1rem;
    margin-top: 1rem;
    padding-top: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.billing-range-chip[b-4cw7ix2qzn] {
    display: inline-flex;
    align-items: center;
    padding: 0.2rem 0.65rem;
    border-radius: 999px;
    background: var(--accent-soft);
    color: var(--accent-dark);
    font-size: 0.8rem;
    font-weight: 500;
}

.billing-toolbar-message[b-4cw7ix2qzn] {
    font-size: 0.85rem;
    color: var(--danger-color);
}

.billing-chart-empty[b-4cw7ix2qzn] {
    margin: 1.5rem 0;
    padding: 2rem 1rem;
    border: 1px dashed var(--border-color);
    border-radius: 10px;
    text-align: center;
    color: var(--text-muted);
}

/* —— Task chart —— */
.billing-chart-wrap[b-4cw7ix2qzn]  .billing-task-avg {
    fill: var(--text-muted);
    fill-opacity: 0.18;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-task-avg-edge {
    stroke: var(--text-secondary);
    stroke-width: 2;
    stroke-opacity: 0.55;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-placeholder {
    fill: var(--text-muted);
    font-size: 15px;
}

.billing-key[b-4cw7ix2qzn] {
    display: inline-block;
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 2px;
    vertical-align: -0.05rem;
}

.billing-key-ok[b-4cw7ix2qzn] { background: #16a34a; }
.billing-key-bad[b-4cw7ix2qzn] { background: #dc2626; }
.billing-key-avg[b-4cw7ix2qzn] { background: rgba(100, 116, 139, 0.3); border-top: 2px solid rgba(51, 65, 85, 0.55); }

.billing-legend-dot-device[b-4cw7ix2qzn] {
    background: linear-gradient(180deg, #16a34a 50%, #dc2626 50%);
    border-radius: 2px;
}

.billing-legend-code[b-4cw7ix2qzn] {
    font-family: ui-monospace, monospace;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.billing-legend-count[b-4cw7ix2qzn] {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0 0.35rem;
    border-radius: 999px;
}

.billing-legend-count.is-ok[b-4cw7ix2qzn] {
    color: var(--success-text);
    background: var(--success-light);
}

.billing-legend-count.is-bad[b-4cw7ix2qzn] {
    color: var(--danger-text);
    background: var(--danger-light);
}

.billing-view-btn svg rect.is-ok[b-4cw7ix2qzn] { fill: #16a34a; }
.billing-view-btn svg rect.is-bad[b-4cw7ix2qzn] { fill: #dc2626; }

/* The SVG is injected as markup, so it carries no scope attribute — reach it with ::deep. */
.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart {
    width: 100%;
    height: auto;
    display: block;
    margin: 0.5rem 0 0.75rem;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-grid {
    stroke: var(--border-color);
    stroke-width: 1;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-grid-v {
    stroke: var(--border-color);
    stroke-width: 1;
    stroke-dasharray: 2 4;
    opacity: 0.7;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-label {
    fill: var(--text-muted);
    font-size: 11px;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-label-date {
    font-weight: 600;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-hit {
    fill: transparent;
}

.billing-chart-wrap[b-4cw7ix2qzn]  .billing-chart-hit:hover {
    fill: var(--text-muted);
    fill-opacity: 0.08;
}

.billing-chart-head[b-4cw7ix2qzn] {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.billing-view-switch[b-4cw7ix2qzn] {
    display: inline-flex;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    overflow: hidden;
}

.billing-view-btn[b-4cw7ix2qzn] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 1.75rem;
    padding: 0;
    border: 0;
    background: none;
    color: var(--text-muted);
    cursor: pointer;
}

.billing-view-btn + .billing-view-btn[b-4cw7ix2qzn] {
    border-left: 1px solid var(--border-color);
}

.billing-view-btn svg[b-4cw7ix2qzn] {
    width: 1rem;
    height: 1rem;
    fill: currentColor;
    stroke: currentColor;
}

.billing-view-btn svg polyline[b-4cw7ix2qzn] {
    fill: none;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.billing-view-btn svg rect[b-4cw7ix2qzn] {
    stroke: none;
}

.billing-view-btn:hover[b-4cw7ix2qzn],
.billing-view-btn.is-active[b-4cw7ix2qzn] {
    color: var(--accent, #046bd2);
}

.billing-view-btn.is-active[b-4cw7ix2qzn] {
    background: color-mix(in srgb, var(--accent, #046bd2) 12%, transparent);
}

.billing-legend[b-4cw7ix2qzn] {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
}

.billing-legend-item[b-4cw7ix2qzn] {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.85rem;
    color: var(--text-secondary);
    background: none;
    border: 0;
    padding: 0.15rem 0.25rem;
    border-radius: 4px;
    font-family: inherit;
    cursor: pointer;
    transition: opacity 0.15s;
}

.billing-legend-item:hover[b-4cw7ix2qzn] {
    color: var(--text-primary, inherit);
}

.billing-legend-item.is-selected[b-4cw7ix2qzn] {
    font-weight: 700;
    color: var(--text-primary, inherit);
}

.billing-legend-item.is-selected .billing-legend-dot[b-4cw7ix2qzn] {
    transform: scale(1.3);
}

.billing-legend-item.is-dimmed[b-4cw7ix2qzn] {
    opacity: 0.4;
}

.billing-legend-dot[b-4cw7ix2qzn] {
    width: 0.7rem;
    height: 0.7rem;
    border-radius: 50%;
    display: inline-block;
}

.billing-sort[b-4cw7ix2qzn] {
    background: none;
    border: 0;
    padding: 0;
    font: inherit;
    color: inherit;
    cursor: pointer;
    text-align: left;
}

.billing-sort:hover[b-4cw7ix2qzn],
.billing-sort.is-active[b-4cw7ix2qzn] {
    color: var(--accent, #046bd2);
}
/* /Components/Pages/Clients.razor.rz.scp.css */
.limit-summary[b-ohfa2te7x9] {
    font-size: 0.85rem;
    line-height: 1.35;
    color: var(--text-muted);
    margin-bottom: 6px;
    max-width: 22rem;
}
/* /Components/Pages/Debug.razor.rz.scp.css */
.debug-drop-zone[b-jxlkqsfadf] {
    position: relative;
    min-height: 9rem;
    border: 2px dashed color-mix(in srgb, var(--accent, #046bd2) 45%, transparent);
    border-radius: var(--radius, 8px);
    background: color-mix(in srgb, var(--accent, #046bd2) 6%, transparent);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.debug-drop-zone.is-busy[b-jxlkqsfadf] {
    opacity: 0.7;
    pointer-events: none;
}

.debug-file-input[b-jxlkqsfadf] {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    cursor: pointer;
    z-index: 1;
}

.debug-drop-label[b-jxlkqsfadf] {
    pointer-events: none;
    font-size: 1rem;
    color: var(--text-secondary, #4a5568);
}

.debug-file-list[b-jxlkqsfadf] {
    margin: 0.5rem 0 0;
    padding-left: 1.25rem;
    max-height: 20rem;
    overflow: auto;
}

.debug-file-list li[b-jxlkqsfadf] {
    margin: 0.25rem 0;
}
/* /Components/Pages/Devices.razor.rz.scp.css */
.device-id[b-mvc2iqlm7m] {
    font-size: 0.85rem;
}

.muted[b-mvc2iqlm7m] {
    color: var(--text-muted);
}

.btn-sm[b-mvc2iqlm7m] {
    padding: 0.35rem 0.65rem;
    font-size: 0.875rem;
}

.btn-secondary[b-mvc2iqlm7m] {
    background: var(--bg-primary);
    color: var(--text-primary, #1e293b);
    border: 1px solid var(--border-color, #e2e8f0);
}

.modal-backdrop[b-mvc2iqlm7m] {
    position: fixed;
    inset: 0;
    background: rgba(30, 41, 59, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 1rem;
}

.modal-card[b-mvc2iqlm7m] {
    background: var(--bg-primary);
    border-radius: 0.5rem;
    border-top: 2px solid var(--accent, #046bd2);
    padding: 1.5rem;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 10px 30px rgba(30, 41, 59, 0.12);
}

.modal-card h3[b-mvc2iqlm7m] {
    margin-top: 0;
}

.modal-device-name[b-mvc2iqlm7m] {
    margin: 0 0 0.25rem;
    font-weight: 600;
}

.modal-device-id[b-mvc2iqlm7m] {
    margin: 0 0 1rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.token-value[b-mvc2iqlm7m] {
    font-size: 1.5rem;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 0.75rem;
}

.modal-hint[b-mvc2iqlm7m] {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin: 0 0 1rem;
}

.modal-error[b-mvc2iqlm7m] {
    color: var(--danger-color, #dc2626);
    margin: 0 0 1rem;
}

.modal-actions[b-mvc2iqlm7m] {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
}
/* /Components/Pages/LimitSettings.razor.rz.scp.css */
.paste-settle-modal[b-yv4vsgle1f] {
    max-width: 640px;
}

.paste-settle-table-wrap[b-yv4vsgle1f] {
    max-height: 55vh;
    overflow: auto;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md, 8px);
    margin: 0.75rem 0 1rem;
}

.paste-settle-table[b-yv4vsgle1f] {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.9rem;
}

.paste-settle-table th[b-yv4vsgle1f],
.paste-settle-table td[b-yv4vsgle1f] {
    padding: 0.4rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
}

.paste-settle-table th[b-yv4vsgle1f] {
    position: sticky;
    top: 0;
    background: var(--bg-secondary);
    font-weight: 600;
}

.paste-settle-table input[type="number"][b-yv4vsgle1f] {
    width: 6.5rem;
}
/* /Components/Pages/Macros.razor.rz.scp.css */
.job-stats-tiles[b-pfss0rrpnp] {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}

.job-stats-tile[b-pfss0rrpnp] {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    padding: 0.8rem 1rem;
    border-radius: 12px;
    background: var(--bg-primary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm, none);
}

.job-stats-tile-value[b-pfss0rrpnp] {
    font-size: 1.45rem;
    font-weight: 700;
    line-height: 1.1;
    color: var(--text-primary);
    font-variant-numeric: tabular-nums;
}

.job-stats-tile-label[b-pfss0rrpnp] {
    font-size: 0.78rem;
    line-height: 1.35;
    color: var(--text-secondary);
}

.job-stats-tile.is-ok .job-stats-tile-value[b-pfss0rrpnp] { color: var(--success-text); }
.job-stats-tile.is-bad .job-stats-tile-value[b-pfss0rrpnp] { color: var(--danger-text); }
.job-stats-tile.is-warn .job-stats-tile-value[b-pfss0rrpnp] { color: var(--warning-text); }
.job-stats-tile.is-info .job-stats-tile-value[b-pfss0rrpnp] { color: var(--info-text); }

.job-stats-table th.num[b-pfss0rrpnp],
.job-stats-table td.num[b-pfss0rrpnp] {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.job-stats-reason[b-pfss0rrpnp] {
    max-width: 22rem;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text-secondary);
    font-size: 0.8rem;
}

.job-stats-dim[b-pfss0rrpnp] {
    color: var(--text-muted);
}

.job-stats-empty[b-pfss0rrpnp] {
    padding: 1.5rem !important;
    text-align: center;
    color: var(--text-muted);
}

.job-stats-more[b-pfss0rrpnp] {
    display: flex;
    justify-content: center;
    padding: 0.85rem;
    border-top: 1px solid var(--border-color);
}

.job-stats-modal[b-pfss0rrpnp] {
    max-width: 760px;
    width: 94vw;
    max-height: 88vh;
    overflow-y: auto;
}

.job-stats-pre[b-pfss0rrpnp] {
    white-space: pre-wrap;
    word-break: break-word;
    margin: 0;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    color: var(--text-primary);
    border-radius: var(--radius-md);
    font-family: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
    font-size: 0.85rem;
    max-height: 40vh;
    overflow: auto;
}
/* /Components/Pages/Pricing.razor.rz.scp.css */
.pricing-row-actions[b-6n6z8iarxz] {
    display: flex;
    gap: 0.5rem;
    white-space: nowrap;
}

.pricing-cost-zero[b-6n6z8iarxz] {
    color: var(--text-muted);
}

.pricing-cost-ok[b-6n6z8iarxz] {
    color: #166534;
    font-weight: 600;
}
/* /Components/Pages/Proxies.razor.rz.scp.css */
.token-cred-dl[b-tz13ypn63u] {
    display: grid;
    grid-template-columns: 10rem 1fr;
    gap: 0.4rem 1rem;
    margin: 0;
}

.token-cred-dl dt[b-tz13ypn63u] {
    color: var(--text-secondary);
    font-weight: 600;
}

.token-cred-dl dd[b-tz13ypn63u] {
    margin: 0;
    word-break: break-all;
}

.token-port-row .form-group[b-tz13ypn63u] {
    max-width: 10rem;
}

.token-fail-list[b-tz13ypn63u] {
    margin: 0;
    padding-left: 1.1rem;
}

.col-check[b-tz13ypn63u] {
    width: 2.5rem;
    text-align: center;
}

.row-selected[b-tz13ypn63u] {
    background: rgba(4, 107, 210, 0.06);
}

.health-ok[b-tz13ypn63u] {
    color: var(--success, #16a34a);
    font-weight: 600;
}

.health-error[b-tz13ypn63u] {
    color: var(--danger, #dc2626);
    max-width: 14rem;
    overflow: hidden;
    text-overflow: ellipsis;
}
/* /Components/Pages/RemoteControl.razor.rz.scp.css */
.rc-page[b-1wplw2dlty] {
    display: flex;
    flex-direction: column;
    gap: 0;
    height: calc(100vh - var(--header-h, 64px) - 2rem);
    min-height: 420px;
}

.rc-dock[b-1wplw2dlty] {
    position: fixed;
    right: 16px;
    bottom: 16px;
    z-index: 200;
    width: min(880px, calc(100vw - 32px));
    height: min(540px, calc(100vh - 32px));
    min-height: 0;
    background: #111;
    border-radius: 10px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
    overflow: hidden;
}

.rc-dock.rc-full[b-1wplw2dlty] {
    inset: 0;
    right: 0;
    bottom: 0;
    width: auto;
    height: auto;
    border-radius: 0;
}

.rc-toolbar[b-1wplw2dlty] {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 6px;
    height: 36px;
    min-height: 36px;
    padding: 0 8px;
    overflow-x: auto;
    background: var(--bg-primary, #ffffff);
    border-bottom: 1px solid var(--border-color, #e2e8f0);
    color: var(--text-primary, #1e293b);
    font-size: 12px;
}

.rc-status[b-1wplw2dlty] {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 1px 8px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 12px;
    white-space: nowrap;
    flex: 0 0 auto;
}

.rc-status[b-1wplw2dlty]::before {
    content: "";
    width: 0.5rem;
    height: 0.5rem;
    border-radius: 50%;
    background: currentColor;
}

.rc-status-offline[b-1wplw2dlty] {
    background: var(--danger-light, #fee2e2);
    color: var(--danger-color, #dc2626);
}

.rc-status-online[b-1wplw2dlty] {
    background: var(--warning-light, #fef3c7);
    color: var(--warning-color, #d97706);
}

.rc-status-streaming[b-1wplw2dlty] {
    background: var(--success-light, #d1fae5);
    color: var(--success-color, #059669);
}

.rc-device[b-1wplw2dlty] {
    color: var(--text-muted, #64748b);
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 180px;
    flex: 0 1 auto;
}

.rc-btn[b-1wplw2dlty] {
    padding: 2px 8px;
    border-radius: var(--radius-md, 0.375rem);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-secondary, #f0f5fa);
    color: var(--text-primary, #1e293b);
    font-size: 12px;
    line-height: 1.4;
    cursor: pointer;
    white-space: nowrap;
    flex: 0 0 auto;
}

.rc-btn-start:not(:disabled)[b-1wplw2dlty] {
    background: var(--accent, #046bd2);
    border-color: var(--accent, #046bd2);
    color: #ffffff;
}

.rc-btn-stop:not(:disabled)[b-1wplw2dlty] {
    background: var(--danger-color, #dc2626);
    border-color: var(--danger-color, #dc2626);
    color: #ffffff;
}

.rc-btn:disabled[b-1wplw2dlty] {
    opacity: 0.5;
    cursor: default;
}

.rc-field[b-1wplw2dlty] {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin: 0;
    color: var(--text-secondary, #334155);
}

.rc-field select[b-1wplw2dlty] {
    padding: 1px 4px;
    border-radius: var(--radius-md, 0.375rem);
    border: 1px solid var(--border-color, #e2e8f0);
    background: var(--bg-primary, #ffffff);
    color: var(--text-primary, #1e293b);
    font-size: 12px;
}

.rc-error[b-1wplw2dlty] {
    color: var(--danger-color, #dc2626);
    font-weight: 600;
    white-space: nowrap;
    flex: 0 0 auto;
}

.rc-spacer[b-1wplw2dlty] {
    flex: 1 1 auto;
    min-width: 8px;
}

.rc-surface[b-1wplw2dlty] {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #000000;
}

/* Aspect-preserving scale without object-fit: remote-control.js normalizes input against the canvas box,
   so the letterbox must stay outside the canvas. */
.rc-surface canvas[b-1wplw2dlty] {
    display: block;
    max-width: 100%;
    max-height: 100%;
    width: auto;
    height: auto;
    background: #000000;
    cursor: crosshair;
    outline: none;
}
/* /Components/Pages/TokenModel.razor.rz.scp.css */
textarea[b-g7xtegko8m] {
    width: 100%;
    min-height: 8rem;
}

code[b-g7xtegko8m] {
    font-size: 0.85em;
}
