/* =============================================================
   style.css — stili globali per webinar, admin e pagine errore
   ============================================================= */

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ---- Tipografia base ---- */
body {
  font-family: Arial, sans-serif;
  background: #0f172a;
  color: #fff;
}

/* =============================================================
   WEBINAR PAGE
   ============================================================= */

body.webinar {
  height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

/* Header */
.header {
  padding: 14px 24px;
  background: #ffffff;
  text-align: center;
  border-bottom: 1px solid #e5e7eb;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.header-logo-slot {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.header-logo {
  display: block;
  height: 75px;
  max-width: 210px;
  width: auto;
  object-fit: contain;
}

.header-center {
  flex: 1;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.header-welcome {
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

/* plugNmeet watch: header collapsible removed */
.header-left { flex: 1; text-align: left; }
.header h2     { font-size: 1.1rem; margin-bottom: 3px; }
.header span   { font-size: 0.82rem; color: #334155; }
.header-logout { font-size: 0.8rem; color: #0f172a; text-decoration: none; white-space: nowrap; }
.header-logout:hover { color: #111827; text-decoration: underline; }

.btn-header-action {
  font-size: 0.78rem;
  color: #0f172a;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 4px 10px;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, border-color .15s;
  line-height: 1.6;
}
.btn-header-action:hover { background: #e5e7eb; border-color: #9ca3af; color: #0b1220; }
.btn-danger-action {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}
.btn-danger-action:hover {
  background: #fecaca;
  border-color: #dc2626;
  color: #7f1d1d;
}
.btn-danger-action:disabled {
  opacity: .6;
  cursor: not-allowed;
}

.btn-success-action {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}
.btn-success-action:hover {
  background: #bbf7d0;
  border-color: #16a34a;
  color: #14532d;
}

.header-indicator-live {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
  cursor: default;
}

.header-rec-btn {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
  font-weight: 700;
}

.header-rec-btn:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #7c2d12;
}

.header-rec-btn.is-recording {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

body.watch-theme-meeting .header {
  background: #ffffff;
  border-bottom-color: #e5e7eb;
  position: relative;
  justify-content: flex-end;
}

body.watch-theme-meeting .header-welcome,
body.watch-theme-meeting .header-logout,
body.watch-theme-meeting .header span {
  color: #0f172a;
}

body.watch-theme-meeting .header-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: max-content;
  max-width: 58vw;
  pointer-events: none;
}

body.watch-theme-meeting .header-right,
body.watch-theme-meeting .organizer-header-right {
  margin-left: auto;
  position: relative;
  z-index: 2;
}

body.watch-theme-meeting .header-org-start {
  margin-right: auto;
  position: relative;
  z-index: 2;
}

body.watch-theme-meeting .btn-header-action {
  color: #0f172a;
  background: #f3f4f6;
  border-color: #d1d5db;
}

body.watch-theme-meeting .btn-header-action:hover {
  background: #e5e7eb;
  border-color: #9ca3af;
  color: #0b1220;
}

body.watch-theme-meeting .header-logout:hover {
  color: #111827;
}

body.watch-theme-meeting .btn-danger-action {
  background: #fee2e2;
  border-color: #ef4444;
  color: #991b1b;
}

body.watch-theme-meeting .btn-danger-action:hover {
  background: #fecaca;
  color: #7f1d1d;
}

body.watch-theme-meeting .btn-success-action {
  background: #dcfce7;
  border-color: #22c55e;
  color: #166534;
}

body.watch-theme-meeting .btn-success-action:hover {
  background: #bbf7d0;
  color: #14532d;
}

body.watch-theme-meeting .header-rec-btn {
  background: #fff7ed;
  border-color: #fb923c;
  color: #9a3412;
}

body.watch-theme-meeting .header-rec-btn:hover {
  background: #ffedd5;
  border-color: #f97316;
  color: #7c2d12;
}

.rec-status {
  position: fixed;
  top: 66px;
  right: 18px;
  z-index: 12;
  border: 1px solid #334155;
  border-radius: 8px;
  font-size: 0.78rem;
  padding: 8px 12px;
  max-width: min(86vw, 520px);
  background: #0b1220;
  color: #cbd5e1;
}

.rec-status.ok {
  border-color: rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.rec-status.err {
  border-color: rgba(248, 113, 113, 0.45);
  color: #fca5a5;
}
.btn-success-action {
  background: #14532d;
  border-color: #166534;
  color: #86efac;
}
.btn-success-action:hover {
  background: #166534;
  border-color: #15803d;
  color: #bbf7d0;
}
.btn-success-action:disabled {
  opacity: .6;
  cursor: not-allowed;
}

/* Meeting waiting (draft) overlay ---------------------------------------- */
.meeting-waiting-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  background: #ffffff;
  color: #0f172a;
  text-align: center;
  padding: 400px 20px;
}
.meeting-waiting-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: .8;
}
.meeting-waiting-msg p {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 10px;
  color: #f1f5f9;
}
.meeting-waiting-sub {
  font-size: 0.95rem !important;
  font-weight: 400 !important;
  color: #94a3b8 !important;
  max-width: 420px;
}

/* Meeting ended overlay -------------------------------------------------- */
.meeting-ended-msg {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  min-height: 300px;
  background: #0f172a;
  color: #cbd5e1;
  text-align: center;
  padding: 40px 20px;
}
.meeting-ended-icon {
  font-size: 3.5rem;
  margin-bottom: 20px;
  opacity: .7;
}
.meeting-ended-msg p {
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0;
  color: #f1f5f9;
}

/* Video — full screen below header */
.video-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #ffffff;
}
@media (min-width: 641px) {
  body.webinar .video-wrap {
    padding-top: 0;
  }
}
.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
  background: #ffffff;
}

/* Header right group: controls */
.header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 80px;
  justify-content: flex-end;
}

.chat-toggle {
  position: relative;
  background: #2563eb;
  border: none;
  border-radius: 999px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, transform 0.15s;
  flex-shrink: 0;
}
.chat-toggle:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
}

.chat-toggle svg {
  width: 20px;
  height: 20px;
  fill: #fff;
}

.chat-unread-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  padding: 0 5px;
  line-height: 18px;
  text-align: center;
  border: 1px solid #fff;
}

.raise-hand-btn-header {
  width: auto;
  padding: 8px 12px;
  white-space: nowrap;
}

/* ---- Organizer watch: desktop toolbar / mobile drawer ---- */
body.organizer-watch .organizer-header .header-org-start {
  width: 80px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

body.organizer-watch .organizer-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: #f8f8f9;
  border-radius: 8px;
  cursor: pointer;
}

body.organizer-watch .organizer-menu-toggle:focus-visible {
  outline: 2px solid #64748b;
  outline-offset: 2px;
}

body.organizer-watch .organizer-menu-bar {
  display: block;
  height: 2px;
  border-radius: 1px;
  background: #e2e8f0;
}

body.organizer-watch .organizer-header-right {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-end;
  min-width: 0;
}

body.organizer-watch .organizer-slide-panel {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  box-sizing: border-box;
}

body.organizer-watch .organizer-slide-panel .btn-header-action,
body.organizer-watch .organizer-slide-panel > .header-logout {
  flex-shrink: 0;
}

body.organizer-watch .organizer-slide-panel .organizer-dash-link.btn-header-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
}

