/* Title tab: Spoiler Blur pill toggle (green theme) */
.edit-bar-tab-title .green-theme.toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1e1e1e;
  color: #00bfa5;
  border: 2px solid #00bfa5;
  border-radius: 7px;
  padding: 2px 16px 2px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  outline: none;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 1px 4px rgba(0,191,165,0.10);
  opacity: 0.85;
  letter-spacing: 0.01em;
}
.edit-bar-tab-title .green-theme.toggle-pill[aria-pressed="true"],
.edit-bar-tab-title .green-theme.toggle-pill.active {
  background: linear-gradient(90deg, #00bfa5 60%, #1de9b6 100%);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(0,191,165,0.18);
  opacity: 1;
}
.edit-bar-tab-title .green-theme.toggle-pill:focus {
  outline: 2px solid #00fff0;
  outline-offset: 1px;
}
.edit-bar-tab-title .green-theme.toggle-pill:not([aria-pressed="true"]):hover {
  border-color: #00fff0;
  color: #00fff0;
  opacity: 1;
}
/* Info tab: Show season/episode pill toggles - less rounded */
.edit-bar-tab-info .info-theme .toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  color: #bda6d9;
  border: 2px solid #bda6d9;
  border-radius: 5px !important;
  padding: 2px 16px 2px 16px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  outline: none;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 1px 4px rgba(193,88,220,0.10);
  opacity: 0.85;
  letter-spacing: 0.01em;
}
.edit-bar-tab-info .info-theme .toggle-pill[aria-pressed="true"],
.edit-bar-tab-info .info-theme .toggle-pill.active {
  background: linear-gradient(90deg, #8e24aa 60%, #c158dc 100%);
  color: #fff;
  border-color: #fff;
  box-shadow: 0 2px 8px rgba(193,88,220,0.18);
  opacity: 1;
}
.edit-bar-tab-info .info-theme .toggle-pill:focus {
  outline: 2px solid #e1b6fa;
  outline-offset: 1px;
}
.edit-bar-tab-info .info-theme .toggle-pill:not([aria-pressed="true"]):hover {
  border-color: #c158dc;
  color: #c158dc;
  opacity: 1;
}
/* Info tab: Show season/episode pill toggles */
.edit-bar-tab-info .info-theme .toggle-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #232323;
  color: #e1b6fa;
  border: 1.5px solid #c158dc;
  border-radius: 999px;
  padding: 2px 14px 2px 14px;
  font-size: 13px;
  font-weight: 500;
  margin-right: 8px;
  margin-left: 0;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border 0.18s, box-shadow 0.18s;
  outline: none;
  min-width: 0;
  min-height: 0;
  box-shadow: 0 1px 4px rgba(193,88,220,0.10);
}
.edit-bar-tab-info .info-theme .toggle-pill[aria-pressed="true"] {
  background: linear-gradient(90deg, #8e24aa 60%, #c158dc 100%);
  color: #fff;
  border-color: #c158dc;
  box-shadow: 0 2px 8px rgba(193,88,220,0.18);
}
.edit-bar-tab-info .info-theme .toggle-pill:focus {
  outline: 2px solid #e1b6fa;
  outline-offset: 1px;
}
/* Info tab: Season/Episode icons in Format group */
.edit-bar-tab-info .info-format-group .info-format-label[data-lucide] {
  color: #f0d9ff !important;
  stroke: #f0d9ff !important;
  opacity: 1;
  vertical-align: middle;
  margin: 0 3px;
  filter: drop-shadow(0 0 8px rgba(193, 88, 220, 0.18));
  transition: color 0.18s, stroke 0.18s, filter 0.18s;
}

.edit-bar-tab-info .info-format-group:hover .info-format-label[data-lucide] {
  color: #ffffff !important;
  stroke: #ffffff !important;
  filter: drop-shadow(0 0 10px rgba(193, 88, 220, 0.24));
}
/* Increment/Decrement Buttons for Range Inputs - Title tab (default/green theme) */
.edit-bar-range-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 12px;
  width: 22px;
  height: 22px;
  font-size: 13px;
  font-weight: 800;
  color: rgba(255,255,255,0.72);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 2px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14);
  transition: background 0.18s, border-color 0.18s, color 0.18s;
  outline: none;
}

