/* ==========================================================================
   Chat Content Typography
   Scoped overrides so rendered markdown inside messages looks correct
   ========================================================================== */

/* ── User message (pre tag) ─────────────────────────────────────────────── */

.msg-utente .user-interaction {
    font-family: var(--font-primary);
    font-size: var(--fs-text-sm);
    line-height: 1.6;
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-wrap: break-word;
    margin: 0;
    background: none;
}

/* ── Assistant rendered markdown ────────────────────────────────────────── */

.muselia-answer-text {
    font-size: var(--fs-text-sm);
    line-height: 1.7;
}

.muselia-answer-text h1 {
    font-size: 2rem;
    line-height: 1.3;
    margin: 1.6rem 0 0.8rem;
}

.muselia-answer-text h2 {
    font-size: 1.8rem;
    line-height: 1.3;
    margin: 1.4rem 0 0.6rem;
}

.muselia-answer-text h3 {
    font-size: 1.6rem;
    line-height: 1.4;
    margin: 1.2rem 0 0.5rem;
}

.muselia-answer-text h4,
.muselia-answer-text h5,
.muselia-answer-text h6 {
    font-size: 1.4rem;
    line-height: 1.4;
    margin: 1rem 0 0.4rem;
}

.muselia-answer-text p {
    font-size: inherit;
    line-height: 1.7;
    margin: 0 0 0.8rem;
}

.muselia-answer-text p:last-child {
    margin-bottom: 0;
}

/* ── Lists ──────────────────────────────────────────────────────────────── */

.muselia-answer-text ul {
    list-style: disc;
    padding-left: 2rem;
    margin: 0.5rem 0 1rem;
}

.muselia-answer-text ol {
    list-style: decimal;
    padding-left: 2rem;
    margin: 0.5rem 0 1rem;
}

.muselia-answer-text ul ul {
    list-style: circle;
}

.muselia-answer-text ul ul ul {
    list-style: square;
}

.muselia-answer-text li {
    font-size: inherit;
    line-height: 1.6;
    margin-bottom: 0.3rem;
}

.muselia-answer-text li > p {
    margin-bottom: 0.3rem;
}

/* ── Inline styles ──────────────────────────────────────────────────────── */

.muselia-answer-text strong {
    font-weight: 600;
}

.muselia-answer-text em {
    font-style: italic;
}

.muselia-answer-text a {
    color: var(--byzantineBlue);
    text-decoration: underline;
}

.muselia-answer-text a:hover {
    opacity: 0.75;
}

/* ── Code ───────────────────────────────────────────────────────────────── */

.muselia-answer-text code {
    font-family: 'Courier New', Courier, monospace;
    font-size: 0.9em;
    padding: 0.15em 0.4em;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 4px;
}

.muselia-answer-text pre {
    margin: 0.8rem 0;
    padding: 1.2rem;
    background-color: rgba(0, 0, 0, 0.06);
    border-radius: 8px;
    overflow-x: auto;
}

.muselia-answer-text pre code {
    padding: 0;
    background: none;
    font-size: 1.2rem;
    line-height: 1.5;
}

/* ── Tables ─────────────────────────────────────────────────────────────── */

.muselia-answer-text table {
    width: 100%;
    border-collapse: collapse;
    margin: 0.8rem 0;
    font-size: inherit;
}

.muselia-answer-text th,
.muselia-answer-text td {
    padding: 0.6rem 1rem;
    border: 1px solid rgba(0, 0, 0, 0.15);
    text-align: left;
    line-height: 1.5;
}

.muselia-answer-text th {
    font-weight: 600;
    background-color: rgba(0, 0, 0, 0.04);
}

/* ── Blockquote ─────────────────────────────────────────────────────────── */

.muselia-answer-text blockquote {
    margin: 0.8rem 0;
    padding: 0.6rem 1.2rem;
    border-left: 3px solid var(--brightPink);
    background-color: rgba(0, 0, 0, 0.02);
}

.muselia-answer-text blockquote p {
    margin-bottom: 0.3rem;
}

/* ── Horizontal rule ────────────────────────────────────────────────────── */

.muselia-answer-text hr {
    border: none;
    border-top: 1px solid rgba(0, 0, 0, 0.15);
    margin: 1.2rem 0;
}

/* ── Images inside answers ──────────────────────────────────────────────── */

.muselia-answer-text img {
    max-width: 100%;
    height: auto;
    border-radius: 5px;
    margin: 0.5rem 0;
}

