/*
 * Socialfyy · Dashboard (Overview + Growth Settings)
 * ----------------------------------------------------------------------------
 * Caricato da app/views/dashboard-new.php. Tutte le regole stanno sotto
 * body.sfy-dash (header profilo .sfy-hero e contenuto #main-content), così non
 * toccano le altre pagine. Griglia di 8px, card 24-28px. Stile della landing (assets/css/sfy-brand.css):
 * blu #1668E3 per pulsanti e collegamenti, arancione del marchio per la scheda attiva e i dettagli,
 * colori di vivacità per i riquadri dei numeri. Verde/rosso/ambra solo come colori di stato (attivo, errore, attenzione).
 * In fondo al file: sezione «Stile della landing».
 * Dark mode: body.darkside (variabili --sfy-dk-* in core-ui.css).
 */

body.sfy-dash {
    --sd-brand: #1668E3;
    --sd-brand-hover: #0F58C9;
    --sd-brand-2: #1668E3;
    --sd-brand-50: #EEF4FF;
    --sd-brand-100: #DCE8FD;
    --sd-brand-ring: rgba(22, 104, 227, .18);
    --sd-grad: #1668E3;
    /* pulsanti A.I.: viola-fucsia, per distinguerli dai pulsanti normali (blu) */
    --sd-ai: linear-gradient(135deg, #7C3AED 0%, #C026D3 60%, #DB2777 100%);
    --sd-ai-ink: #8B3FE0;

    /* neutri della landing */
    --sd-surface: #FFFFFF;
    --sd-inner: #F5F5F7;
    --sd-inner-2: #E8E8ED;
    --sd-border: #E5E5EA;
    --sd-border-strong: #D2D2D7;
    --sd-text: #1D1D1F;
    --sd-text-2: #5E5E63;
    --sd-text-3: #6E6E73;

    --sd-success: #16A34A;
    --sd-success-bg: rgba(22, 163, 74, .10);
    --sd-warning: #D97706;
    --sd-warning-bg: rgba(217, 119, 6, .10);
    --sd-danger: #E5484D;
    --sd-danger-bg: rgba(229, 72, 77, .10);

    --sd-radius: 24px;
    --sd-radius-lg: 28px;
    --sd-radius-sm: 16px;
    --sd-shadow: 0 1px 2px rgba(14, 13, 18, .04), 0 14px 34px -22px rgba(14, 13, 18, .18);
    --sd-shadow-hover: 0 1px 2px rgba(14, 13, 18, .05), 0 24px 44px -24px rgba(14, 13, 18, .35);
    --sd-ease: cubic-bezier(.2, .8, .2, 1);

    /* variabili usate dai vecchi stili (onboarding, chip) */
    --primary: #1668E3;
    --success: #22C55E;
}

body.sfy-dash.darkside {
    --sd-brand-50: rgba(22, 104, 227, .16);
    --sd-brand-100: rgba(22, 104, 227, .26);
    --sd-brand-ring: rgba(76, 141, 246, .28);
    --sd-surface: var(--sfy-dk-surface, #111111);
    --sd-inner: var(--sfy-dk-inner, #171717);
    --sd-inner-2: var(--sfy-dk-tertiary, #232323);
    --sd-border: var(--sfy-dk-border, rgba(255, 255, 255, .09));
    --sd-border-strong: var(--sfy-dk-border-strong, rgba(255, 255, 255, .14));
    --sd-text: var(--sfy-dk-text, #FAFAFA);
    --sd-text-2: var(--sfy-dk-text-2, #A3A3A3);
    --sd-text-3: var(--sfy-dk-text-3, #8A8A8A);
    --sd-success: #4ADE80;
    --sd-success-bg: rgba(74, 222, 128, .12);
    --sd-warning: #FBBF24;
    --sd-warning-bg: rgba(251, 191, 36, .12);
    --sd-danger: #FF6B6F;
    --sd-danger-bg: rgba(255, 107, 111, .12);
    --sd-shadow: 0 0 0 1px rgba(255, 255, 255, .02);
    --sd-shadow-hover: 0 18px 40px -22px rgba(22, 104, 227, .55);
}

body.sfy-dash .sfy-hero,
body.sfy-dash #main-content {
    -webkit-font-smoothing: antialiased;
}

/* ============================================================================
   1. HERO – card profilo (avatar, stato, numeri, Start/Stop, tab)
   ========================================================================== */

body.sfy-dash .profile-card.sfy-hero {
    position: relative;
    z-index: 5;
    padding: 24px;
    margin-bottom: 24px;
    border-radius: var(--sd-radius-lg);
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
}

/* Bagliore "aurora" decorativo nel blu del brand (non taglia il menu account) */
body.sfy-dash .sfy-hero__aurora {
    position: absolute;
    inset: 0;
    z-index: 0;
    border-radius: inherit;
    pointer-events: none;
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(22, 104, 227, .12), transparent 70%),
        radial-gradient(420px 200px at 70% 120%, rgba(78, 161, 255, .10), transparent 70%),
        radial-gradient(300px 160px at 0% 0%, rgba(22, 104, 227, .05), transparent 70%);
    background-size: 140% 140%, 140% 140%, 100% 100%;
    animation: sd-aurora 18s ease-in-out infinite alternate;
}

body.sfy-dash.darkside .sfy-hero__aurora {
    background:
        radial-gradient(520px 220px at 100% 0%, rgba(22, 104, 227, .26), transparent 70%),
        radial-gradient(420px 200px at 70% 120%, rgba(78, 161, 255, .14), transparent 70%),
        radial-gradient(300px 160px at 0% 0%, rgba(22, 104, 227, .10), transparent 70%);
    background-size: 140% 140%, 140% 140%, 100% 100%;
}

@keyframes sd-aurora {
    0% { background-position: 0% 0%, 0% 0%, 0 0; }
    100% { background-position: 100% 60%, 60% 100%, 0 0; }
}

body.sfy-dash .sfy-hero > .profile-info-wrapper {
    position: relative;
    z-index: 3; /* sopra i tab: il menu account si apre sopra di loro */
}

body.sfy-dash .sfy-hero > .menu-wrapper {
    position: relative;
    z-index: 1;
}

/* Barra di caricamento del cambio tab */
body.sfy-dash .profile-card.sfy-hero::after {
    inset-inline-start: 24px;
    max-width: calc(100% - 48px);
    bottom: -1px;
    height: 3px;
    background: #1668E3 !important;
    box-shadow: 0 0 12px rgba(22, 104, 227, .5);
}

body.sfy-dash .sfy-hero .profile-info-wrapper {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    grid-template-areas: "account stats cta";
    align-items: center;
    gap: 24px;
    margin: 0 !important;
}

body.sfy-dash .sfy-hero .profile-info-container { grid-area: account; }
body.sfy-dash .sfy-hero .stats { grid-area: stats; }
body.sfy-dash .sfy-hero .js-toggle-status { grid-area: cta; }

/* Selettore account */
body.sfy-dash .sfy-hero .profile-info-container {
    max-width: 440px;
    width: fit-content;
    min-width: 0;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px 12px 8px 8px;
    margin: -8px 0 -8px -8px;
    border: 1px solid transparent;
    border-radius: 20px;
    background: transparent;
    transition: background-color .2s ease, border-color .2s ease;
}

body.sfy-dash .sfy-hero .profile-info-container:hover {
    background: var(--sd-inner);
    border-color: var(--sd-border);
}

body.sfy-dash .sfy-hero .profile-info-container > .profile-info {
    align-items: center;
    min-width: 0;
}

/* Avatar con anello animato a gradiente */
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container {
    width: 64px;
    height: 64px;
    margin-inline-end: 16px;
    padding: 0;
    isolation: isolate;
}

body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::before,
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::after {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: 50%;
    background: conic-gradient(from 0deg, #1668E3, rgba(22, 104, 227, .35), #1668E3 60%, rgba(22, 104, 227, .35), #1668E3);
    z-index: -1;
    animation: sd-spin 6s linear infinite;
}

body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::after {
    inset: -2px;
    filter: blur(10px);
    opacity: .45;
    z-index: -2;
}

@keyframes sd-spin {
    to { transform: rotate(360deg); }
}

body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container > .profile-card-avatar,
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container > span:first-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 3px solid var(--sd-surface);
    background: var(--sd-inner);
    object-fit: cover;
    box-sizing: border-box;
    color: var(--sd-brand);
    font-size: 24px;
}

body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container .circle-status-badge {
    display: none;
}

body.sfy-dash .sfy-hero .user-details {
    min-width: 0;
    gap: 6px;
}

body.sfy-dash .sfy-hero .username-container {
    padding-top: 0;
    min-width: 0;
}

body.sfy-dash .sfy-hero .username-container b {
    min-width: 0;
}

body.sfy-dash .sfy-hero .username {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 22px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.02em;
    color: var(--sd-text) !important;
}

body.sfy-dash .sfy-hero .username .mdi-instagram {
    font-size: 18px;
    color: var(--sd-text-3);
    font-weight: 400;
}

body.sfy-dash .sfy-hero .dropdown-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 32px;
    height: 32px;
    margin-inline-start: 4px;
    border-radius: 10px;
    color: var(--sd-text-3);
    transition: background-color .2s ease, color .2s ease;
}

body.sfy-dash .sfy-hero .dropdown-toggle svg {
    width: 18px;
    height: 18px;
}

body.sfy-dash .sfy-hero .profile-info-container:hover .dropdown-toggle {
    color: var(--sd-text);
    background: var(--sd-surface);
}

/* Riga stato account: pillole */
body.sfy-dash .sfy-hero .user-details > .sub {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    line-height: 1;
}

body.sfy-dash .sfy-hero .user-details > .sub:empty { display: none; }

body.sfy-dash .sfy-hero .user-details .sub .status,
body.sfy-dash .accounts-list-menu .sub .status {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    margin: 0 !important;
    padding: 5px 10px 5px 8px !important;
    border-radius: 999px !important;
    font-size: 12px;
    font-weight: 600;
    line-height: 1;
    background: var(--sd-inner) !important;
    color: var(--sd-text-2) !important;
    border: 1px solid var(--sd-border);
}

body.sfy-dash .sfy-hero .user-details .sub .status::before,
body.sfy-dash .accounts-list-menu .sub .status::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

body.sfy-dash .sfy-hero .user-details .sub .status .mdi { display: none; }

body.sfy-dash .sfy-hero .user-details .sub .status.color-green,
body.sfy-dash .accounts-list-menu .sub .status.color-green {
    background: var(--sd-success-bg) !important;
    color: var(--sd-success) !important;
    border-color: transparent;
}

body.sfy-dash .sfy-hero .user-details .sub .status.color-green::before {
    animation: sd-pulse 2s ease-out infinite;
}

body.sfy-dash .sfy-hero .user-details .sub .status.color-paused,
body.sfy-dash .accounts-list-menu .sub .status.color-paused {
    background: var(--sd-warning-bg) !important;
    color: var(--sd-warning) !important;
    border-color: transparent;
}

body.sfy-dash .sfy-hero .user-details .sub .status.color-orange,
body.sfy-dash .accounts-list-menu .sub .status.color-orange {
    color: var(--sd-text-2) !important;
}

body.sfy-dash .sfy-hero .user-details .sub .color-danger {
    color: var(--sd-danger) !important;
    font-weight: 600;
}

@keyframes sd-pulse {
    0% { box-shadow: 0 0 0 0 currentColor; }
    70% { box-shadow: 0 0 0 6px transparent; }
    100% { box-shadow: 0 0 0 0 transparent; }
}

/* Menu account (tendina) */
body.sfy-dash .sfy-hero .accounts-list-menu {
    border-radius: 18px !important;
    border: 1px solid var(--sd-border) !important;
    box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .35) !important;
    overflow: hidden;
}

/* Numeri: Followers + Warm-up */
body.sfy-dash .sfy-hero .stats {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
}

body.sfy-dash .sfy-hero .stats .sfy-stat {
    min-width: 132px;
    padding: 12px 16px;
    border-radius: 16px;
    background: color-mix(in srgb, var(--sd-surface) 70%, transparent);
    border: 1px solid var(--sd-border);
    -webkit-backdrop-filter: blur(12px);
    backdrop-filter: blur(12px);
}

body.sfy-dash .sfy-hero .stat-label {
    display: block;
    margin: 0 0 6px !important;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: .02em;
    text-transform: uppercase;
    color: var(--sd-text-3) !important;
}

body.sfy-dash .sfy-hero .stat-value {
    font-size: 26px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    font-variant-numeric: tabular-nums;
    color: var(--sd-text) !important;
}

body.sfy-dash .sfy-hero .score-container {
    gap: 10px;
    min-height: 29px;
}

body.sfy-dash .sfy-hero .score-circle {
    width: 34px;
    height: 34px;
    box-shadow: none;
}

body.sfy-dash .sfy-hero .score-circle:hover { transform: none; }

body.sfy-dash .sfy-hero .progress-ring__circle {
    stroke-width: 3.5;
}

body.sfy-dash .sfy-hero .inner-circle {
    width: 26px;
    height: 26px;
    box-shadow: none;
    background: var(--sd-inner);
}

body.sfy-dash .sfy-hero .score-value {
    font-size: 11px;
    font-weight: 700;
}

body.sfy-dash .sfy-hero .score-text {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -.01em;
}

/* Start / Stop Growth */
body.sfy-dash .sfy-hero .js-toggle-status {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px !important;
    padding: 0 22px !important;
    border-radius: 14px !important;
    font-size: 15px !important;
    font-weight: 600;
    line-height: 1 !important;
    letter-spacing: -.005em;
    white-space: nowrap;
    cursor: pointer;
    transition: transform .2s var(--sd-ease), box-shadow .2s ease, background-color .2s ease, color .2s ease, border-color .2s ease;
}

body.sfy-dash .sfy-hero .js-toggle-status .mdi {
    margin: 0 !important;
    font-size: 18px !important;
    line-height: 1;
}

body.sfy-dash .sfy-hero .js-toggle-status.start-button {
    color: #fff !important;
    border: 0 !important;
    background: var(--sd-grad) !important;
    background-size: 160% 160% !important;
    box-shadow: 0 10px 24px -10px rgba(22, 104, 227, .75), inset 0 1px 0 rgba(255, 255, 255, .25);
    animation: sd-cta-breathe 3.2s ease-in-out infinite !important;
}

body.sfy-dash .sfy-hero .js-toggle-status.start-button:hover {
    transform: translateY(-1px);
    background-position: 100% 0 !important;
    box-shadow: 0 14px 30px -10px rgba(22, 104, 227, .85), inset 0 1px 0 rgba(255, 255, 255, .25);
}

@keyframes sd-cta-breathe {
    0%, 100% { box-shadow: 0 10px 24px -10px rgba(22, 104, 227, .75), 0 0 0 0 rgba(22, 104, 227, .35), inset 0 1px 0 rgba(255, 255, 255, .25); }
    50% { box-shadow: 0 10px 24px -10px rgba(22, 104, 227, .75), 0 0 0 8px rgba(22, 104, 227, 0), inset 0 1px 0 rgba(255, 255, 255, .25); }
}

body.sfy-dash .sfy-hero .js-toggle-status.pause-button {
    color: var(--sd-text) !important;
    background: var(--sd-surface) !important;
    border: 1px solid var(--sd-border-strong) !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .05);
    animation: none !important;
}

body.sfy-dash .sfy-hero .js-toggle-status.pause-button .mdi {
    color: var(--sd-danger);
}

body.sfy-dash .sfy-hero .js-toggle-status.pause-button:hover {
    color: var(--sd-danger) !important;
    background: var(--sd-danger-bg) !important;
    border-color: transparent !important;
}

body.sfy-dash .sfy-hero .js-toggle-status:focus-visible,
body.sfy-dash .sfy-tabs .menu-item:focus-visible {
    outline: 3px solid var(--sd-brand-ring);
    outline-offset: 2px;
}

/* ----------------------------------------------------------------------------
   Tab a controllo segmentato con indicatore che scorre (solo CSS).
   Funziona con 2-6 voci: per aggiungere un tab basta un <a class="menu-item"
   data-route="..."> nel menu e il file fragments/dashboard/<route>.fragment.php.
   -------------------------------------------------------------------------- */
body.sfy-dash .sfy-hero .sfy-tabs {
    display: flex;
    justify-content: flex-start;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid var(--sd-border);
}

body.sfy-dash .sfy-tabs .menu {
    --sd-tab-n: 2;
    --sd-tab-i: 0;
    position: relative;
    display: inline-grid;
    grid-auto-flow: column;
    grid-auto-columns: 1fr;
    flex-wrap: nowrap;
    gap: 0;
    padding: 4px;
    border-radius: 16px;
    background: var(--sd-inner) !important;
    border: 1px solid var(--sd-border);
    box-shadow: none;
}

body.sfy-dash .sfy-tabs .menu::before {
    content: "";
    position: absolute;
    top: 4px;
    bottom: 4px;
    inset-inline-start: calc(4px + (100% - 8px) / var(--sd-tab-n) * var(--sd-tab-i));
    width: calc((100% - 8px) / var(--sd-tab-n));
    border-radius: 12px;
    background: var(--sd-surface);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 6px 16px -8px rgba(22, 104, 227, .35);
    opacity: 0;
    transition: left .45s var(--sd-ease), opacity .2s ease;
    pointer-events: none;
}

body.sfy-dash.darkside .sfy-tabs .menu::before {
    background: var(--sfy-dk-tertiary, #232323);
    box-shadow: 0 0 0 1px var(--sd-border-strong), 0 6px 16px -8px rgba(22, 104, 227, .6);
}

body.sfy-dash .sfy-tabs .menu:has(> .menu-item.active)::before { opacity: 1; }

body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(3)) { --sd-tab-n: 3; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(4)) { --sd-tab-n: 4; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(5)) { --sd-tab-n: 5; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(6)) { --sd-tab-n: 6; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(2).active) { --sd-tab-i: 1; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(3).active) { --sd-tab-i: 2; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(4).active) { --sd-tab-i: 3; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(5).active) { --sd-tab-i: 4; }
body.sfy-dash .sfy-tabs .menu:has(> a.menu-item:nth-of-type(6).active) { --sd-tab-i: 5; }

body.sfy-dash .sfy-tabs .menu-item {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    white-space: nowrap;
    background: transparent !important;
    color: var(--sd-text-2) !important;
    transition: color .25s ease;
    -webkit-user-select: none;
    user-select: none;
}

body.sfy-dash .sfy-tabs .menu-item svg {
    width: 18px;
    height: 18px;
    margin: 0;
    opacity: .8;
}

body.sfy-dash .sfy-tabs .menu-item:hover:not(.active) {
    color: var(--sd-text) !important;
}

body.sfy-dash .sfy-tabs .menu-item.active {
    color: var(--sd-brand) !important;
}

body.sfy-dash.darkside .sfy-tabs .menu-item.active {
    color: #fff !important;
}

body.sfy-dash .sfy-tabs .menu-item.active svg { opacity: 1; }

/* Fallback senza :has(): pillola sulla voce attiva */
@supports not selector(:has(*)) {
    body.sfy-dash .sfy-tabs .menu-item.active {
        background: var(--sd-surface) !important;
        box-shadow: 0 1px 2px rgba(15, 23, 42, .08);
    }
}

/* ============================================================================
   2. CONTENUTO TAB – card, intestazioni, griglia
   ========================================================================== */

body.sfy-dash #main-content .route-content {
    animation: sd-fade-up .45s var(--sd-ease) both;
}

@keyframes sd-fade-up {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: none; }
}