.edit-bar-range-btn:active {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
}

.edit-bar-range-btn:focus {
  outline: 2px solid #00fff0;
  outline-offset: 1px;
}
/* Edit bar range button hover effect */
.edit-bar-range-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  color: #fff;
  border-color: rgba(255,255,255,0.18);
}

/* Increment/Decrement Buttons for Range Inputs - Info tab (purple theme) */
.edit-bar-tab-info .info-theme .edit-bar-range-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045)) !important;
  border: 1px solid rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.72) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14) !important;
}
.edit-bar-tab-info .info-theme .edit-bar-range-btn:active {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06)) !important;
  border-color: rgba(255,255,255,0.18) !important;
  color: #fff !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14) !important;
}
.edit-bar-tab-info .info-theme .edit-bar-range-btn:focus {
  outline: 2px solid #c158dc !important;
  outline-offset: 1px;
}
.edit-bar-tab-info .info-theme .edit-bar-range-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06)) !important;
  color: #fff !important;
  border-color: rgba(255,255,255,0.18) !important;
}
/* ── Edit Bar Settings Modal ────────────────────────────── */
@keyframes ebModalIn {
  from { opacity: 0; transform: translateY(-14px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)     scale(1);    }
}

.edit-bar-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.edit-bar-settings-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(4, 7, 18, 0.74);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 1;
  pointer-events: auto;
}

.edit-bar-settings-frame {
  position: relative;
  z-index: 2;
  width: min(760px, 96vw);
  max-height: min(88vh, 900px);
  background:
    radial-gradient(circle at top, rgba(0, 255, 240, 0.08), transparent 42%),
    linear-gradient(180deg, rgba(18, 22, 42, 0.96), rgba(10, 12, 28, 0.98));
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 18px;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.02);
  color: #fff;
  font-family: inherit;
  pointer-events: auto;
  overflow: hidden;
  animation: ebModalIn 0.22s ease;
}

.edit-bar-settings-frame::before {
  content: '';
  display: block;
  width: 54px;
  height: 4px;
  margin: 14px auto 0;
  border-radius: 999px;
  background: linear-gradient(90deg, #00fff0, #b57bff);
  box-shadow: 0 0 18px rgba(0, 255, 240, 0.24);
}

.edit-bar-settings-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 24px 16px 24px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.edit-bar-settings-header > span {
  font-size: 1.08rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: white;
  background: linear-gradient(90deg, #f8fbff 0%, #b8fff8 44%, #d7b7ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.edit-bar-settings-close {
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  color: rgba(255,255,255,0.8);
  cursor: pointer;
  padding: 6px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  line-height: 0;
}
.edit-bar-settings-close i,
.edit-bar-settings-close svg {
  color: rgba(255,255,255,0.8) !important;
  stroke: rgba(255,255,255,0.8) !important;
}
.edit-bar-settings-close:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.14), rgba(255,255,255,0.08));
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 8px 20px rgba(0,0,0,0.18);
}
.edit-bar-settings-header button i,
.edit-bar-settings-header button svg,
.edit-bar-settings-btn i,
.edit-bar-settings-btn svg {
  color: inherit !important;
  stroke: currentColor !important;
}

.edit-bar-settings-content {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 14px 24px 12px 24px;
  overflow-y: auto;
}

.edit-bar-settings-content::-webkit-scrollbar {
  width: 8px;
}

.edit-bar-settings-content::-webkit-scrollbar-track {
  background: rgba(255,255,255,0.03);
  border-radius: 999px;
}

.edit-bar-settings-content::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, rgba(0,255,240,0.28), rgba(181,123,255,0.24));
  border-radius: 999px;
}

/* Section blocks */
.eb-settings-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.eb-settings-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
  padding-left: 12px;
  border-left: 3px solid rgba(255, 255, 255, 0.25);
  text-shadow: 0 1px 10px rgba(0, 0, 0, 0.18);
}

