/* Button pre-styling (used in edit_quiz.html) */
.btn-pre {
  min-width: 40px;
}

/* Toolbar pre-styling (used in edit_quiz.html) */
.toolbar-pre {
  margin-bottom: 10px;
}


/* =============================================================================
   2. LAYOUT & CONTAINERS
   ============================================================================= */

/* Container details - main content container */
.container-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

/* Floating toolbar - fixed toolbar for edit pages */
.floating-toolbar {
  position: fixed;
  top: 100px;
  right: 10px;
  background-color: #f8f9fa;
  border: 1px solid #ddd;
  border-radius: 2px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 0;
  z-index: 1000;
  display: flex;
  flex-direction: column;
}

.floating-toolbar .btn {
  margin: 2px;
}


/* Border section - content box with styling */
.border-section {
  padding: 10px 10px 12px 10px;
  background-color: #ecf0f2;
  border: 1px solid #000;
  border-radius: 10px;
}

/* Carousel container for image galleries */
.carousel-container {
  display: flex;
  max-width: max-content;
  overflow: hidden;
  white-space: nowrap;
}

.carousel-control-prev:hover,
.carousel-control-next:hover {
  opacity: 1;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
  filter: invert(0%);
  width: 3rem;
  height: 3rem;
}

.carousel-item img {
  border-radius: 10px;
  height: auto;
  width: auto;
  max-width: 600px;
  max-height: 600px;
}

/* =============================================================================
   3. TEXT & DATA DISPLAY
   ============================================================================= */

/* Details data - inline data display blocks */
.details_data {
  margin-bottom: 0;
  padding: 0.5rem 0 0.5rem 0;
  display: inline-block;
}

/* Details title - for data labels */
.details_title {
  margin-bottom: 0;
  padding: 0;
  font-weight: 700;
}

/* Header color - for headers on dark/colored backgrounds */
.header-color {
  color: #f5faff;
}

/* =============================================================================
   4. LISTS & TABLES
   ============================================================================= */

/* Notes list - scrollable list for notes/content items */
.notes-list {
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
  border-color: #0000ff;
  border-width: 1px;
  border-style: solid;
}

/* Prompts list - styled list for AI prompts */
.prompts-list {
  font-family: 'Inter', sans-serif;
  font-size: 1.1rem;
  color: #000099;
  width: 100%;
  max-width: 100%;
  overflow-y: auto;
}

/* Prompt selection states */
.unselected-prompt {
  font-weight: 500;
}

.selected-prompt {
  font-weight: 700;
  background-color: #cccccc;
}


.works-list {
  display: flex;
  flex-direction: column;
  background-color: #fafefe;
  border-radius: 10px;
  width: 100%;
}
.works-row-outline {
  display: flex;
  flex-direction: column;
  border-radius: 10px;
  width: 100%;
}

.works-row {
  display: flex;
  flex-direction: row;
  gap: 8px;
  align-items: center;
  background-color: #f2fcff;
  border: 1px solid #ccc;
  border-radius: 10px;
}
.works-row .works-col-status { flex: 0 0 100px; min-width: 100px; }
.works-row .works-col-type { flex: 0 0 100px; min-width: 100px; }
.works-row .works-col-title { flex: 1 1 0; min-width: 150px; }
.works-row .works-col-actions { flex: 0 0 200px; min-width: 200px; }

.works-opus-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  background-color: #e0eef5;
  border-bottom: 1px solid #ccc;
  padding: 4px;
  border-radius: 10px;
}
.works-opus-row .works-col-status { flex: 0 0 100px; min-width: 100px; }
.works-opus-row .works-col-type { flex: 0 0 100px; min-width: 100px; }
.works-opus-row .works-col-title { flex: 1 1 0; min-width: 150px; }
.works-opus-row .works-col-actions { flex: 0 0 200px; min-width: 200px; }