body.sfy-dash #main-content .ColumnLayout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
    padding-bottom: 0;
    margin-bottom: 20px;
}

body.sfy-dash #main-content .ColumnLayout > *,
body.sfy-dash #main-content .ColumnLayout--gap {
    margin-inline-end: 0 !important;
    min-width: 0;
}

@media (min-width: 900px) {
    body.sfy-dash #main-content .ColumnLayout[data-columns="2,1"] {
        grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    }
}

@media (min-width: 1100px) {
    body.sfy-dash #main-content .ColumnLayout[data-columns="1,1,1"] {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

@media (min-width: 700px) and (max-width: 1099px) {
    body.sfy-dash #main-content .ColumnLayout[data-columns="1,1,1"] {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
    body.sfy-dash #main-content .ColumnLayout[data-columns="1,1,1"] > :last-child {
        grid-column: 1 / -1;
    }
}

body.sfy-dash #main-content .card {
    position: relative;
    margin-bottom: 20px;
    border-radius: var(--sd-radius) !important;
    background: var(--sd-surface) !important;
    border: 1px solid var(--sd-border) !important;
    box-shadow: var(--sd-shadow) !important;
    transition: box-shadow .3s ease, border-color .3s ease;
}

body.sfy-dash #main-content .ColumnLayout > .card { margin-bottom: 0; }

body.sfy-dash #main-content .card-header {
    align-items: center;
    gap: 12px;
    padding: 20px 24px 12px !important;
    background: transparent !important;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 0 !important;
    border-radius: var(--sd-radius) var(--sd-radius) 0 0;
}

body.sfy-dash #main-content .card-header h2,
body.sfy-dash #main-content .sidecar h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 650;
    line-height: 1.3;
    letter-spacing: -.015em;
    color: var(--sd-text) !important;
}

body.sfy-dash #main-content .card-header.with--sub > div,
body.sfy-dash #main-content .sidecar-header {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

body.sfy-dash #main-content .card-header.with--sub span,
body.sfy-dash #main-content .sidecar-header span {
    font-size: 13px;
    color: var(--sd-text-3);
}

body.sfy-dash #main-content .card-header-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 40px;
    height: 40px;
    margin: 0;
    padding: 0;
    border-radius: 12px;
    font-size: 20px;
    line-height: 1;
    color: var(--sd-brand);
    background: var(--sd-brand-50);
}

body.sfy-dash #main-content .card-body {
    background: transparent !important;
    border-radius: 0 0 var(--sd-radius) var(--sd-radius);
}

body.sfy-dash #main-content .height-fit-content {
    transform: none;
}

body.sfy-dash #main-content .card-body.onprogress::after,
body.sfy-dash #main-content .stats-card.onprogress::after {
    background-color: color-mix(in srgb, var(--sd-surface) 55%, transparent);
    border-radius: 0 0 var(--sd-radius) var(--sd-radius);
}

/* ---------------------------------------------------------------- KPI */
body.sfy-dash .sfy-kpis {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

body.sfy-dash .sfy-kpi {
    position: relative;
    display: grid;
    grid-template-columns: auto 1fr;
    grid-template-areas:
        "icon label"
        "value value"
        "hint hint";
    align-items: center;
    column-gap: 12px;
    row-gap: 4px;
    padding: 20px 24px;
    border-radius: var(--sd-radius);
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    box-shadow: var(--sd-shadow);
    overflow: hidden;
    transition: transform .3s var(--sd-ease), box-shadow .3s ease;
}

body.sfy-dash .sfy-kpi::after {
    content: "";
    position: absolute;
    top: -60px;
    inset-inline-end: -60px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: radial-gradient(closest-side, rgba(22, 104, 227, .14), transparent);
    pointer-events: none;
    transition: transform .5s var(--sd-ease), opacity .3s ease;
    opacity: .7;
}

body.sfy-dash .sfy-kpi:hover {
    transform: translateY(-2px);
    box-shadow: var(--sd-shadow-hover);
}

body.sfy-dash .sfy-kpi:hover::after {
    transform: scale(1.25);
    opacity: 1;
}

body.sfy-dash .sfy-kpi__icon {
    grid-area: icon;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 12px;
    color: var(--sd-brand);
    background: var(--sd-brand-50);
}

body.sfy-dash .sfy-kpi:first-child .sfy-kpi__icon {
    color: #fff;
    background: var(--sd-grad);
    box-shadow: 0 8px 18px -8px rgba(22, 104, 227, .7);
}

body.sfy-dash .sfy-kpi__label {
    grid-area: label;
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-text-2);
}

body.sfy-dash .sfy-kpi__value {
    grid-area: value;
    margin-top: 12px;
    font-size: 32px;
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
    color: var(--sd-text);
}

body.sfy-dash .sfy-kpi__hint {
    grid-area: hint;
    font-size: 13px;
    color: var(--sd-text-3);
}

/* Variazione follower scritta da app.js: <a class="ibd-number insight-basic-chart-diff-*"> */
body.sfy-dash .sfy-kpi__value.insights-basic-diff {
    display: block;
    height: auto;
    font-size: 32px;
    margin-top: 12px;
}

body.sfy-dash .sfy-kpi__value a {
    display: inline-flex !important;
    align-items: center;
    gap: 4px;
    color: var(--sd-text) !important;
    text-decoration: none;
    cursor: default;
}

body.sfy-dash .sfy-kpi__value a .mdi {
    margin: 0 4px 0 0 !important;
    font-size: 18px !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    font-size: 18px;
}

body.sfy-dash .sfy-kpi__value a.insight-basic-chart-diff-green .mdi {
    color: var(--sd-success);
    background: var(--sd-success-bg);
}

body.sfy-dash .sfy-kpi__value a.insight-basic-chart-diff-red .mdi {
    color: var(--sd-danger);
    background: var(--sd-danger-bg);
}

/* ---------------------------------------------------------------- Stati vuoti */
body.sfy-dash #main-content .chart-placeholder.sfy-empty {
    position: relative;
    border-radius: 16px;
}

body.sfy-dash #main-content .sfy-empty__art {
    position: absolute;
    inset: 24% 0 0 0;
    width: 100%;
    height: 76%;
    opacity: .55;
    filter: blur(2px) saturate(.9);
}

body.sfy-dash.darkside #main-content .sfy-empty__art { opacity: .4; }

body.sfy-dash #main-content .chart-placeholder.sfy-empty p.placeholder,
body.sfy-dash #main-content .sfy-map-ph p.placeholder {
    top: 50%;
    left: 50%;
    inset-inline-end: auto;
    bottom: auto;
    transform: translate(-50%, -50%);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 32px);
    width: max-content;
    margin: 0;
    padding: 10px 16px 10px 10px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    color: var(--sd-text) !important;
    background: color-mix(in srgb, var(--sd-surface) 82%, transparent);
    border: 1px solid var(--sd-border);
    box-shadow: 0 10px 30px -14px rgba(15, 23, 42, .35);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
}

body.sfy-dash #main-content .sfy-map-ph p.placeholder {
    padding: 10px 16px;
}

body.sfy-dash #main-content .sfy-map-ph p.placeholder .mdi,
body.sfy-dash #main-content .sfy-map-ph p.placeholder .sli {
    color: var(--sd-brand);
}

body.sfy-dash .sfy-empty__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    color: var(--sd-brand);
    background: var(--sd-brand-50);
}

body.sfy-dash .sfy-empty-state {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 24px;
    text-align: center;
}

body.sfy-dash .sfy-empty-state p.placeholder {
    position: static;
    display: block;
    margin: 8px 0 0;
    font-size: 15px;
    font-weight: 600;
    color: var(--sd-text) !important;
}

body.sfy-dash .sfy-empty-state__art {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 64px;
    height: 64px;
    border-radius: 20px;
    color: var(--sd-brand);
    background: var(--sd-brand-50);
}

body.sfy-dash .sfy-empty-state__art::after {
    content: "";
    position: absolute;
    inset: -8px;
    border-radius: 26px;
    border: 1px dashed var(--sd-brand-100);
}

body.sfy-dash .sfy-empty-state__hint {
    max-width: 240px;
    font-size: 13px;
    line-height: 1.45;
    color: var(--sd-text-3);
}

/* Finché c'è il segnaposto il canvas vuoto non occupa spazio (app.js toglie il segnaposto prima di disegnare) */
body.sfy-dash #main-content .card-body > .chart-placeholder.sfy-empty {
    flex: 1 1 100%;
    min-width: 0;
}

body.sfy-dash #main-content .card-body:has(> .chart-placeholder) > canvas {
    display: none;
}

body.sfy-dash #main-content #age-ranges {
    width: 100%;
    height: 100%;
}

/* Attività 30 giorni senza dati */
body.sfy-dash .sfy-activity-empty {
    display: none;
}

body.sfy-dash #main-content .chart-container:has(#total-line-chart:empty) .sfy-activity-empty {
    display: flex;
    position: relative;
    inset: auto;
    min-height: 220px;
}

/* testo più lungo («profilo in riscaldamento fino al …», \Sfy\Warmup) */
body.sfy-dash .sfy-activity-empty .sfy-empty-state__hint {
    max-width: 380px;
}

/* ---------------------------------------------------------------- Crescita follower */
body.sfy-dash #main-content .sfy-card-growth .card-body,
body.sfy-dash #main-content .sfy-card-live .card-body {
    padding: 0 12px 12px;
    box-sizing: border-box;
    height: 341px;
}

body.sfy-dash #main-content .sfy-card-growth .chart-placeholder {
    height: 100% !important;
}

/* ---------------------------------------------------------------- Live feed */
body.sfy-dash .sfy-live-dot {
    display: none;
    width: 8px;
    height: 8px;
    margin-inline-end: 10px;
    border-radius: 50%;
    background: var(--sd-success);
    color: var(--sd-success);
    animation: sd-pulse 2s ease-out infinite;
}

body.sfy-dash:has(.sfy-hero .js-toggle-status.pause-button) .sfy-live-dot {
    display: inline-block;
}

body.sfy-dash #main-content .live-feed {
    max-width: none;
    min-height: 0;
    overflow-y: auto;
    scrollbar-width: thin;
    border-radius: 14px;
}

body.sfy-dash #main-content .live-feed .feed-item {
    padding: 12px 12px 12px 56px;
    border-radius: 14px;
    transition: background-color .3s ease;
}

body.sfy-dash #main-content .live-feed .feed-item::before {
    inset-inline-start: 27px;
    top: 44px;
    width: 1px;
    height: calc(100% - 32px);
    padding: 0;
    background: var(--sd-border-strong);
}

body.sfy-dash #main-content .live-feed .feed-item.new-item,
body.sfy-dash #main-content .live-feed .feed-item:hover {
    background: var(--sd-inner);
}

body.sfy-dash #main-content .live-feed .feed-icon {
    inset-inline-start: 12px;
    top: 12px;
    width: 32px;
    height: 32px;
    border-radius: 10px;
    color: var(--sd-brand);
    background: var(--sd-brand-50) !important;
}

body.sfy-dash #main-content .live-feed .feed-icon.bg-red-gradient,
body.sfy-dash #main-content .live-feed .feed-item.error .feed-icon {
    color: var(--sd-danger);
    background: var(--sd-danger-bg) !important;
}

body.sfy-dash #main-content .live-feed .feed-content { margin-inline-start: 0; }

body.sfy-dash #main-content .live-feed .feed-text {
    font-size: 13.5px;
    line-height: 1.45;
    color: var(--sd-text);
}

body.sfy-dash #main-content .live-feed .feed-time {
    font-size: 12px;
    color: var(--sd-text-3);
}

body.sfy-dash #main-content .live-feed .feed-tag {
    gap: 6px;
    margin-top: 8px;
    padding: 3px 10px;
    border: 0;
    border-radius: 999px;
    font-size: 11.5px;
    font-weight: 600;
    color: var(--sd-text-2);
    background: var(--sd-inner-2);
}

body.sfy-dash #main-content .live-feed .feed-tag > span:first-child {
    display: inline-block;
    width: 6px;
    height: 6px;
    margin: 0 !important;
    border-radius: 50%;
    background: var(--sd-brand);
}

/* ---------------------------------------------------------------- Mappa follower */
body.sfy-dash #main-content .sfy-card-location > .card-body {
    height: auto;
    align-items: center;
    gap: 0;
    padding: 0 8px 8px !important;
}

body.sfy-dash #main-content .sfy-card-location #vmap {
    margin: 0 auto;
}

body.sfy-dash #main-content .sfy-card-location .sidecar {
    margin: 0 16px 16px !important;
    padding: 16px !important;
    border: 0;
    border-radius: 18px;
    background: var(--sd-inner);
    width: auto;
}

body.sfy-dash #main-content .sidecar-header {
    padding: 0 0 12px;
    background: transparent;
}

body.sfy-dash #main-content .map-location-item {
    gap: 12px;
    margin: 0;
    padding: 10px 8px;
    border-radius: 12px;
}

body.sfy-dash #main-content .map-location-item:hover {
    transform: none;
    background: var(--sd-surface);
}

body.sfy-dash #main-content .map-icon {
    width: 28px;
    height: 20px;
    margin: 0;
    border-radius: 4px;
    object-fit: cover;
    box-shadow: 0 0 0 1px var(--sd-border);
}

body.sfy-dash #main-content .map-country-name {
    margin-bottom: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-text);
}

body.sfy-dash #main-content .map-bar {
    height: 6px;
    border-radius: 999px;
    background: var(--sd-inner-2);
}

body.sfy-dash #main-content .map-bar-progress { border-radius: 999px; }

body.sfy-dash #main-content .map-percentage {
    margin-inline-start: 4px;
    min-width: 40px;
    text-align: end;
    font-size: 14px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--sd-text);
}

body.sfy-dash .jqvmap-label {
    padding: 6px 10px;
    border-radius: 8px;
    font-family: inherit;
    font-size: 12px;
    font-weight: 600;
    background: #1D1D1F;
    box-shadow: 0 8px 20px -8px rgba(15, 23, 42, .5);
}

/* Segnaposto mappa (decorativo) */
body.sfy-dash #main-content .followers-location-placeholder {
    position: relative;
    background: none !important;
}

body.sfy-dash #main-content .sfy-map-ph {
    margin: 0 8px 8px;
    border-radius: 18px;
    overflow: hidden;
    color: var(--sd-brand);
    background:
        radial-gradient(60% 70% at 50% 45%, rgba(22, 104, 227, .08), transparent 70%),
        var(--sd-inner) !important;
}

body.sfy-dash #main-content .sfy-map-ph__art {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
}

body.sfy-dash #main-content .sfy-map-ph__art pattern circle { fill: var(--sd-text-3); }

body.sfy-dash #main-content .sfy-map-ph__pins circle {
    fill: var(--sd-brand);
}

body.sfy-dash #main-content .sfy-list-ph {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 20px;
    margin: 0 16px 16px 8px;
    padding: 24px;
    border-radius: 18px;
    background: var(--sd-inner) !important;
}

body.sfy-dash #main-content .sfy-list-ph__row {
    display: flex;
    align-items: center;
    gap: 12px;
}

body.sfy-dash #main-content .sfy-list-ph__flag {
    flex: 0 0 auto;
    width: 28px;
    height: 20px;
    border-radius: 4px;
    background: var(--sd-inner-2);
}

body.sfy-dash #main-content .sfy-list-ph__lines {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

body.sfy-dash #main-content .sfy-list-ph__line {
    display: block;
    height: 10px;
    border-radius: 999px;
    background: var(--sd-inner-2);
}

body.sfy-dash #main-content .sfy-list-ph__bar {
    display: block;
    height: 6px;
    border-radius: 999px;
    background: var(--sd-inner-2);
    overflow: hidden;
}

body.sfy-dash #main-content .sfy-list-ph__bar > span {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--sd-brand-100), color-mix(in srgb, var(--sd-brand) 35%, transparent));
}

body.sfy-dash #main-content .sfy-list-ph__line,
body.sfy-dash #main-content .sfy-list-ph__flag {
    background: linear-gradient(90deg, var(--sd-inner-2) 0%, var(--sd-surface) 50%, var(--sd-inner-2) 100%);
    background-size: 200% 100%;
    animation: sd-shimmer 2.4s ease-in-out infinite;
}

@keyframes sd-shimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}

/* ---------------------------------------------------------------- Demografia */
body.sfy-dash #main-content .ColumnLayout[data-columns="1,1,1"] > .card > .card-body {
    height: 340px;
    padding: 0 12px 12px;
    box-sizing: border-box;
}

body.sfy-dash #main-content .ColumnLayout[data-columns="1,1,1"] .chart-placeholder.sfy-empty {
    height: 100% !important;
}

body.sfy-dash #main-content #age-ranges.progress-container {
    margin: 4px 12px 0 !important;
    width: calc(100% - 24px);
}

body.sfy-dash #main-content .progress-item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    margin: 0 0 14px;
    padding-bottom: 14px;
    background: linear-gradient(var(--sd-inner-2), var(--sd-inner-2)) no-repeat left bottom / 100% 6px;
    border-radius: 0;
}

body.sfy-dash #main-content .progress-bar-bold {
    display: contents;
}

body.sfy-dash #main-content .progress-label {
    position: static;
    grid-column: 1;
    grid-row: 1;
    height: auto;
    font-size: 13.5px;
    font-weight: 600;
    color: var(--sd-text);
}

body.sfy-dash #main-content .progress-value {
    grid-column: 2;
    grid-row: 1;
    font-size: 13.5px;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    color: var(--sd-text);
}

body.sfy-dash #main-content .progress-fill {
    grid-column: 1 / -1;
    grid-row: 2;
    height: 6px;
    margin-top: 8px;
    margin-bottom: -14px;
    padding: 0;
    border-radius: 999px;
    align-self: end;
    position: relative;
    top: 0;
}

/* ---------------------------------------------------------------- Attività 30 giorni */
body.sfy-dash #main-content .stats-card {
    padding: 20px 24px 12px !important;
    margin-bottom: 0;
}

body.sfy-dash #main-content .stats-card .react-stats-title {
    display: block;
    margin: 0 0 8px !important;
    font-size: 17px;
    font-weight: 650;
    letter-spacing: -.015em;
    color: var(--sd-text);
}

body.sfy-dash #main-content .stats-card .chart-container {
    margin: 0 -8px;
    padding: 0;
    background: transparent;
    border-radius: 0;
}