body.organizer-watch .organizer-chat-slot {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

body.organizer-watch .organizer-menu-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 155;
  background: rgba(255, 255, 255, 0.55);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

body.organizer-watch .organizer-menu-backdrop.is-visible {
  opacity: 1;
  visibility: visible;
}

body.organizer-watch.organizer-menu-open {
  overflow: hidden;
}

@media (max-width: 900px) {
  body.watch-theme-meeting .header {
    justify-content: space-between;
  }

  body.watch-theme-meeting .header-center {
    position: static;
    left: auto;
    transform: none;
    max-width: none;
    pointer-events: auto;
    flex: 1;
    order: 1;
  }

  body.watch-theme-meeting .header-right,
  body.watch-theme-meeting .organizer-header-right {
    margin-left: 0;
  }

  body.organizer-watch .organizer-menu-toggle {
    display: inline-flex;
  }

  body.organizer-watch .organizer-header .header-org-start {
    width: auto;
    min-width: 48px;
    justify-content: flex-start;
  }

  body.organizer-watch .organizer-slide-panel {
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: min(320px, 88vw);
    z-index: 160;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 10px;
    padding: 16px 14px 20px;
    overflow-y: auto;
    background: #ffffff;
    border-right: 1px solid #1e293b;
    box-shadow: 8px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform 0.25s ease;
  }

  body.organizer-watch .organizer-slide-panel.is-open {
    transform: translateX(0);
  }

  body.organizer-watch .organizer-slide-panel .btn-header-action,
  body.organizer-watch .organizer-slide-panel .organizer-dash-link,
  body.organizer-watch .organizer-slide-panel > .header-logout {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  body.organizer-watch .organizer-menu-backdrop {
    display: block;
  }

  body.organizer-watch .organizer-menu-backdrop.is-visible {
    pointer-events: auto;
  }

  body.organizer-watch .organizer-menu-backdrop:not(.is-visible) {
    pointer-events: none;
  }
}

.user-inbox-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  font-weight: 700;
  margin-left: 6px;
  padding: 0 5px;
}

.user-inbox-panel {
  position: fixed;
  top: 68px;
  right: 14px;
  width: min(420px, calc(100vw - 20px));
  max-height: min(72vh, 620px);
  background: #0b1220;
  border: 1px solid #334155;
  border-radius: 12px;
  box-shadow: 0 20px 36px rgba(2, 6, 23, 0.48);
  z-index: 260;
  display: flex;
  flex-direction: column;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity .18s ease, transform .18s ease;
}

.user-inbox-panel.open {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.user-inbox-head {
  padding: 10px 12px;
  border-bottom: 1px solid #1e293b;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-inbox-head strong {
  color: #e2e8f0;
  font-size: 0.86rem;
}

.user-inbox-close {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 1rem;
  cursor: pointer;
}

.user-inbox-body {
  padding: 10px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.user-inbox-section h4 {
  margin: 0 0 6px;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #94a3b8;
}

.user-inbox-item {
  background: #111827;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 9px 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.user-inbox-item-call {
  border-color: rgba(245, 158, 11, 0.55);
  background: #1f2937;
}

.user-inbox-meta {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.user-inbox-meta strong {
  font-size: 0.82rem;
  color: #f8fafc;
}

.user-inbox-meta small {
  font-size: 0.74rem;
  color: #94a3b8;
}

.user-inbox-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.user-inbox-empty {
  border: 1px dashed #334155;
  border-radius: 10px;
  padding: 10px;
  color: #94a3b8;
  font-size: 0.78rem;
}

.watch-incoming-call-toast {
  position: fixed;
  right: 14px;
  bottom: 14px;
  z-index: 270;
  background: #ffffff;
  border: 1px solid #f59e0b;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.25);
  padding: 10px 12px;
  min-width: 280px;
  max-width: min(92vw, 430px);
  display: flex;
  align-items: center;
  gap: 10px;
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
}

.watch-incoming-call-toast.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.watch-call-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, .55);
  animation: watchCallPulse 1.25s infinite;
  flex-shrink: 0;
}

.watch-call-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.watch-call-copy strong {
  color: #7c2d12;
  font-size: 0.84rem;
}

.watch-call-copy small {
  color: #9a3412;
  font-size: 0.76rem;
}

@keyframes watchCallPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, .55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

/* Chat overlay panel */
.chat {
  position: fixed;
  top: 0;
  right: -360px;
  width: 340px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: #020617;
  border-left: 1px solid #1e293b;
  z-index: 150;
  transition: right 0.3s ease;
}
.chat.open { right: 0; }

.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.chat-title {
  font-size: 0.82rem;
  font-weight: bold;
  color: #94a3b8;
  letter-spacing: 0.03em;
}
.chat-close {
  background: none;
  border: none;
  color: #64748b;
  font-size: 1rem;
  cursor: pointer;
  padding: 2px 8px;
  border-radius: 4px;
  transition: color 0.15s;
}
.chat-close:hover { color: #fff; }
.messages {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.messages p {
  font-size: 0.83rem;
  line-height: 1.4;
  word-break: break-word;
  color: #e2e8f0;
}
.messages p strong {
  color: #7dd3fc;
  margin-right: 3px;
}
.chat-input {
  display: flex;
  border-top: 1px solid #1e293b;
  flex-shrink: 0;
}
.chat-input input {
  flex: 1;
  padding: 12px;
  background: #0f172a;
  color: #fff;
  border: none;
  outline: none;
  font-size: 0.875rem;
}
.chat-input input::placeholder { color: #475569; }
.chat-input button {
  padding: 12px 16px;
  background: #3b82f6;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.875rem;
  transition: background 0.15s;
}
.chat-input button:hover { background: #2563eb; }

/* =============================================================
   ADMIN PAGE
   ============================================================= */

body.admin {
  padding: 28px;
  min-height: 100vh;
}

.admin-header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 28px;
}
.admin-header h1 { font-size: 1.5rem; }

.admin h3 {
  font-size: 1rem;
  margin: 28px 0 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.78rem;
}

hr { border: none; border-top: 1px solid #1e293b; margin: 28px 0; }

/* Inputs condivisi */
input[type="text"],
input[type="email"],
input[type="password"],
input:not([type]) {
  padding: 10px 12px;
  border-radius: 4px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #fff;
  font-size: 0.9rem;
}
input:focus { outline: 2px solid #3b82f6; outline-offset: 1px; border-color: transparent; }

/* Bottoni */
.btn {
  display: inline-block;
  padding: 10px 18px;
  background: #3b82f6;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-weight: bold;
  font-size: 0.88rem;
  text-decoration: none;
  transition: background 0.15s;
}
.btn:hover { background: #2563eb; }
.btn-danger       { background: #dc2626; }
.btn-danger:hover { background: #b91c1c; }

/* Messaggi flash */
.msg { padding: 10px 16px; border-radius: 4px; margin-bottom: 16px; font-size: 0.9rem; }
.msg.ok  { background: #14532d; border-left: 3px solid #22c55e; }
.msg.err { background: #7f1d1d; border-left: 3px solid #ef4444; }

/* Link box */
.link-box {
  background: #1e293b;
  padding: 14px 16px;
  border-radius: 4px;
  margin-top: 10px;
  border-left: 3px solid #3b82f6;
  word-break: break-all;
  font-family: monospace;
  font-size: 0.88rem;
  color: #7dd3fc;
}

/* User rows */
.user-row {
  padding: 12px 16px;
  background: #1e293b;
  border-radius: 6px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 14px;
  transition: background 0.1s;
}
.user-row:hover { background: #253347; }
.user-info     { flex: 1; }
.user-info strong { font-size: 0.95rem; }
.user-info small  { display: block; color: #64748b; font-size: 0.8rem; margin-top: 2px; }
.badge { font-size: 0.75rem; color: #64748b; }

/* Form row */
.form-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Logout link */
.logout { font-size: 0.82rem; color: #64748b; text-decoration: none; }
.logout:hover { color: #cbd5e1; }

/* =============================================================
   ADMIN LOGIN FORM
   ============================================================= */

body.login {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
}

.login-form {
  background: #1e293b;
  padding: 36px 32px;
  border-radius: 10px;
  width: 100%;
  max-width: 340px;
}
.login-form h2 { margin-bottom: 24px; text-align: center; font-size: 1.2rem; }
.login-form input {
  display: block;
  width: 100%;
  margin-bottom: 14px;
}
.login-form .btn { width: 100%; justify-content: center; text-align: center; }

/* =============================================================
   LANDING PAGE
   ============================================================= */

body.landing {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

/* Landing Header */
.landing-header {
  background: #020617;
  border-bottom: 1px solid #1e293b;
  flex-shrink: 0;
}
.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.landing-logo {
  font-size: 1.1rem;
  font-weight: bold;
  color: #fff;
}
.landing-logo a { color: inherit; text-decoration: none; }
.landing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}
.landing-nav a {
  color: #94a3b8;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.15s;
}
.landing-nav a:hover { color: #fff; }

/* Hero */
.hero {
  background: linear-gradient(135deg, #ffffff 0%, #ffffff 60%, #ffffff 100%);
  padding: 90px 24px 80px;
  text-align: center;
}
.hero-inner { max-width: 680px; margin: 0 auto; }
.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 .accent { color: #3b82f6; }
.hero p {
  font-size: 1.05rem;
  color: #94a3b8;
  margin-bottom: 36px;
  line-height: 1.7;
}
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.btn-outline {
  background: transparent;
  border: 1px solid #334155;
  color: #94a3b8;
}
.btn-outline:hover { border-color: #64748b; color: #fff; background: #1e293b; }
.btn-sm { padding: 6px 12px; font-size: 0.8rem; }
.btn-live   { background: #16a34a; }
.btn-live:hover { background: #15803d; }
.full { width: 100%; text-align: center; justify-content: center; }

/* Features */
.features-section {
  background: #0f172a;
  padding: 64px 24px;
}
.features-inner {
  max-width: 1000px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.feature-card {
  background: #1e293b;
  border-radius: 10px;
  padding: 28px 24px;
  border: 1px solid #334155;
  text-align: center;
}
.feature-icon { font-size: 2.2rem; margin-bottom: 14px; }
.feature-card h3 { font-size: 1rem; margin-bottom: 10px; }
.feature-card p  { color: #64748b; font-size: 0.88rem; line-height: 1.6; }

/* Login section (landing) */
.login-section {
  background: #0f172a;
  padding: 64px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-box {
  background: #1e293b;
  padding: 40px 36px;
  border-radius: 12px;
  width: 100%;
  max-width: 400px;
  border: 1px solid #334155;
}
.login-box.wide { max-width: 600px; }
.login-box h2 {
  margin-bottom: 24px;
  font-size: 1.3rem;
  text-align: center;
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: 0.82rem; color: #94a3b8; }
.field input { width: 100%; }
.form-row .field { flex: 1; min-width: 160px; }
.login-register-link {
  text-align: center;
  margin-top: 18px;
  font-size: 0.85rem;
  color: #64748b;
}
.login-register-link a { color: #3b82f6; text-decoration: none; }
.login-register-link a:hover { text-decoration: underline; }

/* Landing footer */
.landing-footer {
  background: #020617;
  text-align: center;
  padding: 20px;
  color: #334155;
  font-size: 0.8rem;
  margin-top: auto;
}

/* =============================================================
   DASHBOARD — TAB + MEETING CARDS
   ============================================================= */

.tab-nav {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 20px;
}
.tab-btn {
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: #64748b;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 0.9rem;
  margin-bottom: -1px;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: color 0.15s, border-color 0.15s;
}
.tab-btn:hover { color: #cbd5e1; }
.tab-btn.active { color: #fff; border-bottom-color: #3b82f6; }
.tab-count {
  background: #1e293b;
  border-radius: 10px;
  padding: 1px 7px;
  font-size: 0.75rem;
  color: #94a3b8;
}
.tab-panel { display: none; }
.tab-panel.active { display: block; }

/* Meeting card */
.meeting-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: #1e293b;
  border-radius: 8px;
  padding: 16px 20px;
  margin-bottom: 10px;
  transition: background 0.1s;
  flex-wrap: wrap;
}
.meeting-card:hover { background: #253347; }
.meeting-info { flex: 1; min-width: 200px; }
.meeting-open {
  cursor: pointer;
  border-radius: 6px;
  padding: 6px 8px;
  margin: -6px -8px;
  transition: background 0.12s;
}
.meeting-open:hover { background: rgba(59, 130, 246, 0.12); }
.meeting-title {
  font-size: 1rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.meeting-meta {
  font-size: 0.8rem;
  color: #64748b;
  margin-top: 4px;
}

/* ── Rubrica: header azioni (export / import / nuovo) ───────────────────── */
body.admin .contacts-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* ── Modal importazione CSV ─────────────────────────────────────────────── */
body.admin #csvImportModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.admin #csvImportModal[hidden] { display: none; }

/* Profilo: elimina account (overlay come import CSV) */
body.admin #deleteAccountModal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}
body.admin #deleteAccountModal[hidden] { display: none; }

body.admin.profile-delete-modal-open {
  overflow: hidden;
}

.digest-card--danger-zone {
  border-color: rgba(239, 68, 68, 0.35);
  background: linear-gradient(180deg, #fffefb 0%, #fff7f7 100%);
}
.digest-danger-hint {
  margin: 0 0 14px;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #7f1d1d;
}

/* ── Modal overlay generici (rubrica: gruppi, modifica contatto, ecc.) ───── */
body.admin .modal-overlay .modal-box {
  background: #ffffff;
  border: 1px solid var(--teams-border);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  width: 100%;
  max-width: 560px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

body.admin .modal-overlay .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--teams-border);
}

body.admin .modal-overlay .modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1d2433;
}

body.admin .modal-overlay .modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
}

body.admin .modal-overlay .modal-close:hover {
  background: rgba(148, 163, 184, 0.2);
  color: #0f172a;
}

body.admin .modal-overlay .modal-body {
  padding: 16px 20px;
  overflow: auto;
}

body.admin #csvImportModal .modal-box {
  background: #ffffff;
  border: 1px solid var(--teams-border);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(15, 23, 42, 0.18);
  width: 100%;
  max-width: 520px;
  display: flex;
  flex-direction: column;
  max-height: calc(100dvh - 32px);
  overflow: hidden;
}

body.admin #csvImportModal .modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 12px;
  border-bottom: 1px solid var(--teams-border);
}

body.admin #csvImportModal .modal-head h2 {
  margin: 0;
  font-size: 1.05rem;
  color: #1d2433;
}

body.admin #csvImportModal .modal-close {
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  color: #64748b;
  padding: 0 4px;
  transition: color 0.15s;
}
body.admin #csvImportModal .modal-close:hover { color: #ef4444; }

body.admin #csvImportModal .modal-body {
  padding: 18px 20px 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

body.admin .import-hint {
  font-size: 0.83rem;
  color: #475569;
  line-height: 1.6;
  margin: 0;
}
body.admin .import-hint code {
  background: #f1f5f9;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 0.8rem;
  color: #1e40af;
}

/* Area selezione file */
body.admin .upload-label {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 2px dashed var(--teams-border);
  border-radius: 10px;
  padding: 14px 16px;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  color: #475569;
  font-size: 0.9rem;
}
body.admin .upload-label:hover {
  border-color: #6366f1;
  background: #f5f3ff;
  color: #3730a3;
}
body.admin .upload-dropzone.is-dragover {
  border-color: #22c55e;
  background: #ecfdf5;
  color: #166534;
}
body.admin .upload-label input[type="file"] {
  display: none;
}
body.admin .upload-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
}

/* Risultato importazione */
body.admin .import-result {
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.87rem;
  font-weight: 500;
}
body.admin .import-result.ok {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #bbf7d0;
}
body.admin .import-result.err {
  background: #fee2e2;
  color: #b91c1c;
  border: 1px solid #fecaca;
}
body.admin .import-result[hidden] { display: none; }

body.admin .csv-preview-wrap {
  border: 1px solid var(--teams-border);
  border-radius: 10px;
  background: #f8fafc;
  padding: 12px;
}
body.admin .csv-preview-wrap h3 {
  margin: 0 0 10px;
  font-size: 0.9rem;
  color: #1e293b;
}
body.admin .csv-preview-note {
  margin: 10px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}
body.admin .csv-map-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 8px;
  margin-bottom: 10px;
}
body.admin .csv-map-controls label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: #475569;
}
body.admin .csv-map-controls select {
  border: 1px solid var(--teams-border);
  border-radius: 8px;
  background: #fff;
  color: #1f2937;
  padding: 7px 8px;
  font-size: 0.82rem;
}
body.admin .csv-col-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}
body.admin .csv-col-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #fff;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
body.admin .csv-col-card.is-mapped {
  border-color: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.12);
}
body.admin .csv-col-card strong {
  font-size: 0.8rem;
  color: #1e293b;
}
body.admin .csv-col-card small {
  font-size: 0.74rem;
  color: #64748b;
  line-height: 1.4;
}

body.admin .csv-rows-wrap {
  border: 1px solid var(--teams-border);
  border-radius: 10px;
  background: #ffffff;
  padding: 12px;
}
body.admin .csv-rows-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}
body.admin .csv-rows-head h3 {
  margin: 0;
  font-size: 0.9rem;
  color: #1e293b;
}
body.admin .csv-select-all {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: #475569;
}
body.admin .csv-rows-list {
  max-height: min(220px, 34dvh);
  overflow: auto;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
}
body.admin .csv-row-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 10px;
  border-bottom: 1px solid #f1f5f9;
  cursor: pointer;
}
body.admin .csv-row-item:last-child {
  border-bottom: none;
}
body.admin .csv-row-main {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
body.admin .csv-row-main strong {
  font-size: 0.84rem;
  color: #0f172a;
}
body.admin .csv-row-main small {
  font-size: 0.76rem;
  color: #64748b;
}
body.admin .csv-rows-summary {
  margin: 8px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

body.admin .modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 4px;
}

/* Blocca lo scroll del body quando il modal è aperto */
body.admin.csv-import-open {
  overflow: hidden;
}

@media (max-width: 760px) {
  body.admin #csvImportModal,
  body.admin #deleteAccountModal {
    align-items: flex-start;
    padding: 8px;
  }

  body.admin #csvImportModal .modal-box,
  body.admin #deleteAccountModal .modal-box {
    max-width: none;
    width: 100%;
    min-height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 12px;
  }

  body.admin #csvImportModal .modal-head,
  body.admin #deleteAccountModal .modal-head {
    padding: 12px 14px 10px;
  }

  body.admin #csvImportModal .modal-head h2,
  body.admin #deleteAccountModal .modal-head h2 {
    font-size: 0.98rem;
  }

  body.admin #csvImportModal .modal-body,
  body.admin #deleteAccountModal .modal-body {
    padding: 12px 14px 14px;
    gap: 10px;
  }

  body.admin .csv-map-controls {
    grid-template-columns: 1fr;
  }

  body.admin .csv-col-grid {
    grid-template-columns: 1fr;
  }

  body.admin .csv-rows-head {
    flex-direction: column;
    align-items: flex-start;
  }

  body.admin .csv-rows-list {
    max-height: 34dvh;
  }

  body.admin .modal-footer {
    position: sticky;
    bottom: 0;
    background: #fff;
    padding-top: 8px;
  }
}
.meeting-desc {
  font-size: 0.83rem;
  color: #94a3b8;
  margin-top: 6px;
}
.meeting-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
}

/* Status badges */
.badge-live   { background: #14532d; color: #4ade80; border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: bold; }
.badge-draft  { background: #1e3a5f; color: #60a5fa; border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; }
.badge-done   { background: #1e293b; color: #64748b; border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; }
.badge-cancel { background: #7f1d1d; color: #fca5a5; border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; }
.badge-recorder { background: #7c2d12; color: #fbbf24; border-radius: 4px; padding: 2px 8px; font-size: 0.72rem; font-weight: bold; }
/* Embedded room in dashboard */
.meeting-embed {
  background: #020617;
  border: 1px solid #1e293b;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 20px;
}
.meeting-embed-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid #1e293b;
}
.meeting-embed iframe {
  width: 100%;
  height: 72vh;
  border: 0;
}

/* ===== new_webinar.php — layout card ===== */
.nw-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}
@media (max-width: 700px) {
  .nw-grid { grid-template-columns: 1fr; }
}

.nw-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 10px;
  padding: 22px 24px;
}

.nw-card-title {
  margin: 0 0 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.nw-textarea {
  width: 100%;
  background: #0f172a;
  color: #f1f5f9;
  border: 1px solid #334155;
  border-radius: 6px;
  padding: 10px 12px;
  font-size: 0.9rem;
  resize: vertical;
  transition: border-color .2s;
}
.nw-textarea:focus { border-color: #6366f1; outline: none; }

.label-opt {
  color: #64748b;
  font-size: 0.8rem;
}

.nw-invite-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}
.nw-invite-row .link-box {
  flex: 1;
  word-break: break-all;
  line-height: 1.4;
  padding: 9px 12px;
}
.nw-copy-btn { white-space: nowrap; }

.nw-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 4px;
}

.nw-invite-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  background: #0f172a;
  padding: 16px;
  border-radius: 8px;
  margin-bottom: 4px;
}

.nw-participants-table-wrap {
  overflow-x: auto;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
}
.nw-participants-table-wrap table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.88rem;
}
.nw-participants-table-wrap th,
.nw-participants-table-wrap td {
  padding: 8px 10px;
  text-align: left;
  border-bottom: 1px solid #f1f5f9;
}
.nw-participants-table-wrap th {
  background: #f8fafc;
  color: #475569;
  font-weight: 600;
  white-space: nowrap;
}
.nw-participants-table-wrap tr:last-child td {
  border-bottom: none;
}
.nw-participants-table-wrap td.nw-src {
  white-space: nowrap;
  color: #64748b;
  font-size: 0.82rem;
}
.nw-participants-table-wrap .nw-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.nw-participants {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ===== Tutorial spotlight (wizard) ===== */
.spotlight-overlay {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 2100;
  pointer-events: none;
}
.spotlight-overlay.is-open { display: block; }

/* Click-lock: four shutters (created by js/spotlight_tour_lock.js) */
.spotlight-overlay .spotlight-shutters {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.spotlight-shutter {
  position: fixed;
  pointer-events: auto;
  z-index: 0;
}

.spotlight-hole {
  position: fixed;
  left: 0;
  top: 0;
  width: 0;
  height: 0;
  border-radius: 14px;
  box-shadow: 0 0 0 9999px rgba(2, 6, 23, 0.74);
  outline: 2px solid rgba(99, 102, 241, 0.55);
  pointer-events: none;
  z-index: 1;
}

.spotlight-arrow-layer {
  position: fixed;
  inset: 0;
  z-index: 2;
  pointer-events: none;
}
.spotlight-arrow-svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.spotlight-tip {
  position: fixed;
  width: min(420px, calc(100vw - 28px));
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 14px;
  box-shadow: 0 22px 60px rgba(2, 6, 23, 0.22);
  padding: 14px;
  pointer-events: auto;
  z-index: 3;
}

body.tour-scroll-lock {
  overflow: hidden;
  touch-action: none;
}
.spotlight-tip h4 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: #0f172a;
}
.spotlight-tip p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: #334155;
}
.spotlight-tip-actions {
  margin-top: 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
.spotlight-tip-actions .btn {
  padding: 8px 12px;
  font-size: 0.82rem;
}
.spotlight-tip-progress {
  font-size: 0.78rem;
  color: #64748b;
  align-self: center;
}

@media (max-width: 640px) {
  .spotlight-tip {
    left: 12px !important;
    right: 12px;
    top: auto !important;
    bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto;
    max-height: min(48dvh, 360px);
    overflow: auto;
    padding: 12px;
    border-radius: 16px;
    -webkit-overflow-scrolling: touch;
  }

  .spotlight-tip-actions {
    align-items: stretch;
  }

  .spotlight-tip-actions .btn {
    min-height: 40px;
  }

  .spotlight-hole {
    border-radius: 12px;
  }
}

/* ===== Chat — Alza la mano ===== */
.chat-hand-row {
  padding: 8px 12px 12px;
  border-top: 1px solid #1e293b;
}
.raise-hand-btn {
  width: 100%;
  background: #1e293b;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 6px;
  padding: 8px 12px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background .15s, color .15s, border-color .15s;
}
.raise-hand-btn:hover  { background: #334155; color: #f1f5f9; }
.raise-hand-btn.active {
  background: #78350f;
  border-color: #f59e0b;
  color: #fef08a;
  font-weight: 600;
}
.raise-hand-btn:disabled { opacity: .5; cursor: default; }

/* Messaggio speciale "alza la mano" in chat */
.msg-hand {
  background: #451a03;
  border-left: 3px solid #f59e0b;
  padding: 5px 10px;
  border-radius: 4px;
  margin: 4px 0;
  color: #fef3c7;
}

/* ===== Invitati modal (watch.php) ===== */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(2, 6, 23, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 220;
  padding: 20px;
}
.modal-overlay.open { display: flex; }

.modal-card {
  width: min(760px, 100%);
  max-height: 80vh;
  overflow: hidden;
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(2, 6, 23, 0.6);
  display: flex;
  flex-direction: column;
}

.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 16px;
  border-bottom: 1px solid #1e293b;
}
.modal-head h3 { font-size: 0.95rem; color: #e2e8f0; }

.modal-close {
  border: 1px solid #334155;
  background: #0f172a;
  color: #94a3b8;
  width: 30px;
  height: 30px;
  border-radius: 6px;
  cursor: pointer;
}
.modal-close:hover { color: #fff; border-color: #475569; }

.modal-body {
  padding: 14px 16px;
  overflow: auto;
  min-height: 0;
}

.modal-linkbox-row {
  margin-bottom: 16px;
}
.modal-label {
  display: block;
  font-size: 0.78rem;
  color: #94a3b8;
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.modal-invite-form {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-end;
  border: 1px solid #1e293b;
  background: #020617;
  border-radius: 8px;
  padding: 10px;
  margin-bottom: 10px;
}

.modal-add-btn {
  height: 38px;
  min-width: 106px;
}

.modal-status {
  font-size: 0.82rem;
  margin: 8px 0 12px;
  padding: 8px 10px;
  border-radius: 6px;
}

.modal-status.ok {
  background: rgba(22, 101, 52, 0.22);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: #86efac;
}

.modal-status.err {
  background: rgba(127, 29, 29, 0.25);
  border: 1px solid rgba(248, 113, 113, 0.4);
  color: #fca5a5;
}

.modal-invited-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.modal-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 12px 0 8px;
}

.modal-pager button:disabled {
  opacity: 0.45;
  cursor: default;
}

.modal-invited-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid #1e293b;
  border-radius: 8px;
  background: #0f172a;
}

.modal-invited-person strong {
  display: block;
  font-size: 0.87rem;
  color: #e2e8f0;
}

.modal-invited-person {
  cursor: pointer;
}

.modal-invited-person:hover strong,
.modal-invited-person:hover small {
  color: #bfdbfe;
}

.modal-invited-person small {
  display: block;
  font-size: 0.77rem;
  color: #94a3b8;
  margin-top: 2px;
}

.participant-state-row {
  margin-top: 7px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.participant-pill {
  border: 1px solid #334155;
  color: #94a3b8;
  font-size: 0.68rem;
  border-radius: 999px;
  padding: 2px 8px;
  background: #0b1220;
}

.participant-pill.is-on {
  border-color: #16a34a;
  color: #bbf7d0;
  background: rgba(22, 163, 74, 0.15);
}

.participant-pill-danger.is-on {
  border-color: #ef4444;
  color: #fecaca;
  background: rgba(127, 29, 29, 0.3);
}

.modal-copy-person {
  min-width: 96px;
  text-align: center;
}

.modal-remove-person {
  min-width: 86px;
  color: #fca5a5;
  border-color: #7f1d1d;
  background: rgba(127, 29, 29, 0.15);
}
.modal-remove-person:hover {
  color: #fecaca;
  border-color: #b91c1c;
  background: rgba(127, 29, 29, 0.3);
}

.modal-item-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.modal-toggle-state {
  min-width: 86px;
}

.modal-send-person {
  min-width: 132px;
  background: #14532d;
  border-color: #166534;
  color: #bbf7d0;
}

.modal-send-person:hover {
  background: #166534;
  border-color: #16a34a;
  color: #dcfce7;
}

.modal-send-person.sending {
  background: #1e293b;
  border-color: #334155;
  color: #cbd5e1;
}

.modal-send-person.sent {
  background: #7f1d1d;
  border-color: #b91c1c;
  color: #fecaca;
}

.modal-send-person:disabled {
  cursor: default;
  opacity: 0.9;
}

.is-hidden {
  display: none !important;
}

.modal-empty {
  color: #94a3b8;
  font-size: 0.85rem;
}

  .modal-send-all-row {
    margin-top: 14px;
    padding-top: 12px;
    border-top: 1px solid #1e293b;
    display: flex;
    justify-content: flex-end;
  }

/* ===== Dashboard calendar ===== */
.dashboard-calendar-wrap {
  margin-bottom: 14px;
}

.dashboard-calendar {
  width: min(100%, 680px);
  background: #0b1220;
  border: 1px solid #1e293b;
  border-radius: 14px;
  padding: clamp(10px, 2vw, 14px);
  margin: 0 auto;
  overflow: hidden;
}

.dashboard-calendar-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
}

.dashboard-calendar-head strong {
  color: #e2e8f0;
  font-size: 0.95rem;
  min-width: 0;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-calendar-weekdays,
.dashboard-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-calendar-weekdays {
  margin-bottom: 8px;
}

.dashboard-calendar-weekdays span {
  text-align: center;
  font-size: 0.75rem;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.cal-cell {
  border: 1px solid #1e293b;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  min-height: 44px;
  padding: 6px;
  cursor: pointer;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.cal-cell.is-empty {
  opacity: 0.35;
  cursor: default;
}

.cal-cell.has-events {
  border-color: #2563eb;
  background: #0a1a33;
}

.cal-cell.today .cal-day {
  background: #16a34a;
  color: #fff;
  border-radius: 50%;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
}

.cal-cell.active {
  border-color: #60a5fa;
  box-shadow: 0 0 0 1px #60a5fa inset;
}

.cal-day {
  font-size: 0.86rem;
}

.cal-count {
  align-self: flex-end;
  font-size: 0.72rem;
  background: #1e3a8a;
  color: #bfdbfe;
  border-radius: 10px;
  padding: 1px 7px;
}

.dashboard-calendar-foot {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.calendar-empty-hint {
  color: #64748b;
  margin-top: 12px;
  font-size: 0.85rem;
}

.dashboard-view-switch {
  display: flex;
  gap: 8px;
  margin-bottom: 10px;
}

.calendar-view-switch {
  display: flex;
  gap: 6px;
}

.dashboard-view-switch .btn.active,
.calendar-view-switch .btn.active {
  background: #1e3a8a;
  border-color: #3b82f6;
  color: #dbeafe;
}

.calendar-day-agenda {
  margin-top: 10px;
  border-top: 1px solid #1e293b;
  border-radius: 0;
  padding: 10px 0 0;
  background: transparent;
}

.calendar-day-agenda h4 {
  margin: 0 0 8px;
  font-size: 0.86rem;
  color: #e2e8f0;
}

.agenda-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: #cbd5e1;
  border: 1px solid #1e293b;
  border-radius: 8px;
  padding: 8px 10px;
  margin-bottom: 6px;
}

button.agenda-item {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  background: transparent;
  box-sizing: border-box;
}

.agenda-item:hover {
  background: #1e293b;
  border-color: #334155;
}

.agenda-item strong {
  font-size: 0.84rem;
  font-weight: 600;
}

.agenda-item small {
  color: #94a3b8;
  font-size: 0.75rem;
}

.calendar-agenda-empty {
  margin: 0;
  font-size: 0.82rem;
  color: #64748b;
}

.pager-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px 0 6px;
}

.pager-info {
  font-size: 0.82rem;
  color: #94a3b8;
}

.btn.disabled {
  pointer-events: none;
  opacity: 0.45;
}

.dash-modal-overlay {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 420px at 0% 0%, rgba(91, 95, 199, 0.26), transparent 58%),
    radial-gradient(780px 360px at 100% 100%, rgba(56, 189, 248, 0.2), transparent 60%),
    rgba(2, 6, 23, 0.76);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 14px;
  z-index: 260;
}

.dash-modal-overlay.open { display: flex; }

.dash-modal-card {
  width: min(980px, 100%);
  height: min(92vh, 920px);
  background: #f8fbff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.32);
  animation: webinarModalIn .22s ease;
}

@keyframes webinarModalIn {
  from { opacity: 0; transform: translateY(8px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.dash-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  border-bottom: 1px solid #d7e3f4;
  background: linear-gradient(180deg, #ffffff 0%, #f4f8ff 100%);
}

.dash-modal-head h3 {
  margin: 0;
  font-size: 0.95rem;
  color: #1e293b;
}

.dash-modal-close {
  border: 1px solid #c8d6ea;
  background: #ffffff;
  color: #475569;
  border-radius: 6px;
  width: 30px;
  height: 30px;
  cursor: pointer;
}

.dash-modal-close:hover {
  color: #0f172a;
  border-color: #94a3b8;
}

#webinarModalFrame {
  border: 0;
  width: min(980px, 100%);
  height: min(92vh, 920px);
  border-radius: 16px;
  background: #f6f9ff;
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.32);
  animation: webinarModalIn .22s ease;
}

.webinar-modal-page {
  padding: 16px;
}

body.admin.webinar-modal-page {
  min-height: 100vh;
  overflow-y: auto;
  background: #f6f9ff;
  color: #1d2433;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.wiz-modal-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

.wiz-title {
  margin: 0;
  font-size: 1.12rem;
  letter-spacing: 0.01em;
}

/* ===== New webinar wizard ===== */
.wiz-wrap {
  background: #ffffff;
  border: 1px solid #d7e3f4;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 12px 36px rgba(30, 41, 59, 0.14);
}

/* ── Wizard: Step 3 partecipanti (layout coerente) ─────────────────────── */
.nw-step3-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 10px;
  min-height: 0;
}

.nw-main-tab-panel { display: none; min-height: 0; }
.nw-main-tab-panel.is-active { display: block; }

.nw-step3-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
  margin-top: 10px;
}

.nw-panel {
  border: 1px solid #e2e8f0;
  background: #f8fbff;
  border-radius: 14px;
  padding: 12px;
}

.nw-rubrica-source-block,
.nw-added-participants-block {
  border: 1px solid #e2e8f0;
  background: #ffffff;
  border-radius: 14px;
  padding: 12px;
}

.nw-added-participants-block {
  margin-top: 12px;
}

.nw-added-participants-block .nw-rubrica-heading {
  margin-bottom: 8px;
}

.nw-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 2px 2px 10px;
  border-bottom: 1px solid #e2e8f0;
  margin-bottom: 10px;
}
.nw-panel-head strong { font-size: 0.95rem; color: #0f172a; }
.nw-panel-head small { color: #64748b; font-size: 0.8rem; }

.nw-tabs {
  display: flex;
  gap: 8px;
  margin: 10px 0;
}
.nw-tab {
  border: 1px solid #d0dceb;
  border-radius: 999px;
  background: #ffffff;
  color: #64748b;
  padding: 7px 12px;
  font-size: 0.82rem;
  cursor: pointer;
}
.nw-tab.is-active {
  background: #0f172a;
  color: #ffffff;
  border-color: #0f172a;
}
.nw-tab-panel { display: none; }
.nw-tab-panel.is-active { display: block; }

.nw-inline-form {
  display: grid;
  grid-template-columns: 1fr 1fr 1.2fr auto;
  gap: 10px;
  align-items: end;
}

.nw-inline-form--manual-only {
  grid-template-columns: 1fr 1fr 1.2fr;
}

.nw-manual-add-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
  width: 100%;
  margin-bottom: 14px;
}

.btn.nw-add-participant-main {
  width: 100%;
  justify-content: center;
  padding: 12px 16px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: 10px;
  border: 1px solid #047857;
  color: #fff;
  background: linear-gradient(180deg, #10b981 0%, #059669 48%, #047857 100%);
  box-shadow: 0 2px 10px rgba(5, 99, 81, 0.28);
}

.btn.nw-add-participant-main:hover {
  filter: brightness(1.06);
  box-shadow: 0 4px 14px rgba(5, 99, 81, 0.34);
}

.btn.nw-add-participant-main:active {
  filter: brightness(0.95);
}

.nw-rubrica-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  margin-top: 4px;
  padding: 12px 14px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
  cursor: pointer;
  font: inherit;
  text-align: left;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.nw-rubrica-toggle:hover {
  background: #f1f5f9;
  border-color: #94a3b8;
}

.nw-rubrica-toggle.is-open {
  border-bottom-left-radius: 0;
  border-bottom-right-radius: 0;
  border-bottom-color: transparent;
  background: #fff;
}

.nw-rubrica-toggle-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.nw-rubrica-toggle-label {
  font-weight: 600;
  font-size: 0.95rem;
  color: #0f172a;
}

.nw-rubrica-toggle-hint {
  font-size: 0.78rem;
  color: #64748b;
  font-weight: 400;
}

.nw-rubrica-toggle-arrow {
  flex-shrink: 0;
  width: 0;
  height: 0;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 8px solid #475569;
  margin-top: 2px;
  transition: transform 0.32s ease;
}

.nw-rubrica-toggle.is-open .nw-rubrica-toggle-arrow {
  transform: rotate(180deg);
}

.nw-rubrica-collapsible {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.42s ease;
  border: 1px solid #cbd5e1;
  border-top: none;
  border-radius: 0 0 10px 10px;
  background: #fff;
}

.nw-rubrica-collapsible.is-open {
  max-height: min(52vh, 560px);
}

.nw-rubrica-collapsible-inner {
  padding: 10px 14px 14px;
}

.nw-rubrica-search-field {
  margin-top: 0;
}

.webinar-modal-page .nw-rubrica-collapsible .nw-list {
  max-height: 32vh;
}

.nw-list {
  margin-top: 10px;
}

.nw-rubrica-heading {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 600;
  color: #0f172a;
}

.webinar-modal-page select.nw-select,
select.nw-select {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  min-height: 42px;
  padding: 8px 12px;
  font-size: 0.9rem;
  line-height: 1.35;
  color: #0f172a;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  appearance: auto;
}

.webinar-modal-page .nw-list {
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
}

.webinar-modal-page .nw-participants {
  max-height: 46vh;
  overflow: auto;
  padding-right: 4px;
}

.webinar-modal-page .nw-participants-table-wrap {
  max-height: 38vh;
  overflow: auto;
}

.nw-group-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

@media (max-width: 860px) {
  .nw-step3-grid { grid-template-columns: 1fr; }
  .nw-inline-form { grid-template-columns: 1fr; }
  .nw-inline-form--manual-only { grid-template-columns: 1fr; }
}

.webinar-wizard-shell {
  width: min(920px, 100%);
  margin: 0 auto;
}

.webinar-wizard-shell.is-modal {
  width: 100%;
  /* The iframe itself is the card — strip the inner box */
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 24px 28px;
}

.wiz-head {
  margin: 0 0 18px;
}

.wiz-track {
  height: 6px;
  border-radius: 999px;
  background: #d7e3f4;
  overflow: hidden;
}

.wiz-track-bar {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, #2563eb, #14b8a6);
  transition: width .25s ease;
}

.wiz-steps {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.wiz-step {
  border: 1px solid #d0dceb;
  border-radius: 999px;
  background: #f8fbff;
  color: #64748b;
  padding: 6px 12px;
  font-size: 0.8rem;
  cursor: pointer;
}

.wiz-step.active {
  border-color: #2563eb;
  color: #1d4ed8;
  background: #eaf2ff;
}

.wiz-form {
  position: relative;
}

.wiz-panel {
  display: none;
  animation: wizFade .24s ease;
}

.wiz-panel.active {
  display: block;
}

.wiz-panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  color: #1f2937;
}

.wiz-sub {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.86rem;
}

.wiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 18px;
  flex-wrap: wrap;
}

.wiz-summary {
  border: 1px solid #d7e3f4;
  border-radius: 10px;
  background: #f8fbff;
  padding: 12px;
  display: grid;
  gap: 10px;
}

.wiz-summary div {
  display: grid;
  gap: 4px;
}

.wiz-summary span {
  color: #64748b;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.wiz-summary strong {
  color: #1e293b;
  font-size: 0.9rem;
  word-break: break-word;
}

.nw-inline-note {
  font-weight: 400;
  font-size: 0.85rem;
}

.nw-invite-form-grid {
  align-items: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.nw-field-grow-1 {
  margin: 0;
  flex: 1;
  min-width: 140px;
}

.nw-field-grow-2 {
  margin: 0;
  flex: 2;
  min-width: 220px;
}

.nw-add-btn {
  margin-bottom: 2px;
}

.nw-participant-msg {
  font-size: 0.82rem;
  min-height: 1.4em;
  margin: 4px 0 8px;
}

.nw-datetime-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.nw-datetime-field {
  margin: 0;
}

.webinar-wizard-shell .field input,
.webinar-wizard-shell .field textarea {
  border: 1px solid #d0dceb;
  border-radius: 10px;
  background: #ffffff;
  color: #1f2937;
  min-height: 42px;
  padding: 10px 12px;
}

.webinar-wizard-shell .field input:focus,
.webinar-wizard-shell .field textarea:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.webinar-wizard-shell .field textarea {
  min-height: 110px;
  resize: vertical;
}

@keyframes wizFade {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Guest join page ===== */
.guest-join {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #0f172a;
  padding: 24px;
}
.guest-join-card {
  background: #1e293b;
  border: 1px solid #334155;
  border-radius: 16px;
  padding: 48px 40px;
  max-width: 440px;
  width: 100%;
  text-align: center;
}
.guest-join-icon  { font-size: 3rem; margin-bottom: 14px; }
.guest-join-card h2 { font-size: 1.3rem; margin: 0 0 8px; color: #f1f5f9; }
.guest-join-sub   { color: #94a3b8; font-size: 0.88rem; margin: 0 0 22px; }
.guest-join-label { color: #64748b; font-size: 0.8rem; margin: 0 0 10px; }
.guest-join-or    { color: #64748b; font-size: 0.8rem; margin: 6px 0 14px; }

.guest-name-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
  margin-bottom: 6px;
}
.guest-pill {
  background: #0f172a;
  border: 1px solid #334155;
  color: #cbd5e1;
  border-radius: 20px;
  padding: 6px 16px;
  cursor: pointer;
  font-size: 0.85rem;
  transition: background .15s, border-color .15s, color .15s;
}
.guest-pill:hover  { background: #1e293b; border-color: #6366f1; color: #f1f5f9; }
.guest-pill.active { background: #312e81; border-color: #6366f1; color: #c7d2fe; }

/* ===== Responsive adjustments ===== */
@media (max-width: 900px) {
  body.admin {
    padding: 20px 14px;
  }

  .admin-header {
    flex-wrap: wrap;
    gap: 10px;
    align-items: center;
  }

  .tab-nav {
    overflow-x: auto;
    white-space: nowrap;
  }

  .meeting-card {
    padding: 14px;
  }

  .meeting-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .header {
    padding: 10px 12px;
  }

  .header-center h2 {
    font-size: 0.95rem;
  }

  .header-right {
    gap: 6px;
  }

  .btn-header-action {
    font-size: 0.72rem;
    padding: 4px 8px;
  }

  .chat {
    width: 100%;
    right: -100%;
  }

  .dashboard-calendar-head {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .dashboard-calendar-head strong {
    text-align: center;
  }

  .dashboard-view-switch {
    width: 100%;
  }

  .dashboard-view-switch .btn {
    flex: 1;
    justify-content: center;
  }

  .dash-modal-card {
    height: 94vh;
  }

  .webinar-modal-page {
    padding: 10px;
  }

  #webinarModalFrame {
    width: 100%;
    height: 94vh;
    border-radius: 12px;
  }

  .wiz-modal-topbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .wiz-modal-topbar .btn {
    width: 100%;
    justify-content: center;
  }

  .dashboard-calendar-weekdays,
  .dashboard-calendar-grid {
    gap: 4px;
  }

  .cal-cell {
    aspect-ratio: 1 / 1;
    min-height: 0;
    padding: 5px;
  }

  .calendar-nav-label {
    display: none;
  }

  .hero,
  .features-section,
  .login-section {
    padding-left: 14px;
    padding-right: 14px;
  }

  .hero p,
  .feature-card p,
  .meeting-desc,
  .msg,
  .error-box p {
    text-align: left;
  }

  .login-box,
  .guest-join-card,
  .nw-card,
  .modal-card {
    padding-left: 14px;
    padding-right: 14px;
  }

  .modal-invited-item {
    flex-direction: column;
    align-items: flex-start;
  }

  .modal-item-actions {
    width: 100%;
    justify-content: flex-end;
  }

  .pager-row {
    gap: 8px;
  }

  .wiz-wrap {
    padding: 12px;
  }

  .wiz-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }

  .wiz-actions .btn {
    width: 100%;
    justify-content: center;
  }

  .nw-datetime-grid {
    grid-template-columns: 1fr;
  }
}

/* =============================================================
   TEAMS-LIKE DASHBOARD LAYOUT
   ============================================================= */

body.admin {
  --teams-accent: #5b5fc7;
  --teams-accent-soft: #ececff;
  --teams-bg: #eef1f8;
  --teams-panel: #ffffff;
  --teams-panel-soft: #f6f8fc;
  --teams-border: #dde2ef;
  --teams-text: #1d2433;
  --teams-muted: #677188;
  --teams-shadow: 0 10px 28px rgba(21, 33, 58, 0.08);
  --mobile-shell-height: 100vh;
  padding: 0;
  min-height: var(--mobile-shell-height);
  background:
    radial-gradient(1200px 500px at 10% -10%, rgba(91, 95, 199, 0.2), transparent 55%),
    radial-gradient(900px 460px at 100% 0%, rgba(35, 130, 233, 0.14), transparent 58%),
    var(--teams-bg);
  color: var(--teams-text);
  overflow: hidden;
}

@supports (height: 100dvh) {
  body.admin {
    --mobile-shell-height: 100dvh;
  }
}

body.admin .teams-shell {
  height: var(--mobile-shell-height);
  display: grid;
  grid-template-columns: 76px 1fr;
}

body.admin .teams-sidebar {
  height: 100vh;
  background: #111827;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  padding: 16px 10px;
}

body.admin .teams-sidebar-brand {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5b5fc7, #4780ff);
  box-shadow: 0 10px 20px rgba(71, 128, 255, 0.3);
}

body.admin .teams-sidebar-nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

body.admin .teams-sidebar-item {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  color: #9ca3af;
  text-decoration: none;
  font-size: 1.15rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: background 0.16s ease, color 0.16s ease, transform 0.16s ease;
}

body.admin .sidebar-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  padding: 0 5px;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  border: 2px solid #111827;
}

body.admin .teams-sidebar-item::after {
  content: attr(data-tooltip);
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%) scale(0.92);
  transform-origin: left center;
  background: #111827;
  color: #f3f4f6;
  border-radius: 8px;
  padding: 4px 8px;
  font-size: 0.72rem;
  letter-spacing: 0.01em;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
  white-space: nowrap;
  z-index: 20;
}

body.admin .teams-sidebar-item:hover::after {
  opacity: 1;
  transform: translateY(-50%) scale(1);
}

body.admin .teams-sidebar-item:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #f9fafb;
}

body.admin .teams-sidebar-item.is-active {
  color: #f9faff;
  background: rgba(91, 95, 199, 0.35);
  box-shadow: inset 0 0 0 1px rgba(137, 140, 223, 0.45);
}

/* Idle hint: dopo 30s senza interazione diretta, accanto a Tutorial (sidebar.php) */
body.admin .sidebar-idle-tutorial-balloon {
  display: none;
  position: fixed;
  z-index: 2050;
  max-width: 280px;
  padding: 14px 40px 14px 14px;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.18);
}

body.admin .sidebar-idle-tutorial-balloon.is-visible {
  display: block;
}

body.admin .sidebar-idle-tutorial-balloon__close {
  position: absolute;
  top: 6px;
  right: 8px;
  width: 32px;
  height: 32px;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  color: #64748b;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
}

body.admin .sidebar-idle-tutorial-balloon__close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #1e293b;
}

body.admin .sidebar-idle-tutorial-balloon__text {
  margin: 0 0 10px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: #334155;
}

body.admin .sidebar-idle-tutorial-balloon__cta {
  display: inline-block;
  width: auto;
}

body.admin .teams-stage {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

body.admin .teams-stage__video {
  z-index: 0;
}

body.admin .teams-topbar,
body.admin .teams-content-grid {
  position: relative;
  z-index: 1;
}

body.admin .teams-topbar {
  height: 72px;
  border-bottom: 1px solid var(--teams-border);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: center;
  padding: 14px 24px;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.6) inset;
}

body.admin .teams-topbar h2 {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #2a3347;
}

body.admin .teams-topbar-profile {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.84rem;
}

body.admin .teams-profile-dot {
  color: #22c55e;
  font-size: 0.75rem;
}

body.admin .teams-profile-name {
  font-weight: 600;
  color: #2a3347;
}

body.admin .teams-profile-logout {
  text-decoration: none;
  color: var(--teams-muted);
}

body.admin .teams-profile-logout:hover {
  color: #1f2937;
}

body.admin .teams-content-grid {
  flex: 1;
  min-height: 0;
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 16px;
  padding: 16px;
}

body.admin .teams-secondary-panel {
  background: color-mix(in srgb, var(--teams-panel-soft) 92%, transparent);
  border: 1px solid var(--teams-border);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  min-height: 0;
  backdrop-filter: blur(10px);
}

body.admin .teams-secondary-topbar {
  padding: 16px;
  border-bottom: 1px solid var(--teams-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin .teams-secondary-topbar h2 {
  margin: 0;
  font-size: 1rem;
  flex: 1 1 auto;
  min-width: 0;
}

body.admin .teams-secondary-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  max-width: 100%;
}

body.admin .teams-chip-btn {
  border: 1px solid rgba(91, 95, 199, 0.22);
  background: var(--teams-accent-soft);
  color: var(--teams-accent);
  border-radius: 999px;
  font-size: 0.74rem;
  padding: 6px 10px;
  cursor: pointer;
  max-width: 100%;
}

body.admin .teams-chip-btn.teams-chip-ghost {
  background: #ffffff;
  color: var(--teams-muted);
  border-color: var(--teams-border);
}

body.admin .teams-secondary-list {
  overflow: auto;
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.admin .teams-secondary-item {
  text-decoration: none;
  border: 1px solid transparent;
  border-radius: 12px;
  padding: 10px;
  color: inherit;
  display: flex;
  gap: 10px;
  align-items: center;
  transition: background 0.15s ease, border-color 0.15s ease;
  width: 100%;
  text-align: left;
  cursor: pointer;
  background: transparent;
}

body.admin .teams-secondary-item:hover {
  background: #ffffff;
  border-color: var(--teams-border);
}

body.admin .teams-secondary-item.is-active {
  background: #ffffff;
  border-color: rgba(91, 95, 199, 0.3);
}

/* ── Rubrica: drag&drop gruppi/cartelle ────────────────────────────────── */
body.admin .contacts-group-item.is-drop-target {
  outline: 2px solid rgba(37, 99, 235, 0.55);
  background: rgba(37, 99, 235, 0.06);
}
body.admin .contacts-group-item.is-drop-done {
  outline: 2px solid rgba(34, 197, 94, 0.55);
  background: rgba(34, 197, 94, 0.06);
}
body.admin .contact-card.is-dragging {
  opacity: 0.72;
  transform: scale(0.99);
}

body.admin .teams-secondary-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: linear-gradient(140deg, #6570d8, #6d9efb);
  color: #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

body.admin .teams-secondary-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

body.admin .teams-secondary-meta strong {
  font-size: 0.86rem;
  color: #253046;
  line-height: 1.2;
}

body.admin .teams-secondary-meta small {
  font-size: 0.74rem;
  color: var(--teams-muted);
}

body.admin .teams-secondary-empty {
  border-radius: 12px;
  border: 1px dashed var(--teams-border);
  padding: 14px;
  font-size: 0.82rem;
  color: var(--teams-muted);
  background: #ffffff;
}

body.admin .teams-main-panel {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 0;
}

body.admin .teams-main-inner {
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  background: var(--teams-panel);
  border: 1px solid var(--teams-border);
  border-radius: 16px;
  box-shadow: var(--teams-shadow);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

body.admin .teams-main-hero {
  border: 1px solid rgba(91, 95, 199, 0.14);
  border-radius: 14px;
  padding: 18px;
  background: linear-gradient(115deg, #f8f9ff 0%, #f4f8ff 55%, #f9fbff 100%);
}

body.admin .teams-overline {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.69rem;
  font-weight: 700;
  color: #7b84a1;
  margin-bottom: 8px;
}

body.admin .teams-main-hero h1 {
  font-size: clamp(1.2rem, 1.6vw, 1.7rem);
  margin: 0 0 8px;
  color: #242f45;
}

body.admin .teams-main-hero p {
  margin: 0;
  font-size: 0.9rem;
  color: #596480;
  max-width: 70ch;
}

body.admin .teams-action-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

body.admin .teams-action-card {
  border-radius: 14px;
  border: 1px solid var(--teams-border);
  padding: 16px;
  background: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.admin .teams-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  background: linear-gradient(150deg, #eef2ff, #e2edff);
}

body.admin .teams-action-card h3 {
  font-size: 1rem;
  margin: 0;
  color: #232d43;
}

body.admin .teams-action-card p {
  margin: 0;
  color: #647189;
  font-size: 0.85rem;
  line-height: 1.45;
}

body.admin .teams-cta-btn {
  align-self: flex-start;
  border-radius: 999px;
  padding: 9px 16px;
  background: var(--teams-accent);
}

body.admin .teams-cta-btn:hover {
  background: #4d52be;
}

body.admin .teams-cta-secondary {
  background: #2f6fd9;
}

body.admin .teams-cta-secondary:hover {
  background: #295fc0;
}

body.admin .teams-empty-state {
  min-height: 200px;
  border: 1px dashed var(--teams-border);
  border-radius: 14px;
  background: #fafbff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  padding: 20px;
}

body.admin .teams-empty-illustration {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: linear-gradient(135deg, #f8d8ff, #d8e2ff);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

body.admin .teams-empty-state h2 {
  margin: 0;
  font-size: 1.1rem;
  color: #253149;
}

body.admin .teams-empty-state p {
  margin: 0;
  color: #66728d;
  font-size: 0.86rem;
  max-width: 52ch;
}

body.admin .teams-dashboard-workspace {
  border: 1px solid var(--teams-border);
  background: #ffffff;
  border-radius: 14px;
  padding: 14px;
}

body.admin .messenger-shell,
body.admin .contacts-shell {
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 520px;
}

/* Menu azioni riga: niente overflow hidden sul wrapper; z-index sopra le altre righe */
body.admin .contacts-table-wrap {
  overflow: visible;
  position: relative;
  z-index: 1;
}

body.admin .messenger-head h1 {
  margin: 0;
  font-size: 1.3rem;
  color: #23314a;
}

body.admin .messenger-head p {
  margin: 6px 0 0;
  font-size: 0.86rem;
  color: #667188;
}

body.admin .messenger-create-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.admin .messenger-create-form {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

body.admin .messenger-create-form input {
  flex: 1;
  min-width: 220px;
  border: 1px solid var(--teams-border);
  border-radius: 10px;
  background: #fff;
  color: #1d2433;
}

body.admin .messenger-note {
  margin: 0;
  font-size: 0.78rem;
  color: #7b84a1;
}

body.admin .messenger-mode-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.82rem;
  color: #334155;
  align-items: center;
}

body.admin .messenger-mode-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

body.admin .messenger-create-fields {
  flex: 1 1 100%;
  min-width: 0;
}

body.admin .messenger-create-textarea {
  width: 100%;
  min-height: 72px;
  box-sizing: border-box;
  padding: 8px 10px;
  border: 1px solid var(--teams-border);
  border-radius: 10px;
  background: #fff;
  color: #1d2433;
  font-family: inherit;
  font-size: 0.88rem;
}

body.admin .messenger-group-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

body.admin .messenger-group-pill {
  display: inline-block;
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: #ede9fe;
  color: #5b21b6;
  padding: 2px 7px;
  border-radius: 999px;
  margin-right: 6px;
  vertical-align: middle;
  font-weight: 600;
}

body.admin .messenger-pending {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

body.admin .messenger-pending-title {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #6b7280;
}

body.admin .messenger-pending-item {
  border: 1px dashed var(--teams-border);
  border-radius: 10px;
  background: #fff;
  padding: 8px 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

body.admin .messenger-pending-meta {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

body.admin .messenger-pending-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

body.admin .messenger-pending-actions .btn {
  padding: 6px 10px;
  font-size: 0.74rem;
}

body.admin .messenger-pending-item strong {
  font-size: 0.83rem;
  color: #1f2937;
}

body.admin .messenger-pending-item small {
  font-size: 0.74rem;
  color: #6b7280;
}

body.admin .messenger-room {
  flex: 1;
  min-height: 0;
  border: 1px solid var(--teams-border);
  border-radius: 14px;
  background: #f8fafd;
  display: flex;
  flex-direction: column;
}

body.admin .messenger-room-head {
  padding: 12px 14px;
  border-bottom: 1px solid var(--teams-border);
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

body.admin .messenger-room-head h2 {
  margin: 0;
  font-size: 1rem;
  color: #23314a;
}

body.admin .messenger-room-head small {
  color: #677188;
  font-size: 0.8rem;
}

body.admin .messenger-stream {
  flex: 1;
  overflow: auto;
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

body.admin .msg-bubble {
  max-width: min(92%, 820px);
  border-radius: 12px;
  border: 1px solid var(--teams-border);
  background: #fff;
  padding: 10px 12px;
}

body.admin .msg-bubble header {
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 0.72rem;
  color: #6b748b;
  margin-bottom: 4px;
}

body.admin .msg-bubble p {
  margin: 0;
  font-size: 0.86rem;
  color: #202941;
  white-space: pre-wrap;
}

body.admin .msg-bubble.is-organizer {
  margin-left: auto;
  background: #eef0ff;
  border-color: #cfd7ff;
}

body.admin .msg-bubble.is-self {
  margin-right: auto;
  background: #ffffff;
  border-color: var(--teams-border);
}

body.admin .msg-bubble.is-system {
  align-self: center;
  max-width: 100%;
  background: #f4f6fa;
  border-style: dashed;
}

body.admin .msg-bubble.is-call {
  border-color: #f59e0b;
  background: linear-gradient(135deg, #fff8eb, #fffefb);
  box-shadow: 0 8px 24px rgba(245, 158, 11, 0.14);
}

/* ── Bottone elimina messaggio ─────────────────────────────────────── */
body.admin .msg-delete-btn {
  display: none;
  margin-left: auto;
  padding: 0 4px;
  background: none;
  border: none;
  border-radius: 4px;
  color: #94a3b8;
  font-size: 1.1rem;
  line-height: 1;
  cursor: pointer;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

body.admin .msg-bubble:hover .msg-delete-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

body.admin .msg-delete-btn:hover {
  color: #ef4444;
  background: #fee2e2;
}

/* Dropdown contestuale elimina */
body.admin .msg-delete-menu {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 200;
  background: #ffffff;
  border: 1px solid var(--teams-border, #e2e8f0);
  border-radius: 8px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.14);
  min-width: 180px;
  overflow: hidden;
}

body.admin .msg-delete-menu button {
  display: block;
  width: 100%;
  padding: 9px 14px;
  background: none;
  border: none;
  text-align: left;
  font-size: 0.88rem;
  color: #1e293b;
  cursor: pointer;
  transition: background 0.12s;
}

body.admin .msg-delete-menu button:hover {
  background: #f1f5f9;
}

body.admin .msg-delete-menu button:last-child {
  color: #ef4444;
}

body.admin .msg-delete-menu button:last-child:hover {
  background: #fee2e2;
}

body.admin .msg-call-link {
  color: #b45309;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.incoming-call-toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  background: #ffffff;
  border: 1px solid #fcd34d;
  border-radius: 12px;
  box-shadow: 0 16px 34px rgba(15, 23, 42, 0.18);
  padding: 10px 12px;
  min-width: 280px;
  max-width: min(92vw, 380px);
  display: flex;
  align-items: center;
  gap: 10px;
  transform: translateY(18px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.incoming-call-toast.is-open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.incoming-call-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #f59e0b;
  box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  animation: callPulse 1.25s infinite;
  flex-shrink: 0;
}

.incoming-call-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.incoming-call-copy strong {
  font-size: 0.85rem;
  color: #7c2d12;
}

.incoming-call-copy small {
  font-size: 0.76rem;
  color: #92400e;
}

@keyframes callPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0.55);
  }
  70% {
    box-shadow: 0 0 0 10px rgba(245, 158, 11, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(245, 158, 11, 0);
  }
}

body.admin .messenger-compose {
  display: flex;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--teams-border);
  background: #fff;
}

body.admin .messenger-compose input {
  flex: 1;
  border: 1px solid var(--teams-border);
  border-radius: 10px;
  background: #fff;
  color: #1d2433;
}

body.admin .contacts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 12px;
}

body.admin .contact-card {
  border: 1px solid var(--teams-border);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  transition: box-shadow .15s;
  position: relative;
}

body.admin .contact-card:hover {
  box-shadow: 0 4px 14px rgba(91, 95, 199, 0.10);
}

.contact-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--teams-accent-soft, #ececff);
  color: var(--teams-accent, #5b5fc7);
  font-weight: 700;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.contact-group-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 14px;
  height: 14px;
  border-radius: 999px;
  border: 1px solid rgba(15, 23, 42, 0.18);
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

body.admin .contact-card strong {
  font-size: 0.92rem;
  color: #1f2940;
}

body.admin .contact-card small,
body.admin .contact-card .contact-access {
  color: #68748c;
  font-size: 0.78rem;
}

body.admin .contact-open-chat {
  align-self: flex-start;
  border-radius: 999px;
  margin-top: 4px;
}

/* ── Nuovo Contatto Modal body ── */
.contact-modal-body {
  padding: 20px 24px 24px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.nc-msg {
  font-size: 0.82rem;
  min-height: 1.4em;
}
.nc-msg--ok  { color: #16a34a; }
.nc-msg--err { color: #dc2626; }

/* ── Day Agenda Modal ── */
.dash-modal-card--sm {
  width: min(520px, 100%);
  height: auto;
  max-height: min(80vh, 640px);
}

.day-agenda-body {
  flex: 1;
  overflow-y: auto;
  padding: 12px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.day-agenda-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid var(--teams-border, #dde2ef);
  text-decoration: none;
  transition: background .12s, box-shadow .12s;
}

button.day-agenda-item {
  width: 100%;
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-sizing: border-box;
}

.day-agenda-item:hover {
  background: #eef1fb;
  box-shadow: 0 2px 8px rgba(91,95,199,.08);
}

.day-agenda-item-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.day-agenda-item-info strong {
  font-size: 0.92rem;
  color: #1d2433;
}

.day-agenda-item-info small {
  font-size: 0.78rem;
  color: #677188;
}

.agenda-badge {
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 4px;
  padding: 2px 8px;
  white-space: nowrap;
}
.agenda-badge-live  { background: #dcfce7; color: #15803d; }
.agenda-badge-draft { background: #dbeafe; color: #1d4ed8; }
.agenda-badge-done  { background: #f1f5f9; color: #64748b; }

.day-agenda-footer {
  padding: 12px 16px;
  border-top: 1px solid var(--teams-border, #dde2ef);
}

.day-agenda-footer .btn {
  width: 100%;
  justify-content: center;
  text-align: center;
}

.calendar-event-choice-sub {
  margin: 0 0 16px;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.45;
}

.calendar-event-choice-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.calendar-event-choice-actions .btn {
  width: 100%;
  justify-content: center;
}

.dash-modal-card--event-choice {
  max-height: min(88vh, 720px);
}

.calendar-event-choice-body {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.calendar-event-details {
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
  background: #f8fafc;
}

.calendar-event-details-loading {
  margin: 0;
  font-size: 0.88rem;
  color: #64748b;
}

.calendar-event-details-inner[hidden] {
  display: none !important;
}

.cal-ev-meta,
.cal-ev-room {
  margin: 0 0 8px;
  font-size: 0.88rem;
  color: #475569;
}

.cal-ev-desc {
  margin: 0 0 10px;
  font-size: 0.86rem;
  color: #334155;
  line-height: 1.45;
  white-space: pre-wrap;
}

.cal-ev-invites-title {
  margin: 10px 0 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: #0f172a;
}

.cal-ev-invites-list {
  margin: 0;
  padding-left: 18px;
  font-size: 0.84rem;
  color: #334155;
  max-height: 28vh;
  overflow-y: auto;
}

body.admin .messenger-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

body.admin .msg {
  background: #ecfdf3;
  border-left-color: #16a34a;
  color: #166534;
}

body.admin .tab-nav {
  border-bottom: 1px solid var(--teams-border);
}

body.admin .tab-btn {
  color: #6a758f;
}

body.admin .tab-btn:hover {
  color: #2f3a52;
}

body.admin .tab-btn.active {
  color: #202a3f;
  border-bottom-color: var(--teams-accent);
}

body.admin .tab-count {
  background: #eef1fb;
  color: #596482;
}

body.admin .meeting-card {
  background: #f8f9fd;
  border: 1px solid var(--teams-border);
}

body.admin .meeting-card:hover {
  background: #f2f5fb;
}

body.admin .meeting-title {
  color: #1f293d;
}

body.admin .meeting-meta,
body.admin .meeting-desc,
body.admin .pager-info,
body.admin .calendar-empty-hint,
body.admin .calendar-agenda-empty,
body.admin .agenda-item small {
  color: #667188;
}

body.admin .dashboard-calendar,
body.admin .agenda-item,
body.admin .cal-cell,
body.admin .dash-modal-card,
body.admin .dash-modal-head,
body.admin #webinarModalFrame {
  background: #ffffff;
  border-color: var(--teams-border);
  color: #1d2433;
}

body.admin .agenda-item:hover {
  background: #f6f8fc;
}

body.admin .dashboard-calendar-head strong {
  color: var(--teams-text);
}

body.admin .dashboard-calendar-weekdays span {
  color: var(--teams-muted);
}

body.admin .calendar-day-agenda {
  background: transparent;
  border-color: var(--teams-border);
  color: var(--teams-text);
}

body.admin .calendar-day-agenda h4 {
  color: var(--teams-text);
}

body.admin .cal-cell.has-events {
  background: #f2f5ff;
  border-color: #b8c2f5;
}

body.admin .cal-count {
  background: #dbe4ff;
  color: #2c4184;
}

body.admin .dash-modal-close {
  background: #ffffff;
  color: #475569;
  border-color: var(--teams-border);
}

body.admin .dash-modal-close:hover {
  color: #1d2433;
  border-color: #94a3b8;
  background: #f1f5f9;
}

body.admin .dash-modal-head h3 {
  color: #1d2433;
}

/* ── Wizard (new_webinar) light-theme overrides ── */
body.admin .wiz-wrap {
  background: #ffffff;
  border-color: var(--teams-border);
}

/* Modal-specific: make the inner wizard element visually flush with the iframe */
body.admin.webinar-modal-page .wiz-wrap.webinar-wizard-shell.is-modal {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  margin: 0 auto !important;
  padding: 24px 28px !important;
}

body.admin .wiz-track {
  background: var(--teams-border);
}

body.admin .wiz-step {
  background: #f1f5f9;
  border-color: var(--teams-border);
  color: #475569;
}

body.admin .wiz-step.active {
  border-color: #16a34a;
  color: #15803d;
  background: #dcfce7;
}

body.admin .wiz-panel h3 {
  color: var(--teams-text);
  text-transform: none;
  letter-spacing: 0;
  font-size: 1.05rem;
}

body.admin .wiz-sub {
  color: var(--teams-muted);
}

body.admin .wiz-summary {
  background: #f8fafc;
  border-color: var(--teams-border);
}

body.admin .wiz-summary span {
  color: var(--teams-muted);
}

body.admin .wiz-summary strong {
  color: var(--teams-text);
}

body.admin .nw-card {
  background: #f8fafc;
  border-color: var(--teams-border);
}

body.admin .nw-textarea {
  background: #ffffff;
  color: var(--teams-text);
  border-color: var(--teams-border);
}

body.admin .nw-invite-form {
  background: #f8fafc;
}

body.admin .user-row {
  background: #f1f5f9;
}

body.admin .user-row:hover {
  background: #e2e8f0;
}

body.admin .user-info small {
  color: var(--teams-muted);
}

body.admin .field label {
  color: #475569;
}

body.admin .label-opt {
  color: var(--teams-muted);
}

body.admin input[type="text"],
body.admin input[type="email"],
body.admin input[type="date"],
body.admin input[type="time"],
body.admin input:not([type]) {
  background: #ffffff;
  color: var(--teams-text);
  border-color: var(--teams-border);
}

body.admin .btn-outline {
  border-color: var(--teams-border);
  color: #475569;
}

body.admin .btn-outline:hover {
  border-color: #94a3b8;
  color: var(--teams-text);
  background: #f1f5f9;
}

@media (max-width: 1160px) {
  body.admin .teams-content-grid {
    grid-template-columns: 280px minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  body.admin {
    overflow: auto;
  }

  body.admin .teams-shell {
    grid-template-columns: 64px 1fr;
  }

  body.admin .teams-topbar {
    grid-template-columns: 1fr auto;
    gap: 10px;
    height: auto;
  }

  body.admin .teams-content-grid {
    grid-template-columns: 1fr;
  }

  body.admin .teams-secondary-panel {
    max-height: 240px;
  }

  body.admin .teams-action-cards {
    grid-template-columns: 1fr;
  }

  body.admin .messenger-create-form {
    flex-direction: column;
  }

  body.admin .messenger-create-form input,
  body.admin .messenger-create-form .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  body.admin {
    min-height: var(--mobile-shell-height);
  }

  body.admin .teams-shell {
    grid-template-columns: 1fr;
    height: auto;
    min-height: var(--mobile-shell-height);
  }

  body.admin .teams-sidebar {
    position: sticky;
    top: 0;
    z-index: 25;
    height: auto;
    border-right: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    flex-direction: row;
    justify-content: space-between;
    padding: 10px 12px;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  body.admin .teams-sidebar-brand,
  body.admin .teams-sidebar-profile {
    flex: 0 0 auto;
  }

  body.admin .teams-sidebar-nav {
    flex: 1 1 auto;
    min-width: 0;
    flex-direction: row;
    justify-content: flex-start;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
    scrollbar-width: none;
    -webkit-overflow-scrolling: touch;
  }

  body.admin .teams-sidebar-nav::-webkit-scrollbar {
    display: none;
  }

  body.admin .teams-sidebar-item {
    flex: 0 0 44px;
  }

  body.admin .teams-sidebar-item::after {
    display: none;
  }

  body.admin .teams-stage {
    min-height: calc(var(--mobile-shell-height) - 70px);
    overflow: visible;
  }

  body.admin .teams-topbar {
    padding: 12px;
  }

  body.admin .teams-content-grid {
    padding: 10px;
    gap: 10px;
    grid-template-columns: minmax(0, 1fr);
  }

  body.admin .teams-secondary-panel {
    max-height: min(34vh, 240px);
    overflow: hidden;
  }

  body.admin .teams-secondary-list,
  body.admin .teams-main-inner {
    -webkit-overflow-scrolling: touch;
  }

  body.admin .teams-secondary-actions {
    justify-content: flex-start;
    width: 100%;
  }

  body.admin .teams-chip-btn {
    min-height: 36px;
    white-space: nowrap;
  }

  body.admin .teams-main-inner {
    padding: 12px;
    max-height: none;
  }

  body.admin .contacts-table-wrap {
    overflow-x: auto;
    overflow-y: visible;
    -webkit-overflow-scrolling: touch;
  }

  body.admin .contacts-table-wrap table {
    min-width: 720px;
  }

  body.admin .dashboard-calendar-wrap,
  body.admin .dashboard-calendar {
    min-width: 0;
  }

  body.admin .teams-main-hero p,
  body.admin .teams-action-card p,
  body.admin .teams-empty-state p {
    text-align: center;
  }
}

/* ── Chat room item with delete button ─────────────────────────────────── */
body.admin .messenger-room-item {
  display: flex;
  align-items: center;
  padding: 0;
  gap: 0;
}

body.admin .messenger-room-item .room-select-area {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  padding: 10px;
  cursor: pointer;
  text-align: left;
  color: inherit;
  border-radius: 12px 0 0 12px;
}

body.admin .messenger-unread-pill {
  margin-left: auto;
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #ef4444;
  color: #fff;
  font-size: 0.66rem;
  line-height: 18px;
  text-align: center;
  font-weight: 700;
  padding: 0 5px;
  flex-shrink: 0;
}

body.admin .messenger-room-item .delete-room-btn {
  flex-shrink: 0;
  background: transparent;
  border: none;
  color: var(--teams-muted, #8895a7);
  font-size: 1.15rem;
  line-height: 1;
  padding: 8px 11px;
  cursor: pointer;
  border-radius: 0 12px 12px 0;
  opacity: 0;
  transition: opacity 0.15s ease, color 0.15s ease, background 0.15s ease;
}

body.admin .messenger-room-item:hover .delete-room-btn,
body.admin .messenger-room-item:focus-within .delete-room-btn {
  opacity: 1;
}

body.admin .messenger-room-item .delete-room-btn:hover {
  color: #e53e3e;
  background: rgba(229, 62, 62, 0.08);
}

/* ── Calendar / device prompt ──────────────────────────────────────────── */
.calendar-prompt-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
}

.calendar-prompt-overlay.is-open {
  opacity: 1;
  pointer-events: auto;
}

.calendar-prompt-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 28px 32px;
  max-width: 420px;
  width: calc(100% - 32px);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  text-align: center;
}

.calendar-prompt-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: #1a1a2e;
  margin: 0;
}

.calendar-prompt-card p {
  font-size: 0.92rem;
  color: #555;
  margin: 0;
}

.calendar-prompt-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.cal-prompt-btn {
  display: block;
  padding: 12px 20px;
  border-radius: 12px;
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-align: center;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

.cal-prompt-google {
  background: #4285f4;
  color: #ffffff;
}

.cal-prompt-google:hover { opacity: 0.88; }

.cal-prompt-ics {
  background: #1c1c1e;
  color: #ffffff;
}

.cal-prompt-ics:hover { opacity: 0.88; }

.calendar-prompt-skip {
  background: transparent;
  border: none;
  color: #999;
  font-size: 0.86rem;
  cursor: pointer;
  padding: 4px;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.calendar-prompt-skip:hover { color: #555; }

/* =============================================================
   SIDEBAR AVATAR
   ============================================================= */

.sidebar-brand-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
}

.teams-sidebar-profile {
  margin-top: auto;
  margin-bottom: 0px;
  background:rgba(21, 33, 58, 0.08)
}

.sidebar-profile-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  object-fit: cover;
}

body.admin .sidebar-profile-initial {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  font-weight: 700;
  color: #ffffff;
  background: linear-gradient(135deg, #5b5fc7, #4780ff);
}

/* =============================================================
   PROFILE PAGE (profile.php)
   ============================================================= */

.digest-page {
  max-width: 720px;
  margin: 0 auto;
  padding: 22px 22px 34px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.digest-card {
  border-radius: 16px;
  border: 1px solid var(--teams-border, #e2e8f0);
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.digest-card__head {
  padding: 18px 20px 12px;
  border-bottom: 1px solid color-mix(in srgb, var(--teams-border, #e2e8f0) 88%, transparent);
}

.digest-card__title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.digest-card__title h2 {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  color: var(--teams-text, #1d2433);
}

.digest-card__subtitle {
  margin: 8px 0 0;
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--teams-muted, #677188);
}

.digest-form {
  padding: 16px 20px 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.digest-toggle {
  display: flex;
  gap: 10px;
  align-items: center;
  font-weight: 800;
  color: var(--teams-text, #1d2433);
}

.digest-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr 1fr;
  gap: 12px;
}

@media (max-width: 760px) {
  .digest-row { grid-template-columns: 1fr; }
}

.digest-input {
  width: 100%;
  border-radius: 12px;
  border: 1px solid var(--teams-border, #e2e8f0);
  background: #fff;
  padding: 10px 12px;
}

.digest-actions {
  display: flex;
  justify-content: flex-start;
  gap: 10px;
  padding: 0 20px 18px;
}

.digest-divider {
  height: 1px;
  background: color-mix(in srgb, var(--teams-border, #e2e8f0) 70%, transparent);
}

.profile-shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 28px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-form {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.profile-avatar-section {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.profile-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  flex-shrink: 0;
}

.profile-avatar-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--teams-border, #dde2ef);
}

.profile-avatar-initial {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: var(--teams-accent-soft, #ececff);
  color: var(--teams-accent, #5b5fc7);
  font-size: 2.2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid var(--teams-border, #dde2ef);
}

.profile-avatar-upload-btn {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 30px;
  height: 30px;
  background: #fff;
  border: 1px solid var(--teams-border, #dde2ef);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background .15s;
}

.profile-avatar-upload-btn:hover { background: #f1f5f9; }

.profile-avatar-meta h2 {
  margin: 0 0 4px;
  font-size: 1.2rem;
  color: var(--teams-text, #1d2433);
}

.profile-avatar-meta small {
  color: var(--teams-muted, #677188);
  font-size: 0.85rem;
}

.profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

@media (max-width: 600px) {
  .profile-grid { grid-template-columns: 1fr; }
}

.profile-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.profile-settings-card {
  border-radius: 16px;
  border: 1px solid var(--teams-border, #e2e8f0);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.95) 0%, #fff 18%);
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.06);
  overflow: hidden;
}

.profile-settings-card--digest {
  margin-top: 8px;
}

.profile-settings-card__head {
  padding: 20px 22px 14px;
  border-bottom: 1px solid color-mix(in srgb, var(--teams-border, #e2e8f0) 88%, transparent);
}

.profile-settings-card__title-row {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.profile-settings-card__title {
  margin: 0 0 6px;
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--teams-text, #1d2433);
}

.profile-settings-card__lead {
  margin: 0;
  font-size: 0.9rem;
  color: var(--teams-muted, #677188);
  line-height: 1.45;
}

.profile-settings-card__icon {
  flex-shrink: 0;
  margin-top: 2px;
  padding: 8px;
  border-radius: 10px;
  background: rgba(91, 95, 199, 0.12);
  color: var(--teams-accent, #5b5fc7);
}

.profile-settings-card__body {
  padding: 18px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.profile-grid--digest .field--full {
  grid-column: 1 / -1;
}

.profile-toggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 600;
  color: var(--teams-text, #1d2433);
  cursor: pointer;
}

.profile-toggle input {
  margin-top: 3px;
  flex-shrink: 0;
}

.profile-select,
.profile-input {
  border-radius: 10px;
  border: 1px solid var(--teams-border, #e2e8f0);
  background: #fff;
  padding: 8px 10px;
}

.field-hint {
  display: block;
  margin-top: 4px;
  font-size: 0.78rem;
  color: var(--teams-muted, #677188);
}

.profile-digest-send {
  padding-top: 4px;
  border-top: 1px dashed color-mix(in srgb, var(--teams-border, #e2e8f0) 75%, transparent);
}

.profile-digest-send .profile-actions {
  justify-content: flex-start;
}

.profile-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.85em;
  color: #a5b4fc;
}

.profile-past-meeting-rule {
  margin: 0;
  font-size: 0.82rem;
  color: var(--teams-muted, #677188);
  line-height: 1.45;
}

/* =============================================================
   USER PROFILE PAGE (user_profile.php)
   ============================================================= */

.user-profile-wrap {
  max-width: 640px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 8px 0;
}

.user-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 18px;
  flex-wrap: wrap;
}

.user-profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--teams-accent-soft, #ececff);
  color: var(--teams-accent, #5b5fc7);
  font-size: 2rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  border: 3px solid var(--teams-border, #dde2ef);
  overflow: hidden;
}

.user-profile-info {
  flex: 1;
  min-width: 0;
}

.user-profile-info h2 {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--teams-text, #1d2433);
}

.user-profile-info small {
  color: var(--teams-muted, #677188);
  font-size: 0.85rem;
}

.upf-meta {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #475569;
}

.upf-bio {
  margin: 8px 0 0;
  font-size: 0.87rem;
  color: #475569;
  line-height: 1.5;
}

/* Quick actions strip */
.upf-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.upf-action-form {
  position: relative;
}

.upf-btn {
  white-space: nowrap;
  font-size: 0.85rem;
  padding: 8px 14px;
}

/* Dropdown panel for "add to meeting" */
.upf-drop-wrap {
  position: relative;
}

.upf-drop-panel {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  z-index: 50;
  background: #fff;
  border: 1px solid var(--teams-border, #dde2ef);
  border-radius: 10px;
  padding: 14px;
  min-width: 260px;
  box-shadow: 0 8px 24px rgba(21,33,58,0.10);
}

.upf-select {
  width: 100%;
  padding: 8px 10px;
  border: 1px solid var(--teams-border, #dde2ef);
  border-radius: 6px;
  background: #fff;
  color: var(--teams-text, #1d2433);
  font-size: 0.88rem;
}

.upf-section {
  border-top: 1px solid var(--teams-border, #dde2ef);
  padding-top: 16px;
}

.upf-section h3 {
  margin: 0 0 12px;
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teams-muted, #677188);
  font-weight: 600;
}

.upf-meetings {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Call ready card */
.call-ready-card {
  max-width: 520px;
  margin: 0 auto;
  background: #fff;
  border: 1px solid var(--teams-border, #dde2ef);
  border-radius: 16px;
  padding: 36px 32px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.call-ready-icon { font-size: 3rem; }

.call-ready-card h2 {
  margin: 0;
  font-size: 1.3rem;
  color: var(--teams-text, #1d2433);
}

.call-ready-card p {
  margin: 0;
  color: #475569;
  font-size: 0.92rem;
}

.call-ready-link {
  display: flex;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid var(--teams-border, #dde2ef);
  border-radius: 8px;
  padding: 10px 12px;
  align-items: center;
}

.call-ready-link input {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--teams-text, #1d2433);
  font-size: 0.82rem;
  outline: none;
}

.call-ready-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* =============================================================
   NEW CONTACT MODAL — search results
   ============================================================= */

.nc-divider {
  text-align: center;
  font-size: 0.78rem;
  color: #94a3b8;
  position: relative;
  margin: 4px 0;
}

.nc-divider::before,
.nc-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: calc(50% - 90px);
  height: 1px;
  background: var(--teams-border, #dde2ef);
}

.nc-divider::before { left: 0; }
.nc-divider::after  { right: 0; }

.nc-search-results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-top: 4px;
}

.nc-search-loading,
.nc-search-empty {
  font-size: 0.82rem;
  color: #94a3b8;
  padding: 8px 4px;
}

.nc-result-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid var(--teams-border, #dde2ef);
  transition: background .12s;
}

.nc-result-item:hover { background: #eef1fb; }

.nc-result-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--teams-accent-soft, #ececff);
  color: var(--teams-accent, #5b5fc7);
  font-weight: 700;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.nc-result-avatar-img {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.nc-result-info {
  flex: 1;
  min-width: 0;
}

.nc-result-info strong {
  display: block;
  font-size: 0.88rem;
  color: var(--teams-text, #1d2433);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.nc-result-info small {
  font-size: 0.76rem;
  color: var(--teams-muted, #677188);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.nc-result-btns {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.nc-already-contact {
  font-size: 0.75rem;
  color: #16a34a;
  display: flex;
  align-items: center;
}

/* contact-card actions row */
.contact-card-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
  flex-wrap: wrap;
}

/* =============================================================
   ENTERPRISE ICON SYSTEM
   SVG inline icons via CSS mask-image — consistent, crisp,
   theme-aware, zero external dependencies.
   ============================================================= */

:root {
  --ico-size-sm: 14px;
  --ico-size-md: 16px;
  --ico-size-lg: 20px;
  --ico-size-xl: 24px;
}

/* Base icon chip — use as <span class="ico ico-xxx"></span> */
.ico {
  display: inline-block;
  flex-shrink: 0;
  width:  var(--ico-size-md);
  height: var(--ico-size-md);
  background-color: currentColor;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
  -webkit-mask-position: center;
          mask-position: center;
  -webkit-mask-size: contain;
          mask-size: contain;
  vertical-align: middle;
  pointer-events: none;
}
.ico-sm { width: var(--ico-size-sm); height: var(--ico-size-sm); }
.ico-lg { width: var(--ico-size-lg); height: var(--ico-size-lg); }
.ico-xl { width: var(--ico-size-xl); height: var(--ico-size-xl); }

/* ── Individual icon masks (all SVG data URIs) ── */

/* start / play */
.ico-play {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
}
/* stop / end */
.ico-stop {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='6' width='12' height='12'/%3E%3C/svg%3E");
}
/* people / participants */
.ico-people {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05C16.19 13.97 17 15.14 17 16.5V19h7v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 11c1.66 0 2.99-1.34 2.99-3S17.66 5 16 5c-1.66 0-3 1.34-3 3s1.34 3 3 3zm-8 0c1.66 0 2.99-1.34 2.99-3S9.66 5 8 5C6.34 5 5 6.34 5 8s1.34 3 3 3zm0 2c-2.33 0-7 1.17-7 3.5V19h14v-2.5c0-2.33-4.67-3.5-7-3.5zm8 0c-.29 0-.62.02-.97.05C16.19 13.97 17 15.14 17 16.5V19h7v-2.5c0-2.33-4.67-3.5-7-3.5z'/%3E%3C/svg%3E");
}
/* person add */
.ico-person-add {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M15 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm-9-2V7H4v3H1v2h3v3h2v-3h3v-2H6zm9 4c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
/* record (REC dot) */
.ico-record {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Ccircle cx='12' cy='12' r='8'/%3E%3C/svg%3E");
}
/* download */
.ico-download {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 9h-4V3H9v6H5l7 7 7-7zM5 18v2h14v-2H5z'/%3E%3C/svg%3E");
}
/* upload / import */
.ico-upload {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16h6v-6h4l-7-7-7 7h4zm-4 2h14v2H5z'/%3E%3C/svg%3E");
}
/* send / email */
.ico-send {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.01 21L23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M2.01 21L23 12 2.01 3 2 10l15 2-15 2z'/%3E%3C/svg%3E");
}
/* copy / clipboard */
.ico-copy {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z'/%3E%3C/svg%3E");
}
/* trash / delete */
.ico-trash {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6v12zM19 4h-3.5l-1-1h-5l-1 1H5v2h14V4z'/%3E%3C/svg%3E");
}
/* save / floppy */
.ico-save {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V7l-4-4zm-5 16c-1.66 0-3-1.34-3-3s1.34-3 3-3 3 1.34 3 3-1.34 3-3 3zm3-10H5V5h10v4z'/%3E%3C/svg%3E");
}
/* star / rating */
.ico-star {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z'/%3E%3C/svg%3E");
}
/* check / done */
.ico-check {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 16.17L4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z'/%3E%3C/svg%3E");
}
/* close / X */
.ico-close {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/%3E%3C/svg%3E");
}
/* plus / add */
.ico-plus {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z'/%3E%3C/svg%3E");
}
/* arrow-back / left */
.ico-arrow-left {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 11H7.83l5.59-5.59L12 4l-8 8 8 8 1.41-1.41L7.83 13H20v-2z'/%3E%3C/svg%3E");
}
/* arrow-right / next */
.ico-arrow-right {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 4l-1.41 1.41L16.17 11H4v2h12.17l-5.58 5.59L12 20l8-8z'/%3E%3C/svg%3E");
}
/* logout / exit */
.ico-logout {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 7l-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4V5z'/%3E%3C/svg%3E");
}
/* mute / mic-off */
.ico-mic-off {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19 11h-1.7c0 .74-.16 1.43-.43 2.05l1.23 1.23c.56-.98.9-2.09.9-3.28zm-4.02.17c0-.06.02-.11.02-.17V5c0-1.66-1.34-3-3-3S9 3.34 9 5v.18l5.98 5.99zM4.27 3L3 4.27l6.01 6.01V11c0 1.66 1.33 3 2.99 3 .22 0 .44-.03.65-.08l1.66 1.66c-.71.33-1.5.52-2.31.52-2.76 0-5.3-2.1-5.3-5.1H5c0 3.41 2.72 6.23 6 6.72V21h2v-3.28c.91-.13 1.77-.45 2.54-.9L19.73 21 21 19.73 4.27 3z'/%3E%3C/svg%3E");
}
/* mic-on */
.ico-mic {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1V5zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 14c1.66 0 3-1.34 3-3V5c0-1.66-1.34-3-3-3S9 3.34 9 5v6c0 1.66 1.34 3 3 3zm-1-9c0-.55.45-1 1-1s1 .45 1 1v6c0 .55-.45 1-1 1s-1-.45-1-1V5zm6 6c0 2.76-2.24 5-5 5s-5-2.24-5-5H5c0 3.53 2.61 6.43 6 6.92V21h2v-3.08c3.39-.49 6-3.39 6-6.92h-2z'/%3E%3C/svg%3E");
}
/* block / no-entry */
.ico-block {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.68L5.68 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.68l11.22-11.22C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zM4 12c0-4.42 3.58-8 8-8 1.85 0 3.55.63 4.9 1.68L5.68 16.9C4.63 15.55 4 13.85 4 12zm8 8c-1.85 0-3.55-.63-4.9-1.68l11.22-11.22C19.37 8.45 20 10.15 20 12c0 4.42-3.58 8-8 8z'/%3E%3C/svg%3E");
}
/* chat / message */
.ico-chat {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 2H4c-1.1 0-2 .9-2 2v18l4-4h14c1.1 0 2-.9 2-2V4c0-1.1-.9-2-2-2z'/%3E%3C/svg%3E");
}
/* calendar */
.ico-calendar {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 3h-1V1h-2v2H7V1H5v2H4c-1.1 0-2 .9-2 2v16c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm0 18H4V8h16v13z'/%3E%3C/svg%3E");
}
/* video-call */
.ico-video {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17 10.5V7c0-.55-.45-1-1-1H4c-.55 0-1 .45-1 1v10c0 .55.45 1 1 1h12c.55 0 1-.45 1-1v-3.5l4 4v-11l-4 4z'/%3E%3C/svg%3E");
}
/* hand-raise */
.ico-hand {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7c0-1.38-1.12-2.5-2.5-2.5-.05 0-.09.01-.14.01C18.07 3.6 17.18 3 16.18 3c-.41 0-.78.12-1.11.31C14.7 2.53 13.9 2 13 2c-.53 0-1.01.19-1.39.5A2.51 2.51 0 009.5 0C8.12 0 7 1.12 7 2.5V7c-.49-.35-1.1-.5-1.72-.47C4.14 6.6 3 7.79 3 9.14v5.04C3 18.47 6.53 22 10.86 22h2.14C17.48 22 21 18.48 21 14V7zm-2 7c0 3.31-2.69 6-6 6h-2.14C7.63 20 5 17.37 5 14.18V9.14C5 8.9 5.2 8.6 5.63 8.53 5.96 8.48 6.5 8.6 6.5 9v3.5h2V2.5c0-.28.22-.5.5-.5s.5.22.5.5V11h2V4c0-.28.22-.5.5-.5s.5.22.5.5v7h2V4.5c0-.28.22-.5.5-.5s.5.22.5.5V11h2V7c0-.28.22-.5.5-.5s.5.22.5.5v7z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M21 7c0-1.38-1.12-2.5-2.5-2.5-.05 0-.09.01-.14.01C18.07 3.6 17.18 3 16.18 3c-.41 0-.78.12-1.11.31C14.7 2.53 13.9 2 13 2c-.53 0-1.01.19-1.39.5A2.51 2.51 0 009.5 0C8.12 0 7 1.12 7 2.5V7c-.49-.35-1.1-.5-1.72-.47C4.14 6.6 3 7.79 3 9.14v5.04C3 18.47 6.53 22 10.86 22h2.14C17.48 22 21 18.48 21 14V7zm-2 7c0 3.31-2.69 6-6 6h-2.14C7.63 20 5 17.37 5 14.18V9.14C5 8.9 5.2 8.6 5.63 8.53 5.96 8.48 6.5 8.6 6.5 9v3.5h2V2.5c0-.28.22-.5.5-.5s.5.22.5.5V11h2V4c0-.28.22-.5.5-.5s.5.22.5.5v7h2V4.5c0-.28.22-.5.5-.5s.5.22.5.5V11h2V7c0-.28.22-.5.5-.5s.5.22.5.5v7z'/%3E%3C/svg%3E");
}
/* settings / gear */
.ico-settings {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M19.14 12.94c.04-.3.06-.61.06-.94 0-.32-.02-.64-.07-.94l2.03-1.58c.18-.14.23-.41.12-.61l-1.92-3.32c-.12-.22-.37-.29-.59-.22l-2.39.96c-.5-.38-1.03-.7-1.62-.94l-.36-2.54c-.04-.24-.24-.41-.48-.41h-3.84c-.24 0-.43.17-.47.41l-.36 2.54c-.59.24-1.13.57-1.62.94l-2.39-.96c-.22-.08-.47 0-.59.22L2.74 8.87c-.12.21-.08.47.12.61l2.03 1.58c-.05.3-.09.63-.09.94s.02.64.07.94l-2.03 1.58c-.18.14-.23.41-.12.61l1.92 3.32c.12.22.37.29.59.22l2.39-.96c.5.38 1.03.7 1.62.94l.36 2.54c.05.24.24.41.48.41h3.84c.24 0 .44-.17.47-.41l.36-2.54c.59-.24 1.13-.56 1.62-.94l2.39.96c.22.08.47 0 .59-.22l1.92-3.32c.12-.22.07-.47-.12-.61l-2.01-1.58zM12 15.6c-1.98 0-3.6-1.62-3.6-3.6s1.62-3.6 3.6-3.6 3.6 1.62 3.6 3.6-1.62 3.6-3.6 3.6z'/%3E%3C/svg%3E");
}
/* help / question (tutorial) */
.ico-help {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm1 17h-2v-2h2v2zm2.07-7.75l-.9.92C13.45 12.9 13 13.5 13 15h-2v-.5c0-1.1.45-2.1 1.17-2.83l1.24-1.26c.37-.36.59-.86.59-1.41 0-1.1-.9-2-2-2s-2 .9-2 2H8c0-2.21 1.79-4 4-4s4 1.79 4 4c0 .88-.36 1.68-.93 2.25z'/%3E%3C/svg%3E");
}
/* edit / pencil */
.ico-edit {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.39-.39-1.02-.39-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z'/%3E%3C/svg%3E");
}
/* lock / blocked */
.ico-lock {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M18 8h-1V6c0-2.76-2.24-5-5-5S7 3.24 7 6v2H6c-1.1 0-2 .9-2 2v10c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2V10c0-1.1-.9-2-2-2zm-6 9c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2zm3.1-9H8.9V6c0-1.71 1.39-3.1 3.1-3.1 1.71 0 3.1 1.39 3.1 3.1v2z'/%3E%3C/svg%3E");
}
/* refresh */
.ico-refresh {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4l-2.35 2.35z'/%3E%3C/svg%3E");
}
/* profile / person */
.ico-person {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M12 12c2.21 0 4-1.79 4-4s-1.79-4-4-4-4 1.79-4 4 1.79 4 4 4zm0 2c-2.67 0-8 1.34-8 4v2h16v-2c0-2.66-5.33-4-8-4z'/%3E%3C/svg%3E");
}
/* rocket / launch */
.ico-rocket {
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10l4-4 3.19.35zm.82 11.64l1.7 3.62s4-1.44 5.9-3.57L17.63 15l-4 4-3.62-3.01zm11.94-9.52c.22-1.95-.49-3.9-1.9-5.3-1.41-1.41-3.35-2.12-5.3-1.9-2.71.31-5.13 1.77-6.87 3.51l5.86 5.86-4.37 4.37 4.37 4.37 4.37-4.37 5.86 5.86c1.74-1.74 3.2-4.16 3.51-6.87-.09-2.07-.54-5.53-.54-5.53l-5.49.54zM16 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9.19 6.35c-2.04 2.29-3.44 5.58-3.57 5.89L2 10l4-4 3.19.35zm.82 11.64l1.7 3.62s4-1.44 5.9-3.57L17.63 15l-4 4-3.62-3.01zm11.94-9.52c.22-1.95-.49-3.9-1.9-5.3-1.41-1.41-3.35-2.12-5.3-1.9-2.71.31-5.13 1.77-6.87 3.51l5.86 5.86-4.37 4.37 4.37 4.37 4.37-4.37 5.86 5.86c1.74-1.74 3.2-4.16 3.51-6.87-.09-2.07-.54-5.53-.54-5.53l-5.49.54zM16 10c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1z'/%3E%3C/svg%3E");
}

/* ── Icon-button layout helper ── */
/* Buttons that use .ico inside auto-space them consistently */
.btn-header-action,
.btn,
.btn-admin,
.teams-chip-btn,
.raise-hand-btn,
.lp-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

/* Ensure icon color inherits from parent button text color */
button .ico,
a .ico {
  background-color: currentColor;
}

/* ── Assistenza / feedback (organizer) ── */
.assistenza-page .assistenza-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
  margin: 0 0 22px;
}

.assistenza-hub__card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 18px 20px;
  border-radius: 14px;
  border: 1px solid #dbe4f2;
  background: linear-gradient(145deg, #ffffff 0%, #f4f7fd 100%);
  text-decoration: none;
  color: #0f172a;
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.12s ease;
}

.assistenza-hub__card:hover {
  border-color: #94a8d6;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.1);
  transform: translateY(-1px);
}

.assistenza-hub__card--btn {
  cursor: pointer;
  text-align: left;
  font: inherit;
  width: 100%;
}

.assistenza-hub__icon .ico {
  width: 28px;
  height: 28px;
}

.assistenza-hub__label {
  font-size: 1.1rem;
  font-weight: 700;
}

.assistenza-hub__hint {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.45;
}

.assistenza-section .assistenza-help {
  margin: 6px 0 0;
  font-size: 0.85rem;
  color: #64748b;
}

.assistenza-rating {
  border: 0;
  margin: 0 0 16px;
  padding: 0;
}

.assistenza-rating legend {
  font-weight: 600;
  font-size: 0.92rem;
  margin-bottom: 8px;
  color: #1e293b;
}

.assistenza-rating__row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.assistenza-rating__opt {
  position: relative;
  display: inline-flex;
  cursor: pointer;
}

.assistenza-rating__face {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 42px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  font-weight: 600;
  color: #334155;
  transition: background 0.12s ease, border-color 0.12s ease, color 0.12s ease;
}

.assistenza-rating__opt input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: -1px;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

.assistenza-rating__opt input:focus + .assistenza-rating__face {
  outline: 2px solid #315efb;
  outline-offset: 2px;
}

.assistenza-rating__opt input:checked + .assistenza-rating__face {
  border-color: #315efb;
  background: #eef2ff;
  color: #1e3a8a;
}

.assistenza-rating__opt:hover .assistenza-rating__face {
  border-color: #94a3b8;
}

.assistenza-feedback-modal .assistenza-feedback-card {
  max-width: 520px;
  width: calc(100% - 32px);
}

.assistenza-feedback-form .digest-actions {
  justify-content: flex-end;
  gap: 10px;
}

.req {
  color: #b91c1c;
}

.assistenza-profile-entry__grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
}

.assistenza-profile-entry__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  font-weight: 700;
  text-decoration: none;
  border: 1px solid #cbd5e1;
  background: #f8fafc;
  color: #0f172a;
  transition: background 0.12s ease, border-color 0.12s ease;
}

.assistenza-profile-entry__btn:hover {
  background: #eef2ff;
  border-color: #94a8d6;
}

.assistenza-profile-entry__btn--accent {
  background: linear-gradient(135deg, #12336a, #315efb);
  color: #fff;
  border-color: transparent;
}

.assistenza-profile-entry__btn--accent:hover {
  filter: brightness(1.05);
}

.assistenza-profile-entry__btn .ico {
  width: 22px;
  height: 22px;
}

