/* Nexus V2 foundation. Keep every selector scoped to .a2-* to avoid V1 drift. */
.a2-shell {
    /* Bridge the Nexus surface alias to the active ProxWide theme tokens.
       Older Nexus rules use --surface; defining it here prevents the light
       fallback from leaking into Dark, Neon and Forest themes. */
    --surface: var(--bg-card, var(--bg-panel, #fff));
    /* dashboard-full natively handles the 45px header offset on .main-content. */
    height: calc(100vh - 45px);
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-columns: 215px minmax(0, 1fr) 320px;
    box-sizing: border-box;
    background:
        radial-gradient(circle at 82% 0%, rgba(99, 102, 241, .07), transparent 27rem),
        var(--bg-body);
    color: var(--text-main);
}

/* Promotions — cockpit visuel et responsive */
.a2-promotions-page {
    display: grid;
    grid-template-rows: none;
    grid-auto-rows: max-content;
    align-content: start;
    gap: 18px;
}

.a2-promo-hero {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 16px;
    overflow: hidden;
    padding: 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border-color));
    border-radius: 18px;
    background:
        radial-gradient(circle at 90% 0%, color-mix(in srgb, var(--primary) 16%, transparent), transparent 42%),
        var(--surface);
    box-shadow: var(--shadow-sm);
}

.a2-promo-hero-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 52px;
    height: 52px;
    border-radius: 15px;
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    color: var(--primary);
    font-size: 1.55rem;
}

.a2-promo-hero > div:nth-child(2) > span {
    color: var(--primary);
    font-size: .62rem;
    font-weight: 900;
    letter-spacing: .12em;
}

.a2-promo-hero h1 {
    margin: 3px 0 5px;
    color: var(--text-main);
    font-size: 1.35rem;
    letter-spacing: -.035em;
}

.a2-promo-hero p {
    max-width: 720px;
    margin: 0;
    color: var(--text-muted);
    font-size: .74rem;
    line-height: 1.5;
}

.a2-promo-live-indicator {
    display: grid;
    grid-template-columns: auto auto;
    align-items: center;
    column-gap: 7px;
    padding: 10px 13px;
    border: 1px solid color-mix(in srgb, var(--success) 28%, var(--border-color));
    border-radius: 12px;
    background: color-mix(in srgb, var(--success) 9%, var(--surface));
    color: var(--success);
}

.a2-promo-live-indicator i {
    grid-row: span 2;
    font-size: 1.1rem;
}

.a2-promo-live-indicator strong {
    font-size: 1rem;
    line-height: 1;
}

.a2-promo-live-indicator span {
    grid-column: 2;
    font-size: .58rem;
    font-weight: 750;
}

.a2-promo-live-indicator.muted {
    border-color: var(--border-color);
    background: var(--bg-body-secondary);
    color: var(--text-muted);
}

.a2-promo-summary-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
}

.a2-promo-summary-grid article {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 72px;
    padding: 13px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--surface);
    box-shadow: var(--shadow-sm);
}

.a2-promo-summary-grid article > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 35px;
    height: 35px;
    flex: 0 0 35px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    color: var(--primary);
    font-size: 1rem;
}

.a2-promo-summary-grid article > div {
    display: grid;
    gap: 4px;
    min-width: 0;
}

.a2-promo-summary-grid strong {
    overflow: hidden;
    color: var(--text-main);
    font-size: 1.05rem;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-promo-summary-grid span {
    color: var(--text-muted);
    font-size: .62rem;
}

.a2-promo-composer {
    padding: 0;
    overflow: hidden;
}

.a2-promo-section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 15px 18px;
    border-bottom: 1px solid var(--border-color);
    background: color-mix(in srgb, var(--primary) 3%, var(--surface));
}

.a2-promo-section-heading > div {
    display: flex;
    align-items: center;
    gap: 10px;
}

.a2-promo-section-heading > div > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    flex: 0 0 28px;
    border-radius: 9px;
    background: var(--primary);
    color: var(--text-inverse);
    font-size: .72rem;
    font-weight: 900;
}

.a2-promo-section-heading > div > div {
    display: grid;
    gap: 2px;
}

.a2-promo-section-heading strong {
    color: var(--text-main);
    font-size: .82rem;
}

.a2-promo-section-heading small {
    color: var(--text-muted);
    font-size: .62rem;
}

.a2-promo-form-grid-polished {
    padding: 18px;
}

.a2-promo-form-grid-polished label > small {
    color: var(--text-muted);
    font-size: .6rem;
    font-weight: 500;
}

.a2-promo-scope-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
}

.a2-promo-scope-grid button {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 2px 9px;
    min-height: 64px;
    padding: 10px;
    border: 1px solid var(--border-color);
    border-radius: 11px;
    background: var(--bg-body-secondary);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    text-align: left;
}

.a2-promo-scope-grid button > i {
    grid-row: span 2;
    color: var(--primary);
    font-size: 1.1rem;
}

.a2-promo-scope-grid button strong {
    font-size: .7rem;
}

.a2-promo-scope-grid button small {
    color: var(--text-muted);
    font-size: .56rem;
}

.a2-promo-scope-grid button.active {
    border-color: var(--primary);
    background: color-mix(in srgb, var(--primary) 9%, var(--surface));
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 12%, transparent);
}

.a2-promo-family-row button {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-height: 38px;
}

.a2-frame-promo-picker button {
    min-height: 48px;
}

.a2-frame-promo-picker button > i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    color: var(--primary);
    font-size: 1rem;
}

.a2-frame-promo-picker button > span {
    display: grid;
    gap: 2px;
}

.a2-frame-promo-picker button strong {
    overflow: hidden;
    font-size: .65rem;
    text-overflow: ellipsis;
}

.a2-frame-promo-picker button small {
    color: var(--text-muted);
    font-size: .55rem;
}

.a2-promo-discount-editor {
    display: grid;
    gap: 12px;
    padding: 15px;
    border: 1px solid color-mix(in srgb, var(--danger) 18%, var(--border-color));
    border-radius: 12px;
    background: color-mix(in srgb, var(--danger) 4%, var(--surface));
}

.a2-promo-discount-editor > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.a2-promo-discount-editor span {
    color: var(--text-muted);
    font-size: .68rem;
    font-weight: 750;
}

.a2-promo-discount-editor strong {
    color: var(--danger);
    font-size: 1.35rem;
}

.a2-promo-discount-editor input {
    width: 100%;
    accent-color: var(--danger);
}

.a2-promo-launch-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    padding: 13px 18px;
    border-top: 1px solid var(--border-color);
    background: var(--bg-body-secondary);
}

.a2-promo-launch-bar > div {
    display: flex;
    align-items: center;
    gap: 7px;
    color: var(--text-muted);
    font-size: .64rem;
}

.a2-promo-launch-bar > div i {
    color: var(--primary);
}

.a2-promo-launch-bar .a2-primary-button {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    min-height: 38px;
}

.a2-promo-campaigns-panel {
    padding: 0;
    overflow: hidden;
}

.a2-promo-campaign-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    padding: 16px;
}

.a2-promo-campaign-card {
    display: grid;
    gap: 12px;
    min-width: 0;
    padding: 14px;
    border: 1px solid var(--border-color);
    border-radius: 13px;
    background: var(--bg-body-secondary);
}

.a2-promo-campaign-card.live {
    border-color: color-mix(in srgb, var(--success) 30%, var(--border-color));
    background: color-mix(in srgb, var(--success) 5%, var(--surface));
}

.a2-promo-campaign-card > header {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.a2-promo-campaign-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 33px;
    height: 33px;
    border-radius: 9px;
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    color: var(--primary);
}

.a2-promo-campaign-card > header > div {
    display: grid;
    gap: 2px;
    min-width: 0;
}