.works-list-cell {
  display: flex;
  justify-content: start;
  padding: 0 8px;
}
.works-opus-row .works-col-status,
.works-opus-row .works-col-type {
  display: flex;
  justify-content: center;
}
.works-opus-row .works-col-title {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
}
.works-opus-row .works-col-actions {
  display: flex;
  justify-content: flex-end;
  gap: 4px;
}

@media (max-width: 768px) {
  .works-opus-row {
    flex-wrap: wrap;
  }
  .works-opus-row .works-col-status,
  .works-opus-row .works-col-type {
    order: 1;
    flex: 0 0 60px;
    min-width: 60px;
  }
  .works-opus-row .works-col-actions {
    order: 1;
    flex: 1 1 0;
    min-width: 0;
    justify-content: flex-end;
  }
  .works-opus-row .works-col-title {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    min-width: 0;
  }
  .works-opus-row .works-btn-try {
    font-size: 0.7rem;
    padding-left: 0.375rem;
    padding-right: 0.375rem;
  }
}

.works-list-cell2 {
  display: inline-flex;
  min-width: 200px;
  border-radius: 10px;
  padding: 3px 5px 3px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  background-color: #ecf4f9;
  box-shadow: 2px 2px 0 rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: inherit;
  word-wrap: break-word;
  overflow-wrap: break-word;
  white-space: normal;
}


.small-avatar {
  max-width: 50px;
  max-height: 50px;
}

/* =============================================================================
   5. NOTES & EDITOR COMPONENTS
   ============================================================================= */

/* Notes column layout */
/* .notes-column {
  position: relative;
  display: flex;
  flex-direction: column;
}


/* .notes-container {
  flex: 1 1 auto;
} */

/* Individual note styling 
.note {
  top: 0;
  left: 0;
  width: 100%;
  display: none;
}
*/

/* .note input {
  width: 300px;
} */

/* Note text editor - contenteditable div for rich text 
.noteText {
  width: 100%;
  height: 100%;
  resize: none;
  background-color: #fff;
  border: 1px solid var(--title);
  border-radius: 2px;
  padding: 10px;
  outline: none;
  overflow-y: scroll;
}

.noteText:empty::before {
  content: attr(data-placeholder);
  color: #888;
  pointer-events: none;
  display: block;
}


/* Typography inside note text editor */
.noteText h1 { 
  font-size: 2rem;
  margin: 1rem 0 .6rem;
}

.noteText h2 { 
  font-size: 1.6rem;
  margin: 1rem 0 .6rem;
}

.noteText h3 { 
  font-size: 1.4rem;
  margin: 1rem 0 .5rem;
}

.noteText h4 { 
  font-size: 1.2rem;
  margin: 1rem 0 .4rem;
}

.noteText h5 { 
  font-size: 1.05rem;
  margin: .8rem 0 .3rem;
}

.noteText p,
.noteText li,
.noteText blockquote { 
  margin: .5rem 0;
}

.noteText blockquote { 
  border-left: 4px solid #d1d5db;
  padding-left: .75rem;
  color: #374151;
}

.noteText ul,
.noteText ol { 
  padding-left: 1.4rem;
}

.noteText hr { 
  border: none;
  border-top: 1px solid #e5e7eb;
  margin: 1rem 0;
}

.noteText img { 
  max-width: 100%;
  height: auto;
  display: block;
  margin: .5rem 0;
}
*/
/* =============================================================================
   6. ANIMATIONS
   ============================================================================= */

@keyframes pulse {
  0% { 
    opacity: 1;
  }
  50% { 
    opacity: 0.7;
  }
  100% { 
    opacity: 1;
  }
}

/* =============================================================================
   8. RESPONSIVE DESIGN - MOBILE
   ============================================================================= */

