/* Interviste di area: look del mockup v3 sopra Tabler */
:root {
  --ink: #14212b;
  --ink2: #3d4c57;
  --muted: #6b7a87;
  --faint: #9aa7b1;
  --line: #e2e7ec;
  --soft: #f4f7f9;
  --brand: #0e6b7a;
  --brand-dk: #0a5663;
  --brand-soft: #e4f2f4;
  --brand-line: #cfe0e3;
  --rec: #d6423c;
  --rec-soft: #fdecec;
  --ok: #1f8a58;
  --ok-soft: #e6f4ec;
  --warn: #b8791a;
  --warn-soft: #fdf3e1;
  --live-bg: #0f1b21;

  --tblr-primary: var(--brand);
  --tblr-primary-rgb: 14, 107, 122;
  --tblr-body-color: var(--ink);
  --tblr-body-bg: var(--soft);
  --tblr-border-color: var(--line);
  --tblr-font-sans-serif: -apple-system, BlinkMacSystemFont, "Segoe UI", Inter, Roboto, Helvetica, Arial, sans-serif;
  --tblr-body-font-size: 0.9375rem;
}

* { -webkit-tap-highlight-color: transparent; }
html, body { min-height: 100%; }
body {
  background: var(--soft);
  color: var(--ink);
  font-family: var(--tblr-font-sans-serif);
  line-height: 1.45;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}
a { color: var(--brand); }
:focus-visible { outline: 3px solid rgba(14, 107, 122, .45); outline-offset: 2px; }
.muted { color: var(--muted); }
.grow { flex: 1; min-width: 0; }
[hidden] { display: none !important; }

/* testata */
.hdr {
  flex: 0 0 66px; min-height: 66px; background: #fff; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px; padding: 0 24px;
  position: sticky; top: 0; z-index: 30;
}
.logo-link { display: flex; text-decoration: none; }
.logo {
  width: 44px; height: 44px; border-radius: 11px; border: 1.5px dashed #b9c6cf; background: #f7f9fa;
  display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700;
  color: var(--faint); letter-spacing: .04em;
}
.logo-img { height: 44px; width: auto; }
.h-title { font-size: 17px; font-weight: 680; letter-spacing: -.2px; line-height: 1.2; }
.h-sub { font-size: 12px; color: var(--muted); }
.net {
  display: flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600;
  color: var(--ok); background: var(--ok-soft); padding: 6px 12px; border-radius: 99px; white-space: nowrap;
}
.net .d { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.net.pending { color: var(--warn); background: var(--warn-soft); }
.net.pending .d { background: var(--warn); }
.net.offline { color: var(--warn); background: var(--warn-soft); }
.net.offline .d { background: var(--warn); animation: blink 1.2s infinite; }
.net.error { color: var(--rec); background: var(--rec-soft); }
.net.error .d { background: var(--rec); }
.me { font-size: 12.5px; color: var(--ink2); font-weight: 600; text-align: right; line-height: 1.25; }
.me span { display: block; font-weight: 500; color: var(--muted); font-size: 11.5px; }
.out {
  display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--brand); font-weight: 650;
  padding: 8px 6px; min-height: 44px; background: none; border: 0; text-decoration: none; cursor: pointer;
}
.adminbadge {
  font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase;
  background: var(--ink); color: #fff; padding: 4px 9px; border-radius: 6px;
}
.disc {
  background: #f0f3f5; border-bottom: 1px solid var(--line); padding: 7px 24px;
  font-size: 11.5px; color: var(--muted); line-height: 1.45;
}
.disc b { color: var(--ink2); font-weight: 650; }
.offbar {
  background: var(--warn-soft); border-bottom: 1px solid #f2e2c4; padding: 8px 24px;
  font-size: 12.5px; color: #7d5713; font-weight: 600;
}
.errbar {
  background: var(--rec-soft); border-bottom: 1px solid #f0cdcb; padding: 8px 24px;
  font-size: 12.5px; color: #8f2723; font-weight: 600; display: flex; gap: 12px; align-items: center;
}
.asbar {
  background: #fff4dc; border-bottom: 1px solid #f0dfb5; padding: 9px 24px;
  display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: #6d4f12;
  position: sticky; top: 66px; z-index: 25;
}
.asbar b { font-weight: 700; }
.asbar-btn {
  margin-left: auto; background: #fff; border: 1px solid #e6cf97; border-radius: 9px; padding: 8px 12px;
  font-size: 12.5px; font-weight: 650; color: #6d4f12; min-height: 40px; white-space: nowrap; cursor: pointer;
}