body.sfy-dash #main-content .apexcharts-tooltip {
    border-radius: 12px !important;
    border: 1px solid var(--sd-border) !important;
    box-shadow: 0 16px 40px -16px rgba(15, 23, 42, .35) !important;
}

/* ============================================================================
   3. GROWTH SETTINGS
   ========================================================================== */

body.sfy-dash .sfy-gs-intro {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin: 8px 4px 24px;
}

body.sfy-dash .sfy-gs-intro__title {
    margin: 0 0 4px;
    font-size: 26px;
    font-weight: 700;
    line-height: 1.2;
    letter-spacing: -.025em;
    color: var(--sd-text);
}

body.sfy-dash .sfy-gs-intro__text p {
    margin: 0;
    max-width: 560px;
    font-size: 15px;
    line-height: 1.5;
    color: var(--sd-text-2);
}

body.sfy-dash .sfy-autosave {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 8px 10px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    color: var(--sd-text-2);
    background: var(--sd-surface);
    border: 1px solid var(--sd-border);
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
}

body.sfy-dash .sfy-autosave svg {
    width: 20px;
    height: 20px;
    padding: 3px;
    box-sizing: border-box;
    border-radius: 50%;
    color: var(--sd-success);
    background: var(--sd-success-bg);
}

body.sfy-dash #main-content .sfy-gs-card .card-header {
    align-items: flex-start;
    gap: 16px;
    padding: 24px 24px 8px !important;
}

body.sfy-dash .sfy-gs-head {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
    padding-top: 1px;
}

body.sfy-dash .sfy-gs-help {
    margin: 0;
    font-size: 14px;
    line-height: 1.45;
    color: var(--sd-text-2);
}

body.sfy-dash #main-content .sfy-gs-card .card-body {
    height: auto !important;
    padding: 12px 24px 24px 80px !important;
    transform: none;
}

body.sfy-dash #main-content .growth-settings-content .card--sub-body {
    padding: 0 !important;
    background: transparent !important;
}

/* Chip (interazioni, lingue, interessi) */
body.sfy-dash #main-content .growth-settings-content .tags > div:not(.check--light-outline-wrapper) {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline) {
    float: none !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: auto;
    min-height: 40px;
    margin: 0 !important;
    padding: 0 14px;
    border-radius: 10px;
    border: 1px solid var(--sd-border-strong);
    background: var(--sd-surface);
    color: var(--sd-text) !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.2;
    box-shadow: 0 1px 2px rgba(15, 23, 42, .04);
    transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .2s var(--sd-ease), box-shadow .2s ease;
}

body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline):hover {
    transform: translateY(-1px);
    border-color: var(--sd-brand);
    color: var(--sd-brand) !important;
    background: var(--sd-surface);
    box-shadow: 0 6px 16px -10px rgba(22, 104, 227, .6);
}

body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline):active {
    transform: scale(.97);
}

body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline)::before {
    content: "";
    width: 0;
    height: 16px;
    margin-inline-start: -2px;
    border-radius: 50%;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231668E3' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
    opacity: 0;
    transition: width .2s var(--sd-ease), opacity .2s ease, margin .2s ease;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.selected:not(.check--light-outline) {
    color: #fff !important;
    border-color: transparent;
    background: var(--sd-grad);
    box-shadow: 0 8px 18px -10px rgba(22, 104, 227, .8);
}

body.sfy-dash #main-content .growth-settings-content .item-tag.selected:not(.check--light-outline)::before {
    width: 16px;
    margin-inline-start: -6px;
    opacity: 1;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.selected:not(.check--light-outline):hover {
    color: #fff !important;
    border-color: transparent;
    background: var(--sd-grad);
    filter: brightness(1.05);
}

body.sfy-dash #main-content .growth-settings-content .item-tag > div:not(.item-tag-popup):not(.item-tag-checkbox) {
    display: inline-flex !important;
    flex-direction: row !important;
    align-items: center;
}

/* Card grandi (genere): selezione con anello */
body.sfy-dash #main-content .growth-settings-content .check--light-outline-wrapper {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 12px;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline {
    float: none !important;
    display: flex;
    align-items: center;
    gap: 12px;
    width: auto !important;
    max-width: none;
    height: auto;
    min-height: 88px;
    margin: 0 !important;
    padding: 16px 44px 16px 16px;
    border-radius: 16px;
    border: 1px solid var(--sd-border-strong);
    background: var(--sd-surface);
    color: var(--sd-text) !important;
    font-size: 14px;
    white-space: normal;
    transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease, transform .2s var(--sd-ease);
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline:hover {
    transform: translateY(-1px);
    border-color: var(--sd-brand);
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline > div:not(.item-tag-popup):not(.item-tag-checkbox) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start;
    gap: 4px;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline b {
    font-size: 15px;
    font-weight: 650;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline span {
    font-size: 13px;
    line-height: 1.4;
    color: var(--sd-text-2);
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline lord-icon {
    flex: 0 0 auto;
    width: 56px !important;
    height: 56px !important;
}

body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline.selected {
    border-color: var(--sd-brand);
    background: linear-gradient(180deg, var(--sd-brand-50), var(--sd-surface));
    box-shadow: 0 0 0 3px var(--sd-brand-ring);
    color: var(--sd-text) !important;
}

body.sfy-dash #main-content .growth-settings-content .item-tag-checkbox {
    top: 14px;
    inset-inline-end: 14px;
    width: 22px;
    height: 22px;
    font-size: 22px;
    line-height: 22px;
    transform: scale(.6);
    transition: opacity .2s ease, transform .3s var(--sd-ease);
}

body.sfy-dash #main-content .growth-settings-content .item-tag.selected .item-tag-checkbox {
    transform: scale(1);
}

body.sfy-dash #main-content .growth-settings-content .item-tag-checkbox .mdi-dot {
    color: var(--sd-brand) !important;
}

/* Popup delle azioni (emoji, opzioni) */
body.sfy-dash #main-content .growth-settings-content .item-tag:has(.item-tag-popup) {
    overflow: visible;
}

body.sfy-dash #main-content .growth-settings-content .item-tag-popup {
    border-radius: 16px;
    border: 1px solid var(--sd-border);
    background: var(--sd-surface);
    box-shadow: 0 20px 48px -20px rgba(15, 23, 42, .35);
    color: var(--sd-text);
}

body.sfy-dash #main-content .growth-settings-content .emoji-btn.active {
    background: var(--sd-brand-50);
}

/* Target: ricerca + tag */
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search {
    display: flex;
    align-items: stretch;
    border-radius: 14px;
    border: 1px solid var(--sd-border-strong);
    background: var(--sd-surface);
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.sfy-dash #main-content .growth-settings-content .suggestions-target-search:focus-within {
    border-color: var(--sd-brand);
    box-shadow: 0 0 0 4px var(--sd-brand-ring);
}

body.sfy-dash #main-content .growth-settings-content .suggestions-target-search .js-input-search {
    flex: 1;
    min-width: 0;
    height: 48px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    font-size: 15px;
    color: var(--sd-text);
}

body.sfy-dash #main-content .growth-settings-content .suggestions-target-search .js-input-search::placeholder {
    color: var(--sd-text-3);
}

body.sfy-dash #main-content .growth-settings-content .suggestions-target-search .selectize-control,
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select {
    flex: 0 0 auto;
    max-width: 40%;
    border-inline-end: 1px solid var(--sd-border);
}

body.sfy-dash #main-content .growth-settings-content .suggestions-target-search .selectize-input,
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select {
    height: 48px;
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
    border-radius: 14px 0 0 14px !important;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tags::before,
body.sfy-dash #main-content .growth-settings-content .js-targets-form .tags::after {
    display: none;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag {
    float: none !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    height: 30px;
    margin: 0 !important;
    padding: 0 4px 0 8px;
    border-radius: 8px;
    border: 1px solid var(--sd-border);
    background: var(--sd-inner);
    color: var(--sd-text) !important;
    font-size: 13px;
    font-weight: 500;
    line-height: 1;
    transition: border-color .2s ease, background-color .2s ease;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag.target-hidden:not(.is-visible) {
    display: none !important;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag:hover {
    border-color: var(--sd-brand-100);
    background: var(--sd-brand-50);
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag .mdi:not(.remove) {
    color: var(--sd-brand);
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag .remove {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    border-radius: 6px;
    font-size: 13px;
    color: var(--sd-text-3);
    transition: background-color .2s ease, color .2s ease;
}

body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag .remove:hover {
    color: var(--sd-danger);
    background: var(--sd-danger-bg);
}

/* Filtro username */
body.sfy-dash #main-content .js-username-filter-settings-form > .clearfix,
body.sfy-dash #main-content .js-username-filter-settings-form .js-username-filter {
    margin-bottom: 0 !important;
}

body.sfy-dash #main-content .js-targets-form .tags {
    margin-bottom: 0 !important;
}

body.sfy-dash #main-content .js-username-filter-settings-form .form-label {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 600;
    color: var(--sd-text);
}

body.sfy-dash #main-content .js-username-filter-settings-form .field-tips {
    margin: 0 0 16px;
    padding: 12px 16px 12px 32px;
    border-radius: 14px;
    background: var(--sd-inner);
    font-size: 13px;
    line-height: 1.6;
    color: var(--sd-text-2);
}

body.sfy-dash #main-content .js-username-filter-settings-form .js-username-filter .field-tips {
    margin: 8px 0 0;
    padding: 0 0 0 20px;
    background: transparent;
}

body.sfy-dash #main-content .js-username-filter-settings-form .field-tips .color-danger {
    color: var(--sd-warning) !important;
}

body.sfy-dash #main-content .js-username-filter-settings-form textarea.input {
    min-height: 96px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid var(--sd-border-strong);
    background: var(--sd-surface);
    color: var(--sd-text);
    font-size: 14px;
    line-height: 1.5;
    resize: vertical;
    transition: border-color .2s ease, box-shadow .2s ease;
}

body.sfy-dash #main-content .js-username-filter-settings-form textarea.input:focus {
    border-color: var(--sd-brand);
    box-shadow: 0 0 0 4px var(--sd-brand-ring);
    outline: 0;
}

body.sfy-dash #main-content .js-username-filter-settings-form .checkbox + span {
    font-size: 14px;
    color: var(--sd-text) !important;
}

/* Interruttori: stato attivo nel blu del brand */
body.sfy-dash #main-content .growth-settings-content .checkbox:checked + span .icon,
body.sfy-dash #main-content .growth-settings-content .checkbox:checked + span .icon.unchecked {
    background-color: var(--sd-brand) !important;
    border-color: var(--sd-brand) !important;
}


/* ============================================================================
   4. MOBILE
   ========================================================================== */

@media (max-width: 1023px) {
    body.sfy-dash .sfy-hero .profile-info-wrapper {
        grid-template-columns: minmax(0, 1fr) auto;
        grid-template-areas:
            "account cta"
            "stats stats";
    }
    body.sfy-dash .sfy-hero .stats { justify-content: flex-start; }
}

@media (max-width: 767px) {
    body.sfy-dash .skeleton > .container-1200 {
        padding-inline-start: 12px;
        padding-inline-end: 12px;
        box-sizing: border-box;
    }

    body.sfy-dash .profile-card.sfy-hero {
        padding: 16px;
        margin-bottom: 16px;
        border-radius: 20px;
    }

    body.sfy-dash .profile-card.sfy-hero::after {
        inset-inline-start: 16px;
        max-width: calc(100% - 32px);
    }

    body.sfy-dash .sfy-hero .profile-info-wrapper {
        grid-template-columns: minmax(0, 1fr);
        grid-template-areas: "account" "stats" "cta";
        gap: 16px;
    }

    body.sfy-dash .sfy-hero .profile-info-container {
        width: auto;
        max-width: none;
    }

    body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container {
        width: 56px;
        height: 56px;
        margin-inline-end: 14px;
    }

    body.sfy-dash .sfy-hero .username { font-size: 19px; }

    body.sfy-dash .sfy-hero .stats {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 8px;
    }

    body.sfy-dash .sfy-hero .stats .sfy-stat {
        min-width: 0;
        padding: 12px 14px;
    }

    body.sfy-dash .sfy-hero .stat-value { font-size: 22px; }

    body.sfy-dash .sfy-hero .js-toggle-status {
        width: 100%;
        height: 52px !important;
        padding: 0 16px !important;
        font-size: 16px !important;
    }

    body.sfy-dash .sfy-hero .sfy-tabs {
        margin-top: 16px;
        padding-top: 16px;
    }

    body.sfy-dash .sfy-tabs .menu {
        display: grid;
        width: 100%;
    }

    body.sfy-dash .sfy-tabs .menu-item {
        padding: 8px 10px;
        font-size: 13.5px;
        gap: 6px;
    }

    body.sfy-dash .sfy-tabs .menu-item svg {
        width: 16px;
        height: 16px;
    }

    body.sfy-dash .sfy-kpis {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
        margin-bottom: 16px;
    }

    body.sfy-dash .sfy-kpi {
        grid-template-columns: auto minmax(0, 1fr) auto;
        grid-template-areas:
            "icon label value"
            "icon hint value";
        row-gap: 2px;
        padding: 14px 16px;
        border-radius: 18px;
    }

    body.sfy-dash .sfy-kpi__value,
    body.sfy-dash .sfy-kpi__value.insights-basic-diff {
        margin: 0;
        font-size: 22px;
        text-align: end;
    }

    body.sfy-dash .sfy-kpi__label { font-size: 14px; }
    body.sfy-dash .sfy-kpi__hint { font-size: 12px; }

    body.sfy-dash #main-content .ColumnLayout { gap: 16px; margin-bottom: 16px; }
    body.sfy-dash #main-content .card { margin-bottom: 16px; }

    body.sfy-dash #main-content .card-header { padding: 16px 16px 8px !important; }

    body.sfy-dash #main-content .sfy-card-growth .card-body,
    body.sfy-dash #main-content .sfy-card-live .card-body {
        height: 300px;
        padding: 0 8px 8px;
    }

    body.sfy-dash #main-content .sfy-card-location > .card-body {
        display: flex !important;
        flex-direction: column;
        align-items: stretch;
    }

    body.sfy-dash #main-content .sfy-card-location .sidecar {
        margin: 0 8px 8px !important;
        max-width: none !important;
        width: auto !important;
    }

    body.sfy-dash #main-content .sfy-list-ph {
        margin: 0 8px 8px;
        min-height: 0 !important;
        padding: 20px;
    }

    body.sfy-dash #main-content .sfy-map-ph { min-height: 260px; }

    body.sfy-dash #main-content .stats-card { padding: 16px 12px 8px !important; }

    body.sfy-dash .sfy-gs-intro { margin: 4px 2px 16px; }
    body.sfy-dash .sfy-gs-intro__title { font-size: 22px; }
    body.sfy-dash .sfy-gs-intro__text p { font-size: 14px; }

    body.sfy-dash #main-content .sfy-gs-card .card-header {
        gap: 12px;
        padding: 16px 16px 4px !important;
    }

    body.sfy-dash #main-content .sfy-gs-card .card-header-icon {
        width: 36px;
        height: 36px;
        font-size: 18px;
    }

    body.sfy-dash #main-content .sfy-gs-card .card-body {
        padding: 12px 16px 16px !important;
    }

    body.sfy-dash #main-content .growth-settings-content .check--light-outline-wrapper {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
    }

    body.sfy-dash #main-content .growth-settings-content .item-tag.check--light-outline {
        min-height: 72px;
    }

    body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline) {
        min-height: 38px;
        padding: 0 14px;
        font-size: 13.5px;
    }

    body.sfy-dash #main-content .onboarding-container { padding: 8px 16px; }
}

/* ============================================================================
   5. DARK MODE (ritocchi oltre alle variabili)
   ========================================================================== */

body.sfy-dash.darkside .sfy-hero .accounts-list-menu {
    box-shadow: 0 24px 60px -20px rgba(0, 0, 0, .7) !important;
}

body.sfy-dash.darkside .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::after {
    opacity: .6;
}

body.sfy-dash.darkside .sfy-hero .js-toggle-status.pause-button {
    box-shadow: none;
}

body.sfy-dash.darkside #main-content .growth-settings-content .item-tag:not(.check--light-outline):not(.selected) {
    background: var(--sd-inner);
    box-shadow: none;
}

body.sfy-dash.darkside #main-content .growth-settings-content .item-tag.check--light-outline:not(.selected) {
    background: var(--sd-inner);
}

body.sfy-dash.darkside #main-content .growth-settings-content .item-tag.check--light-outline.selected {
    background: linear-gradient(180deg, rgba(22, 104, 227, .18), var(--sd-inner));
}

body.sfy-dash.darkside #main-content .growth-settings-content .suggestions-target-search,
body.sfy-dash.darkside #main-content .js-username-filter-settings-form textarea.input,
body.sfy-dash.darkside .sfy-autosave {
    background: var(--sd-inner);
}

body.sfy-dash.darkside .jqvmap-label {
    background: #232323;
}

/* ============================================================================
   6. MOVIMENTO RIDOTTO
   ========================================================================== */
@media (prefers-reduced-motion: reduce) {
    body.sfy-dash .sfy-hero__aurora,
    body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::before,
    body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::after,
    body.sfy-dash .sfy-hero .js-toggle-status.start-button,
    body.sfy-dash .sfy-live-dot,
    body.sfy-dash .sfy-hero .user-details .sub .status.color-green::before,
    body.sfy-dash #main-content .route-content,
    body.sfy-dash #main-content .sfy-list-ph__line,
    body.sfy-dash #main-content .sfy-list-ph__flag {
        animation: none !important;
    }
    body.sfy-dash .sfy-tabs .menu::before { transition: none; }
}

/* ==========================================================================
   Più colore (richiesta: "troppo blu"): ogni riquadro e sezione ha il suo colore,
   il blu resta per azioni e grafico principale.
   ========================================================================== */
body.sfy-dash {
    --sd-c1: #10B981; --sd-c1-50: rgba(16, 185, 129, .12);
    --sd-c2: #F59E0B; --sd-c2-50: rgba(245, 158, 11, .14);
    --sd-c3: #F43F5E; --sd-c3-50: rgba(244, 63, 94, .12);
    --sd-c4: #0EA5E9; --sd-c4-50: rgba(14, 165, 233, .12);
    --sd-c5: #14B8A6; --sd-c5-50: rgba(20, 184, 166, .12);
    --sd-c6: #6366F1; --sd-c6-50: rgba(99, 102, 241, .12);
}
body.sfy-dash.darkside {
    --sd-c1: #34D399; --sd-c2: #FBBF24; --sd-c3: #FB7185; --sd-c4: #38BDF8; --sd-c5: #2DD4BF; --sd-c6: #818CF8;
}