@media (max-width: 768px) {
  /* Button adjustments */
  .do-btn {
    width: 1rem;
    height: 1rem;
    padding: 0 !important;
  }

  .do-btn .bi {
    font-size: 1rem;
  }

  .nav-btn {
    height: 3rem;
    padding: 0 !important;
  }

  .nav-btn .bi {
    font-size: 3rem;
  }

  #navSelectFont {
    width: auto !important;
    height: 1rem !important;
    font-size: 1rem !important;
    margin-right: 0.4rem !important;
  }

  .border-section {
    margin: 0;
    flex-wrap: wrap;
  }

  /* Notes column adjustments */
  /* .notes-column {
    width: 100%;
  }

  .note input {
    width: 30%;
  } */

  /* Works list mobile adjustments */
  .works-row {
    flex-wrap: wrap;
  }

}

/* =============================================================================
   9. RESPONSIVE DESIGN - DESKTOP
   ============================================================================= */

@media (min-width: 769px) {
  .border-section {
    margin-left: 10px;
    margin-top: 10px;
    margin-bottom: 10px;
  }

  /* .notes-column {
    width: 50%;
    flex-basis: 50%;
  } */

  .works-list-cell2 {
    min-width: 400px;
  }
}

/* Additional notes-column media query for consistency */
/* @media (max-width: 768px) {
  .notes-column {
    flex-basis: 50%;
  }
} */

/* =============================================================================
   10. FORM & BUTTON UTILITIES (Bootstrap-compatible replacements)
   ============================================================================= */

/* Base button */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.375rem 0.75rem;
  border: 1px solid transparent;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.5;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.15s, border-color 0.15s, color 0.15s;
  white-space: nowrap;
  vertical-align: middle;
}
.btn:disabled, .btn.disabled {
  opacity: 0.6;
  cursor: not-allowed;
  pointer-events: none;
}

