/* ============================================================================
   Canva-Style Editor Toolbar
   ============================================================================ */

.canva-editor-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 40px;
  padding: 0 12px;
  background: transparent;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  position: relative;
  z-index: 200; /* Above sidebar (z-index: 50) so dropdown menus work */
}

.canva-toolbar-left,
.canva-toolbar-right {
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Save Status Indicator */
.save-status-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: default;
  user-select: none;
}

.save-status-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4caf50;
  box-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  transition: background 0.3s, box-shadow 0.3s;
}

.save-status-indicator.unsaved .save-status-dot {
  background: #ff9800;
  box-shadow: 0 0 6px rgba(255, 152, 0, 0.6);
  animation: pulse-dot 2s ease-in-out infinite;
}

.save-status-indicator.saving .save-status-dot {
  background: #2196f3;
  box-shadow: 0 0 6px rgba(33, 150, 243, 0.6);
  animation: pulse-dot 1s ease-in-out infinite;
}

@keyframes pulse-dot {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.save-status-text {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  white-space: nowrap;
}

.canva-toolbar-center {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
}

.canva-toolbar-title {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 4px 8px;
  border-radius: var(--radius-sm, 4px);
  border: 1px solid transparent;
  cursor: text;
  transition: all 0.15s ease;
  max-width: 300px;
  min-width: 100px;
  text-align: center;
}

.canva-toolbar-title:hover {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.1);
}

.canva-toolbar-title:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(0, 168, 255, 0.5);
  color: #fff;
  white-space: normal;
  overflow: visible;
  text-overflow: clip;
}

.canva-toolbar-title:empty::before {
  content: 'Untitled Collection';
  color: rgba(255, 255, 255, 0.4);
}

.canva-toolbar-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 4px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.canva-toolbar-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.canva-toolbar-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.canva-toolbar-btn:disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
}

.canva-toolbar-btn svg {
  flex-shrink: 0;
}

.canva-toolbar-btn-primary {
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.3);
  color: #00a8ff;
}

.canva-toolbar-btn-primary:hover {
  background: rgba(0, 168, 255, 0.25);
  color: #00a8ff;
}

.canva-toolbar-separator {
  width: 1px;
  height: 20px;
  background: rgba(255, 255, 255, 0.15);
  margin: 0 8px;
}

/* Dropdown Menu */
.canva-toolbar-dropdown {
  position: relative;
  z-index: 100;
}

.canva-toolbar-dropdown-trigger .dropdown-arrow {
  transition: transform 0.15s ease;
}

.canva-toolbar-dropdown.open .canva-toolbar-dropdown-trigger {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.canva-toolbar-dropdown.open .dropdown-arrow {
  transform: rotate(180deg);
}

.canva-toolbar-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  margin-top: 4px;
  min-width: 200px;
  background: var(--color-bg-base-darker, #060607);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-md, 8px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
  padding: 6px;
  z-index: 1000;
}

.canva-toolbar-dropdown.open .canva-toolbar-dropdown-menu {
  display: block;
}

.canva-dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm, 4px);
  color: rgba(255, 255, 255, 0.85);
  font-size: 13px;
  cursor: pointer;
  transition: background 0.15s ease;
  text-align: left;
}

.canva-dropdown-item:hover {
  background: rgba(255, 255, 255, 0.08);
}

.canva-dropdown-item svg {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.6);
}

.canva-dropdown-item .shortcut {
  margin-left: auto;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.4);
}

.canva-dropdown-item-danger {
  color: #f87171;
}

.canva-dropdown-item-danger:hover {
  background: rgba(248, 113, 113, 0.15);
}

.canva-dropdown-item-danger svg {
  color: #f87171;
}

.canva-dropdown-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.1);
  margin: 6px 0;
}

/* ============================================================================
   Canva-Style Sidebar
   ============================================================================ */

.canva-sidebar {
  display: flex;
  flex-direction: row;
  height: calc(100vh - 100px); /* 60px nav + 40px toolbar */
  position: sticky;
  top: 0;
  z-index: 50;
  flex-shrink: 0;
}