/* contenuto */
.content { flex: 1; padding: 22px 24px 40px; min-width: 0; }
.page-wrap { max-width: 1100px; margin: 0 auto; }
.crumbs { font-size: 12.5px; color: var(--muted); margin-bottom: 14px; display: flex; gap: 7px; align-items: center; flex-wrap: wrap; }
.crumbs a { color: var(--brand); font-weight: 620; text-decoration: none; }
.crumbs i { font-style: normal; color: #b6c1c9; }
.ptitle { display: flex; align-items: flex-end; gap: 14px; margin-bottom: 16px; flex-wrap: wrap; }
.ptitle h2 { margin: 0; font-size: 23px; font-weight: 680; letter-spacing: -.3px; }
.ptitle p { margin: 3px 0 0; color: var(--muted); font-size: 13px; }

/* elementi */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--brand);
  color: #fff; border: 1px solid var(--brand); border-radius: 12px; padding: 11px 18px; font-size: 14px;
  font-weight: 650; white-space: nowrap; min-height: 44px; cursor: pointer; text-decoration: none; line-height: 1.2;
}
.btn:hover { background: var(--brand-dk); border-color: var(--brand-dk); color: #fff; }
.btn.ghost { background: #fff; color: var(--brand); border: 1px solid var(--brand-line); }
.btn.ghost:hover { background: var(--brand-soft); color: var(--brand); }
.btn.block { display: flex; width: 100%; }
.btn.sm { padding: 8px 12px; font-size: 12.5px; border-radius: 10px; min-height: 40px; }
.btn.danger { background: #fff; color: var(--rec); border: 1px solid #f0cdcb; }
.btn.danger:hover { background: var(--rec-soft); color: var(--rec); }
.btn.danger-solid { background: var(--rec); border-color: var(--rec); }
.btn[disabled], .btn.disabled { opacity: .45; pointer-events: none; }
.field { margin-bottom: 14px; }
.field label, .lbl { display: block; font-size: 12.5px; font-weight: 650; color: var(--muted); margin-bottom: 6px; }
.inp {
  width: 100%; border: 1px solid var(--line); background: #fff; border-radius: 11px; padding: 11px 14px;
  font-size: 16px; outline: none; color: var(--ink); font-family: inherit; min-height: 44px;
}
.inp:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14, 107, 122, .15); }
textarea.inp { resize: vertical; line-height: 1.5; }
select.inp { appearance: auto; }
.inp.code { letter-spacing: .2em; font-weight: 700; text-align: center; font-size: 18px; }
.two { display: flex; gap: 14px; flex-wrap: wrap; }
.two > * { flex: 1 1 240px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.pill {
  display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 99px;
  background: #eff3f5; color: var(--muted); white-space: nowrap;
}
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }
.pill.dark { background: var(--ink); color: #fff; }
.pill.rec { background: var(--rec-soft); color: var(--rec); }
.form-error {
  background: var(--rec-soft); color: #8f2723; border-radius: 10px; padding: 10px 13px; font-size: 13.5px;
  font-weight: 600; margin-bottom: 14px;
}
.form-ok {
  background: var(--ok-soft); color: #145c3b; border-radius: 10px; padding: 10px 13px; font-size: 13.5px;
  font-weight: 600; margin-bottom: 14px;
}
.hint { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: .3; } }
@keyframes spin { to { transform: rotate(360deg); } }
.spin {
  width: 14px; height: 14px; border-radius: 50%; border: 2px solid #f0d9a8; border-top-color: var(--warn);
  animation: spin .8s linear infinite; display: inline-block; flex: 0 0 14px;
}
.fade-in { animation: fade-in .4s ease; }
@keyframes fade-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

/* accesso e informativa */
.center { display: flex; align-items: center; justify-content: center; padding: 24px 0; min-height: 60vh; }
.auth { width: 440px; max-width: 100%; padding: 30px 32px; }
.auth h2, .card-h { margin: 0 0 4px; font-size: 21px; font-weight: 680; }
.lead { margin: 0 0 20px; color: var(--muted); font-size: 13.5px; }
.small { font-size: 12.5px; color: var(--muted); margin-top: 14px; text-align: center; }
.privacy { width: 680px; max-width: 100%; padding: 28px 32px; }
.ptext {
  height: 300px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px;
  font-size: 13.5px; color: var(--ink2); line-height: 1.6; background: #fbfcfd;
}
.chk { display: flex; gap: 11px; align-items: flex-start; margin: 18px 0 20px; font-size: 14px; color: var(--ink2); cursor: pointer; }
.chk input { width: 22px; height: 22px; accent-color: var(--brand); margin: 0; flex: 0 0 22px; }

/* elenchi */
.list { max-width: 860px; }
.list .lrow {
  display: flex; align-items: center; gap: 14px; padding: 15px 18px; border-top: 1px solid var(--line);
  color: inherit; text-decoration: none; margin: 0; min-height: 64px;
}
.list .lrow:first-of-type { border-top: 0; }
.list .newrow + .lrow { border-top: 0; }
.list a.lrow:hover { background: #fafcfd; }
.list .empty { padding: 22px 18px; color: var(--muted); font-size: 14px; }
.dateb {
  width: 52px; flex: 0 0 52px; text-align: center; border-radius: 11px; background: var(--brand-soft);
  color: var(--brand); padding: 6px 0 5px; line-height: 1.05;
}
.dateb b { display: block; font-size: 19px; }
.dateb span { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.rname { font-size: 15px; font-weight: 640; }
.rmeta { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.rmeta .by-admin { color: var(--brand); font-weight: 600; }
.chev { color: #b6c1c9; display: flex; }
.avatar {
  width: 42px; height: 42px; border-radius: 50%; background: #eef2f4; color: var(--brand);
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13.5px; flex: 0 0 42px;
}
.newrow {
  display: flex; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: #fbfcfd;
  border-radius: 16px 16px 0 0; flex-wrap: wrap;
}
.newrow .inp { flex: 1 1 200px; }
.newrow .inp.date { flex: 0 0 170px; }

/* intervista */
.iv { display: flex; gap: 20px; align-items: flex-start; }
.prof { flex: 0 0 290px; padding: 18px 18px 16px; position: sticky; top: 86px; }
body.acting .prof { top: 136px; }
.prof h3 { margin: 0; font-size: 18px; font-weight: 680; }
.prof .k { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .07em; color: var(--faint); margin-top: 13px; }
.prof .v { font-size: 13.5px; color: var(--ink2); margin-top: 2px; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }
.prof .edit { margin-top: 14px; font-size: 13px; font-weight: 650; color: var(--brand); display: inline-flex; min-height: 44px; align-items: center; text-decoration: none; }
.qs { flex: 1; min-width: 0; }
.qc { padding: 18px 20px; margin-bottom: 14px; }
.qh { display: flex; gap: 13px; align-items: flex-start; }
.qn {
  width: 30px; height: 30px; border-radius: 10px; background: #eff3f5; color: var(--muted); font-size: 13px;
  font-weight: 700; display: flex; align-items: center; justify-content: center; flex: 0 0 30px;
}
.qt { font-size: 16.5px; font-weight: 600; line-height: 1.4; flex: 1; overflow-wrap: anywhere; white-space: pre-line; }
.qt-edit { flex: 1; }
.qt-edit .inp { font-size: 16px; }
.qt-edit .acts { justify-content: flex-start; margin-top: 8px; }
.qmenu-wrap { position: relative; }
.qmenu {
  color: var(--faint); width: 44px; height: 44px; margin: -8px -10px -8px 0; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; background: none; border: 0; cursor: pointer;
}
.qmenu:hover { background: #f1f4f6; color: var(--ink2); }
.menu {
  position: absolute; right: 0; top: 40px; background: #fff; border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 10px 30px rgba(16, 26, 33, .14); min-width: 210px; padding: 6px; z-index: 20;
}
.menu button {
  display: flex; width: 100%; text-align: left; padding: 10px 12px; border-radius: 8px; font-size: 14px;
  background: none; border: 0; min-height: 44px; align-items: center; cursor: pointer; color: var(--ink2);
}
.menu button:hover { background: var(--soft); }
.menu button.del { color: var(--rec); }
.sub { display: flex; align-items: center; gap: 10px; margin: 16px 0 7px; }
.sub .lab { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.save { margin-left: auto; font-size: 12px; color: var(--ok); font-weight: 600; display: flex; align-items: center; gap: 6px; }
.save.busy { color: var(--muted); }
.save.wait { color: var(--warn); }
.save.err { color: var(--rec); }
.ans { min-height: 84px; }
.audio { border: 1px solid var(--line); border-radius: 13px; padding: 12px 14px; background: #fbfcfd; }
.arow { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.recbtn {
  display: inline-flex; align-items: center; gap: 10px; background: var(--rec); color: #fff; border-radius: 99px;
  padding: 11px 19px 11px 15px; font-size: 14px; font-weight: 650; box-shadow: 0 5px 14px rgba(214, 66, 60, .24);
  border: 0; min-height: 44px; cursor: pointer;
}
.recbtn .o { width: 12px; height: 12px; border-radius: 50%; background: #fff; }
.recbtn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.play {
  width: 44px; height: 44px; border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  display: flex; align-items: center; justify-content: center; flex: 0 0 44px; border: 0; cursor: pointer;
}
.strip { flex: 1; display: flex; align-items: center; gap: 3px; height: 26px; overflow: hidden; min-width: 80px; position: relative; }
.strip i { display: block; width: 3px; flex: 0 0 3px; border-radius: 2px; background: #bfd4d8; }
.strip i.played { background: var(--brand); }
.dur { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; min-width: 72px; text-align: right; }
.redo { font-size: 13px; font-weight: 650; color: var(--brand); background: none; border: 0; min-height: 44px; padding: 0 6px; cursor: pointer; }
.tr { margin-top: 11px; padding-top: 11px; border-top: 1px solid #eef2f4; font-size: 14px; color: var(--ink2); line-height: 1.55; }
.tr .tl { display: flex; align-items: center; gap: 8px; margin-bottom: 5px; }
.tr .tl span:first-child { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); }
.tr .txt { white-space: pre-line; overflow-wrap: anywhere; }
.tr.pending { color: var(--warn); display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.tr.sending { color: var(--muted); display: flex; align-items: center; gap: 9px; font-weight: 600; font-size: 13px; }
.tr.failed { color: var(--rec); display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 13px; flex-wrap: wrap; }
.audio-note { font-size: 13px; color: var(--muted); margin-top: 8px; }
.audio-note.warn { color: var(--warn); font-weight: 600; }
.archived { margin-top: 12px; border-top: 1px dashed var(--line); padding-top: 10px; }
.archived summary { font-size: 12.5px; font-weight: 650; color: var(--muted); cursor: pointer; min-height: 32px; }
.archived .audio { margin-top: 8px; background: #fff; }

/* registrazione attiva */
.live { background: var(--live-bg); border-color: var(--live-bg); color: #fff; border-radius: 13px; padding: 16px 18px; }
.live .top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.live .rd { width: 10px; height: 10px; border-radius: 50%; background: var(--rec); animation: blink 1.3s infinite; }
.live .kick { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: #87a2ad; }
.live .srv { margin-left: auto; font-size: 12px; color: #8fe0b4; font-weight: 600; }
.live .srv.off { color: #ffce6b; }
.wave { display: flex; align-items: center; justify-content: center; gap: 4px; height: 64px; margin: 10px 0 6px; }
.wave i { display: block; width: 4px; border-radius: 3px; background: #3fa9bd; height: 6px; transition: height .08s linear; }
.ctrl { display: flex; align-items: center; justify-content: center; gap: 22px; }
.timer { font-size: 26px; font-weight: 300; letter-spacing: .06em; font-variant-numeric: tabular-nums; width: 96px; text-align: right; }
.stop {
  width: 64px; height: 64px; border-radius: 50%; background: var(--rec); display: flex; align-items: center;
  justify-content: center; box-shadow: 0 0 0 6px rgba(214, 66, 60, .18); border: 0; cursor: pointer;
}
.stop i { display: block; width: 20px; height: 20px; border-radius: 5px; background: #fff; }
.ctrl .spacer { width: 96px; }

.addbar { padding: 16px 18px; display: flex; flex-direction: row; gap: 12px; align-items: center; border-style: dashed; background: #fbfcfd; flex-wrap: wrap; }
.addbar .inp { flex: 1 1 240px; }

/* finestre */
.dlg { border: 0; border-radius: 20px; padding: 0; box-shadow: 0 18px 50px rgba(16, 26, 33, .28); width: 520px; max-width: calc(100vw - 32px); }
.dlg::backdrop { background: rgba(16, 26, 33, .40); }
.dlg-body { padding: 22px 24px 20px; }
.dlg h3 { margin: 0 0 4px; font-size: 19px; font-weight: 680; }
.dlg p { margin: 0 0 14px; color: var(--ink2); font-size: 14px; }
.dlg-foot { display: flex; gap: 12px; margin-top: 16px; }
.dlg-foot .btn { flex: 1; }
.dlg.wide { width: 620px; }
.opts { overflow: auto; border: 1px solid var(--line); border-radius: 13px; max-height: 50vh; }
.opt { display: flex; gap: 12px; align-items: flex-start; padding: 13px 15px; border-top: 1px solid var(--line); cursor: pointer; font-size: 14.5px; line-height: 1.4; margin: 0; }
.opt:first-child { border-top: 0; }
.opt input { width: 20px; height: 20px; accent-color: var(--brand); margin: 1px 0 0; flex: 0 0 20px; }
.opt.used { color: var(--faint); cursor: default; }
.opt.used small { display: block; font-size: 12px; }

.toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 60; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.toast-msg { background: var(--ink); color: #fff; border-radius: 12px; padding: 11px 16px; font-size: 13.5px; box-shadow: 0 8px 24px rgba(16, 26, 33, .25); }
.toast-msg.err { background: #8f2723; }

/* area admin */
.adm { display: flex; flex: 1; min-height: 0; }
.side-nav { flex: 0 0 216px; background: #fff; border-right: 1px solid var(--line); padding: 16px 12px; }
.side-nav a {
  display: flex; width: 100%; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px;
  font-size: 13.5px; font-weight: 600; color: var(--ink2); text-decoration: none; min-height: 44px;
}
.side-nav a:hover { background: var(--soft); }
.side-nav a.on { background: var(--brand-soft); color: var(--brand); }
.side-nav .grp { font-size: 10.5px; font-weight: 750; letter-spacing: .08em; text-transform: uppercase; color: var(--faint); padding: 14px 12px 6px; }
.adm .content { max-width: 1100px; }
.toolbar { display: flex; gap: 10px; align-items: center; margin-bottom: 16px; flex-wrap: wrap; }
.toolbar .inp { width: auto; }
.tbl-wrap { overflow-x: auto; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.tbl th {
  text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .07em; color: var(--faint);
  font-weight: 750; padding: 11px 14px; border-bottom: 1px solid var(--line); background: #fbfcfd; white-space: nowrap;
}
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl td.num { font-variant-numeric: tabular-nums; color: var(--ink2); }
.tbl td.wrap-text { white-space: pre-line; overflow-wrap: anywhere; }
.tbl .sublist td { background: #fafcfd; font-size: 13px; }
.tbl .sublist td:first-child { padding-left: 44px; }
.tbl .inactive td { color: var(--faint); }
.acts { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 9px; border: 1px solid var(--line); background: #fff;
  display: inline-flex; align-items: center; justify-content: center; color: var(--ink2); cursor: pointer; text-decoration: none;
}
.icon-btn:hover { background: var(--soft); }
.icon-btn.del { color: var(--rec); }
.icon-btn[disabled] { opacity: .35; pointer-events: none; }
.expand { background: none; border: 0; padding: 0; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; text-align: left; min-height: 40px; color: inherit; }
.expand .icon { transition: transform .15s; color: var(--faint); }
.expand[aria-expanded="true"] .icon { transform: rotate(90deg); }
.sw { width: 44px; height: 26px; border-radius: 99px; background: #dfe5ea; position: relative; display: inline-block; border: 0; cursor: pointer; }
.sw.on { background: var(--brand); }
.sw i { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); transition: left .15s; }
.sw.on i { left: 21px; }
.section { padding: 20px 22px; margin-bottom: 16px; }
.section h3 { margin: 0 0 12px; font-size: 16px; font-weight: 680; }
.stats { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { padding: 14px 18px; min-width: 150px; }
.stat b { display: block; font-size: 22px; font-weight: 700; }
.stat span { font-size: 12.5px; color: var(--muted); }

@media (max-width: 900px) {
  .qh { flex-wrap: wrap; }
  .qt { flex-basis: calc(100% - 100px); }
  .iv { flex-direction: column; align-items: stretch; }
  .prof { position: static; flex: none; }
  .adm { flex-direction: column; }
  .side-nav { flex: none; border-right: 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px; }
  .side-nav a { width: auto; }
  .side-nav .grp { display: none; }
  .hdr { flex: 0 0 auto; padding: 8px 16px; gap: 10px; }
  .h-sub, .me { display: none; }
  .h-title { font-size: 15px; }
  .asbar { flex-wrap: wrap; top: 0; position: static; }
  .asbar-btn { margin-left: 0; }
  .disc, .offbar, .errbar { padding-left: 16px; padding-right: 16px; }
  .content { padding: 18px 16px 30px; }
}

.blocking-veil {
  position: fixed; inset: 0; background: rgba(16, 26, 33, .6); z-index: 100;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}

/* pannello domande e risposte nell'area admin */
.tbl .qa-row td { background: #f7fafb; padding: 0; }
.qa-panel { padding: 16px 20px 18px 44px; border-left: 3px solid var(--brand-line); }
.qa-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; flex-wrap: wrap; }
.qa-head b { font-size: 15px; margin-right: 8px; }
.qa-notes { font-size: 12.5px; color: var(--muted); margin-top: 4px; white-space: pre-line; }
.qa-item { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; margin-bottom: 10px; }
.qa-q { display: flex; gap: 10px; align-items: flex-start; font-weight: 620; font-size: 14px; }
.qa-q .qn { width: 26px; height: 26px; flex-basis: 26px; font-size: 12px; border-radius: 8px; }
.qa-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 10px; }
.qa-lab { font-size: 10.5px; font-weight: 750; text-transform: uppercase; letter-spacing: .08em; color: var(--faint); margin-bottom: 5px; display: flex; gap: 8px; align-items: center; }
.qa-lab .pill { text-transform: none; letter-spacing: 0; }
.qa-text { font-size: 13.5px; color: var(--ink2); white-space: pre-line; overflow-wrap: anywhere; line-height: 1.5; }
.qa-audio { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.qa-audio audio { height: 36px; max-width: 100%; flex: 1; }
@media (max-width: 900px) { .qa-grid { grid-template-columns: 1fr; } .qa-panel { padding-left: 16px; } }