/* anello dell'avatar: lo stesso della sezione "I tuoi account" (gradiente Instagram, fermo) */
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::before {
    background: linear-gradient(45deg, #F9CE34, #EE2A7B 55%, #6228D7);
    animation: none;
}
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::after {
    display: none;
}

/* riquadri KPI: verde, ambra, rosa */
body.sfy-dash .sfy-kpi:nth-child(1) .sfy-kpi__icon { color: #fff; background: linear-gradient(135deg, #10B981, #34D399); box-shadow: 0 8px 18px -8px rgba(16, 185, 129, .7); }
body.sfy-dash .sfy-kpi:nth-child(2) .sfy-kpi__icon { color: #fff; background: linear-gradient(135deg, #F59E0B, #FBBF24); box-shadow: 0 8px 18px -8px rgba(245, 158, 11, .7); }
body.sfy-dash .sfy-kpi:nth-child(3) .sfy-kpi__icon { color: #fff; background: linear-gradient(135deg, #F43F5E, #EC4899); box-shadow: 0 8px 18px -8px rgba(244, 63, 94, .7); }
body.sfy-dash .sfy-kpi:nth-child(1)::after { background: radial-gradient(closest-side, rgba(16, 185, 129, .16), transparent); }
body.sfy-dash .sfy-kpi:nth-child(2)::after { background: radial-gradient(closest-side, rgba(245, 158, 11, .18), transparent); }
body.sfy-dash .sfy-kpi:nth-child(3)::after { background: radial-gradient(closest-side, rgba(244, 63, 94, .16), transparent); }

/* icone delle schede (Overview e Growth Settings): un colore per sezione, a rotazione */
body.sfy-dash #main-content .card:nth-of-type(6n+1) .card-header-icon { color: var(--sd-c1); background: var(--sd-c1-50); }
body.sfy-dash #main-content .card:nth-of-type(6n+2) .card-header-icon { color: var(--sd-c2); background: var(--sd-c2-50); }
body.sfy-dash #main-content .card:nth-of-type(6n+3) .card-header-icon { color: var(--sd-c3); background: var(--sd-c3-50); }
body.sfy-dash #main-content .card:nth-of-type(6n+4) .card-header-icon { color: var(--sd-c4); background: var(--sd-c4-50); }
body.sfy-dash #main-content .card:nth-of-type(6n+5) .card-header-icon { color: var(--sd-c5); background: var(--sd-c5-50); }
body.sfy-dash #main-content .card:nth-of-type(6n+6) .card-header-icon { color: var(--sd-c6); background: var(--sd-c6-50); }

/* "Live feed": puntino verde vivo */
body.sfy-dash #main-content .live-dot, body.sfy-dash #main-content .sfy-live-dot { background: #10B981 !important; box-shadow: 0 0 0 4px rgba(16, 185, 129, .18); }

/* ==========================================================================
   Telefono: tutto più compatto, schede sempre dentro il riquadro (testi italiani lunghi)
   ========================================================================== */
@media (max-width: 767px) {
    body.sfy-dash .profile-card.sfy-hero { padding: 14px; border-radius: 18px; }
    body.sfy-dash .sfy-hero .profile-info-wrapper { gap: 12px; }
    body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container { width: 50px; height: 50px; margin-inline-end: 12px; }
    body.sfy-dash .sfy-hero .username { font-size: 17px; }

    /* Follower / Qualità del profilo: etichette su una riga */
    body.sfy-dash .sfy-hero .stats .sfy-stat { padding: 10px 12px; border-radius: 14px; }
    body.sfy-dash .sfy-hero .stat-label { margin-bottom: 4px !important; font-size: 10.5px; line-height: 1.25; letter-spacing: .03em; white-space: normal; }
    body.sfy-dash .sfy-hero .stat-value { font-size: 20px; }
    body.sfy-dash .sfy-hero .score-circle { transform: scale(.85); transform-origin: left center; }

    body.sfy-dash .sfy-hero .js-toggle-status { height: 46px !important; font-size: 15px !important; border-radius: 14px !important; }

    /* schede: metà ciascuna, il testo va a capo invece di uscire */
    body.sfy-dash .sfy-hero .sfy-tabs { margin-top: 12px; padding-top: 12px; }
    body.sfy-dash .sfy-tabs .menu { grid-template-columns: repeat(var(--sd-tab-n, 2), minmax(0, 1fr)); padding: 4px; }
    body.sfy-dash .sfy-tabs .menu-item { min-width: 0; min-height: 40px; padding: 6px 8px; font-size: 13px; line-height: 1.2; white-space: normal; text-align: center; }

    /* riquadri numerici */
    body.sfy-dash .sfy-kpis { gap: 8px; margin-bottom: 12px; }
    body.sfy-dash .sfy-kpi { padding: 12px 14px; border-radius: 16px; column-gap: 12px; }
    body.sfy-dash .sfy-kpi__icon { width: 36px; height: 36px; border-radius: 11px; }
    body.sfy-dash .sfy-kpi__label { font-size: 13.5px; }
    body.sfy-dash .sfy-kpi__value, body.sfy-dash .sfy-kpi__value.insights-basic-diff { font-size: 20px; }

    /* schede dei grafici più basse */
    body.sfy-dash #main-content .card { margin-bottom: 12px; border-radius: 18px; }
    body.sfy-dash #main-content .card-header { padding: 14px 14px 6px !important; }
    body.sfy-dash #main-content .sfy-card-growth .card-body,
    body.sfy-dash #main-content .sfy-card-live .card-body { height: 230px; }
    body.sfy-dash #main-content .sfy-card-growth .chart-placeholder { height: 220px !important; }
}

@media (max-width: 420px) {
    /* su schermi stretti le schede mostrano solo il testo */
    body.sfy-dash .sfy-tabs .menu-item svg { display: none; }
    body.sfy-dash .sfy-hero .stats { gap: 6px; }
}

/* Genere del pubblico: tre scelte su una riga, senza descrizioni (si capiscono dal nome) */
body.sfy-dash #genders { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
body.sfy-dash #genders::after { display: none !important; }
body.sfy-dash #genders .item-tag { float: none !important; width: auto !important; min-width: 0 !important; min-height: 0 !important; margin: 0 !important; padding: 14px 8px !important; justify-content: center; text-align: center; }
body.sfy-dash #genders .item-tag > div > span { display: none !important; }
body.sfy-dash #genders .item-tag > div { align-items: center; }
body.sfy-dash #genders .item-tag-checkbox { top: 6px !important; inset-inline-end: 6px !important; }

/* Le schede non devono prendere lo stile ".menu-item:hover" del tema (blu pieno e testo bianco):
   scfy_theme.css viene caricato dopo questo file e sul telefono il tocco lascia attivo l'hover. */
body.sfy-dash .sfy-tabs .menu .menu-item,
body.sfy-dash .sfy-tabs .menu .menu-item:hover,
body.sfy-dash:not(.darkside) .sfy-tabs .menu .menu-item:hover {
    background: transparent !important;
    background-color: transparent !important;
}
body.sfy-dash .sfy-tabs .menu .menu-item:hover:not(.active) { color: var(--sd-text) !important; }
body.sfy-dash .sfy-tabs .menu .menu-item.active,
body.sfy-dash .sfy-tabs .menu .menu-item.active:hover { color: var(--sd-brand) !important; }
body.sfy-dash.darkside .sfy-tabs .menu .menu-item.active,
body.sfy-dash.darkside .sfy-tabs .menu .menu-item.active:hover { color: #fff !important; }


/* ===== Target: solo profili Instagram, «Mostra altro», assistente AI (novembre 2026) ===== */
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select.sfy-gs-type--single,
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select.sfy-gs-type--single + .selectize-control {
    display: none !important;
}
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search .js-input-search { padding-inline-start: 16px !important; }

body.sfy-dash #main-content .growth-settings-content .sfy-act-ico { flex: 0 0 auto; width: 16px; height: 16px; margin-inline-end: 2px; color: var(--sd-brand); }
body.sfy-dash #main-content .growth-settings-content .item-tag.selected .sfy-act-ico,
body.sfy-dash #main-content .growth-settings-content .item-tag:not(.selected):hover .sfy-act-ico { color: currentColor; }

/* target: icona Instagram accanto ai profili */
body.sfy-dash #main-content .growth-settings-content .js-targets-form .tags { gap: 6px; }
body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag[data-type^="people"] > .mdi:not(.remove) { display: none !important; }
body.sfy-dash #main-content .growth-settings-content .js-targets-form .tag[data-type^="people"]::before {
    content: "";
    flex: 0 0 auto;
    width: 14px;
    height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23F9CE34'/%3E%3Cstop offset='.5' stop-color='%23EE2A7B'/%3E%3Cstop offset='1' stop-color='%236228D7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1' fill='%23B42FA8' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}

body.sfy-dash #main-content .growth-settings-content .show-more-targets {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    height: 38px;
    padding: 0 16px;
    border-radius: 10px;
    border: 1px solid var(--sd-border-strong);
    background: var(--sd-surface);
    color: var(--sd-text) !important;
    font-size: 14px;
    font-weight: 600;
    box-shadow: none;
    cursor: pointer;
    transition: border-color .2s ease, color .2s ease, background-color .2s ease;
}
body.sfy-dash #main-content .growth-settings-content .show-more-targets:hover {
    border-color: var(--sd-brand);
    color: var(--sd-brand) !important;
    background: var(--sd-brand-50);
}
body.sfy-dash #main-content .growth-settings-content .show-more-targets > span { display: inline-flex; align-items: center; gap: 4px; }
body.sfy-dash #main-content .growth-settings-content .show-more-targets .mdi { font-size: 18px; }
body.sfy-dash #main-content .growth-settings-content .js-targets-form .text-center.mt-10 { margin-top: 14px !important; }

body.sfy-dash #main-content .sfy-ai { margin: 12px 0 4px; }
body.sfy-dash #main-content .sfy-ai__open {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 40px;
    padding: 0 16px;
    border: 0;
    border-radius: 10px;
    background: var(--sd-ai);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(139, 63, 224, .8);
    transition: filter .2s ease, transform .2s ease;
}
body.sfy-dash #main-content .sfy-ai__open:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.sfy-dash #main-content .sfy-ai__panel,
body.sfy-dash #main-content .sfy-imp__panel {
    margin-top: 12px;
    padding: 16px;
    border: 1px solid var(--sd-border);
    border-radius: 12px;
    background: var(--sd-inner);
}
body.sfy-dash #main-content .sfy-ai__label { display: block; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-ai__desc,
body.sfy-dash #main-content .sfy-imp__text {
    display: block;
    width: 100%;
    box-sizing: border-box;
    min-height: 84px;
    padding: 10px 12px;
    border: 1px solid var(--sd-border-strong);
    border-radius: 10px;
    background: var(--sd-surface);
    color: var(--sd-text);
    font: inherit;
    font-size: 14px;
    line-height: 1.45;
    resize: vertical;
}
body.sfy-dash #main-content .sfy-ai__desc:focus,
body.sfy-dash #main-content .sfy-imp__text:focus { outline: 0; border-color: var(--sd-brand); box-shadow: 0 0 0 4px var(--sd-brand-ring); }
body.sfy-dash #main-content .sfy-ai__row { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
body.sfy-dash #main-content .sfy-ai__go {
    height: 40px;
    padding: 0 18px;
    border: 0;
    border-radius: 10px;
    background: var(--sd-ai);
    color: #fff;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
body.sfy-dash #main-content .sfy-ai__go.is-loading { opacity: .7; cursor: progress; }
body.sfy-dash #main-content .sfy-ai__go.is-loading::after {
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    margin-inline-start: 8px;
    vertical-align: -1px;
    border: 2px solid rgba(255,255,255,.5);
    border-top-color: #fff;
    border-radius: 50%;
    animation: sfy-ai-spin .8s linear infinite;
}
@keyframes sfy-ai-spin { to { transform: rotate(360deg); } }
body.sfy-dash #main-content .sfy-ai__status { font-size: 13px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-ai__status.is-error { color: var(--sd-danger); }
body.sfy-dash #main-content .sfy-ai__list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
    gap: 8px;
    margin: 12px 0 0;
    padding: 0;
    list-style: none;
}
body.sfy-dash #main-content .sfy-ai__list:empty { display: none; }
/* attesa mentre l'A.I. lavora / si controllano i profili */
body.sfy-dash #main-content .sfy-ai__wait {
    display: grid; grid-template-columns: auto 1fr; align-items: center; gap: 4px 12px;
    margin-top: 12px; padding: 14px 16px; border-radius: 12px;
    border: 1px solid rgba(139, 63, 224, .35);
    background: linear-gradient(90deg, rgba(139, 63, 224, .08), rgba(236, 72, 153, .08));
}
body.sfy-dash #main-content .sfy-ai__wait[hidden] { display: none; }
body.sfy-dash #main-content .sfy-ai__spin {
    width: 22px; height: 22px; border-radius: 50%;
    border: 3px solid rgba(139, 63, 224, .25); border-top-color: #8b3fe0;
    animation: sfy-ai-spin .8s linear infinite;
}
body.sfy-dash #main-content .sfy-ai__wait-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
body.sfy-dash #main-content .sfy-ai__wait-txt b { font-size: 14px; font-weight: 600; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-ai__wait-txt small { font-size: 13px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-ai__bar {
    grid-column: 1 / -1; position: relative; height: 4px; margin-top: 8px; overflow: hidden;
    border-radius: 4px; background: rgba(139, 63, 224, .15);
}
body.sfy-dash #main-content .sfy-ai__bar i {
    position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 4px;
    background: linear-gradient(90deg, #8b3fe0, #ec4899); transition: width .4s ease;
}
body.sfy-dash #main-content .sfy-ai__wait.is-ai .sfy-ai__bar i { width: 35%; animation: sfy-ai-bar 1.4s ease-in-out infinite; }
@keyframes sfy-ai-bar { 0% { inset-inline-start: -35%; } 100% { inset-inline-start: 100%; } }
body.sfy-dash #main-content .sfy-ai__ph {
    display: flex; align-items: center; gap: 10px; padding: 12px; border: 1px solid var(--sd-border); border-radius: 10px;
    background: var(--sd-surface);
}
body.sfy-dash #main-content .sfy-ai__ph > span:first-child { flex: none; width: 24px; height: 24px; border-radius: 6px; }
body.sfy-dash #main-content .sfy-ai__ph > span:last-child { display: flex; flex: 1; flex-direction: column; gap: 6px; }
body.sfy-dash #main-content .sfy-ai__ph i { display: block; height: 9px; border-radius: 5px; }
body.sfy-dash #main-content .sfy-ai__ph i:first-child { width: 55%; }
body.sfy-dash #main-content .sfy-ai__ph i:last-child { width: 85%; }
body.sfy-dash #main-content .sfy-ai__ph > span:first-child,
body.sfy-dash #main-content .sfy-ai__ph i {
    background: linear-gradient(90deg, var(--sd-inner-2) 0%, var(--sd-inner) 50%, var(--sd-inner-2) 100%);
    background-size: 200% 100%;
    animation: sd-shimmer 1.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) {
    body.sfy-dash #main-content .sfy-ai__spin,
    body.sfy-dash #main-content .sfy-ai__wait.is-ai .sfy-ai__bar i,
    body.sfy-dash #main-content .sfy-ai__ph > span:first-child,
    body.sfy-dash #main-content .sfy-ai__ph i { animation: none; }
}
body.sfy-dash #main-content .sfy-ai__item {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sd-border);
    border-radius: 10px;
    background: var(--sd-surface);
    color: var(--sd-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease, background-color .2s ease;
}
body.sfy-dash #main-content .sfy-ai__item:hover { border-color: var(--sd-brand); }
body.sfy-dash #main-content .sfy-ai__plus {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 8px;
    background: var(--sd-brand-50);
    color: var(--sd-brand);
    font-weight: 700;
}
body.sfy-dash #main-content .sfy-ai__txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
body.sfy-dash #main-content .sfy-ai__txt b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sfy-dash #main-content .sfy-ai__txt small { font-size: 12px; color: var(--sd-text-3); line-height: 1.35; }
body.sfy-dash #main-content .sfy-ai__state { flex: 0 0 auto; max-width: 40%; font-size: 11.5px; color: var(--sd-text-3); text-align: end; }
body.sfy-dash #main-content .sfy-ai__item.is-searching { opacity: .75; cursor: progress; }
body.sfy-dash #main-content .sfy-ai__item.is-added { border-color: rgba(22, 163, 74, .45); background: rgba(22, 163, 74, .06); cursor: default; }
body.sfy-dash #main-content .sfy-ai__item.is-added .sfy-ai__plus { background: rgba(22, 163, 74, .14); color: #16a34a; }
body.sfy-dash #main-content .sfy-ai__item.is-added .sfy-ai__state { color: #16a34a; }
body.sfy-dash #main-content .sfy-ai__item.is-missing .sfy-ai__state { color: #b45309; }
body.sfy-dash #main-content .sfy-ai__note { margin: 10px 0 0; font-size: 12.5px; color: var(--sd-text-3); }


/* ===== Ritocchi (novembre 2026): tab attivo con bordo blu, niente spunte, «Mostra altro» in tema scuro ===== */
body.sfy-dash .sfy-tabs .menu::before { box-shadow: inset 0 0 0 1.5px #1668E3, 0 6px 16px -10px rgba(22, 104, 227, .45); }
body.sfy-dash.darkside .sfy-tabs .menu::before { box-shadow: inset 0 0 0 1.5px #1668E3, 0 6px 16px -10px rgba(22, 104, 227, .6); }

body.sfy-dash #main-content .growth-settings-content .item-tag:not(.check--light-outline)::before,
body.sfy-dash #main-content .growth-settings-content .item-tag.selected:not(.check--light-outline)::before { display: none !important; }
body.sfy-dash #main-content .growth-settings-content .item-tag-checkbox { display: none !important; }

body.sfy-dash.darkside #main-content .growth-settings-content .show-more-targets {
    border-color: var(--sd-border-strong) !important;
    background: var(--sd-surface) !important;
    color: var(--sd-text) !important;
}
body.sfy-dash.darkside #main-content .growth-settings-content .show-more-targets:hover {
    border-color: #1668E3 !important;
    background: var(--sd-brand-50) !important;
    color: #fff !important;
}


/* Pacchetti AI per nicchia e città + avviso target scarso */
body.sfy-dash #main-content .sfy-ai__intro { margin: 0 0 12px; font-size: 13px; line-height: 1.5; color: var(--sd-text-2, var(--sd-text-3)); }
body.sfy-dash #main-content .sfy-ai__pack { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 600px) { body.sfy-dash #main-content .sfy-ai__pack { grid-template-columns: 1fr; } }
body.sfy-dash #main-content .sfy-ai__field { display: flex; flex-direction: column; gap: 6px; margin: 0; font-size: 13px; font-weight: 600; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-ai__field select,
body.sfy-dash #main-content .sfy-ai__field input {
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--sd-border-strong);
    border-radius: 10px;
    background: var(--sd-surface);
    color: var(--sd-text);
    font: inherit;
    font-size: 14px;
    font-weight: 400;
}
body.sfy-dash #main-content .sfy-ai__field select:focus,
body.sfy-dash #main-content .sfy-ai__field input:focus { outline: 0; border-color: #1668E3; box-shadow: 0 0 0 4px var(--sd-brand-ring); }
body.sfy-dash #main-content .sfy-ai__all {
    margin-top: 10px;
    height: 38px;
    padding: 0 16px;
    border: 1px solid #1668E3;
    border-radius: 10px;
    background: transparent;
    color: #1668E3;
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
}
body.sfy-dash #main-content .sfy-ai__all:hover { background: var(--sd-brand-50); }
body.sfy-dash #main-content .sfy-ai__all:disabled { opacity: .6; cursor: progress; }