/* ── Accessibility overrides (large text mode) ──────────────────────────── */

.muselia-answer-text.text-xmd {
    font-size: var(--fs-md);
}

.muselia-answer-text.text-xmd h1 { font-size: 2.6rem; }
.muselia-answer-text.text-xmd h2 { font-size: 2.2rem; }
.muselia-answer-text.text-xmd h3 { font-size: 2rem;   }

.muselia-answer-text.text-xmd h4,
.muselia-answer-text.text-xmd h5,
.muselia-answer-text.text-xmd h6 { font-size: 1.8rem; }

/* ── High-readability mode ──────────────────────────────────────────────── */

.muselia-answer-text.line-spacing {
    line-height: 2;
}

.muselia-answer-text.line-spacing li {
    line-height: 1.9;
}

#user-request{
    font-size: var(--fs-text-sm);
}

/* ================================================================
   MUSELIA — File Upload, Chat Enhancements & Missing Utilities
   ================================================================ */

/* --------------------------------------------------------
   Missing Utility Classes
   -------------------------------------------------------- */

.pxy-0 {
  padding: 0;
}

.border-none {
  border: none;
}

.bg-transparent {
  background-color: transparent;
}

.border-solid-1 {
  border: solid 1px var(--brightPink);
}

.v-line {
  width: 1px;
  height: 16px;
  background-color: var(--eerieBlack);
}

.ml-5 {
  margin-left: 5px;
}

.mr-5 {
  margin-right: 5px;
}

/* Generic "show" toggle for dropdown-menu */
.dropdown-menu.show {
  display: block;
}

/* --------------------------------------------------------
   Upload Dropdown Positioning
   -------------------------------------------------------- */

/* --------------------------------------------------------
   Upload Dropdown Positioning
   -------------------------------------------------------- */

#upload-buttons-start,
#upload-buttons {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  min-width: 220px;
  padding: 15px 20px;
  background-color: var(--white);
  border: solid 1px var(--brightPink);
  border-radius: 8px;
  z-index: 10;
}

/* Show state (JS adds .show or toggles inline display) */
#upload-buttons-start.show,
#upload-buttons.show {
  display: block;
}

/* Force dropdown items to stack vertically */
#upload-buttons-start label,
#upload-buttons-start > button,
#upload-buttons label,
#upload-buttons > button {
  display: flex;
  width: 100%;
}

/* Also position the actions dropdown inside .input-container */
.input-container #actions-dropdown {
  left: 0;
  bottom: calc(100% + 8px);
  background-color: var(--white);
  border: solid 1px var(--brightPink);
}

/* --------------------------------------------------------
   Uploaded Files Container
   -------------------------------------------------------- */

.lista-file-caricati {
  display: flex;
  gap: 8px;
  border-bottom: 1px solid rgba(255, 79, 118, 0.2);
  overflow-x: auto;
}

.lista-file-caricati::-webkit-scrollbar {
  height: 8px;
}

.lista-file-caricati::-webkit-scrollbar-track {
  background-color: transparent;
}

.lista-file-caricati::-webkit-scrollbar-thumb {
  background-color: var(--brightPink);
  border-radius: 5px;
}

/* --------------------------------------------------------
   Individual Uploaded File Chip
   -------------------------------------------------------- */

.file-caricato {
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 10px;
  padding: 6px 12px;
  background: var(--gray);
  border: 1px solid rgba(255, 79, 118, 0.2);
  border-radius: 8px;
  white-space: nowrap;
}

.file-caricato img {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}

.file-caricato button {
  transition: color 0.15s ease;
}

.file-caricato button:hover {
  color: var(--red);
}

/* --------------------------------------------------------
   File-text Badge (generic)
   -------------------------------------------------------- */

.file-text {
  display: flex;
  align-items: center;
  width: 120px;
  height: 25px;
  border-radius: 5px;
  padding: 10px;
}

