/* ===============
   AREA GRUPPI - foglio unico, ISOLATO dai fogli globali.  (13/09/2026)
   --------------------------------------------------------------------------
   Perche' esiste, parola per parola del titolare:
     "il css di creazione e' parziale .. o scassato ... usi i grid .. malissimo"
     "fai in modo che il css non venga influenzato dai css globali"

   Come e' isolato (tre difese, non una):
     1. TUTTO sta dentro lo scopo `.gr-app`, che nei gusci e' il <main> del
        contenuto e nelle pagine-landing e' il <body>: il nav e il guscio
        (fratelli di .gr-app) non vengono toccati dal reset.
     2. RESET DIFENSIVO dentro lo scopo: margini, liste, immagini, campi e
        pulsanti ripartono da zero, cosi' le regole globali non si trascinano
        dentro (era la causa dei "riquadri scassati").
     3. COMPONENTI MIEI (`.gr-btn`, `.gr-input`, ...): l'area non dipende piu' da
        `.mood-btn`/`.mood-input`, che possono cambiare sotto senza romperla.

   I colori NON sono fissi: si prendono dalle variabili del tema (chiaro/scuro)
   con il prefisso dell'area (--gr-*), come insights.css fa con --ins-*.
   =============== */

/* ---------------------------------------------------------------- scopo --- */
.gr-app{
    --gr-bg:        var(--mood-bg, #0D0D1A);
    --gr-card:      var(--mood-bg-card, #15152A);
    --gr-card-2:    var(--mood-bg-hover, #1E1E3A);
    --gr-border:    var(--mood-border, #2A2A4A);
    --gr-text:      var(--mood-text, #F0F0FF);
    --gr-muted:     var(--mood-text-muted, #8888AA);
    --gr-primary:   var(--mood-primary, #6C5CE7);
    --gr-danger:    var(--mood-danger, #D94F4F);
    --gr-success:   var(--mood-success, #00B894);
    --gr-raggio:    14px;
    --gr-raggio-g:  18px;

    color: var(--gr-text);
    /* La vecchia --mood-surface non esiste nel progetto: non si usa piu'. */
}
.gr-app.gr-body{ background: var(--gr-bg); min-height: 100vh; }

/* ------------------------------------------------ reset dentro lo scopo --- */
.gr-app, .gr-app *, .gr-app *::before, .gr-app *::after { box-sizing: border-box; }
.gr-app h1,
.gr-app h2,
.gr-app h3,
.gr-app h4,
.gr-app p,
.gr-app ul,
.gr-app ol,
.gr-app li, .gr-app dl, .gr-app dt, .gr-app dd, .gr-app figure { margin: 0; padding: 0; }
.gr-app ul, .gr-app ol { list-style: none; }
.gr-app a{ color: inherit; text-decoration: none; }
.gr-app img, .gr-app video { max-width: 100%; display: block; }
.gr-app button, .gr-app input, .gr-app select, .gr-app textarea { font: inherit; color: inherit; }
.gr-app button{ background: none; border: 0; padding: 0; cursor: pointer; }
.gr-app table{ border-collapse: collapse; width: 100%; }
/* L'attributo hidden vince SEMPRE, anche su display:flex/grid. */
.gr-app [hidden]{ display: none !important; }

/* ------------------------------------------------------------ la pagina --- */
.gr-app{ font-family: var(--mood-font, system-ui, -apple-system, 'Inter', sans-serif); }
.gr-app .gr-shell{ max-width: 1120px; margin: 0 auto; padding: 0 1rem 3rem; }
.gr-app .gr-container{ padding-top: .4rem; }

/* ------------------------------------------ griglie: due colonne, fatte bene ---
   Il difetto di prima: la seconda colonna aveva un minimo in pixel
   (minmax(260px,1fr)) e il contenuto non poteva restringersi -> la griglia
   sforava e i riquadri si "scassavano". Ora: minmax(0,...) su entrambe, min-width:0
   sui figli, e una sola soglia. */
.gr-app .gr-2col{ display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.gr-app .gr-col{ display: grid; gap: 1.1rem; min-width: 0; align-content: start; }
@media (min-width: 960px) {
    .gr-app .gr-2col{ grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: start; }
    .gr-app .gr-2col > .gr-col--fianco{ position: sticky; top: calc(var(--shell-top, 84px) + 8px); }
}

/* ----------------------------------------------------------- testata --- */
.gr-app .gr-topbar {
    display: flex; align-items: center; gap: .8rem; padding: .9rem 0 1rem;
    position: sticky; top: 0; z-index: 20; background: var(--gr-bg);
}
.gr-app .gr-topbar-title{ flex: 1 1 auto; min-width: 0; }
.gr-app .gr-topbar-title h1{ font-size: 1.3rem; font-weight: 800; line-height: 1.2; }
.gr-app .gr-topbar-title p{ margin-top: .15rem; font-size: .84rem; color: var(--gr-muted); }
.gr-app .gr-icon-btn {
    display: inline-flex; align-items: center; justify-content: center;
    flex: none; width: 40px; height: 40px; border-radius: 999px;
    border: 1px solid var(--gr-border); background-color: var(--gr-card); color: var(--gr-text);
}
.gr-app .gr-icon-btn:hover{ background: var(--gr-card-2); }
.gr-app .gr-icon-btn svg{ width: 18px; height: 18px; }

/* -------------------------------------------------------- pulsanti miei --- */
.gr-app .gr-btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
    padding: .55rem .9rem; border-radius: 10px; border: 1px solid transparent;
    background: var(--gr-card-2); color: var(--gr-text);
    font-size: .88rem; font-weight: 700; line-height: 1.1; cursor: pointer;
    transition: filter .15s ease, background .15s ease, border-color .15s ease;
}
.gr-app .gr-btn svg{ width: 16px; height: 16px; flex: none; }
.gr-app .gr-btn:hover{ filter: brightness(1.08); }
.gr-app .gr-btn--primario{background: var(--gr-primary) !important;color: #fff;}
.gr-app .gr-btn--tenue{background: var(--background-card-border);border-color: var(--gr-border);}
.gr-app .gr-btn--tenue:hover{ background: var(--gr-card-2); }
.gr-app .gr-btn--pericolo{ background: transparent; border-color: var(--gr-danger); color: var(--gr-danger); }
.gr-app .gr-btn--piccolo{ padding: .35rem .6rem; font-size: .8rem; }
.gr-app .gr-btn--pieno{ width: 100%; }
.gr-app .gr-btn[disabled]{ opacity: .55; cursor: not-allowed; filter: none; }

/* ---------------------------------------------------------- campi miei --- */
.gr-app .gr-input,
.gr-app .gr-area,
.gr-app .mood-select {
    display: block; width: 100%; max-width: 100%;
    padding: .6rem .75rem; border-radius: 10px;
    border: 1px solid var(--gr-border); background-color: var(--gr-card); color: var(--gr-text);
    font-size: .92rem; line-height: 1.35;
}
.gr-app .gr-area { min-height: 96px; resize: vertical; }
.gr-app .gr-input::placeholder, .gr-app .gr-area::placeholder { color: var(--gr-muted); }
.gr-app .gr-input:focus,
.gr-app .gr-area:focus,
.gr-app .mood-select:focus {
    outline: 2px solid var(--gr-primary); outline-offset: 1px; border-color: var(--gr-primary);
}
.gr-app .gr-campo{ display: block; margin-bottom: .85rem; }
.gr-app .gr-campo > span{ display: block; margin-bottom: .3rem; font-size: .84rem; font-weight: 700; }
.gr-app .gr-campo span{
    padding-left: 11px;
}
#grEsito.gr-nota{
    margin: 0px 10px 9px 10px;
}
.gr-app .gr-nota{display: inline-flex;font-size: .78rem;color: #f8f8f8;line-height: 1.45;padding: 2px 12px;width: fit-content;background: var(--gr-primary);gap: 10px;border-radius: 10px;align-items: center;justify-content: center;}

.gr-app .gr-card .gr-nota{
    border-radius: 4px;
    padding: 4px 11px;
    margin-top: 18px;
}
.gr-app .gr-esito{ display: block; margin-top: .6rem; font-size: .82rem; color: var(--gr-muted); }
.gr-app .gr-esito.is-ok{ color: var(--gr-success); font-weight: 700; }
.gr-app .gr-esito.is-no{ color: var(--gr-danger); font-weight: 700; }
.gr-app .gr-avviso {
    display: block;
    margin-top: .6rem;
    padding: .5rem .7rem;
    border-radius: 10px;
    border: 1px solid var(--gr-danger);
    background: rgb(217 79 79 / 71%);
    font-size: .84rem;
    font-weight: 700;
}

/* --------------------------------------------------------------- schede --- */
.gr-app .gr-card {
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-raggio-g);
    background: var(--gr-card);
    padding: 2rem 2.05rem 2.1rem;
    margin-bottom: 2rem;
}
.gr-app .gr-card + .gr-card{ margin-top: 1.1rem; }
.gr-app .gr-card--apertura{ text-align: center; padding: 2rem 1.3rem 1.6rem; }
.gr-app .gr-card__capo{ display: flex; align-items: center; gap: .5rem; margin-bottom: .3rem; }
.gr-app .gr-card__capo .gr-card__titolo{
    margin: initial;
}
.gr-app .gr-card__capo svg{ width: 18px; height: 18px; color: var(--gr-primary); flex: none; }
.gr-app .gr-card__titolo{font-size: 0.9rem;font-weight: 600;display: flex;gap: 10px;margin-bottom: 1rem;justify-content: flex-start;}
.gr-app .gr-card__nota{ margin-bottom: .85rem; font-size: .82rem; color: var(--gr-muted); line-height: 1.5; }
.gr-app .gr-card__titolo + .gr-card__nota{ margin-top: .2rem; }
.gr-app .gr-passo__num {
    display: inline-block; margin-bottom: .5rem; padding: .15rem .5rem; border-radius: 999px;
    background: rgba(124, 92, 231, .14); color: var(--gr-primary);
    font-size: .72rem; font-weight: 800; letter-spacing: .02em;
}

/* --------------------------------------------------------------- etichette --- */
.gr-app .gr-badge {
    display: inline-flex;
    align-items: center;
    gap: .3rem;
    flex: none;
    padding: .18rem .55rem .18rem 0.55rem;
    border-radius: 999px;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .02em;
    white-space: nowrap;
}
.gr-app .gr-badge svg{width: 17px;height: 17px;}
.gr-app .gr-badge--pubblico{background: rgba(0, 184, 148, .16);color: #1E9E7E;padding: .18rem .55rem .18rem .55rem;}
.gr-app .gr-badge--privato{ background: rgba(230, 126, 34, .16); color: #C2691F; }
.gr-app .gr-badge--moderato{ background: rgba(155, 89, 182, .18); color: #8E44AD; }
.gr-app .gr-badge--owner{ background: rgba(124, 92, 231, .16); color: var(--gr-primary); }
.gr-app .gr-badge--ruolo{ background: var(--gr-card-2); color: var(--gr-muted); }
.gr-app .gr-badge--attesa{ background: var(--gr-card-2); color: var(--gr-muted); }
.gr-app .gr-badge--dentro{background: rgba(0, 184, 148, .16);color: #1E9E7E;padding: .18rem .55rem 0.18rem .55rem;}

.gr-app .gr-badge--public {
    padding: .18rem .55rem .18rem 0;
};
/* --------------------------------------------------------------- avatar --- */
.gr-app .gr-avatar {
    width: 40px; height: 40px; border-radius: 999px; object-fit: cover; flex: none;
    background: var(--gr-card-2); display: block;
}
.gr-app .gr-avatar--p{ width: 30px; height: 30px; }

/* ----------------------------------------------------- copertina (profilo) ---
   Stile profilo, come chiesto: la copertina E' il riquadro; passandoci sopra il
   dito o trascinando un file compare il velo con la macchina fotografica. */
.gr-app .gr-cop {
    position: relative; display: block; width: 100%; height: 170px;
    border-radius: var(--gr-raggio-g); overflow: hidden; cursor: pointer;
    border: 1px solid var(--gr-border);
    background: linear-gradient(135deg, rgba(124, 92, 231, .28), var(--gr-card-2));
}
.gr-app .gr-cop__media{ width: 100%; height: 100%; object-fit: cover; display: block; }
.gr-app .gr-cop__velo {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    align-items: center; justify-content: center; gap: .3rem; text-align: center;
    padding: .6rem; opacity: 0; transition: opacity .18s ease;
    background: rgba(10, 10, 20, .55); color: #fff; cursor: pointer;
}
.gr-app .gr-cop__velo svg{ width: 26px; height: 26px; }
.gr-app .gr-cop__velo span{ font-size: .82rem; font-weight: 600; }
.gr-app .gr-cop__velo em{ font-size: .74rem; font-style: normal; opacity: .85; }
.gr-app .gr-cop:hover .gr-cop__velo,
.gr-app .gr-cop.is-dragover .gr-cop__velo,
.gr-app .gr-cop.is-vuota .gr-cop__velo{ opacity: 1; }
.gr-app .gr-cop.is-dragover{ border-color: var(--gr-primary); }
.gr-app .gr-cop.is-dragover .gr-cop__velo{ background: rgba(124, 92, 231, .55); }
.gr-app .gr-cop.is-carico .gr-cop__velo{ opacity: 1; background: rgba(10, 10, 20, .7); }
.gr-app .gr-cop--piccola{ height: 120px; }
/* L'anteprima della scheda (riga grigia sopra il nome). */
.gr-app .gr-mini-cover{ display: block; height: 128px; background: linear-gradient(135deg, rgba(124,92,231,.28), var(--gr-card-2)); }
.gr-app .gr-mini-cover img, .gr-app .gr-mini-cover video{ width: 100%; height: 128px; object-fit: cover; display: block; }

/* ------------------------------------------------- pagine elenco e gruppo --- */
.gr-app .gr-head{ display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; margin-bottom: 1rem; }
.gr-app .gr-head h1{ font-size: 1.45rem; font-weight: 800; }
.gr-app .gr-head p{ margin-top: .2rem; font-size: .86rem; color: var(--gr-muted); }
.gr-app .gr-spacer{ flex: 1 1 auto; }
.gr-app .gr-barra{ display: flex; flex-wrap: wrap; gap: .5rem; align-items: center; margin-bottom: 1rem; }
.gr-app .gr-barra .gr-input{ flex: 1 1 220px; width: auto; }
.gr-app .gr-barra .mood-select{ width: auto; flex: 0 0 auto; }
.gr-app .gr-filtro{ display: inline-flex; align-items: center; gap: .4rem; font-size: .82rem; color: var(--gr-muted); }
.gr-app .gr-lista{ display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); }
.gr-app .gr-scheda {
    display: flex; flex-direction: column; overflow: hidden;
    border: 1px solid var(--gr-border); border-radius: var(--gr-raggio-g); background: var(--gr-card);
}
.gr-app .gr-scheda:hover{ border-color: var(--gr-primary); }
.gr-app .gr-scheda__corpo{ display: flex; flex-direction: column; gap: .35rem; padding: .8rem .9rem 1rem; min-width: 0; }
.gr-app .gr-scheda__riga{ display: flex; align-items: center; gap: .4rem; flex-wrap: wrap; }
.gr-app .gr-scheda__nome{ font-size: 1.02rem; font-weight: 800; line-height: 1.25; }
.gr-app .gr-scheda__descr{ font-size: .85rem; color: var(--gr-muted); overflow-wrap: anywhere; }
.gr-app .gr-numeri{ display: flex; gap: 1rem; font-size: .78rem; color: var(--gr-muted); }
.gr-app .gr-numeri b{ font-size: .95rem; color: var(--gr-text); }

/* Il gruppo aperto: testata con copertina. */
.gr-app .gr-testata{ position: relative; border-radius: var(--gr-raggio-g); overflow: hidden; border: 1px solid var(--gr-border); }
.gr-app .gr-testata__cover{ display: block; width: 100%; height: 200px; object-fit: cover; background: var(--gr-card-2); }
.gr-app .gr-testata__testo{ position: absolute; inset: auto 0 0 0; padding: 1.6rem 1rem .85rem; color: #fff;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,.75) 100%); }
.gr-app .gr-testata__testo h1{ font-size: 1.35rem; font-weight: 800; }
.gr-app .gr-testata__testo p{ margin-top: .25rem; font-size: .85rem; opacity: .95; }
.gr-app .gr-azioni{ display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .9rem; }
.gr-app .gr-bacheca{ display: grid; gap: .9rem; margin-top: 1rem; }
.gr-app .gr-post{ border: 1px solid var(--gr-border); border-radius: var(--gr-raggio); background: var(--gr-card); padding: .8rem .9rem; }
.gr-app .gr-post__capo{ display: flex; align-items: center; gap: .6rem; }
.gr-app .gr-post__nome{ font-size: .9rem; font-weight: 700; }
.gr-app .gr-post__quando{ margin-left: auto; font-size: .76rem; color: var(--gr-muted); }
.gr-app .gr-post__testo{ margin-top: .5rem; font-size: .9rem; line-height: 1.5; overflow-wrap: anywhere; }
.gr-app .gr-post__media{ display: grid; gap: .4rem; margin-top: .5rem; }
.gr-app .gr-post__media img, .gr-app .gr-post__media video{ border-radius: 10px; }
.gr-app .gr-post__piede{ display: flex; gap: 1rem; margin-top: .5rem; font-size: .76rem; color: var(--gr-muted); }
.gr-app .gr-comporre{ border: 1px solid var(--gr-border); border-radius: var(--gr-raggio); background: var(--gr-card); padding: .7rem; }
.gr-app .gr-comporre .gr-area{ border: 0; background: transparent; padding: .2rem; min-height: 70px; }
.gr-app .gr-comporre .gr-area:focus{ outline: 0; }

/* ---------------------------------------------------------------- passi --- */
.gr-app .gr-step{ display: block; animation: gr-entra .18s ease-out; }
.gr-app .gr-step--benvenuto{ max-width: 36rem; margin: 0 auto; }
@keyframes gr-entra { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.gr-app .gr-apertura__icona {
    display: inline-flex; align-items: center; justify-content: center;
    width: 64px; height: 64px; border-radius: 999px; margin-bottom: .8rem;
    background: rgba(124, 92, 231, .14); color: var(--gr-primary);
}
.gr-app .gr-apertura__icona svg{ width: 30px; height: 30px; }
.gr-app .gr-apertura__titolo{ font-size: 1.55rem; font-weight: 800; margin-bottom: .5rem; }
.gr-app .gr-apertura__frase{ max-width: 34rem; margin: 0 auto .9rem; font-size: .95rem; line-height: 1.55; color: var(--gr-muted); }
.gr-app .gr-card--apertura .gr-card__nota{ max-width: 34rem; margin-left: auto; margin-right: auto; }
.gr-app .gr-passi{ display: grid; gap: .55rem; max-width: 34rem; margin: 0 auto 1.3rem; text-align: left; }
.gr-app .gr-passi li{ display: flex; align-items: flex-start; gap: .7rem; padding: .6rem .75rem; border: 1px solid var(--gr-border); border-radius: 12px; background: var(--gr-card); }
.gr-app .gr-passi li svg{ width: 18px; height: 18px; flex: none; margin-top: .15rem; color: var(--gr-primary); }
.gr-app .gr-passi li span{ display: flex; flex-direction: column; min-width: 0; }
.gr-app .gr-passi li b{ font-size: .9rem; }
.gr-app .gr-passi li em{ font-size: .78rem; font-style: normal; color: var(--gr-muted); }
.gr-app .gr-riepilogo{display: grid;gap: .45rem;margin: .4rem 0 1rem;justify-items: start;justify-content: start;}
.gr-app .gr-riepilogo > div{display: flex;gap: .6rem;border-bottom: 1px dashed var(--gr-border);padding-bottom: .35rem;justify-content: space-between;}
.gr-app .gr-riepilogo dt{font-size: .82rem;color: var(--gr-muted);min-width: 93px;}
.gr-app .gr-riepilogo dd{font-size: .86rem;font-weight: 400;text-align: left;overflow-wrap: anywhere;white-space: pre-wrap;}
.gr-app .gr-barra-passi {
    display: flex; align-items: center; gap: .6rem; margin-top: 1rem; padding: .7rem 0 calc(.7rem + env(safe-area-inset-bottom, 0px));
    position: sticky; bottom: 0; z-index: 15; background: var(--gr-bg); border-top: 1px solid var(--gr-border);
}
.gr-app .gr-puntini{ display: flex; gap: .35rem; margin: 0 auto; }
.gr-app .gr-puntini i{ width: 8px; height: 8px; border-radius: 999px; background: var(--gr-border); }
.gr-app .gr-puntini i.is-on{ background: var(--gr-primary); }
.gr-app .gr-cta{ display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; margin-top: .5rem; }

/* Le scelte grandi (tipo di gruppo, ingresso). */
.gr-app .gr-scelte{ display: grid; gap: .5rem; margin: .5rem 0 .9rem; }
.gr-app .gr-scelta{ display: flex; align-items: flex-start; gap: .6rem; padding: .7rem .8rem;
    border: 1px solid var(--gr-border); border-radius: var(--gr-raggio); background: var(--gr-card); cursor: pointer; }
.gr-app .gr-scelta:hover{ border-color: var(--gr-primary); }
.gr-app .gr-scelta input{ margin-top: .2rem; accent-color: var(--gr-primary); flex: none; }
.gr-app .gr-scelta:has(input:checked){ border-color: var(--gr-primary); background: rgba(124, 92, 231, .10); }
.gr-app .gr-scelta__t{ display: flex; flex-direction: column; min-width: 0; }
.gr-app .gr-scelta__t b{ font-size: .92rem; }
.gr-app .gr-scelta__t em{ font-size: .78rem; font-style: normal; color: var(--gr-muted); }

/* ----------------------------------------------------------- righe (persone, amici, richieste) ---
   Una persona = una riga: avatar, nome, sotto-scritta, azioni a destra.
   Su schermo stretto le azioni vanno a capo invece di schiacciarsi. */
.gr-app .gr-righe{ display: grid; gap: .55rem; }
.gr-app .gr-riga {
    display: flex;
    align-items: center;
    gap: .65rem;
    flex-wrap: wrap;
    padding: .5rem .9rem .5rem .6rem;
    border: 1px solid var(--gr-border);
    border-radius: var(--gr-raggio);
    background: var(--gr-card);
}
.gr-app .gr-riga.is-scelta{ border-color: var(--gr-primary); background: rgba(124, 92, 231, .10); }
.gr-app .gr-riga__testo{ display: flex; flex-direction: column; min-width: 0; flex: 1 1 8rem; }
.gr-app .gr-riga__nome{ font-size: .9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-app .gr-riga__sotto{ font-size: .76rem; color: var(--gr-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gr-app .gr-riga__azioni{ display: flex; align-items: center; gap: .35rem; flex-wrap: wrap; margin-left: auto; }
.gr-app .gr-riga__scelta{ display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; }
.gr-app .gr-riga__scelta input{ accent-color: var(--gr-primary); }
.gr-app .gr-ricerca{ margin-bottom: .7rem; }
.gr-app .gr-vuoto{ padding: 1.1rem; border: 1px dashed var(--gr-border); border-radius: var(--gr-raggio);
    color: var(--gr-muted); font-size: .88rem; text-align: center; }
.gr-app .gr-sep{ height: 1px; background: var(--gr-border); margin: .9rem 0; border: 0; }

/* --------------------------------------------------------------- stretto --- */
@media (max-width: 520px) {
    .gr-app .gr-topbar{ flex-wrap: wrap; }
    .gr-app .gr-topbar-title h1{ font-size: 1.15rem; }
    .gr-app .gr-cop{ height: 140px; }
    .gr-app .gr-barra-passi .gr-btn{ flex: 1 1 auto; }
    .gr-app .gr-puntini{ order: 3; width: 100%; justify-content: center; margin: .4rem 0 0; }
}

/* ------------------------- pezzi usati dalla pagina del gruppo (elenco membri, post) --- */
.gr-app .gr-membri { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .75rem; }
.gr-app .gr-membro { display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .6rem .25rem .25rem;
    border-radius: 999px; border: 1px solid var(--gr-border); background: var(--gr-card); font-size: .8rem; }
.gr-app .gr-membro-img { width: 24px; height: 24px; border-radius: 999px; object-fit: cover; background: var(--gr-card-2); }
.gr-app .gr-post__chi { font-size: .9rem; font-weight: 700; }
.gr-app .gr-post__img { width: 34px; height: 34px; border-radius: 999px; object-fit: cover; background: var(--gr-card-2); flex: none; }
.gr-app .gr-comporre__piede { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; margin-top: .5rem; }

/* ===============
   LE ULTIME TRE COSE CHE MANCAVANO (controllo classi del 13/09)
   --------------------------------------------------------------------------
   1. `.gr-griglia`: e' il nome con cui il percorso chiama la griglia a due
      colonne (il JS la cerca cosi'). Era una classe senza regola: ora e' un
      secondo nome di .gr-2col, cosi' non e' piu' "per caso".
   2. `.gr-anteprima`: la scheda di fianco del percorso non aveva regola.
   3. `body.st-body`: era definita in un foglio del FEED, che su queste pagine
      non carichiamo piu' - quindi le pagine col guscio erano rimaste senza
      fondo. Il fondo lo da l'area, con le variabili del tema. Questa e' l'unica
      regola fuori da .gr-app, ed e' voluta: il corpo pagina non e' .gr-app
      quando c'e' il guscio (il guscio e il nav stanno fuori dal contenuto).
   =============== */
body.st-body {
    background: var(--mood-bg, #0D0D1A);
    color: var(--mood-text, #F0F0FF);
}
.gr-app .gr-griglia { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
@media (min-width: 960px) {
    .gr-app .gr-griglia { grid-template-columns: minmax(0, 1fr) minmax(0, 21rem); align-items: start; }
}
.gr-app .gr-anteprima { position: relative; }

/* ===============
   IL <select> - UNO STANDARD SOLO, quello dell app.
   Segnalazione del titolare (13/09/2026): il carret di destra era appiccicato e
   senza padding; "select dovrebbe essere standard ovunque". Lo standard esiste
   gia': .mood-select in mood-ui.css (appearance:none + chevron SVG 15x15 a 12px
   dal bordo + 34px a destra, variabile --mood-select-arrow). Le pagine dei
   gruppi non caricano mood-ui.css, quindi qui si ripete lo STESSO standard.
   =============== */
.gr-app .mood-select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: var(--mood-select-arrow, url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238a8d91' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"));
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 15px 15px;
    padding-right: 34px;
    cursor: pointer;
}
.gr-app .mood-select::-ms-expand { display: none; }
.gr-app .gr-barra .mood-select { background-position: right 9px center; padding-right: 27px; }