/* Icon Rail - thin strip always visible */
.canva-sidebar-rail {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  width: 56px;
  background: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  padding: 4px 0;
  gap: 0;
  z-index: 51;
  flex-shrink: 0;
}

.canva-rail-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 8px 4px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  cursor: pointer;
  transition: all 0.15s ease;
  position: relative;
}

.canva-rail-btn:hover,
.canva-rail-btn.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.canva-rail-btn.active {
  background: rgba(0, 168, 255, 0.15);
  color: #00a8ff;
}

.canva-rail-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.rail-btn-label {
  font-size: 9px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* Expandable Panel Container */
.canva-sidebar-panel {
  width: 0;
  overflow: hidden;
  background: rgba(13, 17, 23, 0.5);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  transition: width 0.2s ease;
  flex-shrink: 0;
}

.canva-sidebar-panel.expanded {
  width: 380px;
}

/* Wider settings panel for tag discovery bar */
.canva-sidebar-panel.expanded:has(#panel-settings.active) {
  width: 460px;
}

/* Individual Panels */
.canva-panel {
  display: none;
  flex-direction: column;
  height: 100%;
  width: 380px;
}

#panel-settings {
  width: 460px;
}

.canva-panel.active {
  display: flex;
}

.canva-panel-header {
  padding: 12px 16px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
  background: transparent;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.canva-panel-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #fff;
}

/* Lock button */
.canva-panel-lock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: none;
  border-radius: 4px;
  background: transparent;
  color: rgba(255, 255, 255, 0.3);
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.canva-panel-lock-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.6);
}

.canva-panel-locked .canva-panel-lock-btn {
  color: #00a8ff;
  background: rgba(0, 168, 255, 0.12);
}

.canva-panel-locked .canva-panel-lock-btn:hover {
  background: rgba(0, 168, 255, 0.2);
}

.canva-panel-content {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Panel Search Input */
.panel-search-input {
  width: calc(100% - 24px);
  margin: 12px;
  padding: 10px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  transition: border-color 0.2s;
}

.panel-search-input:focus {
  outline: none;
  border-color: rgba(0, 168, 255, 0.5);
}

.panel-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Text Panel Buttons */
.text-block-btn {
  display: flex;
  align-items: center;
  width: calc(100% - 24px);
  margin: 0 12px 8px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.text-block-btn:first-child {
  margin-top: 12px;
}

.text-block-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
}

.text-preview {
  flex: 1;
}

.text-preview-h1 {
  font-size: 18px;
  font-weight: 700;
}

.text-preview-h2 {
  font-size: 14px;
  font-weight: 600;
}

.text-preview-body {
  font-size: 13px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
}

.text-block-btn svg {
  width: 18px;
  height: 18px;
  margin-right: 12px;
  color: rgba(255, 255, 255, 0.5);
}

.panel-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 12px;
}

/* Panel Hint Text */
.panel-hint {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
  margin: 12px 12px 8px;
  line-height: 1.4;
}

/* Sports Panel */
.sports-selector {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0 12px 12px;
}

.sports-sport-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.sports-sport-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.9);
}

.sports-sport-btn.active {
  background: rgba(0, 168, 255, 0.12);
  border-color: rgba(0, 168, 255, 0.35);
  color: #fff;
}

.sports-sport-btn svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.45);
}

.sports-sport-btn.active svg {
  color: rgba(0, 168, 255, 0.8);
}

.sports-blocks-area {
  margin: 0;
}

.sports-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  color: rgba(255, 255, 255, 0.25);
  font-size: 12px;
  text-align: center;
}

.sports-coming-soon {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
  text-align: center;
}

.sports-coming-soon .sport-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.6);
  margin-bottom: 2px;
}