.file-text p {
  width: 120px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --------------------------------------------------------
   Follow-up Input Container
   -------------------------------------------------------- */

.input-container {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  background-color: var(--white);
  border: solid 1px var(--brightPink);
  border-radius: 5px;
}

.input-container textarea {
  font-size: 1.8rem;
  min-height: 70px;
  padding: 0;
  background: transparent;
  resize: none;
  overflow-y: auto;
}

.input-container textarea::placeholder {
  color: var(--black);
  opacity: 0.5;
}

.input-container textarea:focus-visible {
  outline: none;
}

.input-container textarea:focus-visible::placeholder {
  visibility: hidden;
}

/* --------------------------------------------------------
   Chat Message Area Scrollbar
   -------------------------------------------------------- */

.chat__msg::-webkit-scrollbar {
  width: 5px;
}

.chat__msg::-webkit-scrollbar-track {
  background-color: transparent;
}

.chat__msg::-webkit-scrollbar-thumb {
  background-color: var(--brightPink);
  border-radius: 5px;
}

/* --------------------------------------------------------
   Message Text Alignment
   -------------------------------------------------------- */

.msg-text {
  text-align: left;
}

/* --------------------------------------------------------
   Files Displayed Inside Chat Messages
   -------------------------------------------------------- */

#lea-interaction .file-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: auto;
  height: auto;
  padding: 8px 14px;
  background: rgba(255, 79, 118, 0.04);
  border: 1px solid rgba(255, 79, 118, 0.12);
  border-radius: 8px;
  margin-right: 8px;
  margin-bottom: 8px;
  transition: all 0.15s ease;
}

#lea-interaction .file-text:hover {
  background: rgba(255, 79, 118, 0.08);
  border-color: rgba(255, 79, 118, 0.2);
}

#lea-interaction .file-text i {
  color: var(--brightPink);
}

#lea-interaction .file-text a {
  color: var(--brightPink);
  text-decoration: none;
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

#lea-interaction .file-text a:hover {
  text-decoration: underline;
}

/* --------------------------------------------------------
   Images Displayed Inside Chat Messages
   -------------------------------------------------------- */

#lea-interaction .msg-img {
  margin: 12px 0;
}

#lea-interaction .msg-img img.chat-image {
  max-width: 300px;
  max-height: 200px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

#lea-interaction .msg-img img.chat-image:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

/* --------------------------------------------------------
   Loading / "Thinking" Animation
   -------------------------------------------------------- */

.loading-answer {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 0;
}

.loading-video {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.loading-video video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.loading-answer p {
  animation: muselia-pulse 1.5s ease-in-out infinite;
}

@keyframes muselia-pulse {
  0%, 100% { opacity: 0.6; }
  50% { opacity: 1; }
}

/* --------------------------------------------------------
   Loading Indicators (file / image / link spinners)
   -------------------------------------------------------- */

#loading-indicators,
#loading-indicators-chat {
  text-align: center;
}

#loading-indicators img,
#loading-indicators-chat img,
#loading_icon_cot {
  width: 24px;
  height: 24px;
  margin: 0 auto;
}

#loading_icon, #loading_icon_notes, #loading_icon_imgchat_start, #loading_icon_imgchat, #loading_icon_cot, 
#loading_icon_link_start, #loading_icon_link{
    display: none;
    text-align: center;
    margin: 10px auto;
    width: 40px;
}

#loading_text_imgchat, #loaded_text_notes, #loading_text_imgchat_start, #loading_text, #loading_text_notes, 
#loading_text_link_start, #loading_icon_link_start, #loaded_text_link_start,
#loading_text_link, #loaded_text_link{
    display: none;
}

/* --------------------------------------------------------
   AI Answer — <pre> Element Reset
   -------------------------------------------------------- */

#lea-answer-text {
  white-space: pre-wrap;
  word-wrap: break-word;
  font-family: inherit;
  font-size: inherit;
  margin: 0;
  padding: 0;
  background: transparent;
  border: none;
  overflow: visible;
}

/* --------------------------------------------------------
   AI Answer — Rich Text Formatting
   (class added by JS when markdown is rendered)
   -------------------------------------------------------- */

.lea-answer-text strong {
  font-weight: 600;
  color: var(--eerieBlack);
}

.lea-answer-text ol,
.lea-answer-text ul {
  margin: 16px 0;
  padding-left: 24px;
}

.lea-answer-text ol {
  list-style: decimal;
}

.lea-answer-text ul {
  list-style: disc;
}

.lea-answer-text li {
  margin-bottom: 10px;
  padding-left: 4px;
}

.lea-answer-text li::marker {
  color: var(--brightPink);
  font-weight: 600;
}

.lea-answer-text table {
  width: 100%;
  border-collapse: collapse;
  margin: 12px 0;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.1);
}

.lea-answer-text th,
.lea-answer-text td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.lea-answer-text th {
  background: rgba(255, 79, 118, 0.06);
  font-weight: 600;
}