body.sfy-dash #main-content .sfy-tw {
    display: flex;
    gap: 10px;
    margin: 12px 0 0;
    padding: 12px 14px;
    border: 1px solid rgba(217, 119, 6, .35);
    border-radius: 12px;
    background: rgba(245, 158, 11, .08);
    color: var(--sd-text);
}
body.sfy-dash #main-content .sfy-tw[hidden] { display: none; }
body.sfy-dash #main-content .sfy-tw > svg { flex: 0 0 auto; margin-top: 2px; color: #D97706; }
body.sfy-dash #main-content .sfy-tw p { margin: 0 0 6px; font-size: 13.5px; line-height: 1.5; }
body.sfy-dash #main-content .sfy-tw p[hidden] { display: none; }
body.sfy-dash #main-content .sfy-tw__btn { padding: 0; border: 0; background: none; color: var(--sd-ai-ink); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
body.sfy-dash #main-content .sfy-tw__btn:hover { text-decoration: underline; }

/* anello dell'avatar più sottile */
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container::before { inset: -2px; }
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container > .profile-card-avatar,
body.sfy-dash .sfy-hero .profile-info-container > .profile-info > .profile-card-avatar-container > span:first-child { border-width: 2px; }

/* Overview: la tua settimana + orari migliori (markup proprio, senza .card/.ColumnLayout del modulo) */
body.sfy-dash #main-content .sfy-wk { display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; margin: 0 0 20px; }
@media (min-width: 760px) { body.sfy-dash #main-content .sfy-wk { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
body.sfy-dash #main-content .sfy-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-width: 0;
    padding: 20px 24px 22px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    background: var(--sd-surface);
    box-shadow: var(--sd-shadow);
    box-sizing: border-box;
}
body.sfy-dash #main-content .sfy-panel__head { display: flex; flex-direction: column; gap: 2px; }
body.sfy-dash #main-content .sfy-panel__head h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; color: var(--sd-text) !important; }
body.sfy-dash #main-content .sfy-panel__head span { font-size: 12.5px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-panel__lead { margin: 0; font-size: 14px; line-height: 1.55; color: var(--sd-text-2, var(--sd-text)); }
body.sfy-dash #main-content .sfy-panel__foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0; font-size: 13px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-wk__nums { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
body.sfy-dash #main-content .sfy-wk__num { display: flex; flex-direction: column; gap: 4px; min-width: 0; padding: 14px 16px; border-radius: 12px; background: var(--sd-inner); }
body.sfy-dash #main-content .sfy-wk__num span { font-size: 12.5px; font-weight: 500; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-wk__num b { font-size: 24px; font-weight: 700; line-height: 1.15; color: var(--sd-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sfy-dash #main-content .sfy-wk__num b.is-up { color: #12A150; }
body.sfy-dash #main-content .sfy-wk__num b.is-down { color: #E5484D; }
body.sfy-dash #main-content .sfy-wk__num small { font-size: 12px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-wk__chip { padding: 3px 9px; border-radius: 8px; background: var(--sd-brand-50); color: #1668E3; font-size: 12.5px; font-weight: 700; }
@media (max-width: 767px) {
    body.sfy-dash #main-content .sfy-wk { gap: 12px; margin-bottom: 12px; }
    body.sfy-dash #main-content .sfy-panel { padding: 14px 14px 16px; border-radius: 18px; }
    body.sfy-dash #main-content .sfy-wk__num b { font-size: 20px; }
}


/* Overview: scorciatoie verso Unfollower, Pubblica e Analisi (\Sfy\DashShortcuts). Quadratini = colori del menu laterale (sfy-nav.css) */
body.sfy-dash #main-content .sfy-sc { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0 0 20px; }
body.sfy-dash #main-content .sfy-sc__card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-width: 0;
    padding: 20px 24px;
    border: 1px solid var(--sd-border);
    border-radius: var(--sd-radius);
    background: var(--sd-surface);
    box-shadow: var(--sd-shadow);
    color: var(--sd-text);
    text-decoration: none;
    box-sizing: border-box;
    transition: transform .3s var(--sd-ease), box-shadow .3s ease, border-color .3s ease;
}
body.sfy-dash #main-content .sfy-sc__card:hover { transform: translateY(-2px); box-shadow: var(--sd-shadow-hover); border-color: var(--sd-border-strong); text-decoration: none; }
body.sfy-dash #main-content .sfy-sc__card:focus-visible { outline: 2px solid var(--sd-brand); outline-offset: 2px; }
body.sfy-dash #main-content .sfy-sc__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
body.sfy-dash #main-content .sfy-sc__tile {
    --sfy-tile: #8e8e93;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 11px;
    background: var(--sfy-tile);
    color: #fff;
}
body.sfy-dash #main-content .sfy-sc__tile svg { display: block; width: 23px; height: 23px; }
body.sfy-dash #main-content .sfy-sc__tile--user-minus { --sfy-tile: #ff3b30; }
body.sfy-dash #main-content .sfy-sc__tile--post { --sfy-tile: #ff9500; }
body.sfy-dash #main-content .sfy-sc__tile--chart { --sfy-tile: #5856d6; }
body.sfy-dash.darkside #main-content .sfy-sc__tile--user-minus { --sfy-tile: #f04438; }
body.sfy-dash.darkside #main-content .sfy-sc__tile--post { --sfy-tile: #f0950a; }
body.sfy-dash.darkside #main-content .sfy-sc__tile--chart { --sfy-tile: #5e5ce6; }
body.sfy-dash #main-content .sfy-sc__title { font-size: 14px; font-weight: 600; color: var(--sd-text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sfy-dash #main-content .sfy-sc__text { flex: 1 1 auto; font-size: 15px; font-weight: 600; line-height: 1.45; letter-spacing: -.01em; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-sc__cta { font-size: 13.5px; font-weight: 700; color: var(--sd-brand); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sfy-dash.darkside #main-content .sfy-sc__cta { color: #4C8DF6; }
body.sfy-dash #main-content .sfy-sc__cta span { display: inline-block; transition: transform .3s var(--sd-ease); }
body.sfy-dash #main-content .sfy-sc__card:hover .sfy-sc__cta span { transform: translateX(3px); }
@media (max-width: 767px) {
    body.sfy-dash #main-content .sfy-sc { grid-template-columns: minmax(0, 1fr); gap: 8px; margin-bottom: 16px; }
    body.sfy-dash #main-content .sfy-sc__card {
        display: grid;
        grid-template-columns: auto minmax(0, 1fr);
        grid-template-areas: "tile title" "tile text" "tile cta";
        column-gap: 12px;
        row-gap: 2px;
        padding: 12px 14px;
        border-radius: 16px;
    }
    body.sfy-dash #main-content .sfy-sc__head { display: contents; }
    body.sfy-dash #main-content .sfy-sc__tile { grid-area: tile; align-self: start; width: 36px; height: 36px; border-radius: 10px; }
    body.sfy-dash #main-content .sfy-sc__tile svg { width: 21px; height: 21px; }
    body.sfy-dash #main-content .sfy-sc__title { grid-area: title; font-size: 12.5px; }
    body.sfy-dash #main-content .sfy-sc__text { grid-area: text; font-size: 14px; }
    body.sfy-dash #main-content .sfy-sc__cta { grid-area: cta; margin-top: 2px; font-size: 13px; }
}

/* Impostazioni di crescita: classifica dei target */
body.sfy-dash #main-content .sfy-rank { margin: 0 0 20px; }
body.sfy-dash #main-content .sfy-rank__table { display: flex; flex-direction: column; border: 1px solid var(--sd-border); border-radius: 12px; overflow: hidden; }
body.sfy-dash #main-content .sfy-rank__row { display: grid; grid-template-columns: 28px minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1fr) 110px; align-items: center; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--sd-border); font-size: 14px; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-rank__row:first-child { border-top: 0; }
body.sfy-dash #main-content .sfy-rank__row--head { background: var(--sd-inner); font-size: 12px; font-weight: 600; color: var(--sd-text-3); text-transform: uppercase; letter-spacing: .03em; }
body.sfy-dash #main-content .sfy-rank__row.is-more { display: none; }
body.sfy-dash #main-content .sfy-rank.is-open .sfy-rank__row.is-more { display: grid; }
body.sfy-dash #main-content .sfy-rank__pos { font-weight: 700; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-rank__user { display: flex; align-items: center; gap: 6px; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
body.sfy-dash #main-content .sfy-rank__user a { color: var(--sd-text) !important; text-decoration: none !important; overflow: hidden; text-overflow: ellipsis; }
body.sfy-dash #main-content .sfy-rank__user a:hover { color: #1668E3 !important; }
body.sfy-dash #main-content .sfy-rank__user::before {
    content: ""; flex: 0 0 auto; width: 14px; height: 14px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='url(%23g)' stroke-width='2.4' stroke-linecap='round'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='1' x2='1' y2='0'%3E%3Cstop offset='0' stop-color='%23F9CE34'/%3E%3Cstop offset='.5' stop-color='%23EE2A7B'/%3E%3Cstop offset='1' stop-color='%236228D7'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='2.5' y='2.5' width='19' height='19' rx='5.5'/%3E%3Ccircle cx='12' cy='12' r='4.2'/%3E%3Ccircle cx='17.4' cy='6.6' r='1' fill='%23B42FA8' stroke='none'/%3E%3C/svg%3E") center / contain no-repeat;
}
body.sfy-dash #main-content .sfy-rank__badge { display: inline-block; padding: 3px 9px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
body.sfy-dash #main-content .sfy-rank__badge.is-top { background: rgba(18, 161, 80, .12); color: #12A150; }
body.sfy-dash #main-content .sfy-rank__badge.is-mid { background: var(--sd-brand-50); color: #1668E3; }
body.sfy-dash #main-content .sfy-rank__badge.is-low { background: rgba(229, 72, 77, .12); color: #E5484D; }
body.sfy-dash #main-content .sfy-rank__badge.is-learning { background: var(--sd-inner); color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-rank__more { align-self: center; height: 36px; padding: 0 16px; border: 1px solid var(--sd-border-strong); border-radius: 10px; background: var(--sd-surface); color: var(--sd-text); font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
body.sfy-dash #main-content .sfy-rank__more:hover { border-color: #1668E3; color: #1668E3; }
body.sfy-dash #main-content .sfy-rank__actions { display: flex; flex-wrap: wrap; gap: 10px; }
body.sfy-dash #main-content .sfy-rank__btn { height: 40px; padding: 0 16px; border: 0; border-radius: 999px; background: #1668E3; color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
body.sfy-dash #main-content .sfy-rank__btn--ghost { border: 1px solid rgba(229, 72, 77, .45); background: transparent; color: #E5484D; }
body.sfy-dash #main-content .sfy-rank__btn:disabled { opacity: .6; cursor: default; }
body.sfy-dash #main-content .sfy-rank__bars { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
body.sfy-dash #main-content .sfy-rank__bars li { display: grid; grid-template-columns: minmax(0, 180px) minmax(0, 1fr) auto; align-items: center; gap: 12px; font-size: 14px; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-rank__bar { height: 8px; border-radius: 99px; background: var(--sd-inner); overflow: hidden; }
body.sfy-dash #main-content .sfy-rank__bar i { display: block; height: 100%; border-radius: 99px; background: #1668E3; }
@media (max-width: 767px) {
    body.sfy-dash #main-content .sfy-rank__row { grid-template-columns: 22px minmax(0, 1fr) auto; row-gap: 4px; }
    body.sfy-dash #main-content .sfy-rank__row--head { display: none; }
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(3),
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(4),
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(5) { grid-column: 2 / 3; font-size: 12.5px; color: var(--sd-text-3); }
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(3)::before,
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(4)::before,
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(5)::before { content: attr(data-label) ": "; }
    body.sfy-dash #main-content .sfy-rank__row > span:nth-child(6) { grid-column: 3; grid-row: 1; }
    body.sfy-dash #main-content .sfy-rank__bars li { grid-template-columns: minmax(0, 120px) minmax(0, 1fr) auto; }
}

/* Attività in tempo reale: interruttore del debug (solo admin) */
body.sfy-dash #main-content .sfy-card-live .card-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
body.sfy-dash #main-content .sfy-live-debug { flex: 0 0 auto; padding: 3px 9px; border-radius: 999px; background: #F2F4F7; color: #667085 !important; font-size: 11px; font-weight: 700; letter-spacing: .03em; text-decoration: none !important; }
body.sfy-dash #main-content .sfy-live-debug.is-on { background: #FFF4E5; color: #B54708 !important; }
body.sfy-dash.darkside #main-content .sfy-live-debug { background: rgba(255,255,255,.08); color: #9AA0A6 !important; }

/* Trova il target con l'AI: freccia per aprire / ridurre il pannello */
body.sfy-dash #main-content .sfy-ai__chev { margin-inline-start: 2px; transition: transform .2s ease; }
body.sfy-dash #main-content .sfy-ai__open[aria-expanded="true"] .sfy-ai__chev { transform: rotate(180deg); }

