/**
 * Quota OS (15 min / OS / jour) — styles autonomes pour façades bureau.
 * Indépendant des tokens portail (--lcap-*, --head) pour rester lisible dans les skins.
 */

.portal-os-quota {
    /* Haut-droite : hors tracker quêtes (milieu droite) ; top 2.5rem sous barre GNOME. */
    position: fixed;
    top: 2.5rem;
    right: 0.75rem;
    bottom: auto;
    left: auto;
    transform: none;
    z-index: 9999;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    background: rgba(51, 47, 128, 0.95);
    border: 1px solid rgba(242, 186, 66, 0.45);
    color: #fff;
    font: 600 13px/1.3 system-ui, sans-serif;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.portal-os-quota[hidden] {
    display: none !important;
}

.portal-os-quota-cta {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.28rem 0.7rem;
    border-radius: 999px;
    border: 1px solid rgba(51, 47, 128, 0.25);
    background: #f2ba42;
    color: #332f80;
    font-weight: 700;
    font-size: 12px;
    line-height: 1.2;
    text-decoration: none;
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.12);
}

.portal-os-quota-cta:hover {
    filter: brightness(1.06);
}

.portal-os-quota-cta:focus-visible {
    outline: 2px solid #fff;
    outline-offset: 2px;
}

.portal-os-quota-cta--ghost {
    background: transparent;
    color: #f2ba42;
    border-color: rgba(242, 186, 66, 0.55);
    box-shadow: none;
}

.portal-os-quota-cta--ghost:hover {
    background: rgba(242, 186, 66, 0.12);
    filter: none;
}

.portal-os-quota-overlay {
    position: fixed;
    inset: 0;
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.72);
    padding: 1rem;
}

.portal-os-quota-overlay-card {
    max-width: 26rem;
    padding: 1.5rem;
    border-radius: 0.5rem;
    background: #332f80;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: #fff;
    text-align: center;
    font: 400 15px/1.45 system-ui, sans-serif;
}

.portal-os-quota-overlay-card h2 {
    margin: 0 0 0.75rem;
    color: #f2ba42;
    font-size: 1.25rem;
}

.portal-os-quota-overlay-card p {
    margin: 0 0 0.75rem;
}

.portal-os-quota-reset {
    margin: 0 0 1rem;
    padding: 0.55rem 0.75rem;
    border-radius: 0.4rem;
    background: rgba(0, 0, 0, 0.22);
    border: 1px solid rgba(242, 186, 66, 0.35);
    color: #f2ba42;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.portal-os-quota-overlay-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.55rem;
    justify-content: center;
    margin-top: 0.25rem;
}

.portal-os-quota-overlay-actions .portal-os-quota-cta {
    font-size: 13px;
    padding: 0.4rem 0.9rem;
}

html.portal-os-quota-blocked body {
    pointer-events: none;
}

html.portal-os-quota-blocked .portal-os-quota-overlay {
    pointer-events: auto;
}