.lea-answer-text tr:last-child td {
  border-bottom: none;
}

.lea-answer-text tr:hover td {
  background: rgba(255, 79, 118, 0.02);
}

.lea-answer-text a {
  color: var(--brightPink);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s ease;
}

.lea-answer-text a:hover {
  border-bottom-color: var(--brightPink);
}

.lea-answer-text blockquote {
  margin: 16px 0;
  padding: 12px 20px;
  border-left: 3px solid var(--screaminGreen);
  background: rgba(110, 237, 117, 0.1);
  border-radius: 0 8px 8px 0;
  font-style: italic;
}

.lea-answer-text pre {
  background: #1e1e1e;
  color: #d4d4d4;
  padding: 16px 20px;
  border-radius: 16px;
  overflow-x: auto;
  margin: 16px 0;
  font-size: 13px;
  line-height: 1.5;
  white-space: pre;
}

.lea-answer-text code {
  font-family: "Fira Code", "SF Mono", Monaco, "Courier New", monospace;
  font-size: 0.9em;
}

.lea-answer-text p code,
.lea-answer-text li code {
  background: rgba(255, 79, 118, 0.08);
  color: var(--brightPink);
  padding: 2px 6px;
  border-radius: 4px;
}

.lea-answer-text hr {
  border: none;
  height: 1px;
  background: rgba(255, 79, 118, 0.2);
  margin: 24px 0;
}

/* --------------------------------------------------------
   Image Generation Chips (Task 28)
   -------------------------------------------------------- */

.img-gen-group {
  margin-bottom: 1.5rem;
}

.img-gen-group-label {
  font-size: 1.6rem;
  font-weight: 500;
  color: var(--eerieBlack);
  margin-bottom: 0.8rem;
}

.img-gen-group-label span {
  font-weight: 400;
  opacity: 0.5;
}

.img-gen-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.img-gen-chip {
  font-family: inherit;
  font-size: 1.4rem;
  padding: 0.6rem 1.4rem;
  background: var(--white);
  border: 1px solid rgba(255, 79, 118, 0.3);
  border-radius: 100px;
  color: var(--eerieBlack);
  cursor: pointer;
  transition: all 0.2s ease;
}

.img-gen-chip:hover {
  border-color: var(--brightPink);
  background: rgba(255, 79, 118, 0.05);
}

.img-gen-chip.active {
  background: var(--brightPink);
  color: var(--white);
  border-color: var(--brightPink);
}

.img-gen-other-input {
  display: none;
  margin-top: 0.8rem;
}

.img-gen-other-input input {
  padding: 1rem 1.5rem;
  border: 1px solid rgba(255, 79, 118, 0.3);
  border-radius: 8px;
  font-size: 1.4rem;
}

/* --------------------------------------------------------
   Responsive Adjustments for New Rules
   -------------------------------------------------------- */

@media (max-width: 992px) {

  .input-container {
    padding: 1rem;
  }

  #lea-interaction .msg-img img.chat-image {
    max-width: 100%;
  }

}

@media (max-width: 768px) {

  .msg-utente,
  .msg-muselia {
    width: 100%;
  }

  .file-caricato {
    padding: 4px 8px;
  }

  .file-caricato img {
    width: 32px;
    height: 32px;
  }

}

/* --------------------------------------------------------
   Grounding Sources & Search Suggestions
   -------------------------------------------------------- */

.grounding-sources-section {
  padding: 1.5rem 0 0 0;
  margin-top: 1.5rem;
  border-top: 1px solid rgba(255, 79, 118, 0.15);
}

.grounding-notice {
  display: flex;
  align-items: center;
}