.eb-settings-section:first-of-type .eb-settings-section-title,
.eb-settings-section-title[data-theme="title"] {
  color: #b8fff8;
  border-left-color: rgba(0, 255, 240, 0.42);
}

.eb-settings-section-title[data-theme="info"] {
  color: #e4c8ff;
  border-left-color: rgba(181, 123, 255, 0.42);
}

.eb-settings-section-body {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.02));
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}

.eb-settings-section:first-of-type .eb-settings-section-body {
  background:
    linear-gradient(180deg, rgba(0, 255, 240, 0.06), rgba(255, 255, 255, 0.02));
  border-color: rgba(0, 255, 240, 0.1);
}

.eb-settings-section:last-of-type .eb-settings-section-body {
  background:
    linear-gradient(180deg, rgba(181, 123, 255, 0.065), rgba(255, 255, 255, 0.02));
  border-color: rgba(181, 123, 255, 0.12);
}

.eb-settings-label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, box-shadow 0.15s;
  user-select: none;
  border: 1px solid rgba(255,255,255,0.03);
}
.eb-settings-label:hover {
  background: rgba(255,255,255,0.07);
  border-color: rgba(255,255,255,0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.03);
}
.eb-settings-label span {
  font-size: 13px;
  line-height: 1.35;
  color: rgba(255, 255, 255, 0.88);
  font-weight: 600;
}
.eb-settings-label input[type="checkbox"] {
  accent-color: rgba(255, 255, 255, 0.9);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  cursor: pointer;
}
.eb-settings-section:first-of-type .eb-settings-label input[type="checkbox"] {
  accent-color: #5df4ea;
}

.eb-settings-section:last-of-type .eb-settings-label input[type="checkbox"] {
  accent-color: #c89bff;
}

.eb-settings-section:first-of-type .eb-settings-label:has(input[type="checkbox"]:checked) {
  background: linear-gradient(180deg, rgba(0,255,240,0.12), rgba(0,255,240,0.05));
  border-color: rgba(0,255,240,0.22);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(0,255,240,0.04);
}

.eb-settings-section:last-of-type .eb-settings-label:has(input[type="checkbox"]:checked) {
  background: linear-gradient(180deg, rgba(181,123,255,0.14), rgba(181,123,255,0.05));
  border-color: rgba(181,123,255,0.24);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 0 0 1px rgba(181,123,255,0.05);
}

.eb-settings-label:has(input[type="checkbox"]:checked) span {
  color: #ffffff;
}

/* Footer buttons */
.eb-settings-footer {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 16px 24px 22px 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 8px;
}
.edit-bar-settings-reset {
  min-width: 132px;
  background: linear-gradient(180deg, rgba(255,255,255,0.09), rgba(255,255,255,0.04));
  color: rgba(255,255,255,0.82);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 999px;
  padding: 0.78rem 1.08rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Gabarito', sans-serif;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06), 0 10px 22px rgba(0,0,0,0.14);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.edit-bar-settings-reset:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.13), rgba(255,255,255,0.07));
  border-color: rgba(255,255,255,0.22);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 14px 28px rgba(0,0,0,0.18);
}
.edit-bar-settings-save {
  min-width: 132px;
  background: linear-gradient(135deg, rgba(0,255,240,0.2), rgba(153,69,255,0.18));
  color: rgba(255,255,255,0.96);
  border: 1px solid rgba(0,255,240,0.24);
  border-radius: 999px;
  padding: 0.78rem 1.08rem;
  font-size: 0.76rem;
  font-weight: 800;
  cursor: pointer;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-family: 'Gabarito', sans-serif;
  box-shadow: 0 12px 26px rgba(0, 255, 240, 0.14), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.edit-bar-settings-save:hover {
  background: linear-gradient(135deg, rgba(0,255,240,0.28), rgba(153,69,255,0.24));
  border-color: rgba(0,255,240,0.34);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 255, 240, 0.18), inset 0 1px 0 rgba(255,255,255,0.1);
}
/* Make Lucide icons in the edit bar formatting buttons white */
.edit-bar .format-btn i,
.edit-bar .format-btn svg {
  color: #fff !important;
  stroke: #fff !important;
}

