/* ==========================================================================
   Verbale - Design System
   Dashboard SaaS B2B: tema chiaro, brand navy + oro, tipografia Inter.
   Sezioni: 1) token  2) base  3) layout+sidebar  4) header pagina
            5) card/kpi  6) bottoni  7) badge/chip  8) tabelle
            9) form/filtri  10) stati vuoti/pager  11) grafici
            12) dettaglio chiamata  13) login  14) responsive
   ========================================================================== */

/* 1) -------------------------------------------------- token */
:root {
  /* brand */
  --navy: #0F1F3A;
  --navy-700: #1B2F4E;
  --gold: #C9A45C;
  --gold-soft: #F0E4CC;

  /* superfici */
  --bg: #F6F7F9;
  --surface: #FFFFFF;
  --surface-2: #FBFBFC;
  --line: #E5E7EB;

  /* testo */
  --txt: #1A1A2E;
  --muted: #6B7280;
  --on-navy: #E8ECF3;
  --on-navy-muted: #9FB0C9;

  /* semantici */
  --success: #2E7D32; --success-bg: #E7F2E8;
  --warning: #B45309; --warning-bg: #FBEFE0;
  --error:   #B23A3A; --error-bg:   #F7E7E7;
  --info:    #2563EB; --info-bg:    #E7EEFD;
  --neutral-bg: #EEF0F3;

  /* forma */
  --r-card: 12px; --r-btn: 10px; --r-in: 8px;
  --sh-sm: 0 1px 3px rgba(16,31,58,.06), 0 1px 2px rgba(16,31,58,.04);
  --sh-md: 0 4px 12px rgba(16,31,58,.08), 0 2px 4px rgba(16,31,58,.04);
  --ring: 0 0 0 3px rgba(201,164,92,.35);

  --sidebar-w: 240px;
  --t: 160ms ease;
}

/* 2) -------------------------------------------------- base */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg); color: var(--txt);
  font: 15px/1.55 "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--info); text-decoration: none; }
a:hover { text-decoration: underline; }
.muted { color: var(--muted); }
.error { color: var(--error); font-weight: 600; }
h1 { font-size: 30px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 4px; }
h2 { font-size: 22px; font-weight: 600; margin: 0 0 12px; }
h3 { font-size: 17px; font-weight: 600; margin: 0 0 12px; }
.num, .tnum { font-variant-numeric: tabular-nums; }