.a2-promo-campaign-card > header strong,
.a2-promo-campaign-card > header small {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-promo-campaign-card > header strong {
    color: var(--text-main);
    font-size: .75rem;
}

.a2-promo-campaign-card > header small {
    color: var(--text-muted);
    font-size: .58rem;
}

.a2-promo-campaign-card > header b {
    padding: 4px 7px;
    border-radius: 999px;
    font-size: .56rem;
    text-transform: uppercase;
}

.a2-promo-campaign-card > header b.is-live {
    background: color-mix(in srgb, var(--success) 12%, transparent);
    color: var(--success);
}

.a2-promo-campaign-card > header b.is-muted {
    background: var(--border-color);
    color: var(--text-muted);
}

.a2-promo-campaign-offer {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 12px;
    padding: 11px;
    border-radius: 10px;
    background: color-mix(in srgb, var(--warning) 10%, var(--surface));
}

.a2-promo-campaign-offer strong {
    color: var(--warning);
    font-size: 1.25rem;
}

.a2-promo-campaign-offer span {
    color: var(--text-muted);
    font-size: .6rem;
}

.a2-promo-campaign-card dl {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin: 0;
}

.a2-promo-campaign-card dl > div {
    min-width: 0;
    padding: 7px;
    border-radius: 8px;
    background: var(--surface);
}

.a2-promo-campaign-card dt {
    color: var(--text-muted);
    font-size: .52rem;
    text-transform: uppercase;
}

.a2-promo-campaign-card dd {
    overflow: hidden;
    margin: 3px 0 0;
    color: var(--text-main);
    font-size: .59rem;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-promo-campaign-card > footer {
    display: flex;
    justify-content: flex-end;
    gap: 7px;
}

.a2-promo-campaign-card .a2-secondary-button {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 30px;
    padding: 0 9px;
    border: 1px solid var(--border-color);
    border-radius: 7px;
    background: var(--surface);
    color: var(--text-main);
    cursor: pointer;
    font: inherit;
    font-size: .62rem;
    font-weight: 750;
}

.a2-promo-campaigns-panel > .a2-empty-state {
    display: grid;
    justify-items: center;
    gap: 6px;
    padding: 38px;
}

.a2-promo-campaigns-panel > .a2-empty-state i {
    color: var(--primary);
    font-size: 1.7rem;
}

.a2-promo-campaigns-panel > .a2-empty-state strong {
    color: var(--text-main);
}

@media (max-width: 900px) {
    .a2-promo-summary-grid,
    .a2-promo-scope-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 620px) {
    .a2-promo-hero {
        grid-template-columns: auto minmax(0, 1fr);
    }

    .a2-promo-live-indicator {
        grid-column: 1 / -1;
    }

    .a2-promo-summary-grid,
    .a2-promo-scope-grid {
        grid-template-columns: 1fr;
    }

    .a2-promo-launch-bar {
        align-items: stretch;
        flex-direction: column;
    }

    .a2-promo-launch-bar .a2-primary-button {
        justify-content: center;
    }
}

.a2-shell.a2-shell--no-aside {
    grid-template-columns: 215px minmax(0, 1fr) !important;
}
.a2-shell.a2-shell--no-aside > .a2-page {
    grid-column: 2 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
}

.a2-navigation {
    grid-column: 1;
    grid-row: 1;
    width: auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 8px 10px 10px;
    background: var(--bg-sidebar, var(--surface, #fff));
    border-right: 1px solid var(--border-color);
    box-shadow: 4px 0 16px rgba(0, 0, 0, .02);
    min-height: 0;
    overflow: hidden;
}

.a2-navigation-link,
.a2-legacy-link,
.a2-section-heading,
.a2-phase-badge,
.a2-module-status {
    display: flex;
    align-items: center;
}

.a2-navigation-groups {
    display: flex;
    flex-direction: column;
    gap: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 2px;
    scrollbar-width: none;
}
.a2-navigation-groups::-webkit-scrollbar {
    display: none;
}

.a2-navigation-group {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a2-navigation-group-label {
    margin: 0;
    padding: 0 8px 3px;
    color: var(--text-muted);
    font-size: .59rem;
    font-weight: 800;
    letter-spacing: .09em;
    text-transform: uppercase;
    opacity: .75;
}

.a2-navigation-links {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a2-navigation-link {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 32px;
    height: 32px;
    padding: 0 8px;
    border-radius: 7px;
    color: var(--text-muted);
    font-size: .77rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .14s ease, color .14s ease;
    box-sizing: border-box;
    position: relative;
}

.a2-nav-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 5px;
    color: var(--text-muted);
    font-size: .95rem;
    flex-shrink: 0;
    transition: color .14s ease, background .14s ease;
}

.a2-nav-label {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    letter-spacing: -.01em;
}

.a2-nav-badge {
    margin-left: auto;
    padding: 1px 7px;
    border-radius: 999px;
    background: var(--primary);
    color: var(--text-on-primary, #fff);
    font-size: 0.68rem;
    font-weight: 700;
    line-height: 1.2;
    flex-shrink: 0;
}

.a2-navigation-link:hover {
    color: var(--text-main);
    background: color-mix(in srgb, var(--primary) 7%, var(--surface));
}

.a2-navigation-link:hover .a2-nav-icon {
    color: var(--primary);
}

.a2-navigation-link.is-active {
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 11%, var(--surface));
    font-weight: 750;
    box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 20%, transparent);
}

.a2-navigation-link.is-active .a2-nav-icon {
    color: var(--primary);
}

.a2-navigation-link.is-active::before {
    position: absolute;
    left: -2px;
    top: 6px;
    bottom: 6px;
    width: 3px;
    border-radius: 0 3px 3px 0;
    background: var(--primary);
    content: '';
}

.a2-legacy-link {
    display: flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 8px;
    border-radius: 7px;
    border-top: 1px solid var(--border-color);
    margin-top: auto;
    padding-top: 8px;
    color: var(--text-muted);
    font-size: .71rem;
    font-weight: 600;
    text-decoration: none;
    transition: all .14s ease;
    opacity: .8;
}

.a2-legacy-link:hover {
    color: var(--text-main);
    opacity: 1;
    background: color-mix(in srgb, var(--primary) 6%, transparent);
}

.a2-legacy-link i {
    font-size: .88rem;
}

.a2-shell > .a2-page { flex: 1 1 auto; min-width: 0; }
.a2-shell > .a2-page { grid-column: 2; grid-row: 1; }
.a2-page { width: 100%; max-width: none; height: 100%; min-height: 0; overflow-y: auto; overflow-x: hidden; padding: 28px 30px 64px; margin: 0; box-sizing: border-box; }
.a2-organization-page { min-width: 0; }
.a2-page-header,
.a2-section-heading { justify-content: space-between; gap: 20px; }
.a2-page-header { display: flex; margin-bottom: 34px; }
.a2-eyebrow { margin: 0 0 6px; color: var(--primary, #2563eb); font-size: .68rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.a2-page h1 { margin: 0; font-size: clamp(2rem, 4vw, 3rem); letter-spacing: -.05em; }
.a2-lead { margin: 10px 0 0; color: var(--text-muted); font-size: .95rem; }
.a2-phase-badge { gap: 6px; padding: 7px 10px; border: 1px solid rgba(124, 58, 237, .18); border-radius: 999px; color: #6d28d9; background: rgba(124, 58, 237, .08); font-size: .72rem; font-weight: 700; white-space: nowrap; }
.a2-welcome-card { display: flex; align-items: center; gap: 18px; padding: 24px; border: 1px solid rgba(37, 99, 235, .16); border-radius: 16px; background: linear-gradient(135deg, rgba(37, 99, 235, .08), rgba(124, 58, 237, .06)); }
.a2-welcome-icon { width: 48px; height: 48px; flex: 0 0 48px; font-size: 1.35rem; }
.a2-welcome-card h2 { margin: 0; font-size: 1.1rem; }
.a2-welcome-card p { margin: 6px 0 0; color: var(--text-muted); font-size: .86rem; line-height: 1.55; }
.a2-section { margin-top: 38px; }
.a2-section-heading { margin-bottom: 16px; }
.a2-section-heading h2 { margin: 0; font-size: 1.25rem; }
.a2-muted { color: var(--text-muted); font-size: .78rem; }
.a2-module-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.a2-module-card { position: relative; display: flex; align-items: flex-start; gap: 14px; min-height: 118px; padding: 18px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--surface, #fff); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.05)); }
.a2-module-card.is-planned { opacity: .7; }
.a2-module-icon { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; font-size: 1rem; }
.a2-module-card h3 { margin: 2px 0 4px; font-size: .92rem; }
.a2-module-card p { margin: 0; color: var(--text-muted); font-size: .76rem; line-height: 1.45; }
.a2-module-status { position: absolute; right: 14px; bottom: 13px; color: var(--text-muted); font-size: .65rem; font-weight: 700; text-transform: uppercase; }
.a2-state-card { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 180px; color: var(--text-muted); }
.a2-state-error { color: var(--danger, #dc2626); }
.a2-spin { animation: a2-spin .8s linear infinite; }
@keyframes a2-spin { to { transform: rotate(360deg); } }

.a2-context-strip { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; color: var(--text-muted); font-size: .72rem; font-weight: 700; }
.a2-context-strip span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border: 1px solid var(--border-color); border-radius: 999px; background: var(--surface, #fff); }
.a2-context-strip i { color: var(--primary, #2563eb); font-size: .9rem; }
.a2-organization-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.a2-toolbar-actions { display: flex; align-items: center; gap: 8px; }
.a2-refresh-button { display: inline-flex; align-items: center; gap: 7px; min-height: 34px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--surface, #fff); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; }
.a2-refresh-button:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.a2-primary-button { display: inline-flex; align-items: center; gap: 7px; min-height: 35px; padding: 0 13px; border: 0; border-radius: 8px; color: #fff; background: var(--primary, #2563eb); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; box-shadow: 0 5px 12px rgba(37,99,235,.18); }
.a2-primary-button:hover { filter: brightness(1.05); }
.a2-primary-button:disabled, .a2-refresh-button:disabled { cursor: wait; opacity: .65; }
.a2-organization-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.a2-summary-chip { display: inline-flex; align-items: baseline; gap: 7px; padding: 12px 15px; border: 1px solid var(--border-color); border-radius: 11px; background: var(--surface, #fff); }
.a2-summary-chip strong { font-size: 1.15rem; letter-spacing: -.03em; }
.a2-summary-chip span { color: var(--text-muted); font-size: .74rem; }
.a2-summary-note { display: inline-flex; align-items: center; gap: 6px; margin: 0 0 0 4px; color: var(--text-muted); font-size: .75rem; }
.a2-summary-note i { color: var(--primary, #2563eb); }
.a2-team-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 16px; }
.a2-team-card { overflow: hidden; border: 1px solid var(--border-color); border-radius: 15px; background: var(--surface, #fff); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.05)); }
.a2-team-card-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; padding: 19px 19px 15px; border-bottom: 1px solid var(--border-color); }
.a2-team-card-tools { display: flex; align-items: center; gap: 7px; }
.a2-icon-button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); background: var(--surface, #fff); cursor: pointer; }
.a2-icon-button:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.a2-team-kicker { color: var(--primary, #2563eb); font-size: .62rem; font-weight: 800; letter-spacing: .1em; }
.a2-team-card h2 { margin: 4px 0 0; font-size: 1.08rem; letter-spacing: -.025em; }
.a2-team-meta { margin: 4px 0 0; color: var(--text-muted); font-size: .72rem; }
.a2-team-count { flex: 0 0 auto; padding: 5px 8px; border-radius: 999px; color: var(--text-muted); background: var(--bg-body); font-size: .68rem; font-weight: 700; white-space: nowrap; }
.a2-team-card-summary { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 12px 19px; color: var(--text-muted); font-size: .78rem; }
.a2-team-card-summary span { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; color: var(--text-main); font-weight: 700; }
.a2-coordinator-row, .a2-member-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 11px 19px; }
.a2-coordinator-row { background: rgba(37, 99, 235, .045); }
.a2-member-list { border-top: 1px solid var(--border-color); }
.a2-member-row + .a2-member-row { border-top: 1px solid rgba(148, 163, 184, .14); }
.a2-avatar { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; flex: 0 0 30px; border-radius: 50%; color: #1e3a8a; background: #dbeafe; font-size: .65rem; font-weight: 800; }
.a2-avatar-coordinator { color: #5b21b6; background: #ede9fe; }
.a2-person-copy { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.a2-person-copy strong { overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-person-copy small { overflow: hidden; color: var(--text-muted); font-size: .66rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-role-badge { flex: 0 0 auto; padding: 4px 7px; border-radius: 999px; color: #1d4ed8; background: #eff6ff; font-size: .59rem; font-weight: 800; white-space: nowrap; }
.a2-role-badge.is-coordinator { color: #6d28d9; background: #f5f3ff; }
.a2-role-badge.is-technician { color: #047857; background: #ecfdf5; }
.a2-empty-coordinator, .a2-empty-team { display: flex; align-items: center; gap: 7px; padding: 12px 19px; color: var(--text-muted); font-size: .72rem; }
.a2-empty-coordinator { border-bottom: 1px solid var(--border-color); }
.a2-empty-coordinator i, .a2-empty-team i { color: var(--text-muted); }
.a2-is-clickable, .is-clickable { cursor: pointer; }
.a2-member-row.is-clickable:hover, .a2-coordinator-row:hover { background: rgba(37,99,235,.08); }
.a2-team-add-card { display: flex; min-height: 180px; align-items: center; justify-content: center; gap: 8px; flex-direction: column; padding: 24px; border: 1px dashed rgba(37,99,235,.34); border-radius: 15px; color: var(--primary, #2563eb); background: rgba(239,246,255,.38); cursor: pointer; text-align: center; }
.a2-team-add-card i { display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px; border-radius: 50%; background: #dbeafe; font-size: 1.35rem; }
.a2-team-add-card strong { color: var(--text-main); font-size: .88rem; }
.a2-team-add-card span { max-width: 190px; color: var(--text-muted); font-size: .7rem; line-height: 1.45; }

.a2-organization-filters { display: grid; grid-template-columns: minmax(0, max-content) minmax(0, max-content) minmax(220px, 1fr) minmax(120px, 170px) minmax(120px, 170px) minmax(0, max-content); align-items: center; gap: 8px; min-width: 0; width: 100%; box-sizing: border-box; margin-bottom: 14px; padding: 9px; }
.a2-organization-filters > * { min-width: 0; }
.a2-organization-add { min-height: 32px; max-width: 100%; white-space: nowrap; }
.a2-organization-filters .a2-organization-summary { display: flex; align-items: center; gap: 6px; margin: 0; }
.a2-organization-filters .a2-organization-summary { min-width: 0; overflow: hidden; }
.a2-organization-filters .a2-summary-chip { gap: 4px; padding: 7px 9px; border-radius: 8px; }
.a2-organization-filters .a2-summary-chip { min-width: 0; flex: 0 1 auto; white-space: nowrap; }
.a2-organization-filters .a2-summary-chip strong { font-size: .9rem; }
.a2-organization-filters .a2-summary-chip span { font-size: .64rem; }
.a2-filter-field { display: flex; width: 100%; min-width: 0; box-sizing: border-box; flex: 1 1 260px; align-items: center; gap: 8px; min-height: 34px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-filter-field i { color: var(--text-muted); }
.a2-filter-field input, .a2-organization-filters select { min-width: 0; max-width: 100%; border: 0; outline: 0; color: var(--text-main); background: transparent; font: inherit; font-size: .74rem; }
.a2-organization-filters select { flex: 0 1 170px; min-height: 34px; padding: 0 9px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--surface, #fff); }
.a2-search-with-suggestions { position: relative; z-index: 4; }
.a2-search-suggestions { position: absolute; z-index: 10; top: calc(100% + 6px); right: 0; left: 0; display: grid; overflow: hidden; border: 1px solid var(--border-color); border-radius: 10px; background: var(--surface, #fff); box-shadow: 0 12px 28px rgba(15,23,42,.14); }
.a2-search-suggestions button { display: flex; align-items: center; gap: 9px; min-width: 0; padding: 9px 11px; border: 0; border-bottom: 1px solid var(--border-color); color: var(--text-main); background: transparent; cursor: pointer; font: inherit; text-align: left; }
.a2-search-suggestions button:last-child { border-bottom: 0; }
.a2-search-suggestions button:hover { background: rgba(239,246,255,.8); }
.a2-search-suggestions button > span:nth-child(2) { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 2px; }
.a2-search-suggestions strong { overflow: hidden; font-size: .75rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-search-suggestions small { overflow: hidden; color: var(--text-muted); font-size: .65rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-search-suggestions > button > i { color: var(--text-muted); }
.a2-search-empty { padding: 12px; color: var(--text-muted); font-size: .72rem; }
.a2-filter-reset, .a2-panel-action { display: inline-flex; align-items: center; gap: 5px; border: 0; color: var(--primary, #2563eb); background: transparent; cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; white-space: nowrap; }
.a2-panel-action { padding: 5px 7px; border-radius: 7px; background: rgba(37,99,235,.08); }
.a2-directory-list { display: grid; gap: 6px; }
.a2-directory-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 7px 9px; border: 1px solid transparent; border-radius: 9px; color: inherit; background: var(--bg-body-secondary, var(--bg-body)); cursor: pointer; font: inherit; text-align: left; }
.a2-directory-row:hover { border-color: rgba(37,99,235,.2); background: rgba(239,246,255,.75); }
.a2-directory-row > i { color: var(--text-muted); }
.a2-hub-directory-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
.a2-hub-directory-card { position: relative; display: grid; gap: 9px; min-width: 0; padding: 13px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--surface, var(--bg-card, var(--bg-panel))); box-shadow: 0 3px 12px rgba(15,23,42,.05); cursor: grab; transition: opacity .15s ease, transform .15s ease, border-color .15s ease, box-shadow .15s ease; }
.a2-hub-directory-card:active { cursor: grabbing; }
.a2-hub-directory-card.is-dragging { opacity: .38; transform: scale(.985); }
.a2-hub-directory-card.is-moving { opacity: .62; pointer-events: none; }
.a2-hub-drag-handle { position: absolute; top: 9px; right: 9px; display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--border-color); border-radius: 7px; color: var(--text-muted); background: var(--bg-body-secondary, var(--bg-body)); font-size: .9rem; }
.a2-hub-directory-main { padding-right: 28px; }
.a2-hub-directory-main h2 { margin: 3px 0 1px; font-size: .9rem; }
.a2-hub-directory-main p { margin: 0; color: var(--text-muted); font-size: .7rem; }
.a2-hub-directory-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; color: var(--text-muted); font-size: .65rem; }
.a2-hub-directory-meta span { display: inline-flex; align-items: center; gap: 5px; }
.a2-hub-directory-meta i { color: var(--primary, #2563eb); }
.a2-hub-directory-actions { display: flex; align-items: center; justify-content: flex-end; gap: 7px; }
.a2-sector-list { display: grid; gap: 14px; }
.a2-sector-row { position: relative; overflow: hidden; padding: 14px; border: 1px solid var(--border-color); border-radius: 14px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-sector-row::before { position: absolute; inset: 0 auto 0 0; width: 3px; background: var(--primary, #2563eb); content: ''; }
.a2-sector-row.is-orphan-sector { border-style: dashed; }
.a2-sector-row.is-orphan-sector::before { background: var(--warning, #f59e0b); }
.a2-sector-row.is-drop-target { border-color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 7%, var(--bg-body-secondary, var(--bg-body))); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 15%, transparent); }
.a2-sector-row.is-drop-target .a2-sector-drop-hint { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 10%, var(--surface, var(--bg-card, var(--bg-panel)))); }
.a2-sector-row-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin: -2px 0 12px; padding: 0 0 11px 5px; border-bottom: 1px solid var(--border-color); }
.a2-sector-row-header h2 { margin: 3px 0 2px; font-size: 1rem; }
.a2-sector-row-header p { margin: 0; color: var(--text-muted); font-size: .7rem; }
.a2-sector-row-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.a2-sector-row-actions .a2-refresh-button, .a2-sector-row-actions .a2-panel-action { min-height: 32px; padding: 0 10px; border: 1px solid var(--border-color); background: var(--surface, var(--bg-card, var(--bg-panel))); }
.a2-sector-drop-hint { display: inline-flex; align-items: center; gap: 5px; min-height: 30px; padding: 0 9px; border: 1px dashed var(--border-color); border-radius: 8px; color: var(--text-muted); background: var(--surface, var(--bg-card, var(--bg-panel))); font-size: .64rem; font-weight: 700; transition: color .15s ease, border-color .15s ease, background .15s ease; }
.a2-sector-status { display: inline-flex; align-items: center; gap: 4px; padding: 5px 8px; border-radius: 999px; font-size: .64rem; font-weight: 800; }
.a2-sector-status.is-ok { color: var(--text-badge-success, var(--success, #10b981)); background: var(--bg-badge-success, rgba(16,185,129,.12)); }
.a2-sector-status.is-alert { color: var(--text-badge-danger, var(--danger, #ef4444)); background: var(--bg-badge-danger, rgba(239,68,68,.12)); }
.a2-sector-status.is-orphan { color: var(--warning, #f59e0b); background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent); }
.a2-hub-coordinator-state { display: inline-flex; align-items: center; gap: 4px; font-size: .65rem; font-weight: 700; }
.a2-hub-coordinator-state.is-ok { color: var(--text-badge-success, var(--success, #10b981)); }
.a2-hub-coordinator-state.is-alert { color: var(--text-badge-danger, var(--danger, #ef4444)); }
.a2-team-view-button { display: inline-flex; align-items: center; gap: 5px; min-height: 31px; padding: 0 10px; border: 1px solid rgba(37,99,235,.17); border-radius: 8px; color: var(--primary, #2563eb); background: rgba(239,246,255,.75); cursor: pointer; font: inherit; font-size: .7rem; font-weight: 800; }
.a2-team-view-button:hover { background: #dbeafe; }
.a2-hub-add-card { display: flex; min-height: 132px; align-items: center; justify-content: center; gap: 7px; flex-direction: column; border: 2px dashed rgba(59,130,246,.3); border-radius: 13px; color: var(--primary, #2563eb); background: var(--surface, var(--bg-card, var(--bg-panel))); cursor: pointer; }
.a2-hub-add-card i { font-size: 1.3rem; }
.a2-hub-add-card strong { color: var(--text-main); font-size: .78rem; }
.a2-hub-add-card span { color: var(--text-muted); font-size: .67rem; }
.a2-selected-team-panel { padding-bottom: 0; }
.a2-selected-team-panel .a2-panel-heading { margin-bottom: 10px; }
.a2-back-button { display: inline-flex; align-items: center; gap: 5px; padding: 0; border: 0; color: var(--primary, #2563eb); background: transparent; cursor: pointer; font: inherit; font-size: .76rem; font-weight: 800; }
.a2-selected-team-meta { display: flex; align-items: center; gap: 13px; padding: 0 0 15px; color: var(--text-muted); font-size: .72rem; }
.a2-selected-team-meta .a2-primary-button { margin-left: auto; min-height: 31px; }
.a2-selected-member-list { display: grid; gap: 6px; padding: 13px 0 17px; border-top: 1px solid var(--border-color); }
.a2-selected-member-list { max-height: calc(100vh - 360px); overflow-y: auto; padding-right: 5px; }

.a2-dialog-backdrop { position: fixed; z-index: 1000; inset: 0; display: flex; align-items: center; justify-content: center; flex-direction: column; padding: 20px; background: rgba(15,23,42,.34); }
.a2-dialog { width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; padding: 20px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 24px 70px rgba(15,23,42,.22); }
.a2-dialog-context-field { width: min(560px, 100%); margin-bottom: 8px; padding: 14px 20px; border: 1px solid var(--border-color); border-radius: 16px; background: var(--surface, #fff); box-shadow: 0 10px 30px rgba(15,23,42,.12); }
.a2-dialog-context-field label { display: grid; gap: 6px; color: var(--text-muted); font-size: .72rem; font-weight: 700; }
.a2-dialog-context-field input, .a2-dialog-context-field select { width: 100%; min-height: 38px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-color); background: var(--bg-input, var(--bg-body-secondary, var(--bg-body))); }
.a2-sector-hub-picker { display: grid; gap: 6px; margin-top: 12px; color: var(--text-muted); font-size: .72rem; }
.a2-check-option { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 8px; background: var(--bg-body-secondary, var(--bg-body)); color: var(--text-color) !important; font-weight: 600 !important; }
.a2-check-option input { width: auto; min-height: auto; }
.a2-dialog-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 14px; margin-bottom: 18px; }
.a2-dialog-header h2 { margin: 4px 0 0; font-size: 1.05rem; }
.a2-form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.a2-form-grid label { display: grid; gap: 6px; color: var(--text-muted); font-size: .7rem; font-weight: 800; }
.a2-form-grid input, .a2-form-grid select, .a2-form-grid textarea { width: 100%; min-height: 36px; box-sizing: border-box; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 8px; outline: 0; color: var(--text-main); background: var(--bg-body-secondary, var(--bg-body)); font: inherit; font-size: .78rem; resize: vertical; }
.a2-form-grid input:focus, .a2-form-grid select:focus, .a2-form-grid textarea:focus { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.a2-form-error { margin: 14px 0 0; color: var(--danger, #dc2626); font-size: .74rem; }
.a2-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 20px; }

/* Organisation — annuaire épuré et formulaire d’équipe guidé */
.org-toolbar-actions { display: flex; align-items: center; gap: 7px; }
.org-main-action { min-height: 34px; padding: 0 12px; border-radius: 8px; white-space: nowrap; }
.a2-organization-page .a2-organization-filters { border: 1px solid var(--border-color); border-radius: 14px; background: var(--surface, var(--bg-card)); box-shadow: var(--shadow-sm); }
.a2-organization-page .a2-sector-directory { border: 0; background: transparent; box-shadow: none; padding: 0; }
.org-directory-count { color: var(--text-muted); font-size: .7rem; font-weight: 700; }
.a2-organization-page .a2-sector-list { gap: 14px; }
.a2-organization-page .a2-sector-row { padding: 18px; border-radius: 18px; background: var(--surface, var(--bg-card)); box-shadow: var(--shadow-sm); }
.a2-organization-page .a2-sector-row::before { width: 0; }
.a2-organization-page .a2-sector-row-header { margin: 0 0 15px; padding: 0 0 14px; }
.a2-organization-page .a2-hub-directory-grid { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.a2-organization-page .a2-hub-directory-card { grid-template-columns: minmax(0, 1fr) auto; gap: 14px 10px; padding: 16px; border-radius: 14px; box-shadow: none; }
.a2-organization-page .a2-hub-directory-card:hover { transform: translateY(-2px); border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color)); box-shadow: var(--shadow-sm); }
.a2-organization-page .a2-hub-drag-handle { top: 12px; right: 12px; opacity: .5; }
.a2-organization-page .a2-hub-directory-main { grid-column: 1 / -1; padding-right: 24px; }
.org-team-title { display: flex; align-items: center; gap: 11px; min-width: 0; }
.org-team-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 11px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface, var(--bg-card))); font-size: 1.05rem; }
.org-team-title > div { min-width: 0; }
.org-team-title h2 { overflow: hidden; margin: 0 0 3px; font-size: .96rem; text-overflow: ellipsis; white-space: nowrap; }
.org-team-title p { overflow: hidden; margin: 0; color: var(--text-muted); font-size: .69rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-organization-page .a2-hub-directory-meta { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-top: 1px solid var(--border-color); border-bottom: 1px solid var(--border-color); }
.a2-organization-page .a2-hub-directory-meta > span:first-child { color: var(--text-muted); font-size: .68rem; }
.a2-organization-page .a2-hub-directory-actions { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; }
.a2-organization-page .a2-team-view-button { margin-left: auto; border: 0; background: transparent; }
.a2-organization-page .a2-team-view-button:hover { background: var(--bg-hover); }
.org-add-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: color-mix(in srgb, var(--primary) 10%, transparent); font-size: 1.15rem; }

.org-team-dialog { width: min(700px, 100%); padding: 0; overflow: hidden; }
.org-dialog-header { align-items: center; margin: 0; padding: 20px 22px; border-bottom: 1px solid var(--border-color); }
.org-dialog-title { display: flex; align-items: center; gap: 13px; min-width: 0; }
.org-dialog-icon { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 13px; color: var(--primary); background: color-mix(in srgb, var(--primary) 11%, var(--surface, var(--bg-card))); font-size: 1.25rem; }
.org-dialog-title h2 { margin: 1px 0 3px; font-size: 1.12rem; }
.org-dialog-title small { display: block; color: var(--text-muted); font-size: .69rem; line-height: 1.4; }
.org-dialog-title .a2-eyebrow { margin: 0; font-size: .58rem; }
.org-dialog-content { display: grid; gap: 0; max-height: calc(100vh - 230px); overflow-y: auto; padding: 2px 22px; }
.org-form-section { padding: 18px 0; }
.org-form-section + .org-form-section { border-top: 1px solid var(--border-color); }
.org-form-section-title { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 14px; }
.org-form-section-title > span { display: inline-flex; align-items: center; justify-content: center; width: 23px; height: 23px; flex: 0 0 23px; border-radius: 7px; color: var(--primary); background: color-mix(in srgb, var(--primary) 10%, var(--surface, var(--bg-card))); font-size: .65rem; font-weight: 800; }
.org-form-section-title div { display: grid; gap: 3px; }
.org-form-section-title strong { color: var(--text-main); font-size: .78rem; }
.org-form-section-title small { color: var(--text-muted); font-size: .66rem; line-height: 1.4; }
.org-team-dialog .a2-form-grid { align-items: start; }
.org-team-dialog .a2-form-grid label { position: relative; grid-template-rows: auto 42px auto; align-content: start; }
.org-team-dialog .a2-form-grid input,
.org-team-dialog .a2-form-grid select { min-height: 42px; border-radius: 10px; background: var(--bg-input, var(--bg-body)); }
.org-optional { position: absolute; top: 0; right: 0; color: var(--text-muted); font-size: .59rem; font-weight: 500; }
.org-field-help { display: flex; align-items: flex-start; gap: 4px; color: var(--text-muted); font-size: .6rem; font-weight: 500; line-height: 1.4; }
.org-field-help i { color: var(--primary); }
.org-coordinator-choice { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px solid color-mix(in srgb, var(--primary) 22%, var(--border-color)); border-radius: 11px; background: color-mix(in srgb, var(--primary) 4%, var(--surface, var(--bg-card))); cursor: pointer; }
.org-coordinator-choice input { width: 17px; height: 17px; flex: 0 0 17px; accent-color: var(--primary); }
.org-coordinator-choice > span { display: grid; flex: 1; gap: 3px; }
.org-coordinator-choice strong { color: var(--text-main); font-size: .74rem; }
.org-coordinator-choice small { color: var(--text-muted); font-size: .64rem; line-height: 1.4; }
.org-coordinator-choice > i { color: var(--primary); }
.org-coordinator-list { display: grid; gap: 8px; }
.org-coordinator-card { display: grid; gap: 10px; padding: 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body-secondary, var(--bg-body)); }
.org-coordinator-card-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.org-coordinator-actions { display: flex; align-items: center; gap: 7px; margin-left: auto; }
.org-coordinator-swap { display: grid; gap: 10px; padding: 12px; border-top: 1px solid var(--border-color); }
.org-coordinator-swap label { display: grid; gap: 6px; color: var(--text-muted); font-size: .68rem; font-weight: 800; }
.org-coordinator-swap select { width: 100%; min-height: 40px; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 9px; outline: 0; color: var(--text-main); background: var(--bg-input, var(--bg-body)); font: inherit; }
.org-coordinator-swap select:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 12%, transparent); }
.org-coordinator-swap > small { display: flex; align-items: center; gap: 5px; color: var(--text-muted); font-size: .63rem; }
.org-coordinator-swap > div { display: flex; justify-content: flex-end; gap: 7px; }
.org-empty-coordinator { display: flex; align-items: center; gap: 11px; padding: 13px; border: 1px dashed var(--border-color); border-radius: 11px; background: var(--bg-body-secondary, var(--bg-body)); }
.org-empty-coordinator > span { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; flex: 0 0 34px; border-radius: 9px; color: var(--primary); background: var(--surface, var(--bg-card)); }
.org-empty-coordinator > div { display: grid; flex: 1; gap: 3px; }
.org-empty-coordinator strong { font-size: .74rem; }
.org-empty-coordinator small { color: var(--text-muted); font-size: .63rem; }
.org-dialog-error { display: flex; align-items: center; gap: 6px; margin: 0 22px 14px; padding: 10px 12px; border-radius: 9px; background: var(--bg-badge-danger); }
.org-dialog-actions { margin: 0; padding: 15px 22px; border-top: 1px solid var(--border-color); background: var(--bg-body-secondary, var(--bg-body)); }
.org-dialog-actions .a2-primary-button { min-height: 38px; }

.a2-aside { grid-column: 3; grid-row: 1; display: flex; height: 100%; min-width: 0; min-height: 0; overflow-y: auto; flex-direction: column; gap: 14px; padding: 28px 18px 32px 0; }
.a2-aside-section { display: block; padding: 1.5rem; border: 1px solid var(--border-color); border-radius: 20px; background: var(--bg-card, var(--surface, #fff)); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.05)); }
.a2-aside-title { display: flex; align-items: center; gap: .5rem; margin: 0 0 1.25rem; padding: 0; color: var(--text-main); font-size: 1rem; font-weight: 700; }
.a2-aside-title i { color: var(--primary, #2563eb); }
.a2-aside-stack { display: grid; gap: 8px; }
.a2-aside-pulse, .a2-aside-action, .a2-promo-stat { display: flex; align-items: center; gap: .5rem; min-height: 0; padding: .4rem .85rem; border-radius: 10px; background: var(--surface, #fff); font-size: .8rem; }
.a2-aside-pulse { color: #34d399; background: rgba(16,185,129,.08); font-weight: 600; }
.a2-aside-pulse.error { color: #ef4444; background: rgba(239,68,68,.1); }
.a2-aside-pulse i { font-size: 1rem; }
.a2-aside-action { width: 100%; border: 1px solid var(--border-color); color: var(--text-main); background: var(--bg-body-secondary, rgba(148,163,184,.2)); cursor: pointer; font-family: inherit; font-size: .8rem; font-weight: 700; line-height: 1.2; text-align: left; text-decoration: none; }
.a2-aside-action:hover { border-color: var(--border-color); background: rgba(148,163,184,.3); }
.a2-aside-action:disabled { cursor: wait; opacity: .6; }
.a2-aside-action i { width: 17px; color: #6366f1; font-size: 1.15rem; text-align: center; }
.a2-aside-action.maintenance i { color: #ef4444; }
.a2-aside-action.sessions i { color: var(--warning, #f59e0b); }
.a2-aside-action.cache i { color: var(--success, #10b981); }
.a2-aside-action.db i { color: var(--primary, #2563eb); }
.a2-aside-version { color: var(--text-muted); font-size: .72rem; line-height: 1.8; text-align: center; }
.a2-aside-version strong { color: var(--text-main); }
.a2-promo-stat { justify-content: space-between; color: var(--text-muted); }
.a2-promo-stat strong { color: var(--text-main); font-size: .76rem; }
.a2-promo-stat strong.is-warning { color: var(--warning, #f59e0b); }
.a2-promo-stat strong.is-ok { color: var(--success, #10b981); }

/* Encart Maintenance Nexus Aside */
.a2-maintenance-card {
    border-color: var(--border-color);
    transition: border-color .2s ease, background-color .2s ease;
}
.a2-maintenance-card.is-active-maintenance {
    border-color: color-mix(in srgb, var(--danger, #ef4444) 35%, var(--border-color));
    background: color-mix(in srgb, var(--danger, #ef4444) 4%, var(--bg-card));
}
.a2-maintenance-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}
.a2-maintenance-title {
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    color: var(--text-main);
    font-size: 0.88rem;
    font-weight: 700;
}
.a2-maintenance-title i {
    font-size: 1.05rem;
    color: var(--primary);
}
.a2-maintenance-card.is-active-maintenance .a2-maintenance-title i {
    color: var(--danger, #ef4444);
}
.a2-maintenance-pill {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 2px 8px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.a2-maintenance-pill.is-online {
    color: var(--success, #10b981);
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
}
.a2-maintenance-pill.is-active {
    color: var(--danger, #ef4444);
    background: color-mix(in srgb, var(--danger, #ef4444) 14%, transparent);
}
.a2-pulse-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px color-mix(in srgb, currentColor 25%, transparent);
}
.a2-maintenance-fields {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}
.a2-maintenance-field {
    display: flex;
    flex-direction: column;
    gap: 4px;
    font-size: 0.69rem;
    color: var(--text-muted);
    font-weight: 600;
}
.a2-maintenance-field input {
    width: 100%;
    min-height: 31px;
    padding: 5px 9px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--bg-body-secondary, var(--bg-body));
    color: var(--text-main);
    font-family: inherit;
    font-size: 0.75rem;
    box-sizing: border-box;
    transition: border-color .15s ease, box-shadow .15s ease;
}
.a2-maintenance-field input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary) 20%, transparent);
}
.a2-maintenance-btn {
    width: 100%;
    min-height: 34px;
    padding: 6px 12px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 0.77rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    cursor: pointer;
    transition: all .15s ease;
}
.a2-maintenance-btn i {
    font-size: 0.95rem;
}
.a2-maintenance-btn.btn-activate {
    border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 30%, transparent);
    background: color-mix(in srgb, var(--danger, #ef4444) 8%, var(--bg-card));
    color: var(--danger, #ef4444);
}
.a2-maintenance-btn.btn-activate:hover {
    background: var(--danger, #ef4444);
    color: #fff;
}
.a2-maintenance-btn.btn-restore {
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 35%, transparent);
    background: var(--success, #10b981);
    color: #fff;
}
.a2-maintenance-btn.btn-restore:hover {
    filter: brightness(1.08);
}
.a2-maintenance-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.a2-aside-card { padding: 16px; border: 1px solid var(--border-color); border-radius: 14px; background: rgba(255, 255, 255, .72); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.04)); }
.a2-aside-status { border-color: rgba(37, 99, 235, .16); background: linear-gradient(145deg, rgba(37,99,235,.08), rgba(124,58,237,.05)); }
.a2-aside-kicker, .a2-aside-heading { display: flex; align-items: center; gap: 7px; color: var(--text-muted); font-size: .66rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.a2-aside-kicker i, .a2-aside-heading i { color: var(--primary, #2563eb); font-size: .95rem; }
.a2-aside-status-line { display: flex; align-items: center; gap: 8px; margin-top: 13px; font-size: .9rem; }
.a2-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #10b981; box-shadow: 0 0 0 4px rgba(16,185,129,.13); }
.a2-aside-card p { margin: 9px 0 0; color: var(--text-muted); font-size: .73rem; line-height: 1.5; }
.a2-aside-details { display: grid; gap: 8px; margin-top: 14px; }
.a2-aside-details > div { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 8px; border-top: 1px solid rgba(148,163,184,.17); }
.a2-aside-details span { color: var(--text-muted); font-size: .69rem; }
.a2-aside-details strong { max-width: 55%; overflow: hidden; font-size: .7rem; text-align: right; text-overflow: ellipsis; white-space: nowrap; }
.a2-aside-note { margin-top: auto; }
.a2-aside-legacy-link { display: flex; align-items: center; gap: 8px; padding: 11px 12px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-muted); background: var(--surface, #fff); font-size: .73rem; font-weight: 700; text-decoration: none; }
.a2-aside-legacy-link span { flex: 1; }
.a2-aside-legacy-link:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }


.a2-module-page { max-width: none; }
.a2-overview-page { padding-top: 28px; }
.a2-overview-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.a2-overview-metrics .a2-metric-card { min-height: 142px; padding: 23px; border-radius: 15px; grid-template-columns: 48px 1fr; column-gap: 14px; }
.a2-overview-metrics .a2-metric-card i { width: 48px; height: 48px; border-radius: 14px; font-size: 1.25rem; }
.a2-overview-metrics .a2-metric-card strong { font-size: 2rem; }
.a2-overview-metrics .a2-metric-card span { font-size: .72rem; font-weight: 700; letter-spacing: .06em; }
.a2-cockpit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 22px; }
.a2-cockpit-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-bottom: 14px; }
.a2-cockpit-metrics > div {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 12px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 4%, var(--surface)), var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border-color));
    box-shadow: 0 2px 6px rgba(15, 23, 42, .02);
}
.a2-cockpit-metrics strong { font-size: 1.25rem; font-weight: 800; color: var(--text-main); }
.a2-cockpit-metrics span { color: var(--text-muted); font-size: .68rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; }
.a2-cockpit-list { display: flex; flex-direction: column; gap: 0; }
.a2-cockpit-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-width: 0;
    padding: 9px 8px;
    border-radius: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 35%, transparent);
    background: transparent;
    font-size: .76rem;
    transition: background-color .15s ease;
}
.a2-cockpit-row:last-child { border-bottom: 0; }
.a2-cockpit-row:hover { background: color-mix(in srgb, var(--primary) 4%, transparent); }
.a2-cockpit-row > span { display: inline-flex; align-items: center; gap: 8px; min-width: 0; overflow: hidden; font-weight: 600; color: var(--text-main); text-overflow: ellipsis; white-space: nowrap; }
.a2-cockpit-row > span i { color: var(--primary, #2563eb); }
.a2-cockpit-row time, .a2-cockpit-row > strong { color: var(--text-muted); font-size: .68rem; white-space: nowrap; }
.a2-cockpit-rank { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 6px; color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary) 12%, transparent); font-size: .68rem; font-weight: 800; }
.a2-cockpit-callout { display: flex; align-items: center; gap: 10px; margin-top: 14px; padding: 11px 14px; border-radius: 10px; color: var(--text-main); background: color-mix(in srgb, var(--warning, #f59e0b) 10%, var(--surface)); border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 25%, transparent); font-size: .74rem; }
.a2-cockpit-callout i { color: var(--warning, #f59e0b); font-size: 1.1rem; }
.a2-cockpit-callout span { flex: 1; }
.a2-cockpit-callout a { color: var(--primary, #2563eb); font-weight: 800; text-decoration: none; }
.a2-overview-teams { margin-top: 30px; padding: 22px 24px 24px; }
.a2-overview-teams .a2-panel-heading { margin-bottom: 22px; font-size: 1rem; }
.a2-overview-team-grid { display: grid; grid-template-columns: repeat(5, minmax(170px, 1fr)); gap: 16px; }
.a2-overview-team-card, .a2-overview-add-card { min-width: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 15px; background: var(--surface, #fff); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.05)); }
.a2-overview-team-top { position: relative; display: flex; min-height: 120px; align-items: center; justify-content: center; gap: 10px; flex-direction: column; padding: 16px; color: #fff; text-align: center; }
.a2-overview-team-top strong { font-size: 1.2rem; text-shadow: 0 2px 4px rgba(0,0,0,.14); }
.a2-overview-team-top span { display: inline-flex; align-items: center; gap: 5px; padding: 5px 9px; border-radius: 999px; color: #fff; background: rgba(255,255,255,.2); font-size: .67rem; font-weight: 700; }
.a2-overview-team-edit { position: absolute; top: 12px; right: 12px; display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border: 0; border-radius: 50%; color: #fff; background: rgba(255,255,255,.25); cursor: pointer; }
.a2-overview-team-edit:hover { background: rgba(255,255,255,.4); }
.a2-overview-team-coordinator { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 47px; padding: 0 10px; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: .78rem; font-weight: 600; text-align: center; }
.a2-overview-team-coordinator i { color: var(--primary, #2563eb); }
.a2-overview-team-link { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; margin: 9px; border: 1px solid rgba(37,99,235,.17); border-radius: 9px; color: var(--primary, #2563eb); background: rgba(239,246,255,.72); font-size: .72rem; font-weight: 800; text-decoration: none; }
.a2-overview-team-link:hover { background: rgba(219,234,254,.9); }
.a2-overview-add-card { display: flex; min-height: 203px; align-items: center; justify-content: center; gap: 10px; flex-direction: column; border: 2px dashed rgba(59,130,246,.3); color: var(--text-main); background: rgba(59,130,246,.02); text-align: center; text-decoration: none; }
.a2-overview-add-card > span { display: inline-flex; align-items: center; justify-content: center; width: 54px; height: 54px; border-radius: 50%; color: #3b82f6; background: rgba(59,130,246,.1); font-size: 1.6rem; }
.a2-overview-add-card strong { font-size: .9rem; }
.a2-overview-add-card small { color: var(--text-muted); font-size: .7rem; line-height: 1.4; }
.a2-module-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.a2-context-tone-cyan i { color: #0891b2; }
.a2-context-tone-blue i { color: #2563eb; }
.a2-context-tone-amber i { color: #d97706; }
.a2-context-tone-pink i { color: #db2777; }
.a2-context-tone-violet i { color: #7c3aed; }
.a2-context-tone-green i { color: #059669; }
.a2-context-tone-indigo i { color: #4f46e5; }
/* ══════════ TONES & COULEURS ACCENTS ══════════ */
.tone-cyan { --tone-color: #06b6d4; }
.tone-blue { --tone-color: var(--primary, #2563eb); }
.tone-green { --tone-color: var(--success, #10b981); }
.tone-red { --tone-color: var(--danger, #ef4444); }
.tone-orange { --tone-color: #f97316; }
.tone-slate { --tone-color: #64748b; }
.tone-violet { --tone-color: #8b5cf6; }
.tone-amber { --tone-color: var(--warning, #f59e0b); }
.tone-pink { --tone-color: #ec4899; }
.tone-indigo { --tone-color: #6366f1; }

.a2-module-stack { display: grid; gap: 20px; }
.a2-metric-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }

/* Cartes Métriques Cockpit — Design Épuré & Haute Lisibilité */
.a2-metric-card {
    position: relative;
    display: grid;
    grid-template-columns: 46px 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    row-gap: 3px;
    align-content: center;
    align-items: center;
    min-height: 84px;
    padding: 16px 18px;
    border: 1px solid var(--border-color);
    border-radius: 14px;
    background: var(--surface, var(--bg-card));
    box-shadow: 0 1px 3px rgba(15, 23, 42, .03), 0 4px 12px rgba(15, 23, 42, .02);
    transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
    overflow: hidden;
}

.a2-metric-card:hover {
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
    box-shadow: 0 6px 20px -4px rgba(15, 23, 42, .08);
}

.a2-metric-card i {
    grid-column: 1;
    grid-row: 1 / span 2;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    border-radius: 12px;
    font-size: 1.35rem;
    color: var(--tone-color, var(--primary));
    background: color-mix(in srgb, var(--tone-color, var(--primary)) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--tone-color, var(--primary)) 20%, transparent);
    box-shadow: 0 2px 6px color-mix(in srgb, var(--tone-color, var(--primary)) 10%, transparent);
}

/* Cas 1 : Contenu groupé dans une div (NexusModuleView) */
.a2-metric-card > div {
    grid-column: 2;
    grid-row: 1 / span 2;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-width: 0;
}

/* Cas 2 : Éléments directs sans conteneur (NexusOverview, NexusFreeField) */
.a2-metric-card > strong {
    grid-column: 2;
    grid-row: 1;
}

.a2-metric-card > span {
    grid-column: 2;
    grid-row: 2;
}

.a2-metric-card strong,
.a2-metric-card > div > strong {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.55rem;
    font-weight: 800;
    letter-spacing: -.025em;
    line-height: 1.15;
    color: var(--text-main);
    margin: 0;
}

.a2-metric-card span,
.a2-metric-card > div > span {
    display: block;
    color: var(--text-muted);
    font-size: .75rem;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin: 0;
}

.a2-metric-status {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 1.25rem !important;
    font-weight: 800 !important;
}

.a2-metric-status.is-ok {
    color: var(--success) !important;
}

.a2-metric-status.is-error {
    color: var(--danger) !important;
}

/* Panneaux Cockpit */
.a2-panel-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; align-items: start; }
.a2-panel {
    min-width: 0;
    padding: 20px 22px;
    border: 1px solid color-mix(in srgb, var(--primary) 12%, var(--border-color));
    border-radius: 16px;
    background: var(--surface, #fff);
    box-shadow: 0 4px 18px -2px rgba(15, 23, 42, .04), 0 1px 3px rgba(15, 23, 42, .02);
}

.a2-panel-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 45%, transparent);
    color: var(--text-main);
    font-size: .88rem;
    font-weight: 700;
}

.a2-panel-heading span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.a2-panel-heading i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 10%, transparent);
    font-size: .95rem;
}

.a2-panel-heading em {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-style: normal;
    font-size: .68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .04em;
    color: var(--success, #10b981);
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 22%, transparent);
}

/* Listes de Données Épurées (Zéro rayures grises massives) */
.a2-person-list, .a2-compact-list, .a2-ranking-list, .a2-detail-list, .a2-setting-list, .a2-promo-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.a2-person-item, .a2-compact-row, .a2-ranking-row, .a2-detail-list > div, .a2-setting-list > div, .a2-promo-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-width: 0;
    min-height: 40px;
    padding: 9px 8px;
    border-radius: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 35%, transparent);
    background: transparent;
    transition: background-color .15s ease;
}

.a2-person-item:last-child, .a2-compact-row:last-child, .a2-ranking-row:last-child, .a2-detail-list > div:last-child, .a2-setting-list > div:last-child, .a2-promo-row:last-child {
    border-bottom: 0;
}

.a2-person-item:hover, .a2-compact-row:hover, .a2-ranking-row:hover, .a2-detail-list > div:hover, .a2-setting-list > div:hover, .a2-promo-row:hover {
    background: color-mix(in srgb, var(--primary) 4%, transparent);
}

.a2-detail-list span, .a2-compact-row span, .a2-setting-list span {
    color: var(--text-muted);
    font-size: .8rem;
    font-weight: 500;
}

.a2-detail-list strong {
    color: var(--text-main);
    font-size: .84rem;
    font-weight: 700;
}

.a2-setting-list code {
    padding: 3px 8px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: .72rem;
    font-weight: 600;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

.a2-person-item > span:nth-child(2), .a2-promo-row > span:nth-child(2) { display: flex; flex: 1; min-width: 0; flex-direction: column; gap: 2px; }
.a2-person-item strong, .a2-promo-row strong { overflow: hidden; font-size: .78rem; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.a2-person-item small, .a2-promo-row small { color: var(--text-muted); font-size: .67rem; }
.a2-mini-avatar, .a2-promo-icon { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; flex: 0 0 28px; border-radius: 50%; color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, transparent); font-size: .68rem; font-weight: 800; border: 1px solid color-mix(in srgb, var(--primary) 22%, transparent); }
.a2-promo-icon { color: var(--secondary, #be185d); background: color-mix(in srgb, var(--secondary, #be185d) 12%, transparent); }
.a2-status-dot { width: 8px; height: 8px; flex: 0 0 8px; border-radius: 50%; background: var(--success, #10b981); box-shadow: 0 0 0 4px color-mix(in srgb, var(--success, #10b981) 18%, transparent); }
.a2-compact-row time, .a2-setting-list time, .a2-promo-row time { color: var(--text-muted); font-size: .68rem; white-space: nowrap; }
.a2-ranking-row { justify-content: space-between; }
.a2-ranking-row > strong { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 8px; color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 12%, transparent); font-size: .72rem; font-weight: 800; }
.a2-ranking-row > span { flex: 1; min-width: 0; overflow: hidden; font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-ranking-row > span small { display: block; color: var(--text-muted); font-size: .65rem; }
.a2-ranking-row > b { color: var(--text-main); font-size: .76rem; font-weight: 700; white-space: nowrap; }

/* État Vide Moderne */
.a2-empty-state {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px 14px;
    color: var(--text-muted);
    font-size: .78rem;
    font-weight: 500;
    text-align: center;
    border: 1px dashed color-mix(in srgb, var(--border-color) 60%, transparent);
    border-radius: 12px;
    background: transparent;
}
.a2-setting-list code { overflow: hidden; flex: 1; color: var(--primary, #2563eb); font-size: .67rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-setting-list span { max-width: 42%; overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-promo-row b { padding: 4px 7px; border-radius: 999px; font-size: .6rem; text-transform: uppercase; white-space: nowrap; }
.a2-promo-row b.is-live { color: #047857; background: #d1fae5; }
.a2-promo-row b.is-muted { color: var(--text-muted); background: var(--border-color); }
.a2-avatar-strip { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 10px; }
.a2-avatar-tile { overflow: hidden; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-avatar-tile img { display: block; width: 100%; aspect-ratio: 1; object-fit: cover; }
.a2-avatar-tile span { display: block; overflow: hidden; padding: 6px; color: var(--text-muted); font-size: .6rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-check-list { display: grid; gap: 9px; }
.a2-check-list > div { display: flex; align-items: center; gap: 9px; padding: 11px 12px; border-radius: 9px; color: var(--text-muted); background: var(--bg-body-secondary, var(--bg-body)); font-size: .76rem; }
.a2-check-list i { color: #10b981; font-size: 1rem; }
.a2-promo-summary:not(.a2-promo-summary-grid) { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.a2-promo-form { padding: 20px; }
.a2-promo-form-grid { display: grid; grid-template-columns: minmax(0, .7fr) minmax(0, 1.3fr); gap: 16px 22px; }
.a2-promo-form-grid > label, .a2-promo-field { display: grid; gap: 7px; min-width: 0; color: var(--text-muted); font-size: .7rem; font-weight: 800; }
.a2-promo-form-grid > label input, .a2-promo-form-grid > label select, .a2-promo-field > input, .a2-promo-field > select { min-height: 38px; box-sizing: border-box; padding: 0 11px; border: 1px solid var(--border-color); border-radius: 9px; outline: 0; color: var(--text-main); background: var(--bg-body-secondary, var(--bg-body)); font: inherit; font-size: .76rem; }
.a2-promo-form-grid > label input:focus, .a2-promo-form-grid > label select:focus, .a2-promo-field > input:focus, .a2-promo-field > select:focus { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.a2-promo-field.full, .a2-promo-form-grid > label.full, .a2-promo-reduction { grid-column: 1 / -1; }
.a2-form-label { color: var(--text-muted); font-size: .7rem; font-weight: 800; }
.a2-choice-row { display: flex; align-items: center; flex-wrap: wrap; gap: 7px; }
.a2-choice-row button { min-height: 34px; padding: 0 11px; border: 1px solid var(--border-color); border-radius: 9px; color: var(--text-muted); background: var(--surface, #fff); cursor: pointer; font: inherit; font-size: .7rem; font-weight: 700; }
.a2-choice-row button.active, .a2-choice-row button:hover { border-color: rgba(37,99,235,.25); color: var(--primary, #2563eb); background: rgba(239,246,255,.8); }
.a2-promo-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 8px; max-height: 220px; overflow: auto; padding: 2px; }
.a2-promo-picker button { display: flex; align-items: center; gap: 7px; min-width: 0; padding: 6px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--surface, #fff); cursor: pointer; font: inherit; font-size: .64rem; text-align: left; }
.a2-promo-picker button.active { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 2px rgba(37,99,235,.13); }
.a2-promo-picker img { width: 34px; height: 34px; flex: 0 0 34px; border-radius: 6px; object-fit: cover; }
.a2-promo-picker span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.a2-theme-picker button { flex-direction: column; align-items: flex-start; }
.a2-theme-picker i { color: var(--primary, #2563eb); font-size: 1.1rem; }
.a2-schedule-row { display: flex; align-items: center; gap: 9px; }
.a2-schedule-row input[type="date"], .a2-schedule-row input[type="time"] { min-height: 36px; flex: 1; min-width: 0; padding: 0 9px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--bg-body-secondary, var(--bg-body)); font: inherit; font-size: .72rem; }
.a2-schedule-row label { display: inline-flex; align-items: center; gap: 5px; flex: 0 0 auto; color: var(--text-muted); font-size: .7rem; font-weight: 600; white-space: nowrap; }
.a2-promo-reduction { display: flex; align-items: center; gap: 13px; padding-top: 15px; border-top: 1px solid var(--border-color); }
.a2-promo-reduction input[type="range"] { flex: 1; min-width: 80px; accent-color: var(--primary, #2563eb); }
.a2-promo-reduction > strong { min-width: 52px; color: #ef4444; font-size: 1.15rem; text-align: right; }
.a2-promo-table { display: grid; gap: 7px; }
.a2-promo-table-row { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 9px; border-radius: 9px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-promo-table-row > .a2-person-copy { gap: 3px; }
.a2-promo-table-row > b { padding: 4px 8px; border-radius: 999px; font-size: .6rem; text-transform: uppercase; white-space: nowrap; }
.a2-promo-table-row > b.is-live { color: #047857; background: #d1fae5; }
.a2-promo-table-row > b.is-muted { color: var(--text-muted); background: var(--border-color); }
.a2-themes-page { display: flex; flex-direction: column; gap: 16px; }
.a2-theme-upload { padding: 20px; }
.a2-theme-upload-fields { display: grid; grid-template-columns: minmax(220px, 1fr) minmax(130px, .35fr); gap: 16px; max-width: 720px; }
.a2-theme-form-field { display: grid; align-content: start; gap: 7px; min-width: 0; color: var(--text-muted); font-size: .7rem; font-weight: 800; }
.a2-theme-form-field select, .a2-theme-form-field input { width: 100%; min-height: 38px; box-sizing: border-box; padding: 0 10px; border: 1px solid var(--border-color); border-radius: 9px; outline: 0; color: var(--text-main); background: var(--bg-input, var(--bg-body-secondary, var(--bg-body))); font: inherit; font-size: .76rem; }
.a2-theme-form-field select:focus, .a2-theme-form-field input:focus { border-color: var(--primary, #2563eb); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary, #2563eb) 14%, transparent); }
.a2-theme-mode-button { justify-self: start; padding: 0; border: 0; color: var(--primary, #2563eb); background: transparent; cursor: pointer; font: inherit; font-size: .68rem; font-weight: 700; }
.a2-theme-mode-button:hover { text-decoration: underline; }
.a2-theme-dropzone { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-height: 112px; margin-top: 16px; padding: 16px; border: 2px dashed var(--border-color); border-radius: 13px; color: var(--text-muted); background: var(--bg-body-secondary, var(--bg-body)); cursor: pointer; font-size: .76rem; text-align: center; transition: border-color .2s ease, background .2s ease; }
.a2-theme-dropzone:hover, .a2-theme-dropzone.has-files { border-color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 5%, var(--bg-body-secondary, var(--bg-body))); }
.a2-theme-dropzone input { display: none; }
.a2-theme-dropzone i { color: var(--primary, #2563eb); font-size: 2rem; }
.a2-theme-dropzone strong { color: var(--primary, #2563eb); }
.a2-theme-upload-button { margin-top: 14px; }
.a2-checkbox-label { display: inline-flex !important; align-items: center; gap: 6px; min-height: 36px; color: var(--text-muted); font-size: .72rem; font-weight: 600 !important; }
.a2-inline-filter { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 8px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); font-weight: 400; }
.a2-inline-filter input { width: 220px; border: 0; outline: 0; color: var(--text-main); background: transparent; font: inherit; font-size: .7rem; }
.a2-inline-number { width: 62px; min-height: 26px; padding: 0 5px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-main); background: var(--surface, #fff); font: inherit; font-size: .68rem; }
.a2-theme-library-heading { align-items: center; }
.a2-theme-category-filters { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; padding-bottom: 16px; border-bottom: 1px dashed var(--border-color); }
.a2-theme-category-filters button { display: inline-flex; align-items: center; gap: 6px; min-height: 30px; padding: 0 11px; border: 1px solid var(--border-color); border-radius: 999px; color: var(--text-muted); background: var(--bg-body-secondary, var(--bg-body)); cursor: pointer; font: inherit; font-size: .7rem; font-weight: 700; transition: border-color .15s ease, color .15s ease, background .15s ease; }
.a2-theme-category-filters button:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.a2-theme-category-filters button.active { border-color: var(--primary, #2563eb); color: var(--text-on-primary, #fff); background: var(--primary, #2563eb); }
.a2-theme-category-filters em { min-width: 18px; padding: 1px 5px; border-radius: 999px; color: inherit; background: color-mix(in srgb, currentColor 12%, transparent); font-size: .61rem; font-style: normal; text-align: center; }
.a2-theme-groups { display: grid; gap: 24px; }
.a2-theme-group h3 { display: flex; align-items: center; gap: 7px; margin: 0 0 12px; color: var(--text-main); font-size: .82rem; }
.a2-theme-group h3 i { color: var(--primary, #2563eb); font-size: 1rem; }
.a2-theme-group h3 span { color: var(--text-muted); font-size: .68rem; font-weight: 600; }
.a2-theme-assets { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 11px; }
.a2-theme-asset { min-width: 0; overflow: hidden; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-body-secondary, var(--bg-body)); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.a2-theme-asset:hover { border-color: var(--primary, #2563eb); transform: translateY(-1px); box-shadow: var(--shadow-sm, 0 4px 12px rgba(15,23,42,.08)); }
.a2-theme-asset-image { display: flex; align-items: center; justify-content: center; min-height: 112px; padding: 14px; }
.a2-theme-asset-image img { width: 82px; height: 82px; border-radius: 50%; background: var(--bg-card, var(--surface, #fff)); box-shadow: var(--shadow-sm, 0 4px 12px rgba(15,23,42,.08)); object-fit: cover; }
.a2-theme-asset-actions { display: grid; grid-template-columns: 1fr 30px 30px; align-items: center; gap: 5px; padding: 7px; border-top: 1px solid var(--border-color); background: var(--bg-card, var(--surface, #fff)); }
.a2-theme-asset-actions label { display: inline-flex; align-items: center; gap: 3px; min-width: 0; color: var(--text-muted); font-size: .66rem; font-weight: 700; }
.a2-theme-asset-actions label input { width: 48px; min-height: 27px; padding: 0 4px; border: 1px solid var(--border-color); border-radius: 6px; outline: 0; color: var(--text-main); background: var(--bg-input, var(--bg-body-secondary, var(--bg-body))); font: inherit; font-size: .68rem; font-weight: 700; text-align: center; }
.a2-theme-asset-actions button { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; padding: 0; border: 0; border-radius: 7px; background: transparent; cursor: pointer; font-size: 1.1rem; }
.a2-theme-asset-actions button:hover { background: var(--bg-hover, var(--bg-body-secondary, var(--bg-body))); }
.a2-theme-visibility.is-on { color: var(--success, #10b981); }
.a2-theme-visibility.is-off, .a2-theme-delete { color: var(--danger, #ef4444); }
.a2-theme-library > .a2-empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; gap: 7px; min-height: 180px; }
.a2-theme-library > .a2-empty-state i { font-size: 1.6rem; }

.a2-theme-stat { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border-color); color: var(--text-muted); font-size: .76rem; }
.a2-theme-stat:last-child { border-bottom: 0; }
.a2-theme-stat strong { color: var(--text-main); }
.a2-theme-aside-list { display: grid; gap: 9px; }
.a2-theme-aside-card { display: grid; gap: 8px; padding: 10px; border: 1px solid var(--border-color); border-radius: 10px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-theme-aside-card-header, .a2-theme-aside-card-footer { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.a2-theme-aside-card-header strong { min-width: 0; overflow: hidden; color: var(--text-main); font-size: .76rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-theme-aside-card-header button { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; padding: 0; border: 0; border-radius: 6px; background: transparent; cursor: pointer; font-size: 1.15rem; }
.a2-theme-aside-card-header button:hover { background: var(--bg-hover, var(--bg-card, var(--surface, #fff))); }
.a2-theme-aside-card-header button.is-on { color: var(--success, #10b981); }
.a2-theme-aside-card-header button.is-off { color: var(--danger, #ef4444); }
.a2-theme-aside-card-footer code { min-width: 0; overflow: hidden; color: var(--text-muted); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-theme-aside-card-footer label { display: inline-flex; align-items: center; gap: 3px; color: var(--text-muted); font-size: .65rem; font-weight: 700; }
.a2-theme-aside-card-footer input { width: 48px; min-height: 27px; padding: 0 4px; border: 1px solid var(--border-color); border-radius: 6px; outline: 0; color: var(--text-main); background: var(--bg-input, var(--bg-card, var(--surface, #fff))); font: inherit; font-size: .68rem; text-align: center; }
.a2-theme-aside-state { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 70px; color: var(--text-muted); font-size: .72rem; text-align: center; }
.a2-theme-aside-state.is-error { color: var(--danger, #ef4444); }
.a2-gami-tabs { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 18px; }
.a2-gami-tabs button { display: inline-flex; align-items: center; gap: 6px; min-height: 33px; padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-muted); background: var(--surface, #fff); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 700; transition: all .15s ease; }
.a2-gami-tabs button:hover { border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color)); color: var(--text-main); background: color-mix(in srgb, var(--primary) 6%, var(--surface)); }
.a2-gami-tabs button.active { border-color: color-mix(in srgb, var(--primary) 40%, var(--border-color)); color: var(--primary); background: color-mix(in srgb, var(--primary) 12%, var(--surface)); }
.a2-gami-tabs button i { font-size: .88rem; }
.a2-gami-actions { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; margin: 18px 0; }
.a2-gami-actions button { display: grid; justify-items: center; gap: 5px; min-height: 108px; padding: 15px 10px; border: 1px solid var(--border-color); border-radius: 13px; color: var(--text-main); background: var(--surface, #fff); box-shadow: var(--shadow-sm, 0 2px 8px rgba(15,23,42,.04)); cursor: pointer; font: inherit; }
.a2-gami-actions button:hover { border-color: rgba(37,99,235,.25); transform: translateY(-1px); }
.a2-gami-actions i { color: var(--primary, #2563eb); font-size: 1.35rem; }
.a2-gami-actions strong { font-size: .77rem; }
.a2-gami-actions small { color: var(--text-muted); font-size: .63rem; }
.a2-gami-form { max-width: 760px; }
.a2-form-grid .full { grid-column: 1 / -1; }
.a2-game-config-list { display: grid; gap: 7px; }
.a2-game-config-row { display: flex; align-items: center; gap: 8px; padding: 9px; border-radius: 9px; background: var(--bg-body-secondary, var(--bg-body)); }
.a2-game-config-row > span { display: inline-flex; align-items: center; gap: 7px; min-width: 0; flex: 1; }
.a2-game-config-row > span i { color: var(--primary, #2563eb); }
.a2-game-config-row strong { overflow: hidden; font-size: .73rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-game-config-row label { display: inline-flex; align-items: center; gap: 4px; color: var(--text-muted); font-size: .63rem; }
.a2-game-config-row label input { width: 48px; min-height: 26px; padding: 0 5px; border: 1px solid var(--border-color); border-radius: 6px; font-size: .68rem; }
.a2-game-config-row button { display: inline-flex; align-items: center; justify-content: center; width: 27px; height: 27px; border: 1px solid var(--border-color); border-radius: 6px; color: var(--text-muted); background: var(--surface, #fff); cursor: pointer; }
.a2-game-config-row button.active { color: var(--primary, #2563eb); border-color: rgba(37,99,235,.25); background: rgba(239,246,255,.8); }
.a2-game-config-row button.danger { color: #b91c1c; }
.a2-season-field { display: inline-grid; gap: 6px; margin-top: 15px; color: var(--text-muted); font-size: .7rem; font-weight: 800; }
.a2-season-field input { min-height: 34px; padding: 0 9px; border: 1px solid var(--border-color); border-radius: 8px; background: var(--bg-body-secondary, var(--bg-body)); font: inherit; }
.a2-key-form { display: grid; grid-template-columns: 1fr 1fr auto; gap: 7px; margin-bottom: 10px; }
.a2-key-form input { min-height: 34px; padding: 0 9px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--bg-body-secondary, var(--bg-body)); font: inherit; font-size: .7rem; }
.a2-key-list { display: grid; gap: 6px; }
.a2-key-list > div { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px; border: 1px solid var(--border-color); border-radius: 8px; }
.a2-key-list span { display: grid; min-width: 0; gap: 2px; }
.a2-key-list strong { overflow: hidden; font-size: .7rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-key-list small { color: var(--text-muted); font-family: monospace; font-size: .62rem; }

/* ProxMonkey Studio */
.a2-proxmonkey-page { display: grid; align-content: start; gap: 18px; }
.a2-proxmonkey-aside-profiles { gap: 7px; }
.a2-aside-profile { display: grid; grid-template-columns: 28px minmax(0,1fr) 18px; align-items: center; gap: 9px; width: 100%; min-height: 52px; padding: 8px 10px; border: 1px solid var(--border-color); border-radius: 10px; color: var(--text-muted); background: var(--bg-body-secondary, var(--bg-body)); cursor: pointer; font: inherit; text-align: left; }
.a2-aside-profile:hover { border-color: var(--primary, #2563eb); color: var(--text-main); }
.a2-aside-profile.active { border-color: color-mix(in srgb, var(--primary, #2563eb) 35%, var(--border-color)); color: var(--primary, #2563eb); background: color-mix(in srgb, var(--primary, #2563eb) 9%, var(--surface, #fff)); }
.a2-aside-profile > i:first-child { font-size: 1rem; text-align: center; }
.a2-aside-profile > i:last-child { color: #10b981; font-size: 1rem; }
.a2-aside-profile span { display: grid; gap: 2px; min-width: 0; }
.a2-aside-profile strong { font-size: .74rem; text-transform: capitalize; }
.a2-aside-profile small { overflow: hidden; font: 500 .58rem/1.3 monospace; text-overflow: ellipsis; white-space: nowrap; }
.a2-proxmonkey-summary { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.a2-proxmonkey-summary article { display: grid; gap: 5px; min-height: 118px; padding: 18px; }
.a2-proxmonkey-summary span { color: var(--text-muted); font-size: .68rem; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.a2-proxmonkey-summary strong { color: var(--text-main); font-size: 1.42rem; }
.a2-proxmonkey-summary small { overflow: hidden; color: var(--text-muted); font-size: .66rem; line-height: 1.45; text-overflow: ellipsis; }
.a2-proxmonkey-summary article.is-current { border-color: rgba(16,185,129,.28); background: rgba(16,185,129,.05); }
.a2-proxmonkey-summary article.is-current strong { color: #059669; }
.a2-proxmonkey-summary article.is-stale { border-color: rgba(245,158,11,.3); background: rgba(245,158,11,.06); }
.a2-proxmonkey-summary article.is-stale strong { color: #d97706; }
.a2-proxmonkey-composer .a2-panel-heading code { color: var(--text-muted); font-size: .65rem; font-weight: 500; }
.a2-proxmonkey-group { margin-top: 18px; display: grid; gap: 10px; }
.a2-proxmonkey-group:first-of-type { margin-top: 14px; }
.a2-proxmonkey-group-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-bottom: 6px; border-bottom: 1px solid var(--border-color); }
.a2-proxmonkey-group-title { display: inline-flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; color: var(--text-main); text-transform: uppercase; letter-spacing: .04em; }
.a2-proxmonkey-group-title i { font-size: .95rem; color: var(--primary, #2563eb); }
.a2-proxmonkey-group-badge { padding: 2px 8px; border-radius: 999px; font-size: .62rem; font-weight: 700; background: var(--bg-body-secondary, var(--bg-body)); color: var(--text-muted); }
.a2-proxmonkey-group .a2-proxmonkey-modules { margin-top: 0; }
.a2-proxmonkey-modules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 16px; }
.a2-proxmonkey-module { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; align-items: center; gap: 11px; min-width: 0; padding: 13px; border: 1px solid var(--border-color); border-radius: 12px; background: var(--bg-body-secondary, var(--bg-body)); transition: border-color .15s ease, background .15s ease, opacity .15s ease; }
.a2-proxmonkey-module:not(.is-enabled) { opacity: .66; }
.a2-proxmonkey-module.is-enabled { border-color: rgba(37,99,235,.2); background: color-mix(in srgb, var(--primary, #2563eb) 4%, var(--bg-body-secondary, var(--bg-body))); }
.a2-proxmonkey-module.is-required { border-color: rgba(99,102,241,.2); }
.a2-proxmonkey-module-icon { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; color: var(--text-muted); background: var(--surface, #fff); font-size: 1.15rem; }
.a2-proxmonkey-module.is-enabled .a2-proxmonkey-module-icon { color: var(--primary, #2563eb); }
.a2-proxmonkey-module-copy { display: grid; gap: 3px; min-width: 0; }
.a2-proxmonkey-module-copy strong { overflow: hidden; color: var(--text-main); font-size: .78rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-proxmonkey-module-copy code { overflow: hidden; color: var(--primary, #2563eb); font-size: .62rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-proxmonkey-module-copy small { overflow: hidden; color: var(--text-muted); font-size: .61rem; text-overflow: ellipsis; white-space: nowrap; }
.a2-proxmonkey-required { padding: 4px 7px; border-radius: 999px; color: #6366f1; background: rgba(99,102,241,.1); font-size: .59rem; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; }
.a2-proxmonkey-switch { position: relative; display: inline-flex; width: 38px; height: 22px; cursor: pointer; }
.a2-proxmonkey-switch input { position: absolute; opacity: 0; pointer-events: none; }
.a2-proxmonkey-switch span { width: 100%; border-radius: 999px; background: #cbd5e1; transition: background .18s ease; }
.a2-proxmonkey-switch span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 4px rgba(15,23,42,.2); transition: transform .18s ease; }
.a2-proxmonkey-switch input:checked + span { background: var(--primary, #2563eb); }
.a2-proxmonkey-switch input:checked + span::after { transform: translateX(16px); }
.a2-proxmonkey-switch input:focus-visible + span { outline: 3px solid color-mix(in srgb, var(--primary, #2563eb) 22%, transparent); outline-offset: 2px; }
.a2-proxmonkey-errors { display: grid; gap: 5px; margin-top: 13px; padding: 10px 12px; border: 1px solid rgba(239,68,68,.22); border-radius: 9px; color: #dc2626; background: rgba(239,68,68,.06); font-size: .68rem; }
.a2-proxmonkey-errors p { display: flex; align-items: center; gap: 6px; margin: 0; }
.a2-proxmonkey-publish { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.a2-proxmonkey-publish > div:first-child { display: grid; gap: 3px; }
.a2-proxmonkey-publish strong { color: var(--text-main); font-size: .84rem; }
.a2-proxmonkey-publish span, .a2-proxmonkey-publish small { color: var(--text-muted); font-size: .65rem; }
.a2-proxmonkey-publish span { font-family: monospace; }
.a2-proxmonkey-publish-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 8px; }
.a2-proxmonkey-publish-actions .a2-secondary-button, .a2-proxmonkey-publish-actions .a2-primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 36px; text-decoration: none; }
.a2-proxmonkey-publish-actions .a2-secondary-button { padding: 0 12px; border: 1px solid var(--border-color); border-radius: 8px; color: var(--text-main); background: var(--surface, #fff); cursor: pointer; font: inherit; font-size: .72rem; font-weight: 800; }
.a2-proxmonkey-publish-actions .a2-secondary-button:hover { border-color: var(--primary, #2563eb); color: var(--primary, #2563eb); }
.a2-proxmonkey-publish-actions .a2-secondary-button:disabled { cursor: not-allowed; opacity: .55; }

@media (max-width: 820px) {
    .org-toolbar-actions { width: 100%; }
    .org-toolbar-actions > button { flex: 1 1 auto; justify-content: center; }
    .a2-organization-page .a2-sector-row { padding: 14px; }
    .a2-organization-page .a2-hub-directory-grid { grid-template-columns: 1fr; }
    .org-team-dialog { max-height: calc(100vh - 24px); }
    .org-dialog-header { padding: 16px; }
    .org-dialog-content { max-height: calc(100vh - 205px); padding: 0 16px; }
    .org-dialog-title small { display: none; }
    .org-dialog-actions { padding: 12px 16px; }
    .org-dialog-error { margin-right: 16px; margin-left: 16px; }
    .org-coordinator-card-main, .org-empty-coordinator { align-items: flex-start; flex-wrap: wrap; }
    .org-coordinator-actions { width: 100%; margin-left: 0; }
    .org-coordinator-actions .a2-refresh-button, .org-empty-coordinator .a2-refresh-button { flex: 1; justify-content: center; }
    .org-coordinator-swap > div { flex-direction: column-reverse; }
    .org-coordinator-swap > div button { justify-content: center; width: 100%; }
    .a2-sector-row-header { flex-direction: column; }
    .a2-sector-row-actions { justify-content: flex-start; }
    .a2-shell { display: block; height: auto; min-height: calc(100vh - 45px); overflow: visible; }
    .a2-navigation { width: auto; border-right: 0; border-bottom: 1px solid var(--border-color); padding: 14px; }
    .a2-navigation-groups { display: flex; overflow-x: auto; gap: 12px; padding-bottom: 2px; }
    .a2-navigation-group { flex: 0 0 auto; gap: 5px; }
    .a2-navigation-group-label { margin-left: 2px; }
    .a2-navigation-links { display: flex; }
    .a2-navigation-link { flex: 0 0 auto; }
    .a2-legacy-link { display: none; }
    .a2-page { padding: 28px 18px 46px; }
    .a2-aside { padding: 0 18px 28px; }
    .a2-page-header { align-items: flex-start; flex-direction: column; }
    .a2-toolbar-actions, .a2-organization-filters { width: 100%; }
    .a2-organization-filters { grid-template-columns: 1fr; align-items: stretch; }
    .a2-organization-filters .a2-organization-summary { flex-wrap: wrap; }
    .a2-organization-filters select { flex: 1 1 150px; }
    .a2-summary-note { flex-basis: 100%; margin-left: 0; }
    .a2-module-toolbar { align-items: flex-start; flex-direction: column; }
    .a2-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a2-overview-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a2-cockpit-grid { grid-template-columns: 1fr; }
    .a2-overview-team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a2-panel-grid { grid-template-columns: 1fr; }
    .a2-form-grid { grid-template-columns: 1fr; }
    .a2-hub-directory-grid { grid-template-columns: 1fr; }
    .a2-selected-team-meta { align-items: flex-start; flex-wrap: wrap; }
    .a2-promo-form-grid { grid-template-columns: 1fr; }
    .a2-promo-form-grid > .full, .a2-promo-field.full, .a2-promo-reduction { grid-column: auto; }
    .a2-schedule-row { align-items: stretch; flex-wrap: wrap; }
    .a2-schedule-row input[type="date"], .a2-schedule-row input[type="time"] { flex: 1 1 140px; }
    .a2-gami-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .a2-key-form { grid-template-columns: 1fr; }
    .a2-proxmonkey-summary, .a2-proxmonkey-modules { grid-template-columns: 1fr; }
    .a2-proxmonkey-publish { align-items: flex-start; flex-direction: column; }
    .a2-proxmonkey-publish-actions { justify-content: flex-start; width: 100%; }
    .a2-theme-upload-fields { grid-template-columns: 1fr; }
    .a2-theme-library-heading { align-items: stretch; flex-direction: column; }
    .a2-theme-library-heading .a2-inline-filter { width: 100%; box-sizing: border-box; }
    .a2-theme-library-heading .a2-inline-filter input { width: 100%; }
}

@media (max-width: 480px) {
    .a2-metric-grid { grid-template-columns: 1fr; }
    .a2-overview-metrics { grid-template-columns: 1fr; }
    .a2-cockpit-metrics { grid-template-columns: 1fr; }
    .a2-page { padding-inline: 14px; }
    .a2-theme-assets { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (min-width: 821px) and (max-width: 1120px) {
    .a2-shell { grid-template-columns: 200px minmax(0, 1fr); }
    .a2-navigation { grid-column: 1; }
    .a2-shell > .a2-page { grid-column: 2; }
    .a2-aside { display: none; }
}

/* ═══════════════════════════════════════════════════════════════════
   NEXUS 2.0 — COCKPIT D'ACTIVITÉ EN TEMPS RÉEL (GRILLE 2x2 VERROUILLÉE)
   ═══════════════════════════════════════════════════════════════════ */

.a2-page.a2-activity-page {
    height: 100% !important;
    min-height: 0 !important;
    max-height: 100% !important;
    overflow: hidden !important;
    padding: 14px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    box-sizing: border-box !important;
}

/* En-tête compact sans scroll */
.a2-activity-header {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 2px 0;
}

.a2-activity-summary-chips {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    overflow-x: auto;
}

.a2-activity-summary-chips .a2-summary-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 9px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    font-size: 0.72rem;
    color: var(--text-muted);
    white-space: nowrap;
    box-shadow: var(--shadow-sm);
}

.a2-activity-summary-chips .a2-summary-chip strong {
    font-size: 0.86rem;
    font-weight: 800;
    color: var(--text-main);
}

.a2-activity-summary-chips .a2-summary-chip.is-live {
    border-color: color-mix(in srgb, var(--success) 35%, var(--border-color));
    background: color-mix(in srgb, var(--success) 8%, var(--surface));
}

.a2-activity-summary-chips .a2-summary-chip.is-live strong {
    color: var(--success);
}

.a2-activity-summary-chips .a2-summary-chip.is-alert {
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border-color));
    background: color-mix(in srgb, var(--danger) 6%, var(--surface));
}

.a2-activity-summary-chips .a2-summary-chip.is-alert strong {
    color: var(--danger);
}

.a2-pulse-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 60%, transparent);
    animation: a2-pulse 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes a2-pulse {
    0% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 70%, transparent); }
    70% { transform: scale(1); box-shadow: 0 0 0 6px color-mix(in srgb, var(--success) 0%, transparent); }
    100% { transform: scale(0.95); box-shadow: 0 0 0 0 color-mix(in srgb, var(--success) 0%, transparent); }
}

/* Barre d'outils droite de l'en-tête */
.a2-activity-toolbar {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}

.a2-activity-search {
    position: relative;
    display: flex;
    align-items: center;
    width: 210px;
    height: 32px;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 8px;
    box-sizing: border-box;
}

.a2-activity-search i.ri-search-line {
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-right: 6px;
}

.a2-activity-search input {
    border: none;
    background: transparent;
    color: var(--text-main);
    font-size: 0.74rem;
    font-family: inherit;
    width: 100%;
    outline: none;
    padding: 0;
}

.a2-search-clear-btn {
    border: none;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    padding: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}

.a2-activity-refresh-btn {
    height: 32px;
    padding: 0 10px;
    font-size: 0.72rem;
    gap: 5px;
}

.a2-activity-live-toggle {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.72rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.15s ease;
}

.a2-activity-live-toggle .a2-live-indicator-bullet {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--text-muted);
    transition: background 0.15s ease;
}

.a2-activity-live-toggle.is-active {
    border-color: color-mix(in srgb, var(--success) 40%, var(--border-color));
    color: var(--success);
    background: color-mix(in srgb, var(--success) 8%, var(--surface));
}

.a2-activity-live-toggle.is-active .a2-live-indicator-bullet {
    background: var(--success);
}

/* ══════════ GRILLE 2x2 RIGORISTE SANS SCROLL ══════════ */
.a2-activity-grid {
    flex: 1 1 auto;
    min-height: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    gap: 12px;
    overflow: hidden;
    box-sizing: border-box;
}

/* Panneaux 4 quadrants */
.a2-panel.a2-activity-card {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--surface);
    border: 1px solid var(--border-color);
    border-radius: 14px;
    padding: 12px 14px;
    box-sizing: border-box;
    box-shadow: var(--shadow-sm);
}

.a2-card-head {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 8px;
    padding-bottom: 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--border-color) 60%, transparent);
}

.a2-card-title-group {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.a2-head-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 8px;
    font-size: 1rem;
    flex-shrink: 0;
}

.a2-head-icon.tone-green {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
}

.a2-head-icon.tone-blue {
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    color: var(--primary);
}

.a2-head-icon.tone-red {
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
    color: var(--danger);
}

.a2-head-icon.tone-purple {
    background: color-mix(in srgb, var(--primary-hover, #6366f1) 14%, var(--surface));
    color: var(--primary-hover, #6366f1);
}

.a2-panel-title {
    margin: 0;
    font-size: 0.88rem;
    font-weight: 800;
    color: var(--text-main);
    line-height: 1.15;
}

.a2-panel-subtitle {
    margin: 2px 0 0;
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1;
}

.a2-card-count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 24px;
    height: 22px;
    padding: 0 7px;
    border-radius: 7px;
    font-size: 0.74rem;
    font-weight: 850;
    border: 1px solid var(--border-color);
    background: var(--bg-body);
    color: var(--text-main);
}

.a2-card-count.is-green {
    border-color: color-mix(in srgb, var(--success) 35%, var(--border-color));
    background: color-mix(in srgb, var(--success) 10%, var(--surface));
    color: var(--success);
}

.a2-card-count.is-blue {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
    background: color-mix(in srgb, var(--primary) 10%, var(--surface));
    color: var(--primary);
}

.a2-card-count.is-red {
    border-color: color-mix(in srgb, var(--danger) 35%, var(--border-color));
    background: color-mix(in srgb, var(--danger) 10%, var(--surface));
    color: var(--danger);
}

/* Onglets internes au Card 4 */
.a2-card-head--tabs {
    padding-bottom: 6px;
}

.a2-subtab-switch {
    display: inline-flex;
    align-items: center;
    background: var(--bg-body);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 2px;
    gap: 3px;
    width: 100%;
}

.a2-subtab-btn {
    flex: 1 1 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    height: 26px;
    padding: 0 8px;
    border: none;
    border-radius: 6px;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.7rem;
    font-weight: 750;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
}

.a2-subtab-btn em {
    font-style: normal;
    font-size: 0.64rem;
    padding: 1px 5px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--text-muted) 15%, transparent);
    color: var(--text-muted);
}

.a2-subtab-btn.is-active {
    background: var(--surface);
    color: var(--text-main);
    box-shadow: var(--shadow-sm);
}

.a2-subtab-btn.is-active em {
    background: color-mix(in srgb, var(--primary) 18%, transparent);
    color: var(--primary);
}

/* ══════════ CORPS SCROLLABLE INTERNE DES CADRES ══════════ */
.a2-card-scroll-body {
    flex: 1 1 auto;
    min-height: 0;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 3px;
    scrollbar-width: thin;
    scrollbar-color: var(--border-color) transparent;
}

.a2-card-scroll-body::-webkit-scrollbar {
    width: 5px;
}

.a2-card-scroll-body::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

.a2-empty-state-compact {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 28px 12px;
    color: var(--text-muted);
    font-size: 0.74rem;
}

.a2-empty-state-compact i {
    font-size: 1.4rem;
    opacity: 0.7;
}

.a2-empty-state-compact.is-success {
    color: var(--success);
}

/* ══════════ VIGNETTES CARDS COMPACTES UTILISATEURS ══════════ */
.a2-vignette-stack {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
    gap: 8px;
    align-content: start;
}

.a2-vignette {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    gap: 7px;
    padding: 8px 10px;
    border-radius: 11px;
    border: 1px solid color-mix(in srgb, var(--border-color) 85%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg-body));
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    box-sizing: border-box;
    min-height: 68px;
}

.a2-vignette:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
    background: var(--surface);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px -2px rgba(15, 23, 42, 0.06);
}

.a2-vignette--live {
    border-left: 3px solid var(--success);
}

.a2-vignette--recent {
    border-left: 3px solid var(--primary);
}

.a2-vignette--inactive {
    border-left: 3px solid var(--danger);
}

.a2-vignette--never {
    border-left: 3px solid var(--warning);
}

/* Ligne supérieure de la card */
.a2-vignette-top {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

/* Avatar vignette */
.a2-vignette-avatar {
    position: relative;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--primary) 14%, var(--surface));
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: visible;
}

.a2-vignette-avatar.is-inactive {
    background: color-mix(in srgb, var(--danger) 14%, var(--surface));
}

.a2-vignette-avatar.is-never {
    background: color-mix(in srgb, var(--warning) 14%, var(--surface));
}

.a2-vignette-img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    z-index: 1;
}

.a2-vignette-initials {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.02em;
    user-select: none;
    z-index: 0;
}

.a2-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 9px;
    height: 9px;
    border-radius: 50%;
    border: 2px solid var(--surface);
    z-index: 2;
}

.a2-status-dot.is-online {
    background: var(--success);
}

.a2-status-dot.is-offline {
    background: var(--danger);
}

/* Identité : Nom et Username */
.a2-vignette-identity {
    flex: 1 1 auto;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 1px;
}

.a2-vignette-name {
    font-size: 0.78rem;
    font-weight: 750;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.2;
}

.a2-vignette-username {
    font-size: 0.64rem;
    color: var(--text-muted);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    line-height: 1.1;
}

.a2-vignette-badge {
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.a2-vignette-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    padding-top: 5px;
    border-top: 1px dashed color-mix(in srgb, var(--border-color) 65%, transparent);
    min-width: 0;
}

.a2-vignette-bottom .a2-vignette-hub-pill {
    flex: 1 1 auto;
    min-width: 0;
    max-width: 58%;
}

.a2-vignette-bottom .a2-vignette-time {
    flex-shrink: 0;
    font-size: 0.64rem;
    color: var(--text-muted);
    font-weight: 600;
    white-space: nowrap;
}

.a2-vignette-bottom .a2-live-tag,
.a2-vignette-bottom .a2-recent-tag,
.a2-vignette-bottom .a2-inactive-tag,
.a2-vignette-bottom .a2-never-tag {
    flex-shrink: 0;
    white-space: nowrap;
    margin-left: auto;
}

/* Pill Hub noté */
.a2-vignette-hub-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 6px;
    border-radius: 5px;
    background: var(--bg-body);
    border: 1px solid color-mix(in srgb, var(--border-color) 70%, transparent);
    color: var(--text-muted);
    font-size: 0.65rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.a2-vignette-hub-pill i {
    font-size: 0.68rem;
    flex-shrink: 0;
}

.a2-vignette-hub-pill span,
.a2-vignette-hub-pill strong {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-vignette-hub-pill.is-highlighted {
    background: color-mix(in srgb, var(--primary) 9%, var(--surface));
    border-color: color-mix(in srgb, var(--primary) 28%, var(--border-color));
    color: var(--primary);
}

.a2-vignette-hub-pill.is-highlighted strong {
    font-weight: 800;
    color: var(--text-main);
}

/* Badges de statut */
.a2-live-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

.a2-recent-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    color: var(--primary);
    font-size: 0.62rem;
    font-weight: 750;
    line-height: 1.2;
}

.a2-recent-tag i {
    font-size: 0.65rem;
}

.a2-inactive-tag {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    padding: 2px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--danger) 12%, var(--surface));
    color: var(--danger);
    font-size: 0.62rem;
    font-weight: 850;
    line-height: 1.2;
}

.a2-inactive-tag i {
    font-size: 0.65rem;
}

.a2-never-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 6px;
    border-radius: 5px;
    background: color-mix(in srgb, var(--warning) 14%, var(--surface));
    color: var(--warning);
    font-size: 0.62rem;
    font-weight: 800;
    line-height: 1.2;
}

/* ══════════ LIGNES PRÉSENCE DES ÉQUIPES (EN LIGNE) ══════════ */
.a2-hub-stack {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.a2-hub-vignette {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 8px 11px;
    border-radius: 10px;
    border: 1px solid color-mix(in srgb, var(--border-color) 80%, transparent);
    background: color-mix(in srgb, var(--surface) 96%, var(--bg-body));
    transition: all 0.15s ease;
    box-sizing: border-box;
}

.a2-hub-vignette:hover {
    border-color: color-mix(in srgb, var(--primary) 35%, var(--border-color));
    background: var(--surface);
    transform: translateX(2px);
}

.a2-hub-vignette.is-active-hub {
    border-left: 3px solid var(--success);
}

.a2-hub-vignette-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.a2-hub-title-group {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
}

.a2-hub-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    background: var(--bg-body);
    color: var(--text-muted);
    font-size: 0.85rem;
    flex-shrink: 0;
}

.a2-hub-icon.is-live {
    background: color-mix(in srgb, var(--success) 14%, var(--surface));
    color: var(--success);
}

.a2-hub-name {
    font-size: 0.8rem;
    font-weight: 800;
    color: var(--text-main);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.a2-hub-presence-count {
    font-size: 0.72rem;
    font-weight: 750;
    flex-shrink: 0;
    white-space: nowrap;
}

.a2-hub-presence-count .is-green-text {
    color: var(--success);
    font-weight: 850;
}

.a2-hub-presence-count .is-muted-text {
    color: var(--text-muted);
}

.a2-hub-presence-count small {
    color: var(--text-muted);
    font-weight: 600;
}

/* Jauge de progression */
.a2-hub-progress-track {
    width: 100%;
    height: 4px;
    border-radius: 3px;
    background: var(--bg-body);
    overflow: hidden;
}

.a2-hub-progress-bar {
    height: 100%;
    border-radius: 3px;
    transition: width 0.3s ease;
}

.a2-hub-progress-bar.tone-green {
    background: var(--success);
}

.a2-hub-progress-bar.tone-muted {
    background: color-mix(in srgb, var(--text-muted) 30%, transparent);
}

/* ══════════ RESPONSIVE MOBILE / TABLETTE ══════════ */
@media (max-width: 900px) {
    .a2-page.a2-activity-page {
        height: auto !important;
        max-height: none !important;
        overflow-y: auto !important;
    }

    .a2-activity-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }

    .a2-activity-toolbar {
        flex-wrap: wrap;
    }

    .a2-activity-search {
        flex: 1 1 100%;
        width: 100%;
    }

    .a2-activity-grid {
        display: flex !important;
        flex-direction: column !important;
        overflow: visible !important;
        flex: none !important;
    }

    .a2-panel.a2-activity-card {
        height: 380px !important;
        max-height: 380px !important;
    }

/* ══════════ FREEFIELD ADMIN V2 ══════════ */
.a2-freefield-page {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.a2-danger-button, .a2-btn-danger {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 30%, transparent);
    border-radius: 8px;
    color: var(--danger, #ef4444);
    background: color-mix(in srgb, var(--danger, #ef4444) 8%, var(--surface, #fff));
    font-family: inherit;
    font-size: 0.74rem;
    font-weight: 700;
    cursor: pointer;
    transition: all .15s ease;
}

.a2-danger-button:hover, .a2-btn-danger:hover {
    background: var(--danger, #ef4444);
    color: #fff;
    border-color: var(--danger, #ef4444);
}

.a2-danger-button:disabled, .a2-btn-danger:disabled {
    opacity: .5;
    cursor: wait;
}

.a2-freefield-status-banner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border-color));
    border-radius: 12px;
    background: color-mix(in srgb, var(--primary) 6%, var(--surface));
}

.a2-freefield-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
}

.a2-freefield-status-badge.is-override {
    background: color-mix(in srgb, var(--warning, #f59e0b) 15%, transparent);
    color: var(--warning, #f59e0b);
    border: 1px solid color-mix(in srgb, var(--warning, #f59e0b) 30%, transparent);
}

.a2-freefield-status-badge.is-normal {
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    color: var(--success, #10b981);
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 25%, transparent);
}

.a2-user-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 16px;
    font-size: 0.76rem;
    font-weight: 600;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 12%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 28%, var(--border-color));
    cursor: pointer;
    transition: all .15s ease;
}

.a2-user-tag:hover {
    background: color-mix(in srgb, var(--danger, #ef4444) 14%, var(--surface));
    color: var(--danger, #ef4444);
    border-color: color-mix(in srgb, var(--danger, #ef4444) 30%, transparent);
}

.a2-user-tag i {
    font-size: 0.9rem;
}

.a2-player-card {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-top: 14px;
}

.a2-player-header {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px;
    border-radius: 12px;
    background: var(--bg-body-secondary, var(--bg-body));
}

.a2-player-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 1rem;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 15%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 25%, var(--border-color));
}

.a2-player-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.a2-player-name {
    font-size: 0.95rem;
    font-weight: 800;
    color: var(--text-main);
}

.a2-player-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.a2-player-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
}

.a2-player-stat-box {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 12px 14px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    background: var(--surface, #fff);
}

.a2-player-stat-box span {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.a2-player-stat-box strong {
    font-size: 1.15rem;
    font-weight: 800;
    color: var(--text-main);
}

.a2-player-stat-box strong.is-gold {
    color: var(--warning, #f59e0b);
}

.a2-player-stat-box strong.is-green {
    color: var(--success, #10b981);
}

.a2-player-stat-box strong.is-blue {
    color: var(--primary);
}

.a2-price-row-actions {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.a2-gift-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 7px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 800;
}

.a2-gift-badge.type-money {
    background: color-mix(in srgb, var(--warning, #f59e0b) 12%, transparent);
    color: var(--warning, #f59e0b);
}

.a2-gift-badge.type-xp {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
}

.a2-gift-badge.type-boost {
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    color: var(--success, #10b981);
}

.a2-gift-badge.type-premium_unlock {
    background: color-mix(in srgb, #a855f7 12%, transparent);
    color: #a855f7;
}

.a2-alert-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 9999px;
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--danger, #ef4444);
    background: color-mix(in srgb, var(--danger, #ef4444) 10%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 25%, transparent);
}

.a2-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 9999px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.03em;
}

.a2-status-pill.is-online, .a2-status-pill.is-ok {
    color: var(--success, #10b981);
    background: color-mix(in srgb, var(--success, #10b981) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--success, #10b981) 25%, transparent);
}

.a2-status-pill.is-active, .a2-status-pill.is-error {
    color: var(--danger, #ef4444);
    background: color-mix(in srgb, var(--danger, #ef4444) 14%, transparent);
    border: 1px solid color-mix(in srgb, var(--danger, #ef4444) 30%, transparent);
}

.a2-status-pill.is-offline {
    color: var(--text-muted);
    background: color-mix(in srgb, var(--text-muted) 12%, transparent);
    border: 1px solid color-mix(in srgb, var(--border-color) 40%, transparent);
}

.a2-mono-tag {
    display: inline-flex;
    align-items: center;
    padding: 2px 7px;
    border-radius: 6px;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--primary);
    background: color-mix(in srgb, var(--primary) 8%, var(--surface));
    border: 1px solid color-mix(in srgb, var(--primary) 18%, transparent);
}

/* ══════════════════════════════════════════════════════════════════════════
   Nexus Organization & Users Dialog Additions
   ══════════════════════════════════════════════════════════════════════════ */
.a2-user-action-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.a2-user-action-bar .a2-refresh-button.is-impersonate {
    background: color-mix(in srgb, var(--primary) 12%, transparent);
    color: var(--primary);
    border-color: color-mix(in srgb, var(--primary) 30%, transparent);
    font-weight: 700;
}

.a2-user-action-bar .a2-refresh-button.is-impersonate:hover {
    background: var(--primary);
    color: var(--text-on-primary, #fff);
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.85);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
