    .apps-shell {
        position: relative;
    }

    .apps-hero {
        background: linear-gradient(135deg, var(--adh-surface-low) 0%, var(--adh-surface) 60%, var(--adh-surface-lowest) 100%);
        border: 1px solid var(--adh-outline-var);
        border-radius: 1.25rem;
        padding: 1.15rem 1.2rem;
        box-shadow: 0 12px 28px rgba(3, 15, 38, 0.08);
    }

    .apps-hero-chip {
        display: inline-flex;
        align-items: center;
        border: 1px solid rgba(13, 110, 253, 0.2);
        background: rgba(13, 110, 253, 0.08);
        color: #0d6efd;
        border-radius: 999px;
        padding: 0.18rem 0.62rem;
        font-size: 0.76rem;
        font-weight: 600;
    }
    [data-theme="dark"] .apps-hero-chip {
        color: #93c5fd;
    }

    .apps-sync-label {
        background: var(--adh-surface-low);
        border: 1px solid var(--adh-outline-var);
        border-radius: 999px;
        padding: 0.2rem 0.65rem;
    }

    .apps-sync-btn {
        box-shadow: 0 8px 18px rgba(13, 110, 253, 0.24);
    }

    .apps-filter-bar {
        background: linear-gradient(180deg, var(--adh-surface) 0%, var(--adh-surface-low) 100%);
        border: 1px solid var(--adh-outline-var);
        border-radius: 1rem;
        padding: .72rem;
    }

    .app-card {
        cursor: pointer;
        transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
        border-radius: 1rem;
        background: linear-gradient(165deg, var(--adh-surface) 0%, var(--adh-surface-low) 100%);
        display: flex;
        flex-direction: column;
    }

    .app-card-large {
        min-height: 318px;
    }

    .app-card .card-body {
        display: flex;
        flex-direction: column;
        gap: .62rem;
    }

    .app-card .card-footer {
        min-height: 56px;
    }

    .app-card-header {
        min-height: 56px;
        margin-bottom: .25rem !important;
    }

    .app-card-versions {
        min-height: 92px;
    }

    .app-card-locales {
        min-height: 28px;
        display: flex;
        align-items: center;
        margin-top: auto;
    }

    @@media (min-width: 1600px) {
        .app-card-large {
            min-height: 340px;
        }

        .app-card-versions {
            min-height: 98px;
        }
    }

    @@media (min-width: 1200px) and (max-width: 1599.98px) {
        .app-card-large {
            min-height: 328px;
        }

        .app-card-versions {
            min-height: 94px;
        }
    }

    @@media (min-width: 992px) and (max-width: 1199.98px) {
        .app-card-large {
            min-height: 316px;
        }

        .app-card-versions {
            min-height: 90px;
        }
    }

    .app-card:hover {
        transform: translateY(-5px);
        border-color: var(--adh-primary-300, #6ea8fe);
        box-shadow: 0 14px 30px rgba(0, 0, 0, 0.12) !important;
    }
    .app-icon {
        overflow: hidden;
    }
    .min-width-0 {
        min-width: 0;
    }
    .app-list-row {
        cursor: pointer;
    }

    .app-grid .col {
        display: flex;
    }

    .app-grid-uniform {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(var(--adh-card-width, 360px), 1fr));
        gap: 1.25rem;
        width: 100%;
    }

    .app-grid-uniform > div {
        min-width: 0; /* Prevent grid blowout */
    }

    .app-card-footer {
        margin-top: auto;
    }

    .app-footer-meta {
        min-width: 0;
        flex: 1 1 auto;
        overflow: hidden;
        white-space: nowrap;
    }

    .app-footer-meta .text-muted,
    .app-footer-meta .badge {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .card-action-btn {
        transition: transform .18s ease, box-shadow .18s ease;
    }

    .card-action-btn:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 14px rgba(0,0,0,0.09);
    }

    @@media (max-width: 991.98px) {
        .apps-hero {
            padding: 1rem;
        }

        .apps-filter-bar {
            padding: .62rem;
        }

        .app-card-large {
            min-height: 292px;
        }

        .app-card .card-body {
            gap: .52rem;
        }
    }

    @@media (max-width: 767.98px) {
        .app-card-large {
            min-height: 286px;
        }

        .app-card-versions {
            min-height: 86px;
        }
    }

    @@media (max-width: 575.98px) {
        .app-card-large {
            min-height: auto;
        }

        .app-card-versions,
        .app-card-locales {
            min-height: 0;
        }
    }

    .app-hidden {
        opacity: 0.6;
        filter: grayscale(0.5);
        border-style: dashed !important;
    }

    /* Estados de versão (produção / teste) nos cartões */
    .adh-card-versions-container {
        width: 100%;
    }
    
    .adh-version-badge {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.65rem;
        font-weight: 700;
        padding: 0.15rem 0.4rem;
        border-radius: 4px;
    }
    
    .test-badge {
        background: rgba(13, 110, 253, 0.15);
        color: #0d6efd;
    }
    [data-theme="dark"] .test-badge {
        background: rgba(37, 99, 235, 0.15);
        color: #93c5fd;
    }
    
    .platform-icon-ios {
        color: #212529;
        transition: transform 0.2s;
    }
    [data-theme="dark"] .platform-icon-ios {
        color: #f8f9fa;
    }
    
    .platform-icon-android {
        color: #34a853;
        transition: transform 0.2s;
    }
    [data-theme="dark"] .platform-icon-android {
        color: #3ddc84;
    }
    
    .platform-icon-hover:hover {
        transform: scale(1.15);
    }
    
    @keyframes pulse-badge-anim {
        0%, 100% { transform: scale(1); opacity: 0.9; }
        50% { transform: scale(1.15); opacity: 1; }
    }
    .pulse-badge {
        animation: pulse-badge-anim 1.5s infinite ease-in-out;
    }

    /* ── Whole-card sync animation (per-app / cross-platform refresh button) ── */
    @keyframes adh-sync-pulse {
        0%, 100% {
            box-shadow: 0 0 16px rgba(99, 102, 241, 0.45), inset 0 0 12px rgba(99, 102, 241, 0.15);
            border-color: rgba(99, 102, 241, 0.8) !important;
        }
        50% {
            box-shadow: 0 0 32px rgba(99, 102, 241, 0.8), 0 0 15px rgba(168, 85, 247, 0.5), inset 0 0 20px rgba(99, 102, 241, 0.3);
            border-color: #818cf8 !important;
        }
    }
    .adh-card-syncing {
        animation: adh-sync-pulse 1.3s infinite ease-in-out;
        border-color: rgba(99, 102, 241, 0.85) !important;
    }

    [data-theme="light"] .adh-card-syncing {
        animation: adh-sync-pulse-light 1.3s infinite ease-in-out;
    }
    @keyframes adh-sync-pulse-light {
        0%, 100% {
            box-shadow: 0 0 14px rgba(13, 110, 253, 0.35), inset 0 0 10px rgba(13, 110, 253, 0.1);
            border-color: rgba(13, 110, 253, 0.75) !important;
        }
        50% {
            box-shadow: 0 0 28px rgba(13, 110, 253, 0.65), 0 0 12px rgba(2, 132, 199, 0.45), inset 0 0 16px rgba(13, 110, 253, 0.2);
            border-color: #2563eb !important;
        }
    }

    /* ── Thematic full-card sync overlay ── */
    .adh-card-sync-overlay {
        position: absolute;
        inset: 0;
        z-index: 30;
        background: rgba(15, 23, 42, 0.86);
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
        border-radius: inherit;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 0.95rem;
        padding: 1.25rem;
        text-align: center;
        animation: adh-overlay-fade 0.22s ease-out;
        pointer-events: all;
        cursor: wait;
        user-select: none;
    }

    [data-theme="light"] .adh-card-sync-overlay {
        background: rgba(255, 255, 255, 0.92);
        box-shadow: inset 0 0 0 1px rgba(13, 110, 253, 0.25);
    }

    @keyframes adh-overlay-fade {
        from { opacity: 0; transform: scale(0.97); }
        to   { opacity: 1; transform: scale(1); }
    }

    .adh-sync-thematic-spinner {
        position: relative;
        width: 58px;
        height: 58px;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    @keyframes adh-glow-rotate {
        0% {
            transform: rotate(0deg);
            filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.35));
        }
        50% {
            filter: drop-shadow(0 0 18px rgba(99, 102, 241, 0.95)) drop-shadow(0 0 28px rgba(168, 85, 247, 0.65));
        }
        100% {
            transform: rotate(360deg);
            filter: drop-shadow(0 0 8px rgba(99, 102, 241, 0.7)) drop-shadow(0 0 16px rgba(168, 85, 247, 0.35));
        }
    }

    .adh-sync-spinner-ring {
        width: 58px !important;
        height: 58px !important;
        border-width: 4px !important;
        border-color: rgba(99, 102, 241, 0.15) !important;
        border-top-color: #818cf8 !important;
        border-right-color: #c084fc !important;
        animation: adh-glow-rotate 1.1s cubic-bezier(0.4, 0.1, 0.4, 0.9) infinite !important;
        box-shadow: 0 0 26px rgba(99, 102, 241, 0.55), inset 0 0 12px rgba(168, 85, 247, 0.25);
    }

    [data-theme="light"] .adh-sync-spinner-ring {
        border-color: rgba(13, 110, 253, 0.15) !important;
        border-top-color: #2563eb !important;
        border-right-color: #06b6d4 !important;
        animation: adh-glow-rotate 1.1s cubic-bezier(0.4, 0.1, 0.4, 0.9) infinite !important;
        box-shadow: 0 0 22px rgba(37, 99, 235, 0.45), inset 0 0 10px rgba(6, 182, 212, 0.2);
    }

    .adh-sync-spinner-icon {
        position: absolute;
        inset: 0;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--adh-primary, #818cf8);
        font-size: 1.35rem;
        filter: drop-shadow(0 0 6px rgba(129, 140, 248, 0.6));
    }

    [data-theme="light"] .adh-sync-spinner-icon {
        color: #2563eb;
        filter: drop-shadow(0 0 6px rgba(37, 99, 235, 0.5));
    }

    .adh-sync-overlay-content {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.25rem;
        max-width: 250px;
    }

    .adh-sync-title {
        font-weight: 700;
        font-size: 0.875rem;
        color: var(--adh-on-surface, #f8fafc);
        letter-spacing: -0.01em;
    }

    [data-theme="light"] .adh-sync-title {
        color: #0f172a;
    }

    .adh-sync-subtitle {
        font-size: 0.72rem;
        color: var(--adh-on-surface-variant, #94a3b8);
        line-height: 1.35;
    }

    [data-theme="light"] .adh-sync-subtitle {
        color: #64748b;
    }

    /* ── Simplified single-line platform status (cross-platform card) ── */
    .adh-status-line {
        display: flex;
        align-items: center;
        gap: 0.5rem;
        padding: 0.5rem 0.75rem;
        flex-wrap: wrap;
    }
    .adh-status-line .adh-status-version {
        font-weight: 700;
        font-family: var(--bs-font-monospace, monospace);
    }
    .adh-status-line .adh-status-hint {
        font-size: 0.7rem;
        opacity: 0.75;
    }

    /* Versão testada mais nova que a produção — precisa chamar atenção e convidar ao clique
       (leva pro app, onde dá pra mandar direto pra produção), diferente do hint neutro acima. */
    @keyframes adh-hint-action-glow {
        0%, 100% { box-shadow: 0 0 0 0 rgba(255, 193, 7, 0.45); }
        50% { box-shadow: 0 0 0 4px rgba(255, 193, 7, 0); }
    }
    .adh-hint-action {
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
        font-size: 0.7rem;
        font-weight: 700;
        padding: 0.2rem 0.5rem;
        border: none;
        border-radius: 1rem;
        background: linear-gradient(135deg, #ffc107, #fd7e14);
        color: #1a1200;
        animation: adh-hint-action-glow 1.8s infinite;
        cursor: pointer;
    }
    .adh-hint-action:disabled {
        opacity: 0.7;
        cursor: wait;
        animation: none;
    }
    .adh-hint-action:hover:not(:disabled) {
        filter: brightness(1.05);
    }

    /* Atalho "Enviar p/ produção" no rodapé do card — precisa se destacar dos outros ícones
       cinza (sync/hide/link/delete), já que dispara uma ação real de envio à loja. */
    .adh-quick-send-btn {
        font-size: 0.68rem;
        font-weight: 700;
        padding: 0.2rem 0.55rem;
        border-radius: 999px;
        white-space: nowrap;
        display: inline-flex;
        align-items: center;
        gap: 0.3rem;
    }

    /* ── Link modal: two clearly separated sections (cross-platform pairing vs. Forge CI/CD).
       Color is contained to a small icon chip per section instead of painting the whole
       headline/background — reads as organized, not "loud" or mismatched. ── */
    .adh-link-modal-dialog {
        max-width: 460px;
    }

    .adh-link-section {
        border-radius: 0.85rem;
        border: 1px solid var(--adh-outline-var);
        background: var(--adh-surface-low);
        padding: 0.9rem 1rem;
    }

    .adh-link-section-hdr {
        display: flex;
        align-items: center;
        gap: 0.55rem;
        font-size: 0.85rem;
        font-weight: 700;
        margin-bottom: 0.45rem;
        color: var(--adh-on-surface);
    }

    .adh-link-section-icon {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 24px;
        height: 24px;
        border-radius: 0.5rem;
        flex-shrink: 0;
    }
    .adh-link-section-icon.platform {
        background: rgba(13, 110, 253, 0.14);
        color: #0d6efd;
    }
    [data-theme="dark"] .adh-link-section-icon.platform {
        background: rgba(110, 168, 254, 0.18);
        color: #6ea8fe;
    }
    .adh-link-section-icon.forge {
        background: rgba(180, 83, 9, 0.14);
        color: #b45309;
    }
    [data-theme="dark"] .adh-link-section-icon.forge {
        background: rgba(251, 191, 36, 0.16);
        color: #fbbf24;
    }

    .adh-link-section-desc {
        font-size: 0.76rem;
        line-height: 1.5;
        color: var(--adh-on-surface-var);
        margin-bottom: 0.7rem;
    }

    .adh-link-current {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.65rem;
        border-radius: 0.6rem;
        background: var(--adh-surface);
        border: 1px solid var(--adh-outline-var);
    }

    .adh-link-forge-id {
        font-size: 0.72rem;
        max-width: 9rem;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        flex-shrink: 1;
        min-width: 0;
    }

    .adh-link-unlink-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 28px;
        height: 28px;
        padding: 0 !important;
        border-radius: 999px;
        color: var(--adh-on-surface-var) !important;
        background: transparent;
        border: none;
    }
    .adh-link-unlink-btn:hover {
        background: rgba(var(--bs-danger-rgb), 0.12);
        color: var(--bs-danger) !important;
    }

    .adh-link-candidate {
        display: flex;
        align-items: center;
        gap: 0.6rem;
        padding: 0.5rem 0.65rem;
        border-radius: 0.6rem;
        cursor: pointer;
        background: var(--adh-surface);
        border: 1px solid transparent;
    }
    .adh-link-candidate:hover {
        border-color: rgba(13, 110, 253, 0.35);
        background: rgba(13, 110, 253, 0.06);
    }
    .adh-link-candidate.current {
        background: rgba(var(--bs-success-rgb), 0.1);
        border-color: rgba(var(--bs-success-rgb), 0.3);
    }

    /* Same-platform candidate — can't be a real cross-platform pair, so it's inert rather than
       just missing the "match" badge (a badge-only signal still let a misclick pair two iOS apps). */
    .adh-link-candidate.disabled {
        cursor: not-allowed;
        opacity: 0.5;
    }
    .adh-link-candidate.disabled:hover {
        border-color: transparent;
        background: var(--adh-surface);
    }

    .adh-link-match-badge {
        font-size: 0.62rem;
        font-weight: 700;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        background: rgba(13, 110, 253, 0.14);
        color: #0d6efd;
        cursor: help;
    }
    [data-theme="dark"] .adh-link-match-badge {
        background: rgba(110, 168, 254, 0.18);
        color: #6ea8fe;
    }

    .adh-link-same-platform-badge {
        font-size: 0.62rem;
        font-weight: 600;
        padding: 0.15rem 0.45rem;
        border-radius: 999px;
        background: var(--adh-surface-highest, rgba(0,0,0,0.05));
        color: var(--adh-on-surface-var);
    }

    /* Forge link chip — same fixed footprint for the linked and unlinked state so the wider
       "unlinked" control can never steal grid space from the app-name column next to it
       (that mismatch used to clip long names down to a couple of unreadable characters). */
    .adh-forge-chip {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        font-size: 0.62rem;
        font-weight: 700;
        line-height: 1;
        padding: 0.2rem 0.4rem;
        border-radius: 0.35rem;
        white-space: nowrap;
        flex-shrink: 0;
    }
    .adh-forge-chip.linked {
        background: rgba(var(--bs-warning-rgb), 0.15);
        color: var(--adh-on-surface);
        border: 1px solid rgba(var(--bs-warning-rgb), 0.35);
    }
    .adh-forge-chip.linked i { color: #fd7e14; }
    .adh-forge-chip.unlinked {
        background: var(--adh-surface-highest, rgba(0,0,0,0.04));
        color: var(--adh-on-surface-var);
        border: 1px dashed var(--adh-outline-var);
        cursor: pointer;
    }
    .adh-forge-chip.unlinked:hover {
        border-color: rgba(var(--bs-primary-rgb), 0.4);
        color: var(--bs-primary);
    }
    .adh-forge-chip-plus {
        font-weight: 900;
        opacity: 0.8;
    }
    .adh-card-header-actions {
        max-width: 6.4rem; /* keeps the Forge chip + platform icon from squeezing the app-name column */
    }

    /* ── Cross-platform card ─────────────────────────────────── */
    .adh-xplat-card {
        background: linear-gradient(165deg, var(--adh-surface) 0%, var(--adh-surface-low) 100%);
        border: 1px solid var(--adh-outline-var);
        border-radius: 1rem;
        overflow: hidden;
        transition: box-shadow 0.2s;
    }
    .adh-xplat-card:hover {
        box-shadow: 0 14px 30px rgba(0,0,0,0.12) !important;
    }

    .adh-xplat-head {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.85rem 1rem 0.7rem;
        border-bottom: 1px solid var(--adh-outline-var);
    }

    .adh-xplat-lanes {
        display: flex;
    }

    .adh-xplat-lane {
        flex: 1 1 0;
        min-width: 0;
        padding: 0.85rem;
        cursor: pointer;
        transition: background 0.15s ease;
    }

    .adh-xplat-ios:hover  { background: rgba(0, 122, 255, 0.05); }
    .adh-xplat-android:hover { background: rgba(61, 220, 132, 0.05); }

    .adh-xplat-lane-hdr {
        display: flex;
        align-items: center;
        gap: 0.4rem;
        font-size: 0.7rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.07em;
        padding-bottom: 0.5rem;
        margin-bottom: 0.6rem;
        border-bottom: 2px solid;
    }
    .adh-xplat-lane-hdr.ios     { color: #007AFF; border-color: rgba(0, 122, 255, 0.35); }
    .adh-xplat-lane-hdr.android { color: #3DDC84; border-color: rgba(61, 220, 132, 0.35); }

    [data-theme="light"] .adh-xplat-lane-hdr.ios     { color: #0057d8; }
    [data-theme="light"] .adh-xplat-lane-hdr.android { color: #1a8a55; }

    .adh-lane-edit {
        margin-left: auto;
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 22px;
        height: 22px;
        border-radius: 7px;
        border: 1px solid var(--adh-outline-var);
        background: var(--adh-surface-high);
        color: var(--adh-on-surface-var);
        font-size: 0.62rem;
        cursor: pointer;
        opacity: 0.75;
        transition: opacity 0.15s ease, color 0.15s ease, border-color 0.15s ease, background 0.15s ease;
    }
    .adh-lane-edit:hover {
        opacity: 1;
        background: var(--adh-brand-soft);
        border-color: var(--adh-brand-border);
        color: var(--adh-primary);
    }
    .adh-lane-edit:focus-visible {
        outline: 2px solid var(--adh-brand-solid);
        outline-offset: 2px;
    }

    .adh-xplat-divider {
        width: 1px;
        background: var(--adh-outline-var);
        align-self: stretch;
        margin: 0.6rem 0;
        flex-shrink: 0;
    }

    .adh-xplat-lane-action {
        display: flex;
        align-items: center;
        justify-content: flex-end;
        gap: 0.25rem;
        margin-top: 0.5rem;
        font-size: 0.68rem;
        color: var(--adh-outline);
        opacity: 0;
        transition: opacity 0.15s ease;
    }
    .adh-xplat-lane:hover .adh-xplat-lane-action { opacity: 1; }

    .adh-xplat-footer {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 0.45rem 0.85rem;
        border-top: 1px solid var(--adh-outline-var);
        background: var(--adh-surface-low);
    }