.btn-primary { background-color: #2563eb; color: #fff; border-color: #2563eb; }
.btn-primary:hover { background-color: #1d4ed8; border-color: #1d4ed8; }

.btn-success { background-color: #16a34a; color: #fff; border-color: #16a34a; }
.btn-success:hover { background-color: #15803d; border-color: #15803d; }

.btn-danger { background-color: #dc2626; color: #fff; border-color: #dc2626; }
.btn-danger:hover { background-color: #b91c1c; border-color: #b91c1c; }

.btn-warning { background-color: #d97706; color: #fff; border-color: #d97706; }
.btn-warning:hover { background-color: #b45309; border-color: #b45309; }

.btn-secondary { background-color: #6b7280; color: #fff; border-color: #6b7280; }
.btn-secondary:hover { background-color: #4b5563; border-color: #4b5563; }

.btn-light { background-color: #f3f4f6; color: #111827; border-color: #d1d5db; }
.btn-light:hover { background-color: #e5e7eb; }

.btn-info { background-color: #0891b2; color: #fff; border-color: #0891b2; }
.btn-info:hover { background-color: #0e7490; }

.btn-outline-primary { background-color: transparent; color: #2563eb; border-color: #2563eb; }
.btn-outline-primary:hover { background-color: #2563eb; color: #fff; }

.btn-outline-secondary { background-color: transparent; color: #6b7280; border-color: #6b7280; }
.btn-outline-secondary:hover { background-color: #6b7280; color: #fff; }

.btn-outline-warning { background-color: transparent; color: #d97706; border-color: #d97706; }
.btn-outline-warning:hover { background-color: #d97706; color: #fff; }

.btn-outline-info { background-color: transparent; color: #0891b2; border-color: #0891b2; }
.btn-outline-info:hover { background-color: #0891b2; color: #fff; }

.btn-outline-danger { background-color: transparent; color: #dc2626; border-color: #dc2626; }
.btn-outline-danger:hover { background-color: #dc2626; color: #fff; }

.btn-sm { padding: 0.25rem 0.5rem; font-size: 0.75rem; }
.btn-lg { padding: 0.5rem 1rem; font-size: 1rem; }

/* Form controls */
.form-control {
  display: block;
  width: 100%;
  padding: 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
}
.form-control:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-control::placeholder { color: #9ca3af; }
.form-control-sm { padding: 0.2rem 0.5rem; font-size: 0.8rem; }

.form-select {
  display: block;
  width: 100%;
  padding: 0.375rem 2rem 0.375rem 0.75rem;
  font-size: 0.875rem;
  line-height: 1.5;
  color: #111827;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  appearance: auto;
  box-sizing: border-box;
  transition: border-color 0.15s;
}
.form-select:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}
.form-select-sm { padding: 0.2rem 1.5rem 0.2rem 0.5rem; font-size: 0.8rem; }

.form-label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.25rem;
  font-size: 0.875rem;
  color: #374151;
}
.fw-bold { font-weight: 700 !important; }
.fw-semibold { font-weight: 600 !important; }

/* Toggle switch (form-check form-switch) */
.form-check {
  display: flex;
  align-items: center;
  gap: 0.375rem;
}
.form-check-label {
  font-size: 0.875rem;
  cursor: pointer;
}
.form-check-input {
  width: 1rem;
  height: 1rem;
  cursor: pointer;
  accent-color: #2563eb;
}
.form-switch .form-check-input {
  width: 2rem;
  height: 1rem;
  appearance: none;
  background-color: #d1d5db;
  border-radius: 9999px;
  position: relative;
  cursor: pointer;
  transition: background-color 0.2s;
  flex-shrink: 0;
}
.form-switch .form-check-input::before {
  content: '';
  position: absolute;
  top: 0.1rem;
  left: 0.1rem;
  width: 0.8rem;
  height: 0.8rem;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}
.form-switch .form-check-input:checked {
  background-color: #2563eb;
}
.form-switch .form-check-input:checked::before {
  transform: translateX(1rem);
}

/* Form text */
.form-text { font-size: 0.8rem; color: #6b7280; display: block; margin-top: 0.2rem; }
.text-muted { color: #6b7280 !important; }
.text-danger { color: #dc2626 !important; }
.text-success { color: #16a34a !important; }
.text-warning { color: #d97706 !important; }
.text-primary { color: #2563eb !important; }
.text-center { text-align: center; }

/* Input group */
.input-group {
  display: flex;
  align-items: stretch;
}
.input-group .form-control {
  flex: 1;
  border-right: none;
  border-radius: 0.375rem 0 0 0.375rem;
}
.input-group .btn {
  border-radius: 0 0.375rem 0.375rem 0;
}

/* Badge */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.45rem;
  font-size: 0.75rem;
  font-weight: 600;
  border-radius: 9999px;
  white-space: nowrap;
}
.bg-danger { background-color: #dc2626; color: #fff; }
.bg-success { background-color: #16a34a; color: #fff; }
.bg-warning { background-color: #d97706; color: #fff; }
.bg-primary { background-color: #2563eb; color: #fff; }
.bg-secondary { background-color: #6b7280; color: #fff; }

/* Table */
.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
}
.table th, .table td {
  padding: 0.5rem 0.75rem;
  border-bottom: 1px solid #e5e7eb;
  text-align: left;
  vertical-align: middle;
}
.table th { font-weight: 600; background-color: #f9fafb; }
.table-sm th, .table-sm td { padding: 0.25rem 0.5rem; }
.align-middle td, .align-middle th { vertical-align: middle; }

/* Modal (custom, Bootstrap-compatible IDs) */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 1040;
  display: none;
}
.modal-backdrop.show { display: block; }
.modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1050;
  display: none;
  max-width: 90vw;
  max-height: 90vh;
  overflow-y: auto;
}
.modal.show { display: block; }
.modal-content {
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
  min-width: 300px;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.modal-title { font-weight: 600; font-size: 1rem; margin: 0; }
.modal-body { padding: 1rem; }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border-top: 1px solid #e5e7eb;
}
.btn-close {
  background: transparent;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: #6b7280;
  padding: 0.25rem;
}
.btn-close:hover { color: #111827; }
.btn-close::before { content: '\00D7'; }
.btn-close-white { color: #fff; }
.btn-close-white:hover { color: #f3f4f6; }

/* Nav tabs */
.nav-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  border-bottom: 2px solid #e5e7eb;
  padding-bottom: 0;
  margin-bottom: 0;
}
.nav-item { list-style: none; }
.nav-link {
  display: block;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  margin-bottom: -2px;
  border-radius: 0.25rem 0.25rem 0 0;
}
.nav-link:hover { color: #2563eb; }
.nav-link.active { color: #2563eb; border-bottom-color: #2563eb; font-weight: 600; }

/* Tab panels */
.tab-content { padding-top: 0.75rem; }
.tab-pane { display: none; }
.tab-pane.active { display: block; }

/* Spacing utilities */
.mb-0 { margin-bottom: 0 !important; }
.mb-1 { margin-bottom: 0.25rem !important; }
.mb-2 { margin-bottom: 0.5rem !important; }
.mb-3 { margin-bottom: 0.75rem !important; }
.mt-1 { margin-top: 0.25rem !important; }
.mt-2 { margin-top: 0.5rem !important; }
.mt-3 { margin-top: 0.75rem !important; }
.ms-1 { margin-left: 0.25rem !important; }
.ms-2 { margin-left: 0.5rem !important; }
.me-1 { margin-right: 0.25rem !important; }
.me-2 { margin-right: 0.5rem !important; }
.p-2 { padding: 0.5rem !important; }
.p-3 { padding: 0.75rem !important; }
.p-4 { padding: 1rem !important; }

/* Display utilities */
.d-none { display: none !important; }
.d-flex { display: flex !important; }
.d-inline-block { display: inline-block !important; }

/* Flex utilities */
.ms-auto { margin-left: auto !important; }
.align-items-center { align-items: center !important; }
.justify-content-between { justify-content: space-between !important; }
.justify-content-end { justify-content: flex-end !important; }
.flex-wrap { flex-wrap: wrap !important; }
.flex-column { flex-direction: column !important; }
.gap-1 { gap: 0.25rem !important; }
.gap-2 { gap: 0.5rem !important; }
.gap-3 { gap: 0.75rem !important; }
.g-2 { gap: 0.5rem !important; }
.g-3 { gap: 0.75rem !important; }

/* Width utilities */
.w-100 { width: 100% !important; }
.w-auto { width: auto !important; }

/* Border utilities */
.rounded { border-radius: 0.375rem; }
.border { border: 1px solid #e5e7eb; }
.border-top-0 { border-top: none !important; }

/* Alert */
.alert {
  padding: 0.75rem 1rem;
  border-radius: 0.375rem;
  margin-bottom: 0.75rem;
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
}
.alert-success { background-color: #d1fae5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger  { background-color: #fee2e2; color: #7f1d1d; border: 1px solid #fca5a5; }
.alert-warning { background-color: #fef3c7; color: #78350f; border: 1px solid #fcd34d; }

/* Row/col grid */
.row { display: flex; flex-wrap: wrap; margin: -0.375rem; }
.row > [class^="col"] { padding: 0.375rem; box-sizing: border-box; }
.col-md-1 { width: 8.333%; }
.col-md-2 { width: 16.666%; }
.col-md-3 { width: 25%; }
.col-md-4 { width: 33.333%; }
.col-md-5 { width: 41.666%; }
.col-md-6 { width: 50%; }
.col-md-7 { width: 58.333%; }
.col-md-8 { width: 66.666%; }
.col-md-12 { width: 100%; }

@media (max-width: 768px) {
  .col-md-1, .col-md-2, .col-md-3, .col-md-4, .col-md-5,
  .col-md-6, .col-md-7, .col-md-8, .col-md-12 { width: 100%; }
}

/* =============================================================================
   END OF EDIT.CSS
   ============================================================================= */

/* Preview top row (echo-edit parity with echo-contest) */
.preview-top-row {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  position: relative;
  min-height: 300px;
}

.preview-label {
  position: absolute;
  bottom: 0;
  left: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #1f2937;
  white-space: nowrap;
  padding-top: 0.25rem;
}

.pic-overlay-wrap {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  display: block;
  z-index: 2;
  pointer-events: none;
}

.preview-title-img {
  max-height: 300px;
  max-width: 300px;
  width: auto;
  height: auto;
  border-radius: 8px;
  object-fit: contain;
  display: block;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.pic-overlay-btn {
  position: absolute;
  top: 0;
  left: 0;
  transform: none;
  background: #f1f4fa30;
  color: #2563eb;
  border: 1px solid #2563eb;
  border-radius: 6px;
  padding: 0.38rem 0.95rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  transition: background-color 0.15s, border-color 0.15s;
  pointer-events: auto;
  z-index: 3;
}
.pic-overlay-btn:hover { background: #2563eb; border-color: #2563eb; color: white; }
.pic-overlay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  pointer-events: none;
}

.pic-overlay-menu {
  position: absolute;
  top: 34px;
  left: 0;
  transform: none;
  background: #fff;
  border: 1px solid #d1d5db;
  border-radius: 0.375rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 4;
  pointer-events: auto;
}

/* Floating upload window */
.floating-upload-window {
  position: fixed;
  width: min(440px, calc(100vw - 24px));
  z-index: 10000;
  background: #ffffff;
  border: 1px solid #cfd4dc;
  border-radius: 12px;
  box-shadow: 0 12px 34px rgba(15, 23, 42, 0.18);
  overflow: hidden;
}

.floating-upload-window__header {
  cursor: move;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(180deg, #4b5563 0%, #374151 100%);
  color: #ffffff;
}

.floating-upload-window__title-wrap {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.floating-upload-window__title {
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.2;
  word-break: break-word;
}

.floating-upload-window__subtitle {
  margin-top: 2px;
  font-size: 0.78rem;
  opacity: 0.95;
}

.floating-upload-window__close {
  border: none;
  background: transparent;
  color: #ffffff;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 1.8rem;
  line-height: 1;
  cursor: pointer;
}
.floating-upload-window__close:hover { background: rgba(255, 255, 255, 0.18); }

.floating-upload-window__body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.floating-upload-window__label {
  color: #111827;
  font-size: 0.9rem;
  font-weight: 600;
}

.floating-upload-window__input {
  width: 100%;
  border: 1px solid #93c5fd;
  border-radius: 8px;
  padding: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}
.floating-upload-window__input:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

.floating-upload-window__hint {
  color: #4b5563;
  font-size: 0.82rem;
  word-break: break-word;
}

.floating-upload-window__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.floating-upload-window__btn {
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.14s, border-color 0.14s, color 0.14s;
}

.floating-upload-window__btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.floating-upload-window__btn--secondary {
  background: #f3f4f6;
  color: #111827;
  border-color: #d1d5db;
}
.floating-upload-window__btn--secondary:hover:not(:disabled) { background: #e5e7eb; }

.floating-upload-window__btn--clipboard {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  text-align: left;
}
.floating-upload-window__btn--clipboard:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.floating-upload-window__btn--primary {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
}
.floating-upload-window__btn--primary:hover:not(:disabled) {
  background: #1d4ed8;
  border-color: #1d4ed8;
}

.floating-upload-window__status {
  max-height: 210px;
  overflow-y: auto;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #fafafa;
  padding: 8px;
  font-size: 0.9em;
}

@media (max-width: 640px) {
  .floating-upload-window {
    top: 12px !important;
    right: 12px !important;
    left: 12px;
    width: auto;
  }

  .floating-upload-window__actions {
    grid-template-columns: 1fr;
  }
}

.echo-supplement-scene-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.echo-supplement-scene-row {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.echo-supplement-scene-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.875rem;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  border: 1px solid #2563eb;
  color: #2563eb;
  background: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.15s, color 0.15s;
}

.echo-supplement-scene-btn:hover {
  background: #eff6ff;
}

.echo-supplement-scene-thumb {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 2px solid var(--border-color, #e5e7eb);
  display: block;
}

.echo-supplement-scene-delete {
  font-size: 0.82rem;
  padding: 0.45rem 0.65rem;
}