/* Override the inline background/border styles JS sets on tab content panels */
.edit-bar-tab-content {
  background: transparent !important;
  border-bottom: none !important;
  border-top: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: 1;
  min-width: 0;
  overflow: visible;
}

/* Style for Title/Info tab buttons */
.edit-bar-tabs {
  display: flex;
  gap: 6px;
  margin-right: 10px;
  align-items: center;
  padding: 4px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.025));
  border: 1px solid rgba(255,255,255,0.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04);
}
.edit-bar-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  min-height: 36px;
  padding: 0 10px;
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.82);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s, box-shadow 0.18s;
}
.edit-bar-settings-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}
.edit-bar-tab {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  color: rgba(255,255,255,0.6);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s, box-shadow 0.18s;
  outline: none;
  letter-spacing: 0.04em;
  position: relative;
  z-index: 2;
  min-width: 38px;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14);
}
.edit-bar-tab[data-tab="title"].active {
  background: linear-gradient(180deg, rgba(0,255,240,0.18), rgba(0,200,190,0.10));
  border-color: rgba(0,255,240,0.45);
  color: #00fff0;
  box-shadow: inset 0 1px 0 rgba(0,255,240,0.12), 0 0 10px rgba(0,255,240,0.15);
}
.edit-bar-tab[data-tab="info"].active {
  background: linear-gradient(180deg, rgba(181,123,255,0.22), rgba(142,36,170,0.12));
  border-color: rgba(181,123,255,0.42);
  color: #e7cfff;
  box-shadow: inset 0 1px 0 rgba(181,123,255,0.12), 0 0 10px rgba(181,123,255,0.14);
}
.edit-bar-tab.active {
  color: #fff;
}
.edit-bar-tab:not(.active):hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}
/* Lucide icon style for edit bar tabs */
.edit-bar-tab .lucide {
  width: 18px;
  height: 18px;
  margin-right: 0;
  display: block;
  stroke-width: 2.2px;
}
/* Wrapper keeps the toggle pill and bar container adjacent (not separated by parent gap) */
.edit-bar-wrapper {
  display: flex;
  flex-direction: column;
  width: min(1280px, 100%);
  max-width: 100%;
  margin: 0.75rem auto 0.5rem auto;
  align-items: stretch;
}

/* edit-bar-container: full-width glass bar, sits below the pill */
.edit-bar-container {
  display: flex;
  flex-direction: row;
  width: min(1280px, 100%);
  max-width: 100%;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(0, 255, 240, 0.18);
  border-top: none;
  border-radius: 0 0 10px 10px;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  margin: 0 0 14px 0;
  transition: max-height 0.3s ease, opacity 0.25s ease, padding 0.25s ease;
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  padding: 0 18px;
  position: relative;
  z-index: 20;
  box-sizing: border-box;
}

.edit-bar-container.visible {
  max-height: 240px;
  opacity: 1;
  padding: 12px 18px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* Toggle pill — full-width, attached to top of bar when open */
.floating-edit-bar-toggle.edit-bar-toggle {
  position: relative !important;
  top: auto !important;
  left: 0 !important;
  right: auto !important;
  transform: none !important;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: min(1280px, 100%) !important;
  max-width: 100% !important;
  height: auto !important;
  min-width: 0 !important;
  box-sizing: border-box;
  background: rgba(0, 255, 240, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-bottom: none !important;
  border-radius: 12px 12px 0 0 !important;
  color: rgba(0, 255, 240, 0.75) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 7px 14px !important;
  height: auto !important;
  max-width: none !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  cursor: pointer;
  transition: background 0.18s, color 0.18s;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.04) !important;
  margin: 0;
  z-index: 21;
}
.floating-edit-bar-toggle.edit-bar-toggle:hover {
  background: rgba(0, 255, 240, 0.12) !important;
  color: #00fff0 !important;
}
/* When closed: fully rounded standalone pill */
.floating-edit-bar-toggle.edit-bar-toggle:not(.active) {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 12px !important;
  margin-bottom: 8px;
}
/* Chevron rotation: UP when open (active), DOWN when closed */
.floating-edit-bar-toggle.edit-bar-toggle i,
.floating-edit-bar-toggle.edit-bar-toggle svg {
  color: rgba(0, 255, 240, 0.75) !important;
  stroke: rgba(0, 255, 240, 0.75) !important;
  transition: transform 0.25s ease;
  margin-right: 0 !important;
  /* Keep icon compact — same as overlay toggle chevron */
  width: 13px !important;
  height: 13px !important;
  min-width: 13px !important;
  min-height: 13px !important;
  /* Closed state: chevron points DOWN */
  transform: rotate(180deg);
}
.floating-edit-bar-toggle.edit-bar-toggle.active i,
.floating-edit-bar-toggle.edit-bar-toggle.active svg {
  /* Open state: chevron points UP */
  transform: rotate(0deg);
  color: rgba(0, 255, 240, 0.75) !important;
  stroke: rgba(0, 255, 240, 0.75) !important;
}
.edit-bar-toggle-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: inherit;
}