/* Panel Loading/Error States */
.panel-loading,
.panel-error {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.panel-error {
  color: rgba(255, 100, 100, 0.8);
}

/* Topics/Creators List Items */
.topic-item,
.creator-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.topic-item:hover,
.creator-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.topic-item-icon,
.creator-item-avatar {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  background: rgba(0, 168, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: rgba(0, 168, 255, 0.8);
}

.creator-item-avatar {
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
}

.creator-item-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.topic-item-name,
.creator-item-name {
  font-size: 13px;
  color: #fff;
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topic-item-count,
.creator-item-posts {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
}

/* ============================================================================
   Content Panel - Existing Sidebar Styles Override
   ============================================================================ */

/* Reset the timeline-post-sidebar styles when inside canva panel */
.canva-panel .sidebar-tabs {
  display: flex;
  padding: 0 12px;
  margin-bottom: 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.canva-panel .sidebar-tab {
  flex: 1;
  padding: 12px 8px;
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.6);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  position: relative;
  transition: color 0.15s ease;
}

.canva-panel .sidebar-tab:hover {
  color: rgba(255, 255, 255, 0.9);
}

.canva-panel .sidebar-tab.active {
  color: #00a8ff;
}

.canva-panel .sidebar-tab.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 12px;
  right: 12px;
  height: 2px;
  background: #00a8ff;
  border-radius: 2px 2px 0 0;
}

.canva-panel .sidebar-filter-bar {
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.canva-panel .sidebar-post-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.canva-panel .sidebar-post-search-input {
  flex: 1;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 13px;
}

.canva-panel .sidebar-post-search-input:focus {
  outline: none;
}

.canva-panel .sidebar-post-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.canva-panel .sidebar-post-search svg {
  color: rgba(255, 255, 255, 0.4);
  flex-shrink: 0;
}

.canva-panel .sidebar-active-filters {
  display: none;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  flex-wrap: wrap;
}

.canva-panel .sidebar-active-filters[style*="display: flex"] {
  display: flex !important;
}

.canva-panel .sidebar-post-list {
  flex: 1;
  overflow-y: auto;
  padding: 8px;
}

.canva-panel .sidebar-hidden {
  display: none !important;
}

/* Post items in canva panel - vertical layout */
.canva-panel .sidebar-post-item {
  display: flex;
  flex-direction: row;
  gap: 8px;
  padding: 8px;
  margin-bottom: 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.canva-panel .sidebar-post-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.canva-panel .sidebar-post-item-thumb {
  width: 60px;
  height: 48px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  overflow: hidden;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.canva-panel .sidebar-post-item-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.canva-panel .sidebar-post-item-thumb svg {
  color: rgba(255, 255, 255, 0.3);
}

.canva-panel .sidebar-post-item-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.canva-panel .sidebar-post-item-title {
  font-size: 12px;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.canva-panel .sidebar-post-item-meta {
  font-size: 11px;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 4px;
}

/* Content preview items in canva panel */
.canva-panel .sidebar-post-item.sidebar-post-item-content {
  position: relative;
  height: 120px;
  padding: 0;
  overflow: hidden;
  border-radius: 8px;
}

.canva-panel .sidebar-post-item.sidebar-post-item-content[data-platform="instagram"] {
  height: 180px;
}

.canva-panel .sidebar-post-content-embed {
  position: absolute;
  inset: 0;
}

/* Discovery bar in canva panel - remove the glow/border from timeline-editor.css */
.canva-panel .sidebar-discovery-bar {
  display: flex;
  gap: 8px;
  align-items: center;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.canva-panel .discovery-links-wrapper {
  flex: 1;
  overflow-x: auto;
  scrollbar-width: none;
}

.canva-panel .discovery-links-wrapper::-webkit-scrollbar {
  display: none;
}

.canva-panel .discovery-links {
  display: flex;
  gap: 6px;
}

.canva-panel .discovery-link {
  padding: 4px 8px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm, 4px);
  color: rgba(255, 255, 255, 0.7);
  font-size: 11px;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.15s ease;
  box-shadow: none;
}

.canva-panel .discovery-link:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: none;
}

.canva-panel .discovery-link.active {
  background: rgba(0, 168, 255, 0.15);
  border-color: rgba(0, 168, 255, 0.3);
  color: #00a8ff;
  box-shadow: none;
}

.canva-panel .discovery-search-pill {
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  flex-shrink: 0;
}

.canva-panel .discovery-search-input {
  width: 0;
  background: transparent;
  border: none;
  color: #fff;
  font-size: 11px;
  transition: width 0.2s ease;
}

.canva-panel .discovery-search-pill.expanded .discovery-search-input {
  width: 100px;
}

.canva-panel .discovery-search-input:focus {
  outline: none;
}

.canva-panel .discovery-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

/* Active filters pills */
.canva-panel .sidebar-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 8px;
  background: rgba(0, 168, 255, 0.15);
  border: 1px solid rgba(0, 168, 255, 0.3);
  border-radius: var(--radius-sm, 4px);
  font-size: 11px;
  color: #00a8ff;
}

.canva-panel .sidebar-filter-pill-remove {
  background: transparent;
  border: none;
  color: rgba(0, 168, 255, 0.6);
  cursor: pointer;
  font-size: 14px;
  line-height: 1;
  padding: 0;
}

.canva-panel .sidebar-filter-pill-remove:hover {
  color: #00a8ff;
}

.canva-panel .sidebar-clear-filters-btn {
  background: transparent;
  border: none;
  color: rgba(255, 255, 255, 0.5);
  font-size: 11px;
  cursor: pointer;
}

.canva-panel .sidebar-clear-filters-btn:hover {
  color: #fff;
}

/* Loading states in canva panel */
.canva-panel .sidebar-loading,
.canva-panel .sidebar-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

.canva-panel .sidebar-login-message {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
}

/* ============================================================================
   Settings Panel
   ============================================================================ */

.settings-group { margin-bottom: 24px; }
.settings-label { font-size: 13px; font-weight: 600; color: #fff; margin-bottom: 4px; display: block; }
.settings-description { font-size: 12px; color: rgba(255,255,255,0.5); margin: 0 0 12px; }
.settings-color-row { display: flex; align-items: center; gap: 12px; }
.settings-color-input { width: 36px; height: 36px; border: 2px solid rgba(255,255,255,0.2); border-radius: 8px; cursor: pointer; padding: 0; background: transparent; }
.settings-color-input::-webkit-color-swatch-wrapper { padding: 2px; }
.settings-color-input::-webkit-color-swatch { border: none; border-radius: 4px; }
.settings-color-value { font-size: 13px; color: rgba(255,255,255,0.7); font-family: monospace; }

/* ============================================================================
   Responsive
   ============================================================================ */

@media (max-width: 768px) {
  .canva-editor-toolbar {
    padding: 0 8px;
  }

  .canva-toolbar-title {
    font-size: 12px;
  }

  .canva-toolbar-btn span {
    display: none;
  }

  .canva-toolbar-btn {
    padding: 6px 8px;
  }

  .canva-sidebar {
    position: fixed;
    left: 0;
    top: 100px;
    bottom: 0;
    z-index: 100;
  }

  .canva-sidebar-panel.expanded {
    width: 280px;
  }

  .canva-panel {
    width: 280px;
  }
}

@media (max-width: 480px) {
  .canva-toolbar-center {
    display: none;
  }

  .canva-sidebar-rail {
    width: 48px;
  }

  .rail-btn-label {
    display: none;
  }

  .canva-sidebar-panel.expanded {
    width: calc(100vw - 48px);
  }

  .canva-panel {
    width: calc(100vw - 48px);
  }
}

/* ============================================================================
   Settings Panel Styles
   ============================================================================ */

.settings-group {
  margin-bottom: 24px;
}

.settings-group:last-child {
  margin-bottom: 0;
}

.settings-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 4px;
}

.settings-description {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.5);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.settings-color-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.settings-color-input {
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  background: transparent;
}

.settings-color-input::-webkit-color-swatch-wrapper {
  padding: 0;
}

.settings-color-input::-webkit-color-swatch {
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
}

.settings-color-value {
  font-size: 13px;
  font-family: monospace;
  color: rgba(255, 255, 255, 0.7);
}

/* Header Image Upload */
.settings-image-upload {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.settings-image-preview {
  width: 100%;
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: border-color 0.15s ease;
}

.settings-image-preview:hover {
  border-color: rgba(255, 255, 255, 0.2);
}

.settings-image-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.settings-image-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.4);
}

.settings-image-placeholder svg {
  opacity: 0.5;
}

.settings-image-placeholder span {
  font-size: 12px;
}

.settings-image-remove {
  padding: 8px 12px;
  background: rgba(255, 100, 100, 0.1);
  border: 1px solid rgba(255, 100, 100, 0.2);
  border-radius: 6px;
  color: rgba(255, 100, 100, 0.8);
  font-size: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-image-remove:hover {
  background: rgba(255, 100, 100, 0.2);
  border-color: rgba(255, 100, 100, 0.3);
}

/* Tags Input */
.settings-tags-container {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Discovery bar for tag search */
.settings-tag-search {
  margin-bottom: 0;
}

.settings-discovery-bar {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.5rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 6px;
  min-height: 32px;
  flex-wrap: nowrap;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
}

.settings-discovery-bar::-webkit-scrollbar {
  display: none;
}

.settings-discovery-bar .discovery-search-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.6);
  cursor: text;
  flex-shrink: 0;
}

.settings-discovery-bar .discovery-search-pill svg {
  width: 11px;
  height: 11px;
  flex-shrink: 0;
}

.settings-discovery-bar .discovery-search-input {
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 0.65rem;
  width: 0;
  padding: 0;
  transition: width 0.2s ease;
}

.settings-discovery-bar .discovery-search-pill.expanded .discovery-search-input {
  width: 120px;
}

.settings-discovery-bar .discovery-search-input::placeholder {
  color: rgba(255, 255, 255, 0.4);
}

.settings-discovery-bar .discovery-links-wrapper {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
  flex: 1;
  min-width: 0;
}

.settings-discovery-bar .discovery-links {
  display: flex;
  flex-wrap: nowrap;
  gap: 0.3rem;
}

.settings-discovery-bar .discovery-link {
  display: inline-flex;
  align-items: center;
  padding: 0.2rem 0.5rem;
  border-radius: 5px;
  font-size: 0.65rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.7);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
}

.settings-discovery-bar .discovery-link:hover {
  background: rgba(0, 168, 255, 0.2);
  border-color: rgba(0, 168, 255, 0.5);
  color: #fff;
}

.settings-discovery-bar .tag-pool-create-link {
  color: rgba(0, 168, 255, 1);
  border-color: rgba(0, 168, 255, 0.4);
}

/* Section labels */
.settings-tag-section-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 6px;
}

/* Your Tags grid */
.settings-your-tags-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-your-tags-grid .tag-pool-option {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 5px 10px;
  height: 26px;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  box-sizing: border-box;
}

.settings-your-tags-grid .tag-pool-option:hover {
  background: rgba(0, 168, 255, 0.2);
  border-color: rgba(0, 168, 255, 0.5);
  color: #fff;
}

.settings-your-tags-grid .tag-pool-option .tag-add-icon {
  font-size: 0.8rem;
  line-height: 1;
}

/* Selected Tags pills */
.settings-selected-tags-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.settings-selected-tags-pills .tag-pool-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 5px 10px;
  height: 26px;
  background: rgba(0, 168, 255, 0.1);
  border: 1px solid rgba(0, 168, 255, 0.4);
  border-radius: 4px;
  font-size: 0.7rem;
  line-height: 1.2;
  color: #fff;
  transition: all 0.15s ease;
  box-sizing: border-box;
}

.settings-selected-tags-pills .tag-pool-pill:hover {
  background: rgba(0, 168, 255, 0.2);
  border-color: rgba(0, 168, 255, 0.6);
}

.settings-selected-tags-pills .tag-pool-pill-remove {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 14px;
  height: 14px;
  padding: 0;
  background: none;
  border: none;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.15s ease;
}

.settings-selected-tags-pills .tag-pool-pill-remove:hover {
  background: rgba(239, 68, 68, 0.2);
  color: #ef4444;
}
