body { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.admin-layout { flex: 1; display: flex; min-height: 0; }
.admin-side { background: var(--bs-body-bg); }
@media (min-width: 992px) {
  .admin-side { width: 220px; flex: 0 0 220px; border-right: 1px solid var(--bs-border-color); }
}
.admin-side .list-group-item { border: 0; display: flex; justify-content: space-between; align-items: center; }
.admin-side .list-group-item.active { background: var(--bs-primary-bg-subtle); color: var(--bs-emphasis-color); }
.admin-main { flex: 1; min-width: 0; padding: 1rem; }
.stat-card .stat-value { font-size: 1.75rem; font-weight: 700; line-height: 1.1; }
.stat-card .stat-label { font-size: .8rem; color: var(--bs-secondary-color); }
.table-admin td, .table-admin th { vertical-align: middle; }
.table-admin .actions { white-space: nowrap; text-align: right; }
.cell-text { max-width: 28rem; white-space: pre-wrap; word-break: break-word; }
.mfa-card { max-width: 420px; margin: 2rem auto; }
.mfa-card img { width: 220px; height: 220px; background: #fff; border-radius: .5rem; }
.secret { font-family: var(--bs-font-monospace); word-break: break-all; }

/* Restyling: menu a sinistra come scheda arrotondata, contenuto sullo sfondo del tema. */
.admin-layout { gap: .75rem; padding: 0 .75rem .75rem; }
.admin-layout .admin-side { background-color: var(--wc-surface) !important; }
@media (min-width: 992px) {
  .admin-side { border-right: 0; border-radius: var(--wc-radius); box-shadow: var(--wc-shadow); padding: .5rem; align-self: flex-start; }
}
.admin-side .list-group-item { border-radius: 12px; margin: 1px 0; font-weight: 600; background: transparent; color: var(--wc-text); }
.admin-side .list-group-item:hover { background: var(--wc-surface-2); }
.admin-side .list-group-item.active { background: var(--wc-accent-soft); color: var(--wc-accent-text); }
.admin-main { padding: 0 .25rem 1rem; }
.admin-main .card { border: 0; border-radius: var(--wc-radius); box-shadow: var(--wc-shadow); }
.stat-card .stat-value { font-weight: 800; color: var(--wc-accent-text); }
.stat-card .stat-label { color: var(--wc-muted); }
.mfa-card img { border-radius: 14px; }
.admin-avatar { width: 1.8rem; height: 1.8rem; border-radius: 50%; object-fit: cover; margin-right: .45rem; vertical-align: middle; }

/* Storie: anteprima piccola nel pannello (sezione Storie e segnalazioni). */
.story-thumb { display: grid; place-items: center; width: 54px; height: 96px; border-radius: 8px; overflow: hidden; background: #1b1f2a; color: #fff; font-size: .62rem; font-weight: 700; text-align: center; padding: 4px; box-sizing: border-box; word-break: break-word; text-decoration: none; }
.story-thumb img { width: 100%; height: 100%; object-fit: cover; }
.story-thumb.muted { background: var(--bs-secondary-bg); color: var(--bs-secondary-color); }