/* Stato «In pausa»: (i) con la spiegazione (riquadro .sfy-tipbox creato da app.js, sopra la pagina) */
body.sfy-dash .sfy-tip { display: inline-flex; align-items: center; justify-content: center; width: 15px; height: 15px; border-radius: 50%; background: var(--sd-warning, #B54708); color: #fff !important; cursor: help; font: italic 700 10px/1 Georgia, serif; outline: none; }
body.sfy-dash .sfy-tip:focus-visible { box-shadow: 0 0 0 2px rgba(181, 71, 8, .3); }
/* riquadro unico di tutti gli (i) (app.js): resta aperto col puntatore sopra, al tocco finché non si tocca fuori */
.sfy-tipbox { position: fixed; z-index: 100000; box-sizing: border-box; width: max-content; max-width: min(320px, calc(100vw - 24px)); padding: 11px 13px; border-radius: 12px; background: #1D1D1F; color: #fff; font: 500 13px/1.5 Geist, Inter, system-ui, -apple-system, "Segoe UI", sans-serif; letter-spacing: 0; text-align: start; white-space: normal; box-shadow: 0 14px 32px -12px rgba(0,0,0,.5); cursor: default; }
body.darkside .sfy-tipbox { background: #F5F6F8; color: #121212; }

/* Menu dei profili: casella di ricerca compatta (stesso stile delle altre caselle della dashboard) */
body.sfy-dash .sfy-hero .accounts-list-menu { background: var(--sd-surface) !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .js-account-filters-content { margin: 0 !important; padding: 10px 10px 6px !important; background: transparent !important; border: 0 !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .js-account-filters-content::after,
body.sfy-dash .sfy-hero .accounts-list-menu .border-after::after { display: none !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .box-filters,
body.sfy-dash .sfy-hero .accounts-list-menu form.account-search { margin: 0 !important; padding: 0 !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .input--accounts {
    width: 100%; height: 40px !important; margin: 0 !important; padding: 0 12px 0 38px !important;
    border: 1px solid var(--sd-border) !important; border-radius: 12px !important;
    background: var(--sd-inner) !important; color: var(--sd-text) !important; box-shadow: none !important;
    font-size: 14px !important; line-height: 40px !important;
}
body.sfy-dash .sfy-hero .accounts-list-menu .input--accounts::placeholder { color: var(--sd-text-3); }
body.sfy-dash .sfy-hero .accounts-list-menu .input--accounts:focus { border-color: var(--sd-brand) !important; background: var(--sd-surface) !important; box-shadow: 0 0 0 3px var(--sd-brand-50) !important; outline: none; }
body.sfy-dash .sfy-hero .accounts-list-menu .account-search .search-icon {
    position: absolute; inset-inline-start: 13px; top: 0 !important; display: flex !important; align-items: center; width: auto !important; height: 40px !important; margin: 0 !important; padding: 0 !important; box-sizing: border-box; transform: none;
    color: var(--sd-text-3) !important; font-size: 14px; line-height: 1 !important; pointer-events: none;
}
body.sfy-dash .sfy-hero .accounts-list-menu .account-search .pos-r { height: 40px; }
body.sfy-dash .sfy-hero .accounts-list-menu .account-search .processing { position: absolute; inset-inline-end: 12px; top: 50%; transform: translateY(-50%); display: none; }
body.sfy-dash .sfy-hero .accounts-list-menu .account-search.onprogress .processing { display: block; }
body.sfy-dash .sfy-hero .accounts-list-menu .account-search .processing img { width: 16px; height: 16px; }


/* Menu dei profili: righe compatte (il nome non eredita i 22px del profilo in alto), menu più largo del riquadro */
body.sfy-dash .sfy-hero .accounts-list-menu { width: auto !important; min-width: 100%; max-width: min(340px, calc(100vw - 32px)); inset-inline-end: auto; }
body.sfy-dash .sfy-hero .accounts-list-menu .accounts-scroll-wrapper { background: transparent !important; box-shadow: none !important; border-radius: 0 !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .accounts-scroll-wrapper > ul { max-height: 340px; overflow-y: auto; padding: 0 6px 6px; }
body.sfy-dash .sfy-hero .accounts-list-menu .accounts-scroll-wrapper > ul > li { min-height: 0 !important; justify-content: space-between; gap: 4px; border-radius: 12px; overflow: visible; }
body.sfy-dash .sfy-hero .accounts-list-menu .accounts-scroll-wrapper > ul > li::after { display: none !important; }
body.sfy-dash .sfy-hero .accounts-list-menu .accounts-scroll-wrapper > ul > li:hover { background: var(--sd-inner) !important; }
body.sfy-dash .sfy-hero .accounts-list-menu li > .profile-info { flex: 1 1 auto; min-width: 0; display: flex; align-items: center; gap: 10px; padding: 8px !important; background: transparent !important; }
body.sfy-dash .sfy-hero .accounts-list-menu li .profile-card-avatar-container { position: relative; flex: 0 0 40px; width: 40px; height: 40px; margin: 0 !important; }
body.sfy-dash .sfy-hero .accounts-list-menu li .profile-card-avatar { width: 40px !important; height: 40px !important; border-radius: 50%; object-fit: cover; }
body.sfy-dash .sfy-hero .accounts-list-menu li .circle-status-badge { display: none !important; }
body.sfy-dash .sfy-hero .accounts-list-menu li .user-details { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; min-width: 0; }
body.sfy-dash .sfy-hero .accounts-list-menu li .username-container { display: flex; align-items: center; gap: 4px; max-width: 100%; }
body.sfy-dash .sfy-hero .accounts-list-menu li .username-container .mdi-instagram { font-size: 14px; color: var(--sd-text-3); }
body.sfy-dash .sfy-hero .accounts-list-menu li .username { display: block; font-size: 14px !important; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
body.sfy-dash .sfy-hero .accounts-list-menu li .sub .status { padding: 3px 8px 3px 6px !important; font-size: 11px; }
body.sfy-dash .sfy-hero .accounts-list-menu li > .options { display: none !important; flex: 0 0 auto; align-items: center; padding: 8px 4px !important; color: var(--sd-text-3); }
body.sfy-dash .sfy-hero .accounts-list-menu li > .options .mdi { margin: 0 !important; }

/* Pillola «Proxy 5G dedicato» accanto allo stato del profilo (app.js, InitializeCurrentAccountProfile) */
body.sfy-dash .sfy-hero .user-details .sub .sfy-proxy-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 6px 4px 9px; border-radius: 999px; border: 1px solid var(--sd-border); background: var(--sd-inner); color: var(--sd-text-2); font-size: 12px; font-weight: 600; line-height: 1; white-space: nowrap; }
body.sfy-dash .sfy-hero .user-details .sub .sfy-proxy-pill svg { width: 13px; height: 13px; color: var(--sd-success); }
body.sfy-dash .sfy-hero .user-details .sub .sfy-proxy-pill .sfy-tip { width: 14px; height: 14px; font-size: 9px; }
body.sfy-dash .sfy-tip.sfy-tip--info { background: var(--sd-text-3, #8A8F98); }
body.sfy-dash .sfy-tip.sfy-tip--info:focus-visible { box-shadow: 0 0 0 2px rgba(138, 143, 152, .3); }

/* ---------------------------------------------------------------- Live feed: scena «tu → profilo in target» (assets/js/sfy-feed-flow.js) */
body.sfy-dash #main-content .sfy-card-live .card-body.has-flow { display: flex; flex-direction: column; }
body.sfy-dash #main-content .sfy-card-live .card-body.has-flow .live-feed { flex: 1 1 auto; min-height: 0; }
.sfy-flow {
    --k: #8E44C9;
    position: relative; flex: 0 0 auto; align-self: stretch; width: 100%; box-sizing: border-box; display: grid; grid-template-columns: 84px minmax(0, 1fr) 100px; align-items: start; column-gap: 6px;
    margin: 0 0 8px; padding: 12px 10px 10px; border-radius: 16px; border: 1px solid var(--sd-border);
    background: radial-gradient(120% 140% at 100% 0%, color-mix(in srgb, var(--k) 10%, transparent), transparent 60%), var(--sd-inner);
    transition: background .6s ease; overflow: hidden;
}
.sfy-flow.k-view { --k: #8E44C9; }
.sfy-flow.k-like { --k: #E1306C; }
.sfy-flow.k-poll { --k: #3C6DF0; }
.sfy-flow.k-follow { --k: #10A37F; }
.sfy-flow.k-msg { --k: #6366F1; }
.sfy-flow.k-emoji { --k: #F59E0B; }
.sfy-flow.k-ai { --k: #8B3FE0; }
/* tra un'azione e l'altra: «L'A.I. sta interagendo…» */
.sfy-flow.is-working .sfy-flow__line { background: repeating-linear-gradient(90deg, color-mix(in srgb, var(--k) 55%, transparent) 0 6px, transparent 6px 11px);
    background-size: 22px 2px; animation: sfy-flow-march 1s linear infinite; }
.sfy-flow.is-working .sfy-flow__av--them { background: transparent; border-color: transparent; box-shadow: none; }
.sfy-flow.is-working .sfy-flow__stack i { opacity: 0; }
/* l'A.I. al lavoro: anello stile storia Instagram che gira, icona dell'A.I. al centro */
.sfy-flow__ring, .sfy-flow__core { position: absolute; border-radius: 50%; opacity: 0; transition: opacity .3s ease; pointer-events: none; }
.sfy-flow__ring { inset: -3px; background: conic-gradient(from 0deg, #F58529, #DD2A7B, #8134AF, #515BD4, #F58529);
    -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px));
    mask: radial-gradient(farthest-side, transparent calc(100% - 3px), #000 calc(100% - 2.5px)); }
.sfy-flow__core { inset: 2px; display: flex; align-items: center; justify-content: center; background: var(--sd-inner-2); color: #8B3FE0; }
.sfy-flow__core svg { width: 20px; height: 20px; }
.sfy-flow.is-working .sfy-flow__ring { opacity: 1; animation: sfy-flow-spin 1.6s linear infinite; }
.sfy-flow.is-working .sfy-flow__core { opacity: 1; }
.sfy-flow.is-working .sfy-flow__core svg { animation: sfy-flow-glow 1.8s ease-in-out infinite; }
@keyframes sfy-flow-spin { to { transform: rotate(360deg); } }
@keyframes sfy-flow-glow { 0%, 100% { opacity: .55; transform: scale(.9); } 50% { opacity: 1; transform: scale(1.05); } }
.sfy-flow__dots { display: inline-flex; margin-inline-start: -4px; }
.sfy-flow__dots i { font-style: normal; animation: sfy-flow-dot 1.2s ease-in-out infinite; }
.sfy-flow__dots i:nth-child(2) { animation-delay: .2s; }
.sfy-flow__dots i:nth-child(3) { animation-delay: .4s; }
@keyframes sfy-flow-march { to { background-position: 22px 0; } }
@keyframes sfy-flow-dot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }
.sfy-flow__node { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; min-width: 0; }
.sfy-flow__them { padding-inline-end: 16px; }
.sfy-flow__av { position: relative; z-index: 2; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; box-sizing: border-box; }
.sfy-flow__av--me { padding: 2.5px; background: linear-gradient(135deg, #F26B3A, #D9539A 50%, #8E44C9); }
.sfy-flow__av--me img { display: block; width: 100%; height: 100%; border-radius: 50%; border: 2px solid var(--sd-surface); object-fit: cover; box-sizing: border-box; }
.sfy-flow__av--them { border: 2.5px solid var(--sd-surface); background-color: var(--sd-inner-2); background-size: cover; color: #fff; box-shadow: 0 6px 16px -8px rgba(15, 23, 42, .45); }
.sfy-flow__av--them b { font-size: 14px; font-weight: 700; letter-spacing: .02em; }
.sfy-flow__av--them::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 2px solid var(--k); opacity: 0; }
.sfy-flow__name { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; line-height: 1.2; color: var(--sd-text-2); }
.sfy-flow__stack i { position: absolute; top: 4px; z-index: 1; width: 38px; height: 38px; border-radius: 50%; border: 2px solid var(--sd-surface); opacity: 0; transition: opacity .5s ease; }
.sfy-flow__stack i:first-child { inset-inline-start: calc(50% + 4px); opacity: 0; }
.sfy-flow__stack i:last-child { inset-inline-start: calc(50% + 14px); top: 9px; width: 30px; height: 30px; }
.sfy-flow__stack i.on:first-child { opacity: .45; }
.sfy-flow__stack i.on:last-child { opacity: .22; }
.sfy-flow__track { position: relative; height: 48px; }
.sfy-flow__line { position: absolute; inset-inline-start: -4px; inset-inline-end: -4px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px;
    background: repeating-linear-gradient(90deg, var(--sd-border-strong) 0 6px, transparent 6px 11px); }
.sfy-flow__line::after { content: ""; position: absolute; inset: 0; border-radius: 2px; background: linear-gradient(90deg, transparent, var(--k)); transform: scaleX(0); transform-origin: left; opacity: 0; }
.sfy-flow__packet { position: absolute; top: 50%; inset-inline-start: 0; z-index: 3; display: flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%;
    background: var(--k); color: #fff; box-shadow: 0 0 0 5px color-mix(in srgb, var(--k) 18%, transparent), 0 8px 18px -6px var(--k); transform: translate(-50%, -50%) scale(.6); opacity: 0; }
.sfy-flow__ico { display: flex; }
.sfy-flow__ico svg, .sfy-flow__chip-ico svg { width: 15px; height: 15px; }
.sfy-flow__chip { position: absolute; left: 50%; bottom: 0; z-index: 3; display: inline-flex; align-items: center; gap: 5px; max-width: 70%; padding: 3px 9px 3px 7px; border-radius: 999px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 11.5px; font-weight: 600; color: var(--k); background: color-mix(in srgb, var(--k) 12%, var(--sd-surface));
    border: 1px solid color-mix(in srgb, var(--k) 22%, transparent); transform: translate(-50%, 6px); opacity: 0; transition: opacity .35s ease, transform .35s ease; pointer-events: none; }
.sfy-flow__chip-ico { display: flex; flex: 0 0 auto; }
.sfy-flow__chip-ico svg { width: 12px; height: 12px; }
/* etichetta dell'azione: sotto la linea, accanto al profilo che la riceve */
.sfy-flow > .sfy-flow__them .sfy-flow__chip { inset-inline-start: auto; inset-inline-end: calc(100% + 2px); bottom: 2px; transform: translate(0, 6px); max-width: 220px; }
.sfy-flow.is-hit .sfy-flow__chip { opacity: 1; transform: translate(0, 0); }
.sfy-flow.is-flying .sfy-flow__packet { animation: sfy-flow-fly .95s cubic-bezier(.45, .05, .35, 1) forwards; }
.sfy-flow.is-flying .sfy-flow__line::after { animation: sfy-flow-trail .95s ease forwards; }
.sfy-flow.is-flying .sfy-flow__av--me { animation: sfy-flow-send .5s ease; }
.sfy-flow.is-hit .sfy-flow__av--them { animation: sfy-flow-pop .5s cubic-bezier(.3, 1.6, .5, 1); }
.sfy-flow.is-hit .sfy-flow__av--them::after { animation: sfy-flow-ring .8s ease-out; }
@keyframes sfy-flow-fly {
    0% { inset-inline-start: 0; opacity: 0; transform: translate(-50%, -50%) scale(.5); }
    14% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    50% { transform: translate(-50%, calc(-50% - 7px)) scale(1.08); }
    86% { opacity: 1; transform: translate(-50%, -50%) scale(1); }
    100% { inset-inline-start: 100%; opacity: 0; transform: translate(-50%, -50%) scale(.5); }
}
@keyframes sfy-flow-trail { 0% { transform: scaleX(0); opacity: .9; } 80% { transform: scaleX(1); opacity: .9; } 100% { transform: scaleX(1); opacity: 0; } }
@keyframes sfy-flow-send { 0%, 100% { transform: scale(1); } 40% { transform: scale(.92); } }
@keyframes sfy-flow-pop { 0% { transform: scale(.85); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes sfy-flow-ring { 0% { opacity: .9; transform: scale(1); } 100% { opacity: 0; transform: scale(1.6); } }
@media (prefers-reduced-motion: reduce) {
    .sfy-flow.is-flying .sfy-flow__packet, .sfy-flow.is-flying .sfy-flow__line::after, .sfy-flow.is-hit .sfy-flow__av--them,
    .sfy-flow.is-hit .sfy-flow__av--them::after, .sfy-flow.is-flying .sfy-flow__av--me,
    .sfy-flow.is-working .sfy-flow__line, .sfy-flow.is-working .sfy-flow__av--them, .sfy-flow__dots i { animation: none; }
    .sfy-flow.is-working .sfy-flow__ring, .sfy-flow.is-working .sfy-flow__core svg { animation: none; }
}
@media (max-width: 767px) {
    body.sfy-dash #main-content .sfy-card-live .card-body.has-flow { height: 340px; }
    .sfy-flow { grid-template-columns: 72px minmax(0, 1fr) 86px; padding: 10px 6px 8px; }
    .sfy-flow__av { width: 42px; height: 42px; }
    .sfy-flow__track { height: 42px; }
}

/* Dashboard: configurazione incompleta (overview.fragment.php) */
body.sfy-dash .sfy-setup { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 16px 18px; border-radius: 18px; border: 1px solid #FEDF89; background: #FFFAEB; color: #93370D; }
body.sfy-dash .sfy-setup.is-running { border-color: #FECDCA; background: #FEF3F2; color: #B42318; }
body.sfy-dash .sfy-setup__ico { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: rgba(255,255,255,.7); }
body.sfy-dash .sfy-setup__ico svg { width: 22px; height: 22px; }
body.sfy-dash .sfy-setup__body { flex: 1 1 auto; min-width: 0; font-size: 14px; line-height: 1.45; }
body.sfy-dash .sfy-setup__body b { display: block; font-size: 15px; }
body.sfy-dash .sfy-setup__body ul { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 6px 0 0; padding: 0; list-style: none; font-weight: 600; }
body.sfy-dash .sfy-setup__body li.is-ok { color: #067647; }
body.sfy-dash .sfy-setup__btn { box-sizing: border-box; flex: 0 0 auto; padding: 11px 18px; border-radius: 999px; background: var(--sd-brand, #1668E3); color: #fff !important; font-size: 14px; font-weight: 600; text-decoration: none !important; white-space: nowrap; }
body.sfy-dash.darkside .sfy-setup { border-color: rgba(247,144,9,.3); background: rgba(247,144,9,.1); color: #FEC84B; }
body.sfy-dash.darkside .sfy-setup.is-running { border-color: rgba(240,68,56,.35); background: rgba(240,68,56,.12); color: #FDA29B; }
body.sfy-dash.darkside .sfy-setup__ico { background: rgba(255,255,255,.06); }
body.sfy-dash.darkside .sfy-setup__body li.is-ok { color: #4ADE80; }
@media (max-width: 640px) {
    body.sfy-dash .sfy-setup { flex-wrap: wrap; }
    body.sfy-dash .sfy-setup__btn { width: 100%; text-align: center; }
}


/* Scegli le interazioni: avviso sotto i pulsanti (come nei target) e scelta con l'A.I. (assets/js/app.js, \Sfy\ActionsAi) */
body.sfy-dash #main-content .sfy-gs-card .card-body:has(#actions) { display: flex !important; flex-direction: column; align-items: stretch; }
body.sfy-dash #main-content .sfy-tw.sfy-tw--acts { margin: 4px 0 0; }
body.sfy-dash #main-content .sfy-tw.sfy-tw--acts.is-running { border-color: #FECDCA; background: #FEF3F2; color: #912018; }
body.sfy-dash #main-content .sfy-tw.sfy-tw--acts.is-running > svg { color: #D92D20; }
body.sfy-dash.darkside #main-content .sfy-tw.sfy-tw--acts.is-running { border-color: rgba(240,68,56,.35); background: rgba(240,68,56,.12); color: #FDA29B; }
body.sfy-dash #main-content .sfy-aact { margin: 12px 0 0; }
body.sfy-dash #main-content .sfy-aact__btn { white-space: nowrap; }
body.sfy-dash #main-content .sfy-aact__btn {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border: 0; border-radius: 999px;
    background: var(--sd-ai); color: #fff; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 8px 18px -10px rgba(139, 63, 224, .8); transition: filter .2s ease, transform .2s ease;
}
body.sfy-dash #main-content .sfy-aact__btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
body.sfy-dash #main-content .sfy-aact__btn[disabled] { opacity: .7; cursor: default; transform: none; }
body.sfy-dash #main-content .sfy-aact__btn.is-loading svg { animation: sfy-aact-spin 1.2s linear infinite; }
@keyframes sfy-aact-spin { to { transform: rotate(360deg); } }
body.sfy-dash #main-content .sfy-aact__status { margin: 10px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-aact__status:empty { display: none; }
body.sfy-dash #main-content .sfy-aact__status.is-error { color: var(--sd-danger); }
body.sfy-dash #main-content .sfy-aact__status b { color: var(--sd-text); }

/* «I tuoi messaggi» (growth-settings.fragment.php, App.sfyTexts*) */
body.sfy-dash #main-content .sfy-texts { margin: 16px 0 0; padding: 16px; border: 1px solid var(--sd-border); border-radius: 16px; background: var(--sd-inner); }
body.sfy-dash #main-content .sfy-texts[hidden] { display: none; }
body.sfy-dash #main-content .sfy-texts__head h3 { margin: 0; font-size: 15px; font-weight: 700; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-texts__head p { margin: 4px 0 12px; font-size: 13px; line-height: 1.45; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-texts__tabs { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 10px; }
body.sfy-dash #main-content .sfy-texts__tab { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border: 1px solid var(--sd-border); border-radius: 999px; background: var(--sd-surface); color: var(--sd-text-2); font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
body.sfy-dash #main-content .sfy-texts__tab[hidden] { display: none; }
body.sfy-dash #main-content .sfy-texts__tab.is-active { border-color: var(--sd-brand); color: var(--sd-brand); background: var(--sd-brand-50); }
body.sfy-dash #main-content .sfy-texts__tab b { min-width: 18px; padding: 1px 6px; border-radius: 999px; background: var(--sd-brand); color: #fff; font-size: 11px; line-height: 16px; text-align: center; }
body.sfy-dash #main-content .sfy-texts__tab b:empty { display: none; }
body.sfy-dash #main-content .sfy-texts__area { display: block; width: 100%; box-sizing: border-box; min-height: 150px; padding: 12px; border: 1px solid var(--sd-border); border-radius: 12px; background: var(--sd-surface); color: var(--sd-text); font: inherit; font-size: 14px; line-height: 1.55; resize: vertical; }
body.sfy-dash #main-content .sfy-texts__area:focus { outline: none; border-color: var(--sd-brand); box-shadow: 0 0 0 3px var(--sd-brand-50); }
body.sfy-dash #main-content .sfy-texts__bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
body.sfy-dash #main-content .sfy-texts__ai { display: inline-flex; align-items: center; gap: 6px; height: 38px; padding: 0 14px; border: 0; border-radius: 10px; background: var(--sd-ai); color: #fff; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
body.sfy-dash #main-content .sfy-texts__ai.is-loading svg { animation: sfy-aact-spin 1.2s linear infinite; }
body.sfy-dash #main-content .sfy-texts__save { height: 38px; padding: 0 16px; border: 1px solid var(--sd-border); border-radius: 10px; background: var(--sd-surface); color: var(--sd-text); font: inherit; font-size: 13.5px; font-weight: 700; cursor: pointer; }
body.sfy-dash #main-content .sfy-texts__ai[disabled], body.sfy-dash #main-content .sfy-texts__save[disabled] { opacity: .65; cursor: default; }
body.sfy-dash #main-content .sfy-texts__status { flex: 1 1 220px; font-size: 13px; line-height: 1.4; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-texts__status.is-error { color: var(--sd-danger); }

/* «i» accanto ai titoli delle Impostazioni di crescita: spiegazione breve al passaggio del mouse o al tocco */
body.sfy-dash .sfy-tip {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    margin-inline-start: 6px;
    cursor: help;
    outline: none;
}
body.sfy-dash .sfy-tip__i {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: var(--sd-brand-50);
    color: var(--sd-brand-2);
    font-family: Geist, Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    font-size: 11px;
    font-weight: 700;
    font-style: normal;
    line-height: 1;
    transition: background .15s ease, color .15s ease;
}
body.sfy-dash .sfy-tip:hover .sfy-tip__i,
body.sfy-dash .sfy-tip:focus .sfy-tip__i {
    background: var(--sd-brand-2);
    color: #fff;
}
/* il testo resta nel markup ma lo mostra il riquadro unico .sfy-tipbox (app.js): il vecchio riquadro solo CSS spariva appena il mouse si spostava */
body.sfy-dash .sfy-tip__box { display: none !important; }

/* «Importa una lista» (target): pulsante normale, non A.I. */
body.sfy-dash #main-content .sfy-imp { margin-top: 10px; }
body.sfy-dash #main-content .sfy-imp__open {
    display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px;
    border: 1px solid var(--sd-border-strong); border-radius: 10px; background: var(--sd-surface); color: var(--sd-text);
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
body.sfy-dash #main-content .sfy-imp__open:hover { border-color: var(--sd-brand); background: var(--sd-brand-50); }
body.sfy-dash #main-content .sfy-imp__go,
body.sfy-dash #main-content .sfy-fimp__go {
    height: 40px; padding: 0 18px; border: 0; border-radius: 10px; background: var(--sd-brand); color: #fff;
    font: inherit; font-size: 14px; font-weight: 600; cursor: pointer;
}
body.sfy-dash #main-content .sfy-imp__go[disabled] { opacity: .7; cursor: progress; }
/* «Importa una lista» nel filtro username */
body.sfy-dash #main-content .sfy-fimp { margin-top: 4px; }
body.sfy-dash #main-content .sfy-fimp__file {
    display: inline-flex; align-items: center; height: 40px; margin: 0; padding: 0 16px;
    border: 1px solid var(--sd-border-strong); border-radius: 10px; background: var(--sd-surface); color: var(--sd-text);
    font-size: 14px; font-weight: 600; cursor: pointer; transition: border-color .2s ease, background .2s ease;
}
body.sfy-dash #main-content .sfy-fimp__file:hover { border-color: var(--sd-brand); background: var(--sd-brand-50); }

/* indicatore dei target: soglia minima e range ideale (growth-settings.fragment.php, sfy-target-ai.js) */
body.sfy-dash #main-content .sfy-tm { margin: 12px 0; padding: 12px 14px; border: 1px solid var(--sd-border); border-radius: 12px; background: var(--sd-surface); }
body.sfy-dash #main-content .sfy-tm__head { display: flex; align-items: baseline; gap: 6px; font-size: 14px; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-tm__n { font-size: 20px; font-weight: 800; }
body.sfy-dash #main-content .sfy-tm__goal { margin-inline-start: auto; font-size: 12.5px; font-weight: 600; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-tm__bar { position: relative; height: 8px; margin: 10px 0 8px; border-radius: 99px; background: var(--sd-inner); overflow: hidden; }
body.sfy-dash #main-content .sfy-tm__zone { position: absolute; top: 0; bottom: 0; background: rgba(22, 163, 74, .18); }
body.sfy-dash #main-content .sfy-tm__fill { position: absolute; top: 0; bottom: 0; inset-inline-start: 0; width: 0; border-radius: 99px; background: #F59E0B; transition: width .3s ease, background .3s ease; }
body.sfy-dash #main-content .sfy-tm[data-state="ideal"] .sfy-tm__fill { background: #16A34A; }
body.sfy-dash #main-content .sfy-tm[data-state="many"] .sfy-tm__fill { background: var(--sd-brand); }
body.sfy-dash #main-content .sfy-tm__msg { margin: 0; font-size: 13px; line-height: 1.45; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-tm[data-state="few"] .sfy-tm__msg { color: #B45309; }
body.sfy-dash #main-content .sfy-tm[data-state="ideal"] .sfy-tm__msg { color: #15803D; }
body.sfy-dash #main-content .sfy-tm__ai { display: none; margin-top: 6px; }
body.sfy-dash #main-content .sfy-tm[data-state="few"] .sfy-tm__ai { display: inline-block; }

/* target da sostituire (\Sfy\TargetHealth): riquadro nella sezione Target ed etichetta sul singolo target */
body.sfy-dash #main-content .sfy-th { margin: 0 0 12px; padding: 12px 14px; border: 1px solid #FCD9B6; border-radius: 12px; background: #FFF8F1; }
body.sfy-dash #main-content .sfy-th__title { display: block; margin-bottom: 6px; font-size: 14px; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-th p { margin: 0 0 6px; font-size: 13px; line-height: 1.5; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-th__names { display: block; color: var(--sd-text); font-weight: 600; overflow-wrap: anywhere; }
body.sfy-dash #main-content .sfy-th__tag,
body.sfy-dash #main-content .sfy-tag__flag { display: inline-block; padding: 1px 7px; border-radius: 99px; font-size: 11px; font-weight: 700; line-height: 1.6; vertical-align: 1px; }
body.sfy-dash #main-content .sfy-th__tag--exhausted,
body.sfy-dash #main-content .sfy-tag--exhausted .sfy-tag__flag { background: #FEE4E2; color: #B42318; }
body.sfy-dash #main-content .sfy-th__tag--low,
body.sfy-dash #main-content .sfy-tag--low .sfy-tag__flag { background: #FEF0C7; color: #B54708; }
body.sfy-dash #main-content .sfy-tag__flag { margin-inline-start: 6px; }
body.sfy-dash #main-content .sfy-th__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
body.sfy-dash.darkside #main-content .sfy-th { border-color: rgba(247, 144, 9, .35); background: rgba(247, 144, 9, .08); }

/* Dashboard, crescita attiva: consiglio di usare Instagram nella norma (si chiude, ricordato per profilo) */
body.sfy-dash .sfy-usage { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 16px; padding: 12px 14px; border: 1px solid var(--sd-brand-100); border-radius: 14px; background: var(--sd-brand-50); color: var(--sd-text); }
body.sfy-dash .sfy-usage[hidden] { display: none; }
body.sfy-dash .sfy-usage__ico { flex: 0 0 auto; width: 20px; height: 20px; color: var(--sd-brand-2); }
body.sfy-dash .sfy-usage__ico svg { width: 20px; height: 20px; }
body.sfy-dash .sfy-usage p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sd-text-2); }
body.sfy-dash .sfy-usage p b { color: var(--sd-text); }
body.sfy-dash .sfy-usage__close { flex: 0 0 auto; margin-inline-start: auto; padding: 0 4px; border: 0; background: none; color: var(--sd-text-2); font-size: 20px; line-height: 1; cursor: pointer; }
body.sfy-dash.darkside .sfy-usage { border-color: rgba(22, 104, 227, .35); background: rgba(22, 104, 227, .1); }

/* popup «completa la configurazione» quando si prova ad avviare senza interazioni o target (App.sfySetupAlert) */
.sfy-setup-alert__p { margin: 0 0 10px; }
.sfy-setup-alert { margin: 0; padding: 0; list-style: none; font-weight: 600; color: #B42318; }
.sfy-setup-alert li { margin: 2px 0; }
.sfy-setup-alert li.is-ok { color: #15803D; }

/* Scala della pagina: su desktop il contenuto della dashboard era troppo grande al 100% del browser.
   zoom .8 = come lo zoom all'80% del browser, solo per il contenuto (il menu in alto resta uguale alle altre pagine).
   La larghezza massima sale di 1/.8 così il contenuto occupa sempre la stessa larghezza (1280px). */
@media (min-width: 1024px) {
    body.sfy-dash .skeleton > .container-1200 {
        zoom: .8;
        max-width: 1600px;
    }
}

/* ============================================================================
   STILE DELLA LANDING (socialfyy.com) — stessi colori e forme del sito
   Variabili del marchio in assets/css/sfy-brand.css (--sfy-*).
   - scheda del profilo con le luci della sfumatura del marchio (arancio, rosa, viola, blu)
   - schede (tab) a pillola, quella attiva con l'arancione del marchio
   - riquadri dei numeri colorati (verde, giallo, rosa) con l'icona «adesivo» inclinata
   - pulsanti a pillola
   ========================================================================== */

/* Luci della scheda del profilo: sfumature radiali (niente filter: blur, vedi sfy-brand.css) */
body.sfy-dash .sfy-hero__aurora {
    background:
        radial-gradient(520px 230px at 100% 0%, rgba(22, 104, 227, .13), transparent 70%),
        radial-gradient(440px 210px at 62% -10%, rgba(139, 77, 255, .11), transparent 70%),
        radial-gradient(420px 200px at 22% -20%, rgba(255, 77, 109, .09), transparent 70%),
        radial-gradient(340px 180px at 0% 0%, rgba(255, 138, 31, .12), transparent 70%);
    background-size: 140% 140%, 140% 140%, 130% 130%, 100% 100%;
}

body.sfy-dash.darkside .sfy-hero__aurora {
    background:
        radial-gradient(520px 230px at 100% 0%, rgba(22, 104, 227, .28), transparent 70%),
        radial-gradient(440px 210px at 62% -10%, rgba(139, 77, 255, .20), transparent 70%),
        radial-gradient(420px 200px at 22% -20%, rgba(255, 77, 109, .14), transparent 70%),
        radial-gradient(340px 180px at 0% 0%, rgba(255, 138, 31, .16), transparent 70%);
    background-size: 140% 140%, 140% 140%, 130% 130%, 100% 100%;
}

@keyframes sd-aurora {
    0% { background-position: 0% 0%, 0% 0%, 0% 0%, 0 0; }
    100% { background-position: 100% 60%, 60% 100%, 40% 60%, 0 0; }
}

/* Barra di caricamento del cambio tab: la sfumatura del marchio */
body.sfy-dash .profile-card.sfy-hero::after {
    background: var(--sfy-grad-warm, linear-gradient(105deg, #eb4a12, #e11d6b 52%, #7a4dff)) !important;
    box-shadow: 0 0 12px rgba(225, 29, 107, .45);
}

/* Riquadri Follower / Warm-up nella scheda del profilo */
body.sfy-dash .sfy-hero .stats .sfy-stat {
    border-radius: 20px;
}

/* Schede (tab): pillole; quella attiva in arancione */
body.sfy-dash .sfy-tabs .menu {
    border-radius: 999px;
}

body.sfy-dash .sfy-tabs .menu::before {
    border-radius: 999px;
    box-shadow: 0 1px 2px rgba(14, 13, 18, .06), 0 8px 18px -10px rgba(14, 13, 18, .3);
}

body.sfy-dash.darkside .sfy-tabs .menu::before {
    box-shadow: 0 0 0 1px var(--sd-border-strong), 0 8px 18px -10px rgba(0, 0, 0, .6);
}

body.sfy-dash .sfy-tabs .menu-item {
    border-radius: 999px;
}

body.sfy-dash .sfy-tabs .menu .menu-item.active,
body.sfy-dash .sfy-tabs .menu .menu-item.active:hover {
    color: var(--sfy-orange-text, #d13f0a) !important;
}

body.sfy-dash.darkside .sfy-tabs .menu .menu-item.active,
body.sfy-dash.darkside .sfy-tabs .menu .menu-item.active:hover {
    color: var(--sfy-orange-text, #ff8a5c) !important;
}

body.sfy-dash .sfy-tabs .menu-item:focus-visible {
    border-radius: 999px;
}

/* Avvia / Ferma la crescita: pillola (blu pieno per avviare, come i pulsanti principali della landing) */
body.sfy-dash .sfy-hero .js-toggle-status {
    border-radius: 999px !important;
}

body.sfy-dash .sfy-hero .js-toggle-status.start-button {
    box-shadow: var(--sfy-cta-shadow, 0 8px 22px -6px rgba(22, 104, 227, .5));
}

/* Riquadri dei numeri: un colore per riquadro (come i vantaggi nella landing), icona «adesivo» inclinata */
body.sfy-dash .sfy-kpi {
    border-color: transparent;
    box-shadow: none;
    transition: transform .3s var(--sd-ease), box-shadow .3s ease;
}

body.sfy-dash .sfy-kpi:nth-child(1) { background: var(--sfy-green-soft, #e2f7ec); }
body.sfy-dash .sfy-kpi:nth-child(2) { background: var(--sfy-yellow-soft, #fff3cf); }
body.sfy-dash .sfy-kpi:nth-child(3) { background: var(--sfy-pink-soft, #ffe9f1); }

body.sfy-dash .sfy-kpi:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 44px -24px rgba(14, 13, 18, .35);
}

body.sfy-dash .sfy-kpi::after {
    display: none;
}

body.sfy-dash .sfy-kpi__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    transform: rotate(-6deg);
    transition: transform .3s var(--sd-ease);
}

body.sfy-dash .sfy-kpi:hover .sfy-kpi__icon {
    transform: rotate(0deg);
}

body.sfy-dash .sfy-kpi:nth-child(1) .sfy-kpi__icon { color: #fff; background: var(--sfy-green, #0b9e62); box-shadow: 0 10px 22px -8px rgba(11, 158, 98, .7); }
body.sfy-dash .sfy-kpi:nth-child(2) .sfy-kpi__icon { color: #1d1d1f; background: var(--sfy-yellow, #ffb81f); box-shadow: 0 10px 22px -8px rgba(255, 184, 31, .8); }
body.sfy-dash .sfy-kpi:nth-child(3) .sfy-kpi__icon { color: #fff; background: var(--sfy-pink, #e11d6b); box-shadow: 0 10px 22px -8px rgba(225, 29, 107, .7); }

body.sfy-dash .sfy-kpi__label {
    color: var(--sd-text);
}

body.sfy-dash .sfy-kpi__hint {
    color: var(--sd-text-2);
}

/* ---- Invito al programma referenti (app/views/fragments/affiliate-invite.fragment.php): fascia sfumata del marchio */
body.sfy-dash .sfy-affinv { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 18px 54px 18px 18px; border-radius: 24px; color: #fff; background: linear-gradient(120deg, #D63F0C 0%, #D81B66 52%, #6D3FF5 100%); box-shadow: 0 22px 44px -28px rgba(109, 63, 245, .8); }
body.sfy-dash .sfy-affinv[hidden] { display: none; }
body.sfy-dash .sfy-affinv::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(rgba(255, 255, 255, .26) 1px, transparent 1.5px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 70%); mask-image: linear-gradient(90deg, transparent, #000 70%); }
body.sfy-dash .sfy-affinv__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 16px; background: #FFB81F; color: #1D1D1F; box-shadow: 0 10px 20px -8px rgba(0, 0, 0, .4); transform: rotate(-6deg); }
body.sfy-dash .sfy-affinv__body { flex: 1; min-width: 0; }
body.sfy-dash .sfy-affinv__body b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
body.sfy-dash .sfy-affinv__body b span { color: #FFE08A; }
body.sfy-dash .sfy-affinv__body p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: rgba(255, 255, 255, .9); }
body.sfy-dash .sfy-affinv__cta { box-sizing: border-box; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; background: #fff; color: #1D1D1F !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: transform .2s; }
body.sfy-dash .sfy-affinv__cta:hover { transform: translateY(-2px); }
body.sfy-dash .sfy-affinv__close { position: absolute; top: 10px; inset-inline-end: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .16); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; }
body.sfy-dash .sfy-affinv__close:hover { background: rgba(255, 255, 255, .28); }
@media (max-width: 720px) {
    body.sfy-dash .sfy-affinv { flex-direction: column; align-items: flex-start; padding: 18px; }
    body.sfy-dash .sfy-affinv__cta { width: 100%; justify-content: center; }
}

/* ---- Invito ai DM (app/views/fragments/dm-invite.fragment.php): agevolazione «DM + Crescita», colori di Socialfyy DM (viola) */
body.sfy-dash .sfy-dminv { position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; gap: 16px; margin: 0 0 20px; padding: 18px 54px 18px 18px; border-radius: 24px; background: linear-gradient(120deg, #F1ECFF 0%, #FFE9F1 60%, #FFF1EA 100%); color: #1D1D1F; box-shadow: inset 0 0 0 1px rgba(122, 77, 255, .12); }
body.sfy-dash .sfy-dminv[hidden] { display: none; }
body.sfy-dash .sfy-dminv::before { content: ""; position: absolute; z-index: -1; inset: 0; background: radial-gradient(rgba(29, 29, 31, .12) 1px, transparent 1.5px) 0 0 / 20px 20px; -webkit-mask-image: linear-gradient(90deg, transparent, #000 75%); mask-image: linear-gradient(90deg, transparent, #000 75%); }
body.sfy-dash .sfy-dminv__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 50px; height: 50px; border-radius: 16px; background: #7A4DFF; color: #fff; box-shadow: 0 12px 22px -10px rgba(122, 77, 255, .75); transform: rotate(-6deg); }
body.sfy-dash .sfy-dminv__body { flex: 1; min-width: 0; }
body.sfy-dash .sfy-dminv__body > b { display: block; font-size: 17px; font-weight: 600; letter-spacing: -.02em; line-height: 1.3; }
body.sfy-dash .sfy-dminv__body p { margin: 3px 0 0; font-size: 14px; line-height: 1.5; color: #5E5E63; }
body.sfy-dash .sfy-dminv__prices { display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; padding: 0; list-style: none; }
body.sfy-dash .sfy-dminv__prices li { padding: 5px 12px; border-radius: 999px; background: #fff; font-size: 13.5px; font-weight: 600; box-shadow: 0 1px 2px rgba(14, 13, 18, .08); }
body.sfy-dash .sfy-dminv__prices s { margin-inline-start: 2px; color: #8A8F98; font-weight: 500; }
body.sfy-dash .sfy-dminv__cta { box-sizing: border-box; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 44px; padding: 0 20px; border-radius: 999px; background: #1668E3; color: #fff !important; font-size: 14.5px; font-weight: 600; text-decoration: none !important; transition: background-color .2s, transform .2s; }
body.sfy-dash .sfy-dminv__cta:hover { background: #0F58C9; transform: translateY(-2px); }
body.sfy-dash .sfy-dminv__close { position: absolute; top: 10px; inset-inline-end: 12px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: rgba(29, 29, 31, .06); color: #5E5E63; font-size: 18px; line-height: 1; cursor: pointer; }
body.sfy-dash .sfy-dminv__close:hover { background: rgba(29, 29, 31, .12); }
body.sfy-dash.darkside .sfy-dminv { background: linear-gradient(120deg, rgba(122, 77, 255, .2) 0%, rgba(225, 29, 107, .14) 60%, rgba(244, 81, 30, .1) 100%); color: #F5F5F7; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
body.sfy-dash.darkside .sfy-dminv::before { background-image: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.5px); }
body.sfy-dash.darkside .sfy-dminv__body p { color: #B4B4BB; }
body.sfy-dash.darkside .sfy-dminv__prices li { background: rgba(255, 255, 255, .08); box-shadow: none; }
body.sfy-dash.darkside .sfy-dminv__close { background: rgba(255, 255, 255, .1); color: #F5F5F7; }
@media (max-width: 720px) {
    body.sfy-dash .sfy-dminv { flex-direction: column; align-items: flex-start; padding: 18px; }
    body.sfy-dash .sfy-dminv__cta { width: 100%; justify-content: center; }
}

/* ---- Piano in pausa (app/views/fragments/pause-banner.fragment.php): il cliente ha messo in pausa il piano di questo profilo */
body.sfy-dash .sfy-pausebar { display: flex; align-items: center; gap: 14px; margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; border: 1px solid #CFE0FB; background: #EEF4FF; color: #1D1D1F; }
body.sfy-dash .sfy-pausebar__ico { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 12px; background: #fff; color: #1668E3; transform: rotate(-6deg); box-shadow: 0 8px 18px -10px rgba(22, 104, 227, .6), 0 0 0 1px rgba(14, 13, 18, .05); }
body.sfy-dash .sfy-pausebar__ico svg { display: block; }
body.sfy-dash .sfy-pausebar p { flex: 1; min-width: 0; margin: 0; font-size: 14.5px; line-height: 1.45; color: #5E5E63; }
body.sfy-dash .sfy-pausebar p b { font-weight: 600; color: #1D1D1F; }
body.sfy-dash .sfy-pausebar a { box-sizing: border-box; flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; height: 40px; padding: 0 18px; border-radius: 999px; background: #1668E3; color: #fff; font-size: 14px; font-weight: 600; text-decoration: none; transition: background-color .2s, transform .2s; }
body.sfy-dash .sfy-pausebar a:hover { background: #0F58C9; transform: translateY(-1px); }
body.sfy-dash.darkside .sfy-pausebar { border-color: rgba(22, 104, 227, .35); background: rgba(22, 104, 227, .12); }
body.sfy-dash.darkside .sfy-pausebar p { color: #b4b4bb; }
body.sfy-dash.darkside .sfy-pausebar p b { color: #f5f5f7; }
body.sfy-dash.darkside .sfy-pausebar__ico { background: rgba(255, 255, 255, .1); color: #8AB4F8; box-shadow: none; }
@media (max-width: 720px) {
    body.sfy-dash .sfy-pausebar { flex-wrap: wrap; }
    body.sfy-dash .sfy-pausebar p { flex: 1 1 0; }
    body.sfy-dash .sfy-pausebar a { flex: 1 1 100%; justify-content: center; }
}

/* ---- Installa l'app: ora è un popup, stili in assets/css/sfy-install.css (16/11/2026) */
/* ---------- Origine del pubblico: globo 3D (assets/js/sfy-globe.js) ---------- */
body.sfy-dash .sfy-globe {
    position: relative;
    height: auto !important;
    min-height: 0 !important;
    padding: 6px 0 4px;
}
body.sfy-dash .sfy-globe canvas {
    display: block;
    margin: 0 auto;
    cursor: grab;
    touch-action: pan-y;
    opacity: 0;
    transform: scale(.96);
    transition: opacity .6s ease, transform .8s cubic-bezier(.2, .7, .2, 1);
}
body.sfy-dash .sfy-globe.is-ready canvas {
    opacity: 1;
    transform: none;
}
body.sfy-dash .sfy-globe canvas:active {
    cursor: grabbing;
}
body.sfy-dash .sfy-globe__tip {
    position: absolute;
    z-index: 2;
    padding: 6px 12px;
    border-radius: 999px;
    background: #1D1D1F;
    color: #fff;
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    pointer-events: none;
    transform: translate(-50%, calc(-100% - 12px));
    box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .45);
}
body.sfy-dash .sfy-globe__tip[hidden] {
    display: none;
}
body.darkside.sfy-dash .sfy-globe__tip {
    background: #F5F5F7;
    color: #1D1D1F;
}
@media (prefers-reduced-motion: reduce) {
    body.sfy-dash .sfy-globe canvas { transition: none; transform: none; }
}

/* globo ingrandito sull'Europa (sfy-globe.js, ZOOM): i bordi del disegno sfumano nel riquadro, niente tagli netti */
body.sfy-dash .sfy-globe canvas.sfy-globe__map {
    -webkit-mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 72%, transparent 100%);
    mask-image: radial-gradient(ellipse 60% 62% at 50% 50%, #000 72%, transparent 100%);
}

/* «Paesi principali»: riquadro che riempie la sua colonna, righe più grandi */
body.sfy-dash #main-content .sfy-card-location #location {
    margin-top: 0 !important;
}
body.sfy-dash #main-content .sfy-card-location .sidecar h2 {
    font-size: 18px;
}
body.sfy-dash #main-content .sfy-card-location .sidecar-header span {
    font-size: 13px;
}
body.sfy-dash #main-content .sfy-card-location .map-location-item {
    gap: 14px;
    padding: 14px 12px;
    border-radius: 14px;
}
body.sfy-dash #main-content .sfy-card-location .map-icon {
    width: 38px;
    height: 27px;
    border-radius: 6px;
}
body.sfy-dash #main-content .sfy-card-location .map-country-name {
    margin-bottom: 8px;
    font-size: 15.5px;
}
body.sfy-dash #main-content .sfy-card-location .map-bar {
    height: 10px;
}
body.sfy-dash #main-content .sfy-card-location .map-percentage {
    min-width: 54px;
    font-size: 18px;
}
@media (min-width: 769px) {
    body.sfy-dash #main-content .sfy-card-location > .card-body {
        align-items: stretch;
    }
    body.sfy-dash #main-content .sfy-card-location .sidecar {
        align-self: stretch !important;
        height: auto !important;
        display: flex;
        flex-direction: column;
        max-width: none !important;
        width: auto !important;
        margin: 4px 16px 16px 0 !important;
        padding: 22px 20px !important;
        border-radius: 22px;
    }
    body.sfy-dash #main-content .sfy-card-location #location-list {
        flex: 1 1 auto;
        display: flex;
        flex-direction: column;
        justify-content: space-evenly;
    }
}

/* tela sopra il globo: segnaposti, aste ed etichette (senza la sfumatura dei bordi) */
body.sfy-dash .sfy-globe__stage {
    position: relative;
}
body.sfy-dash .sfy-globe canvas.sfy-globe__ov {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    pointer-events: none;
}
/* tela dei Paesi colorati (sfy-globe.js, drawTop): sopra lo sfondo, stessa sfumatura dei bordi, non prende il puntatore */
body.sfy-dash .sfy-globe canvas.sfy-globe__top {
    position: absolute;
    top: 0;
    inset-inline-start: 0;
    pointer-events: none;
}
/* riga dell'elenco del Paese illuminato sul globo */
body.sfy-dash #main-content .sfy-card-location .map-location-item {
    cursor: default;
    transition: background .15s, box-shadow .15s, transform .15s;
}
body.sfy-dash #main-content .sfy-card-location .map-location-item.is-hl {
    background: var(--sd-surface);
    box-shadow: 0 8px 20px -12px rgba(15, 30, 70, .35);
    transform: translateX(-2px);
}

/* ===== Target «Luoghi» (\Sfy\TargetPlaces, 16/11/2026): spiegazione onesta + luoghi proposti dall'A.I. alle attività locali ===== */
body.sfy-dash #main-content .sfy-loc {
    display: flex;
    gap: 12px;
    margin: 12px 0 0;
    padding: 14px 16px;
    border-radius: 16px;
    background: var(--sfy-blue-soft, #EAF2FF);
    color: var(--sd-text);
}
body.sfy-dash #main-content .sfy-loc[hidden] { display: none; }
body.sfy-dash #main-content .sfy-loc__ico {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 11px;
    background: #1668E3;
    color: #fff;
    transform: rotate(-6deg);
}
body.sfy-dash #main-content .sfy-loc b { display: block; margin: 0 0 4px; font-size: 14px; }
body.sfy-dash #main-content .sfy-loc p { margin: 0 0 4px; font-size: 13px; line-height: 1.5; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-loc p:last-child { margin: 0; color: var(--sd-text); font-weight: 600; }
body.sfy-dash.darkside #main-content .sfy-loc { background: rgba(22, 104, 227, .14); }
body.sfy-dash #main-content .sfy-ai__places { margin: 14px 0 0; padding: 14px 0 0; border-top: 1px solid var(--sd-border); }
body.sfy-dash #main-content .sfy-ai__places[hidden] { display: none; }
body.sfy-dash #main-content .sfy-ai__places-title { display: block; font-size: 14px; }
body.sfy-dash #main-content .sfy-ai__places-note { margin: 4px 0 10px; font-size: 12.5px; line-height: 1.5; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-ai__plist { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 0; padding: 0; list-style: none; }
body.sfy-dash #main-content .sfy-ai__place {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--sd-border);
    border-radius: 10px;
    background: var(--sd-surface);
    color: var(--sd-text);
    font: inherit;
    text-align: start;
    cursor: pointer;
    transition: border-color .2s ease;
}
body.sfy-dash #main-content .sfy-ai__place:hover { border-color: #1668E3; }
body.sfy-dash #main-content .sfy-ai__place .sfy-ai__plus { background: var(--sfy-blue-soft, #EAF2FF); color: #1668E3; }
body.sfy-dash #main-content .sfy-ai__place.is-picking { border-color: #1668E3; }
body.sfy-dash #main-content .sfy-ai__place.is-picking .sfy-ai__state { color: #1668E3; }
body.sfy-dash #main-content .sfy-ai__place { flex-wrap: wrap; }
body.sfy-dash #main-content .sfy-ai__place .sfy-ai__state:not(:empty) { flex: 1 1 100%; max-width: none; padding-inline-start: 36px; text-align: start; font-weight: 600; }

/* Genere del pubblico: icone «adesivo» (simbolo Lucide bianco su quadratino colorato, inclinato di −6°) al posto degli avatar animati (16/11/2026) */
body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--gn);
    color: #fff;
    transform: rotate(-6deg);
    box-shadow: 0 10px 20px -12px var(--gn);
    transition: transform .2s ease;
}
body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn svg { width: 22px; height: 22px; }
body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn--all { --gn: #7A4DFF; }
body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn--male { --gn: #1668E3; }
body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn--female { --gn: #E11D6B; }
body.sfy-dash #main-content .growth-settings-content #genders .item-tag:hover .sfy-gn,
body.sfy-dash #main-content .growth-settings-content #genders .item-tag.selected .sfy-gn { transform: rotate(-6deg) scale(1.06); }
@media (prefers-reduced-motion: reduce) {
    body.sfy-dash #main-content .growth-settings-content #genders .sfy-gn { transition: none; }
}

/* Tipo di target (.sfy-tt, 16/11/2026): schede «Profili target / Luoghi target» al posto del menu a tendina.
   Il <select name="type"> resta nascosto: lo legge app.js per la ricerca. */
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select.sfy-tt__native,
body.sfy-dash #main-content .growth-settings-content .suggestions-target-search > select.sfy-tt__native + .selectize-control { display: none !important; }
body.sfy-dash #main-content .sfy-tt { margin: 0 0 12px; }
body.sfy-dash #main-content .sfy-tt__tabs { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--sd-inner); }
body.sfy-dash #main-content .sfy-tt__tab {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    height: 38px;
    padding: 0 16px;
    border: 0;
    border-radius: 999px;
    background: transparent;
    color: var(--sd-text-2);
    font: inherit;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .2s ease, color .2s ease;
}
body.sfy-dash #main-content .sfy-tt__tab:hover { color: var(--sd-text); }
body.sfy-dash #main-content .sfy-tt__tab.is-on { background: var(--sfy-orange-soft, #FFF1EA); color: var(--sfy-orange-text, #D13F0A); }
body.sfy-dash #main-content .sfy-tt__tab small { padding: 2px 7px; border-radius: 999px; background: var(--sd-surface); color: var(--sd-text-3); font-size: 11px; font-weight: 600; }
body.sfy-dash #main-content .sfy-tt__tab.is-on small { color: var(--sfy-orange-text, #D13F0A); }
body.sfy-dash.darkside #main-content .sfy-tt__tab.is-on { background: rgba(244, 81, 30, .16); color: #FF9F7A; }
body.sfy-dash.darkside #main-content .sfy-tt__tab.is-on small { color: #FF9F7A; }
@media (max-width: 640px) {
    body.sfy-dash #main-content .sfy-tt__tabs { display: flex; }
    body.sfy-dash #main-content .sfy-tt__tab { flex: 1 1 0; flex-wrap: wrap; justify-content: center; height: auto; min-height: 42px; padding: 7px 8px; row-gap: 3px; text-align: center; }
}

/* Impostazioni di crescita: arrivo dalle storie di un concorrente (?add_target=, growth-settings.fragment.php) */
body.sfy-dash .sfy-addt { display: flex; gap: 14px; align-items: flex-start; margin: 0 0 14px; padding: 16px 18px; border-radius: 20px;
    background: radial-gradient(closest-side, rgba(255,107,53,.14), transparent) -50px -70px / 260px 260px no-repeat, var(--sfy-orange-soft, #FFF1EA); }
body.sfy-dash .sfy-addt__ico { flex: 0 0 auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: #fff; font-size: 20px; transform: rotate(-6deg); box-shadow: 0 8px 16px -8px rgba(255,107,53,.6); }
body.sfy-dash .sfy-addt b { display: block; font-size: 15px; color: #1D1D1F; margin-bottom: 4px; }
body.sfy-dash .sfy-addt p { margin: 0 0 10px; font-size: 13.5px; line-height: 1.55; color: #5E5E63; }
body.sfy-dash .sfy-addt p:last-child { margin-bottom: 0; }
body.sfy-dash .sfy-addt__btn { display: inline-flex; align-items: center; height: 36px; padding: 0 16px; border-radius: 999px; background: #1668E3; color: #fff !important; font-weight: 600; font-size: 13.5px; text-decoration: none !important; }
body.sfy-dash .sfy-addt__btn:hover { background: #0F58C9; }

/* Ottimizzazione automatica dei target (\Sfy\TargetOpt, growth-settings.fragment.php): interruttore del cliente e ultimi cambi dell'A.I. */
body.sfy-dash #main-content .sfy-topt { margin: 0 0 20px; gap: 12px; }
body.sfy-dash #main-content .sfy-topt__head { display: flex; align-items: center; gap: 14px; }
body.sfy-dash #main-content .sfy-topt__ico {
    flex: 0 0 auto; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px;
    border-radius: 12px; background: #F1EBFF; color: #7A4DFF; transform: rotate(-6deg);
}
body.sfy-dash #main-content .sfy-topt__ico svg { width: 20px; height: 20px; }
body.sfy-dash #main-content .sfy-topt__title { flex: 1 1 auto; min-width: 0; }
body.sfy-dash #main-content .sfy-topt__title h2 { margin: 0; font-size: 17px; font-weight: 650; line-height: 1.3; letter-spacing: -.015em; color: var(--sd-text) !important; }
body.sfy-dash #main-content .sfy-topt__desc { margin: -4px 0 0; padding-inline-start: 54px; font-size: 13.5px; line-height: 1.55; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-topt__switch { position: relative; flex: 0 0 auto; width: 46px; height: 28px; margin: 0; cursor: pointer; }
body.sfy-dash #main-content .sfy-topt__switch input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
body.sfy-dash #main-content .sfy-topt__switch i { position: absolute; inset: 0; border-radius: 999px; background: var(--sd-border-strong); transition: background .2s ease; }
body.sfy-dash #main-content .sfy-topt__switch i::after {
    content: ""; position: absolute; top: 3px; inset-inline-start: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff;
    box-shadow: 0 1px 3px rgba(14, 13, 18, .25); transition: transform .2s ease;
}
body.sfy-dash #main-content .sfy-topt__switch input:checked + i { background: var(--sd-success); }
body.sfy-dash #main-content .sfy-topt__switch input:checked + i::after { transform: translateX(18px); }
html[dir="rtl"] body.sfy-dash #main-content .sfy-topt__switch input:checked + i::after { transform: translateX(-18px); }
body.sfy-dash #main-content .sfy-topt__switch input:focus-visible + i { box-shadow: 0 0 0 3px var(--sd-brand-ring); }
body.sfy-dash #main-content .sfy-topt__switch input:disabled + i { opacity: .6; }
body.sfy-dash #main-content .sfy-topt__body { padding: 12px 14px; border-radius: 14px; background: var(--sd-inner); }
body.sfy-dash #main-content .sfy-topt__body[hidden], body.sfy-dash #main-content .sfy-topt__offnote[hidden] { display: none; }
body.sfy-dash #main-content .sfy-topt__sum { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font-size: 14px; color: var(--sd-text); }
body.sfy-dash #main-content .sfy-topt__pill { padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 700; }
body.sfy-dash #main-content .sfy-topt__pill.is-add { background: var(--sd-success-bg); color: #15803D; }
body.sfy-dash #main-content .sfy-topt__pill.is-rem { background: #FEF0C7; color: #B54708; }
body.sfy-dash #main-content .sfy-topt__list { margin: 10px 0 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
body.sfy-dash #main-content .sfy-topt__list li { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 8px; padding: 7px 0; border-top: 1px solid var(--sd-border); font-size: 14px; }
body.sfy-dash #main-content .sfy-topt__list li:first-child { border-top: 0; }
body.sfy-dash #main-content .sfy-topt__list a { color: var(--sd-text); font-weight: 600; overflow-wrap: anywhere; }
body.sfy-dash #main-content .sfy-topt__gone { color: var(--sd-text-2); font-weight: 600; text-decoration: line-through; overflow-wrap: anywhere; }
body.sfy-dash #main-content .sfy-topt__list small { font-size: 12.5px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-topt__sign { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; font-size: 13px; font-weight: 800; line-height: 1; }
body.sfy-dash #main-content .sfy-topt__sign.is-add { background: var(--sd-success-bg); color: #15803D; }
body.sfy-dash #main-content .sfy-topt__sign.is-rem { background: #FEF0C7; color: #B54708; }
body.sfy-dash #main-content .sfy-topt__line, body.sfy-dash #main-content .sfy-topt__next, body.sfy-dash #main-content .sfy-topt__offnote { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sd-text-2); }
body.sfy-dash #main-content .sfy-topt__next { margin-top: 8px; font-size: 12.5px; color: var(--sd-text-3); }
body.sfy-dash #main-content .sfy-topt__status { margin: 0; font-size: 12.5px; color: #15803D; }
body.sfy-dash #main-content .sfy-topt__status:empty { display: none; }
body.sfy-dash #main-content .sfy-topt__status.is-error { color: #B42318; }
body.sfy-dash.darkside #main-content .sfy-topt__ico { background: rgba(122, 77, 255, .16); }
@media (max-width: 767px) {
    body.sfy-dash #main-content .sfy-topt__head { gap: 10px; }
    body.sfy-dash #main-content .sfy-topt__ico { width: 34px; height: 34px; border-radius: 10px; }
    body.sfy-dash #main-content .sfy-topt__desc { margin-top: 0; padding-inline-start: 0; font-size: 13px; }
}
