/* Pagine fuori dalla chat (accesso, profilo, testi legali) e parti comuni. Colori da theme.css. */
body { background: var(--wc-bg); }

/* Marchio: quadrato col colore d'accento del tema e fumetto bianco, accanto al nome dell'app. */
.auth-card .brand, .navbar-brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; letter-spacing: -0.02em; }
.auth-card .brand::before, .navbar-brand::before { content: ""; width: 2.1rem; height: 2.1rem; border-radius: 12px; flex: 0 0 auto; background: url(/img/icone/bond.png) center / cover no-repeat, var(--wc-accent); } /* R-0038: Bond anche qui (decisione «Icona Bond ovunque», R-0036) */
.auth-card .brand::before { width: 2.5rem; height: 2.5rem; border-radius: 14px; }

/* Barre in alto delle pagine semplici: niente fascia bianca, il marchio sta sullo sfondo. */
.navbar.bg-body { background-color: transparent !important; }
.navbar.border-bottom { border-bottom: 0 !important; }

/* Accesso e registrazione: scheda arrotondata su uno sfondo con sfumature leggere dell'accento. */
.auth-wrap { min-height: 100vh; min-height: 100dvh; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: radial-gradient(40rem 30rem at 12% 8%, rgba(var(--wc-accent-rgb), .16), transparent 60%),
              radial-gradient(36rem 28rem at 92% 92%, rgba(var(--wc-accent-rgb), .12), transparent 60%); }
.auth-card { width: 100%; max-width: 420px; }
.auth-card.card, .page-narrow .card { border: 0; border-radius: var(--wc-radius); }
.auth-card.shadow-sm, .page-narrow .card.shadow-sm { box-shadow: var(--wc-shadow) !important; }
.auth-card .form-control { border-radius: 14px; padding: .6rem .9rem; }
.auth-card .btn { border-radius: 14px; padding: .6rem 1rem; font-weight: 700; }
.divider { display: flex; align-items: center; gap: .75rem; color: var(--wc-muted); font-size: .875rem; margin: 1.25rem 0; }
.divider::before, .divider::after { content: ""; flex: 1; border-top: 1px solid var(--wc-border); }
.page-narrow { max-width: 640px; }
.page-narrow .card.border-danger { border: 1px solid var(--wc-danger) !important; }

/* Foto profilo nella pagina Profilo. */
.profile-avatar { width: 5.5rem; height: 5.5rem; border-radius: 50%; background: var(--wc-accent-soft); color: var(--wc-accent-text); display: inline-flex; align-items: center; justify-content: center; font-size: 2.2rem; font-weight: 800; overflow: hidden; flex: 0 0 auto; }
.profile-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Progetto BTG e distintivi: spunta blu dello staff e simbolo viola dei BTG accanto ai nomi (js/common.js, Badges). */
.name-badges { display: inline-flex; align-items: center; gap: 2px; margin-left: 3px; vertical-align: -0.15em; flex: none; }
.name-badge { display: inline-flex; width: 1.05em; height: 1.05em; cursor: pointer; flex: none; }
.name-badge svg { width: 100%; height: 100%; display: block; }
/* Finestra "Segnala un problema (BTG)" nell'app: dati tecnici su più righe. */
.mb-rp-info { white-space: pre-wrap; word-break: break-word; max-height: 12em; overflow: auto; }
/* Pannello, segnalazioni dei BTG e avvisi di #MyBond. */
.pre-line { white-space: pre-line; }
.rp-shot { max-height: 180px; }

/* R-0001 (PROGETTO 11.29): schede su una riga, le voci in più nel «+» (FitTabs in common.js) */
.fit-row { flex-wrap: nowrap !important; overflow: hidden !important; }
.fit-row > .fit-hidden { display: none !important; }
.fit-more { flex: none; display: inline-flex; align-items: center; list-style: none; }
.fit-more[hidden] { display: none !important; }
.fit-btn { border: 0; border-radius: 999px; padding: .3rem .75rem; font-size: 1.05rem; font-weight: 800; line-height: 1; background: var(--wc-accent-soft, rgba(75,85,214,.12)); color: var(--wc-accent, #4B55D6); }
.fit-menu { position: fixed; z-index: 2000; min-width: 170px; padding: .35rem; display: flex; flex-direction: column; border-radius: 14px; background: var(--wc-surface, #fff); color: var(--wc-text, #1B1F2A); border: 1px solid var(--wc-border, rgba(0,0,0,.08)); box-shadow: 0 12px 30px rgba(13,16,60,.22); }
.fit-menu[hidden] { display: none; }
.fit-item { border: 0; background: none; text-align: left; padding: .55rem .8rem; border-radius: 10px; font-weight: 600; color: inherit; }
.fit-item:hover, .fit-item:focus { background: var(--wc-accent-soft, rgba(75,85,214,.12)); }

/* R-0004: «X ti invita su #MyBond» nelle pagine di accesso e di registrazione. */
.invite-banner { text-align: center; padding: 1rem; margin-bottom: 1rem; border-radius: 16px; background: rgba(75, 85, 214, .08); }
.invite-banner .ib-av { display: inline-grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: #4B55D6; color: #fff; font-weight: 800; font-size: 1.2rem; margin-bottom: .5rem; }
.invite-banner .ib-title { font-size: 1.1rem; margin-bottom: .35rem; }
.invite-banner .ib-text { font-size: .9rem; color: var(--bs-secondary-color); margin-bottom: .75rem; }
.invite-banner .ib-or { font-size: .85rem; color: var(--bs-secondary-color); margin: .6rem 0 0; }

/* R-0017 (PROGETTO 11.37, I11 a): «Usa l’app #MyBond» nel riquadro dell’invito. */
.invite-banner .ib-app { margin-bottom: .35rem; }

/* R-0033 (blocco B): Account a righe, come la tavola «Tu» riordinato (vista 6) */
.acc-block { margin-bottom: 14px; overflow: hidden; border-radius: 16px; background: var(--wc-surface, #fff); box-shadow: var(--wc-shadow, 0 1px 2px rgba(0,0,0,.06)); }
.acc-row { display: flex; align-items: center; gap: 12px; padding: 13px 16px; color: inherit; text-decoration: none; }
.acc-row + .acc-row { border-top: 1px solid var(--wc-border, #E3E7F0); }
.acc-row:hover { background: var(--wc-surface-2, #F3F5FA); color: inherit; }
.acc-ico { flex: none; width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; color: var(--wc-muted, #5B6478); }
.acc-label { flex: 1; min-width: 0; font-weight: 500; }
.acc-value { flex: none; font-size: 13px; color: var(--wc-muted, #5B6478); }
.acc-chev { flex: none; font-size: 1.2rem; color: var(--wc-muted, #5B6478); }
.acc-danger, .acc-danger .acc-ico { color: #D93A3F; }
.acc-back { display: inline-block; margin-bottom: 12px; font-weight: 700; text-decoration: none; }

/* R-0034: l'avviso «Scrivi a MyBond» nella parte Email di Account */
.acc-note { display: flex; align-items: center; gap: 10px; padding: 12px; border-radius: 14px; background: var(--wc-surface-2, #F3F5FA); }
#pEmail[readonly] { background: var(--wc-surface-2, #F3F5FA); color: var(--wc-muted, #5B6478); }