/* 3) -------------------------------------------------- layout + sidebar */
.app { display: flex; min-height: 100vh; }
.sidebar {
  width: var(--sidebar-w); position: fixed; inset: 0 auto 0 0; height: 100vh;
  background: var(--navy); color: var(--on-navy);
  display: flex; flex-direction: column; padding: 22px 16px; gap: 8px; z-index: 20;
}
.sidebar .brand {
  display: flex; align-items: center; gap: 9px;
  font-size: 20px; font-weight: 700; color: #fff; padding: 4px 8px 16px;
}
.sidebar .brand .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); }
.sidebar nav { display: flex; flex-direction: column; gap: 2px; flex: 1; }
.navlink {
  display: flex; align-items: center; gap: 11px;
  padding: 10px 12px; border-radius: var(--r-in);
  color: var(--on-navy-muted); font-weight: 500; position: relative;
  transition: background var(--t), color var(--t);
}
.navlink svg { width: 18px; height: 18px; flex: none; }
.navlink:hover { background: var(--navy-700); color: #fff; text-decoration: none; }
.navlink.active { background: var(--navy-700); color: #fff; }
.navlink.active::before {
  content: ""; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; border-radius: 0 3px 3px 0; background: var(--gold);
}
.sidebar-foot { display: flex; flex-direction: column; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.08); }
.sidebar-foot .logout { color: var(--on-navy-muted); font-size: 14px; padding: 4px 12px; }
.sidebar-foot .logout:hover { color: #fff; }

.content { margin-left: var(--sidebar-w); flex: 1; min-width: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 32px 32px 64px; }

/* 4) -------------------------------------------------- header pagina */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .sub { color: var(--muted); }
.page-head .actions { display: flex; gap: 10px; }
.back { display: inline-block; color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.back:hover { color: var(--txt); }

/* 5) -------------------------------------------------- card + kpi */
.panel, .card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm);
}
.panel { padding: 24px; margin-bottom: 20px; }
.split { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-bottom: 24px; }
.kpi {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-card);
  box-shadow: var(--sh-sm); padding: 20px 22px; display: flex; flex-direction: column; gap: 4px;
  transition: box-shadow var(--t), transform var(--t); color: var(--txt);
}
a.kpi:hover { box-shadow: var(--sh-md); transform: translateY(-1px); text-decoration: none; }
.kpi .v { font-size: 30px; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.kpi .k { color: var(--muted); font-size: 13px; }
.kpi.gold { background: linear-gradient(135deg, #14264a, var(--navy)); border-color: var(--navy); }
.kpi.gold .v, .kpi.gold .k { color: #fff; }
.kpi.gold .v { color: var(--gold); }

/* 6) -------------------------------------------------- bottoni */
.btn, button.btn, a.btn {
  display: inline-flex; align-items: center; gap: 7px; cursor: pointer;
  padding: 10px 16px; border-radius: var(--r-btn); font-size: 14px; font-weight: 600;
  border: 1px solid transparent; transition: background var(--t), border-color var(--t), box-shadow var(--t);
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-700); text-decoration: none; }
.btn-gold { background: var(--gold); color: var(--navy); }
.btn-gold:hover { background: #d8b572; text-decoration: none; }
.btn-secondary { background: var(--surface); color: var(--txt); border-color: var(--line); }
.btn-secondary:hover { border-color: #cbd2db; text-decoration: none; }
.btn-ghost { background: transparent; color: var(--muted); padding: 6px 10px; }
.btn-ghost:hover { color: var(--txt); text-decoration: none; }
.btn-danger { background: transparent; color: var(--error); border: 0; padding: 0; font-weight: 600; cursor: pointer; }
.btn-danger:hover { text-decoration: underline; }
/* bottoni form di default (compat) */
button[type=submit]:not(.btn) {
  background: var(--navy); color: #fff; border: 0; border-radius: var(--r-btn);
  padding: 10px 18px; font-size: 14px; font-weight: 600; cursor: pointer; transition: background var(--t);
}
button[type=submit]:not(.btn):hover { background: var(--navy-700); }

/* 7) -------------------------------------------------- badge / chip */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
  background: var(--neutral-bg); color: var(--muted); border: 0; white-space: nowrap;
}
.b-success, .sent-positivo, .esito-avanza, .esito-chiuso_vinto, .ai-fatto, .rel-attivo, .s-inviata, .s-riassunta { background: var(--success-bg); color: var(--success); }
.b-warning, .esito-a_rischio, .ai-aperto, .cat-prezzo, .cat-budget, .s-da_approvare, .s-analisi_in_attesa { background: var(--warning-bg); color: var(--warning); }
.b-error, .sent-negativo, .esito-chiuso_perso, .rel-perso, .s-errore, .s-rifiutata { background: var(--error-bg); color: var(--error); }
.b-info, .esito-da_ricontattare, .ai-in_corso, .rel-prospect, .s-in_corso, .s-trascritta, .cat-tecnica { background: var(--info-bg); color: var(--info); }
.sent-neutro, .rel-lead, .s-ricevuta, .s-scaduta, .s-disabilitata, .s-annullata { background: var(--neutral-bg); color: var(--muted); }
.cat-concorrenza { background: #efe8fb; color: #6d4bd1; }
.cat-fiducia, .cat-tempistiche { background: var(--gold-soft); color: #8a6d2f; }
.chip {
  display: inline-block; background: var(--surface-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 4px 12px; margin: 3px 5px 3px 0; font-size: 13px; color: var(--txt);
}

/* 8) -------------------------------------------------- tabelle */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
thead th {
  text-align: left; padding: 11px 14px; font-size: 11.5px; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em; color: var(--muted);
  background: var(--surface-2); border-bottom: 1px solid var(--line);
}
tbody td { padding: 13px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
tbody tr:last-child td { border-bottom: 0; }
tr.clickable { cursor: pointer; transition: background var(--t); }
tr.clickable:hover { background: var(--surface-2); }
.cell-strong { font-weight: 600; color: var(--txt); }
.trunc { max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-arrow { color: var(--muted); }

/* 9) -------------------------------------------------- form / filtri */
form label { display: block; margin: 0 0 14px; color: var(--muted); font-size: 13px; font-weight: 500; }
form input, form select, form textarea {
  display: block; width: 100%; margin-top: 6px; padding: 10px 12px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-in);
  color: var(--txt); font-size: 14px; font-family: inherit; transition: border-color var(--t), box-shadow var(--t);
}
form input:focus, form select:focus, form textarea:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.field-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }

.filters { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 22px; }
.filters input, .filters select {
  width: auto; margin: 0; padding: 9px 12px; background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--r-in); color: var(--txt); font-size: 14px;
}
.filters input:focus, .filters select:focus { outline: none; border-color: var(--gold); box-shadow: var(--ring); }
.filters input.search { min-width: 260px; }
.inline-form { margin: 0; display: inline-block; }
.inline-form select { width: auto; margin: 0; padding: 6px 10px; }

/* 10) -------------------------------------------------- stati vuoti / pager */
.empty {
  text-align: center; padding: 48px 24px; color: var(--muted);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.empty svg { width: 40px; height: 40px; opacity: .5; }
.empty .cta { margin-top: 6px; }
.pager { display: flex; gap: 16px; align-items: center; justify-content: flex-end; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* 11) -------------------------------------------------- grafici */
.chart-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.chart-card { margin: 0; display: flex; flex-direction: column; }
.chart-card h3 { display: flex; align-items: baseline; justify-content: space-between; }
.chart-card h3 .tot { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }
.chart-card .canvas-box { position: relative; height: 260px; }
.chart-card.wide { grid-column: 1 / -1; }
.chart-empty { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--muted); font-size: 14px; }

/* 12) -------------------------------------------------- dettaglio chiamata */
.meta-row { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; align-items: center; }
.meta-row b { color: var(--txt); font-weight: 600; margin-right: 5px; }
.hero { border-left: 4px solid var(--gold); }
.hero .lead { font-size: 16px; line-height: 1.65; margin: 6px 0 14px; color: var(--txt); }
.next-step { background: var(--gold-soft); border-radius: var(--r-in); padding: 12px 14px; color: #5e4a23; }
.next-step b { color: var(--navy); }
.model-tag { color: var(--muted); font-size: 12.5px; margin-top: 10px; }
.entita { display: flex; flex-direction: column; gap: 6px; color: var(--muted); margin-top: 10px; }
.entita b { color: var(--txt); }

.transcript { display: flex; flex-direction: column; }
.seg { display: grid; grid-template-columns: 120px 56px 1fr; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.seg:last-child { border-bottom: 0; }
.seg .spk { font-weight: 600; font-size: 12.5px; color: #fff; background: var(--muted); border-radius: 6px; padding: 2px 8px; height: fit-content; text-align: center; }

/* Colori per speaker (palette Okabe-Ito, distinguibile anche dai daltonici).
   Badge pieno + testo del turno nella variante scura dello stesso colore. */
.seg.spk-0 .spk { background: #0072B2; } .seg.spk-0 .txt { color: #00568A; }
.seg.spk-1 .spk { background: #D55E00; } .seg.spk-1 .txt { color: #A34800; }
.seg.spk-2 .spk { background: #009E73; } .seg.spk-2 .txt { color: #007757; }
.seg.spk-3 .spk { background: #CC79A7; } .seg.spk-3 .txt { color: #96537A; }
.seg.spk-4 .spk { background: #56B4E9; } .seg.spk-4 .txt { color: #1F6E99; }
.seg.spk-5 .spk { background: #E69F00; } .seg.spk-5 .txt { color: #8A6100; }
.seg.spk-6 .spk { background: #4D4D4D; } .seg.spk-6 .txt { color: #333333; }
.seg.spk-7 .spk { background: #2F7E86; } .seg.spk-7 .txt { color: #236167; }
.seg .ts { color: var(--muted); font-size: 12px; font-variant-numeric: tabular-nums; padding-top: 2px; }
.seg .txt { color: var(--txt); }

/* 13) -------------------------------------------------- login */
.auth-bg { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #0c1a33, var(--navy)); padding: 24px; }
.auth-card { width: 100%; max-width: 400px; background: var(--surface); border-radius: 16px; box-shadow: var(--sh-md); padding: 36px; }
.auth-card .brand { display: flex; align-items: center; gap: 9px; font-size: 24px; font-weight: 700; color: var(--navy); }
.auth-card .brand .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--gold); }
.auth-card h1 { font-size: 24px; }

/* 14) -------------------------------------------------- responsive */
@media (max-width: 900px) {
  .sidebar {
    position: static; width: 100%; height: auto; flex-direction: row; align-items: center;
    padding: 10px 16px; gap: 4px; overflow-x: auto;
  }
  .sidebar .brand { padding: 0 12px 0 4px; font-size: 18px; }
  .sidebar nav { flex-direction: row; flex: 1; gap: 2px; }
  .navlink { padding: 8px 11px; white-space: nowrap; }
  .navlink span { display: none; }
  .navlink.active::before { left: 8px; right: 8px; top: auto; bottom: 0; width: auto; height: 3px; border-radius: 3px 3px 0 0; }
  .sidebar-foot { flex-direction: row; border-top: 0; padding-top: 0; }
  .sidebar-foot .btn { padding: 8px 12px; }
  .content { margin-left: 0; }
  .wrap { padding: 20px 18px 48px; }
  .split { grid-template-columns: 1fr; }
  .field-grid { grid-template-columns: 1fr; }
  h1 { font-size: 24px; }
}

/* --- account nella sidebar --- */
.acct { display: flex; flex-direction: column; gap: 2px; padding: 6px 12px 0; }
.acct-name { color: #fff; font-weight: 600; font-size: 13px; max-width: 180px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* --- badge sentiment/esito in cella tabella (no testo extra) --- */
.cell-empty { color: var(--muted); }

/* ===================== Conversation Intelligence ===================== */
.ci-head { display: flex; gap: 22px; align-items: flex-start; border-left: 4px solid var(--gold); }
.ci-head-main { flex: 1; min-width: 0; }
.ci-grade {
  flex: 0 0 auto; width: 96px; height: 96px; border-radius: 16px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: var(--neutral-bg); color: var(--muted);
}
.ci-grade .g { font-size: 38px; font-weight: 800; line-height: 1; letter-spacing: -.02em; }
.ci-grade .p { font-size: 13px; font-weight: 600; margin-top: 2px; }
.grade-A { background: var(--success-bg); color: var(--success); }
.grade-B { background: #EAF1FB; color: #2C5FA8; }
.grade-C { background: var(--gold-soft); color: #8a6d2f; }
.grade-D { background: var(--error-bg); color: var(--error); }
.badge.grade-A, .badge.grade-B, .badge.grade-C, .badge.grade-D { padding: 2px 9px; }

/* talk metrics */
.talk-bars { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.talk-row { display: grid; grid-template-columns: 150px 1fr 120px; gap: 12px; align-items: center; font-size: 13px; }
.talk-sp { color: var(--txt); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.talk-track { height: 10px; background: var(--neutral-bg); border-radius: 999px; overflow: hidden; }
.talk-fill { display: block; height: 100%; background: var(--navy); border-radius: 999px; }
.talk-pct { color: var(--muted); text-align: right; font-variant-numeric: tabular-nums; }

/* scorecard */
.scorecard { display: flex; flex-direction: column; }
.sc-item { padding: 16px 24px; border-top: 1px solid var(--line); }
.sc-item:first-child { border-top: 0; }
.sc-na { opacity: .62; }
.sc-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.sc-label { font-weight: 600; color: var(--txt); }
.sc-score {
  flex: 0 0 auto; font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  letter-spacing: .03em; font-variant-numeric: tabular-nums;
}
.sc-score.pass { background: var(--success-bg); color: var(--success); }
.sc-score.fail { background: var(--error-bg); color: var(--error); }
.sc-score.sc-num { background: var(--navy); color: #fff; }
.sc-score.sc-num.na { background: var(--neutral-bg); color: var(--muted); }
.sc-mot { margin: 8px 0 0; color: var(--txt); font-size: 14px; line-height: 1.55; }
.sc-evid { margin-top: 8px; display: flex; flex-direction: column; gap: 6px; }
.evid { border-left: 3px solid var(--gold); padding: 4px 0 4px 12px; font-size: 13px; color: var(--txt); font-style: italic; }
.sc-sugg { margin: 10px 0 0; font-size: 13px; color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.sc-sugg b { color: var(--txt); }

/* momenti chiave */
.momenti { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.momento { border: 1px solid var(--line); border-left: 3px solid var(--gold); border-radius: 10px; padding: 12px 14px; background: var(--surface-2); }
.momento .m-head { display: flex; gap: 10px; align-items: center; font-size: 13px; }
.momento .m-quote { margin-top: 6px; font-style: italic; color: var(--txt); }
.momento .m-com { margin-top: 6px; color: var(--muted); font-size: 13px; }

/* liste coaching/segnali */
.ci-list { margin: 6px 0 0; padding-left: 18px; line-height: 1.6; }
.ci-list li { margin-bottom: 5px; }
.ci-list.good li::marker { color: var(--success); }
.ci-list.bad li::marker { color: var(--error); }
.ci-h4 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }

/* email/nota */
.email-box { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.email-subj { padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); font-size: 14px; }
.email-body { margin: 0; padding: 14px; white-space: pre-wrap; font-family: inherit; font-size: 14px; line-height: 1.6; color: var(--txt); }

/* scorecard editor */
.sc-form-head { display: flex; gap: 16px; align-items: flex-end; flex-wrap: wrap; }
.sc-form-head label { margin-bottom: 0; }
.sc-flags { padding-bottom: 8px; }
.crit-table { margin: 14px 0 10px; }
.crit-table th { font-size: 11px; }
.crit-table td { padding: 6px 8px; vertical-align: middle; }
.crit-table input, .crit-table select { margin: 0; }
.crit-table .mono { font-family: ui-monospace, Menlo, monospace; font-size: 12px; }
.crit-table .w-num { width: 64px; }
.sc-actions { display: flex; gap: 12px; align-items: center; margin-top: 10px; }
.mtype-rischio { border-left-color: var(--error); }
.mtype-segnale_acquisto, .mtype-impegno { border-left-color: var(--success); }

/* talk mini-strip sotto la doughnut del parlato */
.talk-mini { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.talk-mini b { color: var(--txt); font-variant-numeric: tabular-nums; }

/* sezione grafici secondaria, ripiegabile */
.more-charts { margin-top: 22px; }
.more-charts > summary { cursor: pointer; color: var(--muted); font-weight: 600; font-size: 14px; padding: 10px 0; list-style: none; }
.more-charts > summary::-webkit-details-marker { display: none; }
.more-charts > summary::before { content: "\25B8"; margin-right: 8px; color: var(--gold); }
.more-charts[open] > summary::before { content: "\25BE"; }

/* zona pericolosa (eliminazione chiamata, solo admin) */
.danger-zone { border: 1px solid #F0C9C9; background: #FDF6F6; }
.danger-zone h3 { color: var(--error); }
.btn-danger-solid { background: var(--error); color: #fff; border: 0; }
.btn-danger-solid:hover { background: #9c2f2f; text-decoration: none; }

/* pagina integrazioni */
.integ-head { display: flex; gap: 14px; align-items: center; }
.integ-logo { width: 48px; height: 48px; border-radius: 12px; background: var(--gold-soft); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.integ-body { margin-top: 16px; border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.integ-row { display: flex; justify-content: space-between; gap: 16px; font-size: 14px; }
.integ-row b { color: var(--txt); }
.integ-toggle { margin: 4px 0 0; }
.switch-label { display: flex; align-items: center; gap: 10px; color: var(--txt); font-weight: 500; cursor: pointer; }
.switch-label input { width: auto; margin: 0; }
.setup-steps { margin: 8px 0 0; padding-left: 20px; line-height: 1.7; color: var(--txt); }
.setup-steps li { margin-bottom: 8px; }
.setup-steps .mono { display: inline-block; background: var(--surface-2); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-family: ui-monospace, Menlo, monospace; font-size: 12.5px; }

/* Integrazioni: una card per ogni account Google collegato */
.integ-account{padding:16px;margin-top:14px;border:1px solid var(--line,#e6e8ee);border-radius:12px;background:#fbfcfe}
.integ-account + .integ-account{margin-top:12px}

/* sezioni comprimibili (dettaglio analisi) */
details.foldable > summary { cursor: pointer; list-style: none; font-weight: 600; font-size: 16px; color: var(--txt); display: flex; align-items: center; user-select: none; }
details.foldable > summary::-webkit-details-marker { display: none; }
details.foldable > summary::before { content: "\25B8"; margin-right: 10px; color: var(--gold); font-size: 13px; }
details.foldable[open] > summary { margin-bottom: 14px; }
details.foldable[open] > summary::before { content: "\25BE"; }

/* chiamata registrata dal bot di un collega (stessa riunione, un solo bot) */
.nota-collegata{
  margin:12px 0 0; padding:11px 14px; border-radius:8px;
  background:rgba(201,164,92,.10); border:1px solid rgba(201,164,92,.35);
  color:var(--ink, #1a2233); font-size:.92rem; line-height:1.55;
}
.nota-collegata a{ color:var(--gold, #C9A45C); font-weight:600 }

/* conferma sulle pagine di accesso (es. password aggiornata) */
.ok-msg{
  margin:12px 0 0; padding:10px 13px; border-radius:8px; font-size:.92rem;
  background:rgba(46,125,91,.12); border:1px solid rgba(46,125,91,.45); color:#2E7D5B;
}