.grounding-header {
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.sources-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.source-item {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.source-number {
  color: var(--brightPink);
  font-size: 1.3rem;
  flex-shrink: 0;
}

.source-link {
  font-size: 1.3rem;
  word-break: break-word;
}

.grounding-search-entrypoint {
  margin-top: 1.5rem;
}

.grounding-history-notice {
  display: flex;
  align-items: center;
}

/* --------------------------------------------------------
   Reader & Export Dropdowns (dynamically created)
   -------------------------------------------------------- */

.reader-dropdown-options {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  max-height: 340px;
  margin-top: 8px;
  padding: 12px;
  background-color: var(--eerieBlack);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.reader-dropdown-options button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
  white-space: nowrap;
}

.reader-dropdown-options button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.reader-dropdown-options label {
  display: block;
  color: var(--white);
  margin-left: 0;
}

.reader-dropdown-options input[type="range"] {
  display: block;
  width: 100%;
  appearance: none;
  -webkit-appearance: none;
  height: 3px;
  background-color: var(--brightPink);
  outline: none;
  padding: 0;
  border: none;
}

.reader-dropdown-options input[type="range"]::-webkit-slider-thumb {
  appearance: none;
  -webkit-appearance: none;
  width: 10px;
  height: 10px;
  background-color: var(--screaminGreen);
  border-radius: 50%;
  cursor: pointer;
}

.dropdown-classi {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 180px;
  padding: 12px;
  background-color: var(--eerieBlack);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
  z-index: 1000;
}

.dropdown-classi button {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--white);
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.dropdown-classi button:hover {
  background: rgba(255, 255, 255, 0.1);
}

.reader-dropdown-options.show,
.dropdown-classi.show {
  display: block;
}

/* --------------------------------------------------------
   Missing Utility Classes (used by dynamic JS)
   -------------------------------------------------------- */

.text-xsm {
  font-size: clamp(1.2rem, 1.2vw, 1.2rem);
  line-height: 1.3;
}

.text-xmd {
  font-size: clamp(1.8rem, 1.8vw, 1.8rem);
  line-height: 1.3;
}

.mt-15 {
  margin-top: 15px;
}

.mr-15 {
  margin-right: 15px;
}

/* ================================================================
   ASSISTANT MESSAGE — Top Bar, Action Buttons & Speech Input
   ================================================================ */

/* ── Top bar (profile + action icons + hidden dropdowns) ──────── */

.msg-muselia .reader-dropdown {
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 1.5rem;
  background: transparent;   /* ← no separate background */
  padding: 0;                /* ← no extra box */
  border: none;
}

/* ── Profile avatar + name ────────────────────────────────────── */

.msg-muselia .msg-profile {
  display: flex;
  align-items: center;
  gap: 8px;
}

.msg-muselia .msg-profile img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
}

/* ── Icon buttons row ─────────────────────────────────────────── */

.msg-muselia .msg-icon {
  display: flex;
  align-items: center;
  gap: 2px;
}

.msg-muselia .icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  color: var(--eerieBlack);
  font-size: 1.3rem;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.msg-muselia .icon-button:hover:not(:disabled) {
  background-color: rgba(255, 79, 118, 0.08);
  color: var(--brightPink);
}

.msg-muselia .icon-button:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.msg-muselia .icon-button:disabled:hover {
  background: transparent;
  color: var(--eerieBlack);
}

/* Feedback state colours */
.msg-muselia .icon-button i.fa-thumbs-up.green  { color: var(--screaminGreen); }
.msg-muselia .icon-button i.fa-thumbs-down.red   { color: var(--red); }
.msg-muselia .icon-button i.fa-copy.light-black   { color: var(--eerieBlack); }

/* ── Reader & Export dropdowns (position relative to top bar) ── */

.msg-muselia .reader-dropdown .reader-dropdown-options,
.msg-muselia .reader-dropdown .dropdown-classi {
  top: calc(100% + 6px);
  right: 0;
  left: auto;
}

/* ── Segnala (report) bar ─────────────────────────────────────── */

.msg-muselia .segnala {
  text-align: right;
  margin-top: 0.8rem;
}

/* ── Speech-to-text input button states ───────────────────────── */

#startBtn_speech_1,
#stopBtn_speech_1 {
  transition: color 0.15s ease;
}

#startBtn_speech_1:hover {
  color: var(--byzantineBlue);
}

#stopBtn_speech_1 {
  color: var(--red);
  animation: stt-pulse 1.2s ease-in-out infinite;
}

@keyframes stt-pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.5; }
}

#input-email-teacher-lea{
  display: none;
}

/* ── Actions Dropdown — match upload dropdown style ── */
#actions-dropdown {
  display: none;
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  width: max-content;
  min-width: 220px;
  padding: 15px 20px;
  background-color: var(--white);
  border: solid 1px var(--brightPink);
  border-radius: 8px;
  z-index: 10;
}

#actions-dropdown.show {
  display: block;
}

/* Force action buttons to stack vertically (like upload labels do) */
#actions-dropdown > button {
  display: flex;
  width: 100%;
  white-space: nowrap;
}

.popup-lezione {
  position: relative;
  width: 80%;
  max-height: 80vh;
  aspect-ratio: 16 / 9;
}

.popup-lezione iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 20px;
}