.edit-bar {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  padding: 0;
  align-items: center;
  justify-content: flex-start;
  width: 100%;
  max-width: 1900px;
  margin: 0 auto;
  overflow-x: auto;
  white-space: nowrap;
  min-width: 0;
  background: transparent;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE/Edge */
}

.edit-bar::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Webkit */
}


.edit-bar-group {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  padding: 6px 10px;
  gap: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  margin-right: 2px;
}

.edit-bar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 240, 0.8);
  margin-right: 2px;
  padding-right: 6px;
  border-right: 1px solid rgba(0, 255, 240, 0.18);
  white-space: nowrap;
}

.edit-bar-divider {
  height: 20px;
  width: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  margin: 0 4px;
}

/* Default group labels use the title/overlay teal */
.edit-bar-group-label,
.edit-bar-tab-title .edit-bar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(0, 255, 240, 0.8) !important;
  margin-right: 2px;
  padding-right: 6px;
  border-right: 1px solid rgba(0, 255, 240, 0.18) !important;
  white-space: nowrap;
}

/* Info tab gets its own purple label treatment */
.edit-bar .info-theme .edit-bar-group-label,
.edit-bar-tab-info .edit-bar-group-label,
.edit-bar-tab-info .info-theme .edit-bar-group-label,
.edit-bar-tab-info .info-format-group .edit-bar-group-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(225, 182, 250, 0.92) !important;
  margin-right: 2px;
  padding-right: 6px;
  border-right: 1px solid rgba(193, 88, 220, 0.22) !important;
  white-space: nowrap;
}

/* Force info-theme groups to use glass style, not JS inline dark background */
.edit-bar .info-theme.edit-bar-group,
.edit-bar .info-format-group,
.edit-bar-tab-info .edit-bar-group {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.09) !important;
  box-shadow: none !important;
}
.edit-bar select {
  background: #333;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 6px;
  padding: 0.48rem 2rem 0.48rem 0.6rem;
  font-size: 0.85rem;
  font-family: 'Gabarito', sans-serif;
  font-weight: 400;
  max-width: 110px;
  cursor: pointer;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml;charset=US-ASCII,%3Csvg%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20width%3D%22292.4%22%20height%3D%22292.4%22%3E%3Cpath%20fill%3D%22%23FFFFFF%22%20d%3D%22M287%2069.4a17.6%2017.6%200%200%200-13-5.4H18.4c-5%200-9.3%201.8-12.9%205.4A17.6%2017.6%200%200%200%200%2082.2c0%205%201.8%209.3%205.4%2012.9l128%20127.9c3.6%203.6%207.8%205.4%2012.8%205.4s9.2-1.8%2012.8-5.4L287%2095c3.5-3.5%205.4-7.8%205.4-12.8%200-5-1.9-9.2-5.5-12.8z%22%2F%3E%3C%2Fsvg%3E");
  background-repeat: no-repeat;
  background-position: right 0.7rem top 50%;
  background-size: 0.65rem auto;
}

.edit-bar select:hover,
.edit-bar select:focus {
  background-color: #333;
  border-color: rgba(0, 255, 240, 0.4);
  outline: none;
}

.edit-bar-tab-info select:hover,
.edit-bar-tab-info select:focus,
.edit-bar-tab-info .info-theme select:hover,
.edit-bar-tab-info .info-theme select:focus {
  border-color: rgba(193, 88, 220, 0.42);
}

.edit-bar select option {
  background: #333;
  color: white;
}

.edit-bar .edit-bar-button {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  color: white;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  padding: 0.55rem 0.8rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14);
  transition: background 0.18s, border-color 0.18s, transform 0.18s;
}

.edit-bar .edit-bar-button:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  transform: translateY(-1px);
}

.edit-bar .edit-bar-button i {
  width: 16px;
  height: 16px;
}

/* For text formatting buttons */
.edit-bar .format-btn {
  background: linear-gradient(180deg, rgba(255,255,255,0.11), rgba(255,255,255,0.045));
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  cursor: pointer;
  color: rgba(255,255,255,0.6);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.05), 0 10px 22px rgba(0,0,0,0.14);
  transition: background 0.18s, border-color 0.18s, color 0.18s, transform 0.18s;
}

.edit-bar .format-btn:hover {
  background: linear-gradient(180deg, rgba(255,255,255,0.15), rgba(255,255,255,0.06));
  border-color: rgba(255,255,255,0.18);
  color: #fff;
  transform: translateY(-1px);
}

/* Title tab (default/green) active formatting button */
.edit-bar-tab-title .format-btn.active {
  background: linear-gradient(180deg, rgba(0,255,240,0.18), rgba(0,200,190,0.10));
  border-color: rgba(0,255,240,0.45);
  color: #00fff0;
  box-shadow: inset 0 1px 0 rgba(0,255,240,0.12), 0 0 10px rgba(0,255,240,0.15);
}

/* Info tab (purple) active formatting button */
.edit-bar-tab-info .info-format-group .format-btn.active,
.edit-bar-tab-info .info-theme .format-btn.active {
  background: linear-gradient(180deg, rgba(193,88,220,0.24), rgba(142,36,170,0.14)) !important;
  border-color: rgba(193,88,220,0.46) !important;
  color: #f0d9ff !important;
  box-shadow: inset 0 1px 0 rgba(225,182,250,0.14), 0 0 10px rgba(193,88,220,0.16) !important;
}

/* Color picker styles */
.edit-bar .color-box {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), 0 10px 22px rgba(0,0,0,0.12);
}

/* Range slider styles */
.edit-bar-range {
  display: flex;
  align-items: center;
  gap: 8px;
}

.edit-bar-range input[type="range"] {
  width: 65px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(to right, #00bfa5, #8e24aa);
  border-radius: 2px;
  outline: none;
  cursor: pointer;
  flex-shrink: 0;
}

/* Info tab: match Title tab slider bar color */
.edit-bar-tab-info .info-theme .edit-bar-range input[type="range"] {
  background: linear-gradient(to right, #b56bff, #8e24aa) !important;
}

.edit-bar-tab-info .info-theme .edit-bar-range input[type="range"]::-webkit-slider-thumb,
.edit-bar-tab-info .edit-bar-range input[type="range"]::-webkit-slider-thumb {
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(193,88,220,0.1) !important;
}

.edit-bar-tab-info .info-theme .edit-bar-range input[type="range"]::-moz-range-thumb,
.edit-bar-tab-info .edit-bar-range input[type="range"]::-moz-range-thumb {
  background: #fff !important;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3), 0 0 0 1px rgba(193,88,220,0.1) !important;
}

.edit-bar-range input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.edit-bar-range input[type="range"]::-moz-range-thumb {
  width: 14px;
  height: 14px;
  background: #fff;
  border-radius: 50%;
  cursor: pointer;
  border: none;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}

.edit-bar-range .range-value {
  color: rgba(255,255,255,0.72);
  font-size: 12px;
  min-width: 30px;
}

/* Hide native title attribute for edit bar buttons */
.edit-bar [title] {
  pointer-events: none;
}

/* Responsive styles */
@media screen and (max-width: 1200px) {
  .edit-bar {
    gap: 8px;
  }
  
  .edit-bar-group {
    padding: 4px 6px;
  }
}
