@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

:root {
  --bg-primary: #0d0f12;
  --bg-secondary: #14161b;
  --bg-tertiary: #1b1e26;
  --bg-elevated: #222631;
  --border-subtle: rgba(255, 255, 255, 0.07);
  --border-medium: rgba(255, 255, 255, 0.12);
  --border-active: rgba(255, 255, 255, 0.22);
  
  --text-primary: #f8fafc;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-faint: #475569;
  
  --brand-orange: #FF5400;
  --brand-orange-hover: #ff6a1a;
  --brand-orange-subtle: rgba(255, 84, 0, 0.12);
  --brand-orange-glow: rgba(255, 84, 0, 0.25);
  
  --danger: #ef4444;
  --success: #10b981;
  
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  
  --sidebar-width: 280px;
  --header-height: 64px;
  --transition-fast: 0.15s ease;
  --transition-normal: 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] {
  --bg-primary: #f7f8fa;
  --bg-secondary: #ffffff;
  --bg-tertiary: #f0f2f6;
  --bg-elevated: #e4e7ed;
  --border-subtle: rgba(0, 0, 0, 0.07);
  --border-medium: rgba(0, 0, 0, 0.12);
  --border-active: rgba(0, 0, 0, 0.22);
  
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #64748b;
  --text-faint: #94a3b8;
  
  --brand-orange: #FF5400;
  --brand-orange-hover: #e04a00;
  --brand-orange-subtle: rgba(255, 84, 0, 0.1);
  --brand-orange-glow: rgba(255, 84, 0, 0.2);
  
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.12);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

a,
button,
[role="button"] {
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
}

input,
button,
textarea,
select {
  font-family: inherit;
}

body {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-primary);
  color: var(--text-primary);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

/* App Wrapper */
#app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
}

/* Top Header */
.app-header {
  height: var(--header-height);
  background-color: var(--bg-secondary);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 28px;
  position: sticky;
  top: 0;
  z-index: 1010;
}

.header-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  text-decoration: none;
}

/* Distinctive Orange Pill as requested in sketches */
.brand-badge {
  background-color: var(--brand-orange);
  color: #ffffff;
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.3px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px var(--brand-orange-glow);
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.brand-badge:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-1px);
}

.brand-badge-logo {
  width: 22px;
  height: 15px;
  flex-shrink: 0;
  display: inline-block;
  vertical-align: middle;
  pointer-events: none;
}

.brand-badge span.app-subtitle,
.app-subtitle {
  font-weight: 400;
  opacity: 0.95;
  font-size: 15px;
  margin-left: -4px;
}

/* Mobile Hamburger Menu Toggle Button (default hidden on desktop) */
.mobile-menu-btn {
  display: none;
}

.btn-sidebar-close-mobile {
  display: none !important;
}

.sidebar-backdrop {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.header-mode-tag {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  letter-spacing: -0.2px;
}

.client-name-display {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  background: var(--bg-tertiary);
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.btn-mode-switch {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all var(--transition-fast);
}

.btn-mode-switch:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Layout container */
.app-container {
  display: flex;
  flex: 1;
  position: relative;
}

/* Sidebar (Author View Only) */
.author-sidebar {
  width: var(--sidebar-width);
  background-color: var(--bg-secondary);
  border-right: 1px solid var(--border-subtle);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex-shrink: 0;
  min-height: calc(100vh - var(--header-height));
  position: sticky;
  top: var(--header-height);
  height: calc(100vh - var(--header-height));
  overflow: hidden;
}

.sidebar-top-section {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

.sidebar-header {
  padding: 20px 20px 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.sidebar-title {
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--brand-orange);
}

.btn-add-dir {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
  border: 1px solid var(--border-subtle);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  font-size: 18px;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
  font-weight: 600;
}

.btn-sidebar-icon {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
  border: 1px solid var(--border-subtle);
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-sidebar-icon:hover {
  background: var(--brand-orange);
  color: #ffffff;
  border-color: var(--brand-orange);
  transform: scale(1.05);
}

/* Category Management Modal Styling */
.category-manage-info-box {
  background: rgba(255, 84, 0, 0.08);
  border: 1px solid rgba(255, 84, 0, 0.25);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 16px;
  color: var(--brand-orange);
}

.category-manage-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 380px;
  overflow-y: auto;
  padding-right: 4px;
}

.category-manage-item {
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  overflow: hidden;
}

.category-manage-item:focus-within {
  border-color: var(--border-active);
}

.category-manage-item.palette-open {
  border-color: rgba(255, 84, 0, 0.45);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
}

.category-manage-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
}

.category-manage-icon {
  color: var(--brand-orange);
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.category-manage-input {
  flex: 1;
  background: transparent;
  border: none;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  outline: none;
  padding: 4px 6px;
  border-radius: 4px;
  transition: background var(--transition-fast);
}

.category-manage-input:focus {
  background: rgba(255, 255, 255, 0.05);
}

.category-manage-badge {
  font-size: 11px;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 2px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.category-manage-actions {
  display: flex;
  align-items: center;
  gap: 4px;
}

.category-action-btn {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.category-action-btn.btn-save-cat {
  color: #10b981;
}

.category-action-btn.btn-save-cat:hover {
  background: rgba(16, 185, 129, 0.15);
}

.category-action-btn.btn-delete-cat:hover {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.category-action-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  pointer-events: none;
}

/* Sidebar Add Button & Context Menu */
.sidebar-add-wrapper {
  position: relative;
  display: inline-block;
}

.sidebar-add-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 6px;
  min-width: 155px;
  z-index: 1000;
  display: none;
  flex-direction: column;
  gap: 3px;
  opacity: 0;
  transform: translateY(-4px) scale(0.97);
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.sidebar-add-menu.open {
  display: flex;
  opacity: 1;
  transform: translateY(0) scale(1);
}

.sidebar-add-menu-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-primary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-align: left;
  transition: all var(--transition-fast);
  width: 100%;
}

.sidebar-add-menu-item svg {
  flex-shrink: 0;
  color: var(--brand-orange);
  transition: transform var(--transition-fast);
}

.sidebar-add-menu-item:hover {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
}

.sidebar-add-menu-item:hover svg {
  transform: scale(1.1);
}

.sidebar-add-menu-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 4px 6px;
}

/* Directory tree */
.directory-tree {
  padding: 8px 12px;
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}

/* Category Group (Category -> Year -> Project) */
.category-group {
  margin-bottom: 12px;
}

.category-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 9px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: all var(--transition-fast);
  border: 1.5px dashed transparent;
  background: rgba(255, 255, 255, 0.02);
}

.category-header:hover {
  background: var(--bg-tertiary);
}

.category-header.active {
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.35);
  color: var(--brand-orange);
}

.category-header.active .category-icon:not([style*="color"]) {
  color: var(--brand-orange);
}

.category-header.active .category-count {
  background: rgba(255, 84, 0, 0.2);
  color: var(--brand-orange);
}

.category-header-left {
  display: flex;
  align-items: center;
  gap: 7px;
}

.category-icon {
  display: inline-flex;
  align-items: center;
  color: var(--brand-orange);
}

.category-title {
  letter-spacing: -0.2px;
}

.category-arrow {
  font-size: 9px;
  color: var(--text-muted);
  transition: transform var(--transition-fast);
}

.category-group.collapsed .category-arrow {
  transform: rotate(-90deg);
}

.category-count {
  font-size: 10px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  padding: 1px 6px;
  border-radius: 999px;
}

.category-body {
  margin-top: 4px;
  padding-left: 8px;
  border-left: 1.5px solid var(--border-subtle);
  margin-left: 14px;
}

.category-group.collapsed .category-body {
  display: none;
}

.category-empty-drop {
  font-size: 11px;
  color: var(--text-muted);
  padding: 8px 10px;
  border: 1px dashed var(--border-medium);
  border-radius: 6px;
  margin: 6px 0 6px 4px;
  text-align: center;
  background: rgba(255, 255, 255, 0.01);
  transition: all var(--transition-fast);
}

/* Drag and Drop Visual States */
.project-item[draggable="true"],
.folder-card[draggable="true"],
.folder-card[draggable="true"] * {
  cursor: pointer;
}

.project-item.is-dragging,
.folder-card.is-dragging,
body.is-dragging-directory,
body.is-dragging-directory * {
  cursor: grabbing !important;
}

body.is-dragging-directory .category-header {
  border-color: rgba(255, 84, 0, 0.35);
  background: rgba(255, 84, 0, 0.05);
}

.category-header.is-drag-over,
.category-empty-drop.is-drag-over,
.category-tab-btn.is-drag-over {
  border-color: var(--brand-orange) !important;
  background: var(--brand-orange-subtle) !important;
  color: var(--brand-orange) !important;
  box-shadow: 0 0 14px var(--brand-orange-glow);
  transform: scale(1.02);
}

.empty-year-hint {
  font-size: 11px;
  color: var(--text-muted);
  font-style: italic;
  padding: 4px 6px;
}

/* Category Tab in Folder Cards */
.folder-tab-category {
  font-size: 10.5px;
  font-weight: 800;
  color: var(--brand-orange);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.folder-tab-sep {
  font-size: 9px;
  color: var(--text-muted);
  margin: 0 4px;
}

/* Category Filter Bar in Lobby */
.lobby-category-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.category-tab-btn,
.client-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-tab-btn:hover,
.client-tab-btn:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.category-tab-btn.active,
.client-tab-btn.active {
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border-color: rgba(255, 84, 0, 0.45);
}
.category-tab-btn .cat-badge,
.client-tab-btn .client-badge,
.filter-tab .tab-badge,
.category-count,
.lobby-total-count,
.filter-tab-count,
.archive-count {
  display: none !important;
}

[data-theme="light"] .category-tab-btn {
  background: linear-gradient(180deg, #ffffff 0%, #f4f6fa 100%);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .category-tab-btn.active {
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.45);
  box-shadow: none;
}

[data-theme="light"] .category-tab-btn .cat-badge {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .category-tab-btn.active .cat-badge {
  background: rgba(255, 84, 0, 0.15);
}

.year-group, .division-group {
  margin-bottom: 12px;
}

.year-header, .division-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  padding: 6px 8px;
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: background-color var(--transition-fast), border-color var(--transition-fast);
}

.year-header:hover, .division-header:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.division-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1;
  min-width: 0;
}

.division-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.division-header-actions {
  display: flex;
  align-items: center;
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.division-header:hover .division-header-actions {
  opacity: 1;
}

.btn-division-opt {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 4px;
  font-size: 14px;
  line-height: 1;
  transition: color var(--transition-fast), background-color var(--transition-fast);
}

.btn-division-opt:hover {
  color: var(--brand-orange);
  background: rgba(255, 84, 0, 0.1);
}

.year-arrow, .division-arrow {
  font-size: 10px;
  transition: transform var(--transition-fast);
  display: inline-block;
}

.year-group.collapsed .year-arrow,
.division-group.collapsed > .division-header .division-arrow {
  transform: rotate(-90deg);
}

.year-projects, .division-projects {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding-left: 12px;
}

.division-subdivisions {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 4px;
  padding-left: 10px;
  border-left: 1px dashed rgba(255, 255, 255, 0.08);
  margin-left: 6px;
}

[data-theme="light"] .division-subdivisions {
  border-left-color: rgba(0, 0, 0, 0.08);
}

.year-group.collapsed .year-projects,
.division-group.collapsed > .division-projects,
.division-group.collapsed > .division-subdivisions {
  display: none;
}

.division-header.is-dragging {
  opacity: 0.45;
}

.division-header.is-drag-over {
  background: rgba(255, 84, 0, 0.22);
  outline: 1px dashed var(--brand-orange);
}

.project-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all var(--transition-fast);
  text-decoration: none;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.project-item:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.project-item.active {
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border-color: rgba(255, 84, 0, 0.25);
  font-weight: 600;
}

.project-item span.proj-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.proj-dir-icon {
  flex-shrink: 0;
  width: 13px;
  height: 13px;
  color: #788296;
  margin-right: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color var(--transition-fast);
}

.project-item:hover .proj-dir-icon {
  color: #a0aec0;
}

.project-item.active .proj-dir-icon {
  color: #94a3b8;
}

/* Archive Section */
.archive-section {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed var(--border-medium);
}

.archive-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-muted);
  cursor: pointer;
  border-radius: var(--radius-sm);
  user-select: none;
  transition: all var(--transition-fast);
}

.archive-header:hover {
  background: var(--bg-tertiary);
  color: var(--text-secondary);
}

.archive-header-left {
  display: flex;
  align-items: center;
  gap: 6px;
}

.archive-count {
  font-size: 11px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  padding: 1px 6px;
  border-radius: var(--radius-full);
}

.archive-projects {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 4px;
  padding-left: 12px;
}

.archive-section.collapsed .archive-projects {
  display: none;
}

.archive-section.collapsed .year-arrow {
  transform: rotate(-90deg);
}

/* Sidebar Footer */
.sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: var(--bg-secondary);
  flex-shrink: 0;
  z-index: 2;
}

.google-account-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: transparent;
  border: none;
  color: var(--text-primary);
  cursor: pointer;
  text-align: left;
}

.google-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-medium);
  overflow: hidden;
  font-size: 0;
  background-color: var(--bg-tertiary);
  flex-shrink: 0;
}

.google-account-info {
  display: flex;
  flex-direction: column;
}

.google-account-name {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.2;
}

.google-account-sync {
  font-size: 11px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 4px;
}

.sync-dot {
  display: none !important;
}

.sidebar-settings-btn {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-settings-btn:hover {
  background: var(--bg-elevated);
  color: var(--text-primary);
  border-color: var(--border-medium);
}

/* Main Content Area */
.main-content {
  flex: 1;
  padding: 32px 36px 80px 36px;
  max-width: 1560px;
  margin: 0 auto;
  width: 100%;
}

/* Breadcrumb / Project Title Row */
.content-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
  flex-wrap: wrap;
  gap: 16px;
}

.project-title-wrapper {
  display: flex;
  align-items: center;
  gap: 12px;
}

.icon-action-btn {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.icon-action-btn:hover {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
  border-color: var(--brand-orange-subtle);
  transform: translateY(-1px);
}

.project-heading {
  font-size: 20px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.4px;
  color: var(--text-primary);
}

.project-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  font-weight: 600;
  font-family: 'Outfit', sans-serif;
}

.breadcrumb-link {
  color: var(--text-secondary);
  cursor: pointer;
  text-decoration: none;
  transition: color var(--transition-fast);
}

.breadcrumb-link:hover {
  color: var(--brand-orange);
}

.breadcrumb-separator {
  color: var(--text-muted);
}

.breadcrumb-current {
  color: var(--text-primary);
  font-weight: 700;
}

.project-actions-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-primary {
  font-family: 'Outfit', sans-serif;
  background-color: var(--brand-orange);
  color: #ffffff;
  border: none;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  box-shadow: none;
}

.btn-primary:hover {
  background-color: var(--brand-orange-hover);
  transform: translateY(-1px);
  text-decoration: none !important;
}

.btn-secondary {
  font-family: 'Outfit', sans-serif;
  background-color: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
  text-decoration: none !important;
  box-shadow: none;
}

.btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-active);
  text-decoration: none !important;
}

.btn-danger {
  background: var(--danger, #ef4444);
  color: #ffffff;
  border: 1px solid var(--danger, #ef4444);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-danger:hover {
  background: #dc2626;
  border-color: #dc2626;
  box-shadow: 0 4px 14px rgba(239, 68, 68, 0.35);
  transform: translateY(-1px);
}

.btn-danger-outline {
  background: transparent;
  color: var(--danger);
  border: 1px solid rgba(239, 68, 68, 0.35);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all var(--transition-fast);
}

.btn-danger-outline:hover {
  background: rgba(239, 68, 68, 0.12);
  border-color: var(--danger);
}

.btn-danger-hover:hover {
  color: var(--danger, #ef4444) !important;
  border-color: rgba(239, 68, 68, 0.45) !important;
  background: rgba(239, 68, 68, 0.1) !important;
}



.archive-banner {
  background: rgba(255, 84, 0, 0.08);
  border: 1px solid rgba(255, 84, 0, 0.25);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.archive-banner-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  font-weight: 500;
}

.archive-banner-text svg {
  color: var(--brand-orange);
}

/* Video Grid (Gallery) */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 28px 24px;
  align-items: start;
}

/* Video Card */
.video-card {
  display: flex;
  flex-direction: column;
  cursor: pointer;
  position: relative;
  transition: transform var(--transition-normal);
  text-decoration: none;
  color: inherit;
}

.video-card:hover {
  transform: translateY(-3px);
}

/* 16:9 and 9:16 aspect ratios */
.card-media-wrapper {
  position: relative;
  background-color: #000000;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--border-subtle);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}

.video-card:hover .card-media-wrapper {
  border-color: var(--border-active);
  box-shadow: var(--shadow-md);
}

.card-media-wrapper.aspect-16-9 {
  aspect-ratio: 16 / 9;
  width: 100%;
}

.card-media-wrapper.aspect-9-16 {
  aspect-ratio: 9 / 16;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.card-media-wrapper.aspect-3-2 {
  aspect-ratio: 3 / 2;
  width: 100%;
}

.card-media-wrapper.aspect-4-3 {
  aspect-ratio: 4 / 3;
  width: 100%;
}

.card-media-wrapper.aspect-1-1 {
  aspect-ratio: 1 / 1;
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

.card-media-wrapper.aspect-2-3 {
  aspect-ratio: 2 / 3;
  width: 100%;
  max-width: 220px;
  margin: 0 auto;
}

.card-media-wrapper.aspect-3-4 {
  aspect-ratio: 3 / 4;
  width: 100%;
  max-width: 240px;
  margin: 0 auto;
}

.video-preview-element {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.card-preview-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-card:hover .card-preview-image {
  transform: scale(1.04);
}

.card-media-type-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(13, 15, 18, 0.82);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  z-index: 5;
  user-select: none;
}

.card-media-type-pill.photo-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.35);
}

.card-media-type-pill.video-pill {
  color: var(--brand-orange);
  border-color: rgba(255, 84, 0, 0.35);
}

.card-media-type-pill.alpha-pill {
  color: #ff8c42;
  border-color: rgba(255, 84, 0, 0.55);
  background: rgba(255, 84, 0, 0.16);
}

.play-icon-circle.image-zoom-circle svg {
  margin-left: 0 !important;
  fill: none !important;
  stroke: currentColor !important;
}

/* Gallery Media Filter Dropdown (Top-Right) */
.gallery-filter-dropdown-wrapper {
  position: relative;
  display: inline-flex;
}

.gallery-filter-btn {
  position: relative;
  gap: 7px;
  user-select: none;
}

.gallery-filter-btn .filter-chevron {
  transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--text-muted);
}

.gallery-filter-btn.is-open .filter-chevron {
  transform: rotate(180deg);
}

.gallery-filter-btn.is-open {
  border-color: var(--brand-orange);
  color: var(--text-primary);
}

.gallery-filter-btn.has-active {
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.45);
  color: var(--brand-orange);
  font-weight: 600;
}

.gallery-filter-btn.has-active .filter-chevron {
  color: var(--brand-orange);
}

.gallery-filter-pill-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
  margin-left: 1px;
}

.gallery-filter-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 220px;
  background: rgba(18, 20, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: 12px;
  padding: 8px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-6px) scale(0.98);
  transition: opacity 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.16s ease;
  pointer-events: none;
}

.gallery-filter-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.gallery-filter-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 6px 8px 8px 8px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 6px;
}

.gallery-filter-dropdown-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.6px;
}

.gallery-filter-clear-btn {
  background: transparent;
  border: none;
  color: var(--brand-orange);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.gallery-filter-clear-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.gallery-filter-options-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.gallery-filter-opt {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 8px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-secondary);
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.gallery-filter-opt:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
}

.gallery-filter-opt.active {
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  font-weight: 600;
}

.gallery-filter-opt-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.gallery-filter-opt-left svg {
  flex-shrink: 0;
  opacity: 0.8;
}

.gallery-filter-opt.active .gallery-filter-opt-left svg {
  opacity: 1;
  color: var(--brand-orange);
}

.gallery-filter-opt-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 600;
}

.gallery-filter-opt.active .gallery-filter-opt-count {
  background: var(--brand-orange);
  color: #ffffff;
}

/* Light Theme overrides for Gallery Filter */
[data-theme="light"] .gallery-filter-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .gallery-filter-btn {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.85);
}

[data-theme="light"] .gallery-filter-btn:hover {
  background: #f8fafc;
  border-color: rgba(203, 213, 225, 1);
}

[data-theme="light"] .gallery-filter-btn.has-active {
  background: #fff5ee;
  border-color: rgba(255, 84, 0, 0.45);
}

[data-theme="light"] .gallery-filter-opt:hover {
  background: #f1f5f9;
  color: #0f172a;
}

[data-theme="light"] .gallery-filter-opt.active {
  background: #fff5ee;
  color: var(--brand-orange);
}

[data-theme="light"] .gallery-filter-opt-count {
  background: #e2e8f0;
  color: #64748b;
}

[data-theme="light"] .gallery-filter-opt.active .gallery-filter-opt-count {
  background: var(--brand-orange);
  color: #ffffff;
}

/* PLAY BUTTON ONLY APPEARS ON HOVER (Crucial wireframe order!) */
.card-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.25s ease;
  pointer-events: none;
}

.video-card:hover .card-play-overlay {
  opacity: 1;
  visibility: visible;
}

.play-icon-circle {
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.92);
  color: #0d0f12;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(0.85);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.15s ease;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.play-icon-circle svg {
  margin-left: 3px;
  fill: currentColor;
}

.video-card:hover .play-icon-circle {
  transform: scale(1);
}

.video-card:hover .play-icon-circle:hover {
  background: #ffffff;
  color: var(--brand-orange);
}

/* Card details underneath */
.card-info {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-title {
  font-size: 13px;
  font-weight: 700;
  font-family: 'Outfit', sans-serif;
  letter-spacing: -0.2px;
  color: var(--text-primary);
  line-height: 1.3;
  word-break: break-all;
}

.card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-muted);
}

.badge-aspect {
  font-size: 10px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
}

/* Bottom theme toggle button (positioned on the right side) */
.floating-theme-toggle {
  position: fixed;
  bottom: 24px;
  right: 28px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 60;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}

.floating-theme-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-active);
  transform: scale(1.08);
}

/* Toast Notifications */
.toast-container {
  position: fixed;
  bottom: 76px;
  right: 28px;
  z-index: 100;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border-medium);
  color: var(--text-primary);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 500;
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: toastSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

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

/* Modals */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-fast);
  padding: 20px;
}

.modal-backdrop.open {
  opacity: 1;
  visibility: visible;
}

.modal-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 540px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  transform: translateY(12px) scale(0.98);
  transition: all var(--transition-normal);
}

.modal-backdrop.open .modal-card {
  transform: translateY(0) scale(1);
}

.modal-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
}

.modal-close-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}

.modal-close-btn:hover {
  color: var(--text-primary);
}

.modal-body {
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-height: 75vh;
  overflow-y: auto;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-input {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: var(--text-primary);
  font-size: 14px;
  font-family: inherit;
  transition: border-color var(--transition-fast);
  outline: none;
}

.form-input:focus {
  border-color: var(--brand-orange);
}

.form-input.font-mono {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  letter-spacing: -0.2px;
}

.form-help {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.4;
}

.url-preview-box {
  background: var(--bg-primary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.2px;
  color: var(--brand-orange);
  word-break: break-all;
}

.form-checkbox-row {
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  user-select: none;
}

.form-checkbox-row input[type="checkbox"] {
  accent-color: var(--brand-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
}

.modal-footer {
  padding: 16px 24px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  background: var(--bg-secondary);
}

.loading-spinner {
  width: 18px;
  height: 18px;
  border: 2.5px solid rgba(255, 84, 0, 0.2);
  border-top-color: var(--brand-orange);
  border-radius: 50%;
  animation: spinnerRotate 0.75s linear infinite;
  display: inline-block;
  flex-shrink: 0;
}

@keyframes spinnerRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Password Gate Screen */
.password-gate-container {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - var(--header-height) - 100px);
  padding: 20px;
}

.password-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 36px 32px;
  width: 100%;
  max-width: 420px;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.lock-icon-wrapper {
  width: 60px;
  height: 60px;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.password-card-title {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}

.password-card-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

/* Author Login Gate Screen */
.login-gate-container {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: var(--bg-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
  padding: 20px;
}

.login-gate-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  padding: 44px 36px;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  box-shadow: var(--shadow-lg);
}

.login-gate-brand-row {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 24px;
  position: relative;
}

.login-gate-brand-row .brand-badge {
  margin-bottom: 0 !important;
}

.login-gate-info-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.login-gate-info-btn {
  width: 24px;
  height: 24px;
  background: transparent;
  color: var(--text-secondary);
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  padding: 0;
  outline: none;
}

.login-gate-info-btn:hover,
.login-gate-info-btn.active {
  background: transparent;
  color: #ffffff;
  border: none;
  transform: scale(1.1);
}

.login-gate-info-popover {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  width: 300px;
  max-width: min(300px, calc(100vw - 48px));
  background: #181b22;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.65), 0 4px 12px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  text-align: left;
  animation: aboutPopoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes aboutPopoverFadeIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* Espetinho no centro pra cima apontado para o i */
.popover-arrow-up {
  position: absolute;
  top: -6px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 11px;
  height: 11px;
  background: #181b22;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
}

.popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.popover-title {
  font-size: 14px;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.2px;
}

.popover-close-btn {
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  padding: 0 4px;
  border-radius: 4px;
  transition: color 0.15s ease;
}

.popover-close-btn:hover {
  color: #ffffff;
}

.popover-text {
  font-size: 12.5px;
  color: #a0aec0;
  line-height: 1.55;
  margin: 0;
}

/* Light Theme overrides for popover */
[data-theme="light"] .login-gate-info-btn {
  background: transparent;
  color: #64748b;
  border: none;
}
[data-theme="light"] .login-gate-info-btn:hover,
[data-theme="light"] .login-gate-info-btn.active {
  background: transparent;
  color: #0f172a;
  border: none;
}
[data-theme="light"] .login-gate-info-popover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.14), 0 4px 12px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .popover-arrow-up {
  background: #ffffff;
  border-left-color: #cbd5e1;
  border-top-color: #cbd5e1;
}
[data-theme="light"] .popover-title {
  color: #0f172a;
}
[data-theme="light"] .popover-text {
  color: #475569;
}
[data-theme="light"] .popover-close-btn {
  color: #64748b;
}
[data-theme="light"] .popover-close-btn:hover {
  color: #0f172a;
}

.login-gate-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 10px;
  margin-bottom: 12px;
  letter-spacing: -0.3px;
}

.login-gate-desc {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 28px;
  line-height: 1.5;
}

.btn-google-login-large {
  width: 100%;
  background: #ffffff;
  color: #1f2937;
  border: 1px solid #d1d5db;
  padding: 13px 20px;
  border-radius: var(--radius-md);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  font-family: 'Outfit', sans-serif;
  font-size: 14px;
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  transition: all var(--transition-fast);
}

.btn-google-login-large:hover {
  background: #f9fafb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  transform: translateY(-1px);
}

/* Responsive adjustments */
@media (max-width: 900px) {
  .app-header {
    padding: 0 16px;
    z-index: 1010;
  }
  .main-content {
    padding: 20px 16px 80px 16px;
  }

  /* Replace page title button with hamburger icon on mobile */
  .desktop-brand-badge {
    display: none !important;
  }

  .mobile-menu-btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    padding: 0;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: all var(--transition-fast);
    flex-shrink: 0;
  }

  .mobile-menu-btn:hover,
  .mobile-menu-btn:active,
  .mobile-menu-btn.active {
    background: var(--bg-card);
    color: var(--brand-orange);
    border-color: rgba(255, 84, 0, 0.4);
  }

  .mobile-menu-btn .hamburger-icon-svg {
    transition: transform 0.22s ease;
  }

  .mobile-menu-btn.active .hamburger-icon-svg {
    transform: rotate(90deg);
  }

  /* Author Sidebar Drawer on Mobile */
  .author-sidebar {
    position: fixed;
    top: var(--header-height);
    bottom: 0;
    left: -320px;
    width: 290px;
    max-width: calc(100vw - 44px);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    background-color: var(--bg-secondary);
    border-right: 1px solid var(--border-medium);
    box-shadow: 8px 0 32px rgba(0, 0, 0, 0.55);
    z-index: 1005;
    transition: left 0.28s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
  }

  .author-sidebar.mobile-open {
    left: 0;
  }

  /* Mobile close button: only show when mobile hamburger drawer is active and open */
  .btn-sidebar-close-mobile {
    display: none !important;
  }

  .author-sidebar.mobile-open .btn-sidebar-close-mobile {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    cursor: pointer;
    transition: all var(--transition-fast);
  }

  .author-sidebar.mobile-open .btn-sidebar-close-mobile:hover {
    color: #ef4444;
    border-color: rgba(239, 68, 68, 0.4);
    background: rgba(239, 68, 68, 0.1);
  }

  /* Mobile Backdrop */
  .sidebar-backdrop {
    display: block;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.25s ease, visibility 0.25s ease;
  }

  .sidebar-backdrop.visible {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }

  body.mobile-sidebar-active {
    overflow: hidden;
  }
}

/* Light mode overrides for mobile navigation */
[data-theme="light"] .mobile-menu-btn {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.85);
  color: var(--text-primary);
}

[data-theme="light"] .mobile-menu-btn:hover,
[data-theme="light"] .mobile-menu-btn.active {
  background: #fff7ed;
  color: var(--brand-orange);
  border-color: rgba(255, 84, 0, 0.5);
}

[data-theme="light"] .author-sidebar {
  box-shadow: 6px 0 28px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .sidebar-backdrop {
  background: rgba(15, 23, 42, 0.4);
}

/* Mobile Portrait Guard - Prevents page from turning on mobile when not watching video */
.mobile-portrait-guard {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: 999990;
  background: rgba(10, 11, 14, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  color: var(--text-primary);
  animation: fadeInGuard 0.25s ease-out;
}

@keyframes fadeInGuard {
  from { opacity: 0; }
  to { opacity: 1; }
}

.guard-card {
  max-width: 380px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}

.guard-phone-icon {
  width: 54px;
  height: 54px;
  color: var(--brand-orange);
  animation: rotatePhoneAnim 2.5s ease-in-out infinite;
}

@keyframes rotatePhoneAnim {
  0%, 20% {
    transform: rotate(-90deg);
  }
  55%, 85% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(-90deg);
  }
}

.guard-title {
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.3px;
  color: #ffffff;
  margin: 0;
}

.guard-text {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
  margin: 0;
}

.btn-guard-watch {
  background: var(--brand-orange);
  color: #ffffff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-md);
  font-size: 13px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  margin-top: 6px;
  box-shadow: 0 4px 16px rgba(255, 84, 0, 0.4);
}

.btn-guard-watch:hover {
  background: var(--brand-orange-hover);
  transform: translateY(-1px);
}

body.video-fullscreen-active .mobile-portrait-guard {
  display: none !important;
}

@media (min-width: 1025px), (min-height: 600px) {
  .mobile-portrait-guard {
    display: none !important;
  }
}

/* Unresolved Comments Notification Badges */
.project-item-left {
  display: flex;
  align-items: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  gap: 2px;
}

.dir-unresolved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  margin-right: 6px;
  flex-shrink: 0;
  box-shadow: none;
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: -0.2px;
}

.col-unresolved-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9999px;
  background: #ef4444;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid rgba(255, 255, 255, 0.35);
  letter-spacing: -0.2px;
  flex-shrink: 0;
  box-shadow: none;
}

.header-dir-badge {
  font-size: 11px;
  min-width: 20px;
  height: 20px;
  padding: 0 7px;
  margin-left: 10px;
  box-shadow: none;
}

.card-unresolved-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(220, 38, 38, 0.94);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #ffffff;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: none;
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  z-index: 6;
  pointer-events: none;
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.card-unresolved-badge .unresolved-num {
  line-height: 1;
}

@keyframes badgePop {
  0% { transform: scale(0.6); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* ==========================================================================
   Sidebar Lobby Item
   ========================================================================== */
.sidebar-lobby-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  margin-bottom: 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.sidebar-lobby-item:hover {
  background: var(--bg-elevated);
  border-color: var(--border-active);
}

.sidebar-lobby-item.active {
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.35);
  color: var(--brand-orange);
}

.sidebar-lobby-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-lobby-left svg {
  color: var(--brand-orange);
}

.lobby-total-count {
  font-size: 11px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--text-secondary);
}

.sidebar-lobby-item.active .lobby-total-count {
  background: rgba(255, 84, 0, 0.2);
  color: var(--brand-orange);
}

/* ==========================================================================
   Directory Lobby View & Folder Cards ("Pastinhas")
   ========================================================================== */
.lobby-wrapper {
  max-width: 1240px;
  margin: 0 auto;
  padding: 32px 32px 64px 32px;
  animation: fadeIn 0.25s ease-out;
}

.lobby-wrapper.is-columns-mode {
  max-width: 100%;
  padding: 24px 28px 32px 28px;
}

.lobby-wrapper.is-columns-mode .macos-columns-viewport {
  height: calc(100vh - 250px);
  min-height: 480px;
}

.lobby-toolbar-right,
.lobby-header-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 24px;
}

.lobby-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.lobby-icon-badge {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: linear-gradient(135deg, rgba(255, 84, 0, 0.2) 0%, rgba(255, 84, 0, 0.05) 100%);
  border: 1px solid rgba(255, 84, 0, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand-orange);
  box-shadow: 0 4px 12px rgba(255, 84, 0, 0.15);
}

.lobby-title {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text-primary);
  margin: 0;
}

.lobby-count-pill {
  font-size: 12px;
  font-weight: 700;
  background: var(--bg-tertiary);
  color: var(--text-secondary);
  border: 1px solid var(--border-medium);
  padding: 2px 9px;
  border-radius: 999px;
}

.lobby-subtitle {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin-top: 6px;
  margin-left: 52px;
  line-height: 1.4;
}

/* KPI / Stat Cards */
/* KPI / Stat Cards (Compact & Minimalist) */
.lobby-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  margin-bottom: 20px;
}

.lobby-stat-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 10px;
  padding: 8px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: none;
  transition: border-color var(--transition-fast), background var(--transition-fast);
}

.lobby-stat-card:hover {
  border-color: var(--border-active);
  background: var(--bg-tertiary);
}

.lobby-stat-card.has-unresolved {
  border-color: rgba(239, 68, 68, 0.35);
  background: rgba(239, 68, 68, 0.05);
}

.lobby-stat-icon {
  width: auto;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 0;
}

.lobby-stat-icon svg {
  width: 18px;
  height: 18px;
  display: block;
}

.folder-stat-icon {
  color: var(--brand-orange);
  background: transparent;
  border: none;
}

.media-stat-icon {
  color: #3b82f6;
  background: transparent;
  border: none;
}

.comment-stat-icon {
  color: #ef4444;
  background: transparent;
  border: none;
}

.lobby-stat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.lobby-stat-unresolved-row {
  display: flex;
  align-items: center;
  gap: 5px;
}

.lobby-stat-value {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.lobby-stat-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 6px #ef4444;
  display: inline-block;
  animation: pulseDot 1.8s infinite;
}

.lobby-stat-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-secondary);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Toolbar & Filter Tabs */
.lobby-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 24px;
  flex-wrap: wrap;
}

.lobby-search-box {
  position: relative;
  min-width: 280px;
  max-width: 440px;
  flex: 1;
}

.lobby-search-box svg.search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.lobby-search-box input {
  width: 100%;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 8px 36px 8px 36px;
  font-size: 13px;
  color: var(--text-primary);
  transition: all var(--transition-fast);
  font-family: inherit;
}

.lobby-search-box input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-subtle);
}

.clear-search-btn {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 2px;
}

.clear-search-btn:hover {
  color: var(--text-primary);
}

/* Minimalist Lobby Filter Menu */
.lobby-filter-wrapper {
  position: relative;
  display: inline-flex;
}

.lobby-filter-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 38px;
  height: 38px;
  padding: 0;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 50%;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
  user-select: none;
}

.lobby-filter-btn:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-active);
  color: var(--text-primary);
}

.lobby-filter-btn.is-open {
  border-color: var(--brand-orange);
  color: var(--text-primary);
}

.lobby-filter-btn.has-active {
  width: auto;
  min-width: 38px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.45);
  color: var(--brand-orange);
  font-weight: 600;
}

.lobby-filter-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand-orange);
  color: #ffffff;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1;
}

.lobby-filter-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 420px;
  max-width: calc(100vw - 32px);
  max-height: 520px;
  overflow-y: auto;
  background: rgba(18, 20, 24, 0.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--border-medium);
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.05);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px) scale(0.98);
  transition: opacity 0.18s cubic-bezier(0.16, 1, 0.3, 1), transform 0.18s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.18s ease;
  pointer-events: none;
}

.lobby-filter-dropdown.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.lobby-filter-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}

.lobby-filter-dropdown-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
}

.lobby-filter-clear-btn {
  background: transparent;
  border: none;
  color: var(--brand-orange);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  padding: 2px 6px;
  border-radius: 4px;
  transition: opacity 0.15s ease;
}

.lobby-filter-clear-btn:hover {
  text-decoration: underline;
  opacity: 0.85;
}

.lobby-filter-section {
  margin-bottom: 14px;
}

.lobby-filter-section:last-child {
  margin-bottom: 0;
}

.lobby-filter-section-title {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 8px;
}

.lobby-filter-pills-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.lobby-filter-dropdown .filter-tab,
.lobby-filter-dropdown .category-tab-btn,
.lobby-filter-dropdown .client-tab-btn {
  padding: 5px 12px;
  font-size: 11.5px;
}

/* Active Filter Chips Bar (Shown below toolbar when filters applied) */
.lobby-active-filter-chips {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: -10px;
  margin-bottom: 18px;
  padding: 0;
  background: transparent;
  border: none;
}

.active-filter-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}

.active-filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid rgba(255, 84, 0, 0.3);
  color: var(--text-primary);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: 11.5px;
}

.active-filter-chip strong {
  color: var(--brand-orange);
}

.chip-remove-btn {
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 14px;
  cursor: pointer;
  line-height: 1;
  padding: 0;
  display: flex;
  align-items: center;
}

.chip-remove-btn:hover {
  color: #ef4444;
}

.active-filter-clear-all {
  margin-left: auto;
  background: transparent;
  border: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--brand-orange);
  cursor: pointer;
}

.active-filter-clear-all:hover {
  text-decoration: underline;
}

/* Light Theme overrides for filter dropdown */
[data-theme="light"] .lobby-filter-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.15), 0 0 0 1px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .lobby-filter-btn {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .lobby-filter-btn:hover {
  background: #f8fafc;
}



[data-theme="light"] .active-filter-chip {
  background: #ffffff;
}

.lobby-filter-tabs {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.filter-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 6px 14px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-tab:hover {
  background: var(--bg-tertiary);
  color: var(--text-primary);
  border-color: var(--border-active);
}

.filter-tab.active {
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  border-color: rgba(255, 84, 0, 0.4);
}

.filter-tab .tab-badge {
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 6px;
  border-radius: 999px;
  color: inherit;
}

.filter-red-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: none;
  display: inline-block;
}

/* Pastinhas Grid */
.lobby-folders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

/* Individual Folder Card ("Pastinha") */
.folder-card {
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.22s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.22s ease;
  cursor: pointer;
  user-select: none;
}

/* The top flap/tab of the folder */
.folder-card-tab {
  align-self: flex-start;
  height: 22px;
  padding: 0 16px 0 12px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-bottom: none;
  border-top-left-radius: 8px;
  border-top-right-radius: 12px;
  display: inline-flex;
  align-items: center;
  position: relative;
  margin-bottom: -1px;
  z-index: 2;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.folder-tab-label {
  font-size: 10.5px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* Folder Body */
.folder-card-body {
  background: linear-gradient(180deg, var(--bg-secondary) 0%, #111317 100%);
  border: 1px solid var(--border-medium);
  border-radius: 0 14px 14px 14px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  display: flex;
  flex-direction: column;
  position: relative;
  z-index: 1;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}

.folder-card:hover {
  transform: translateY(-4px);
}

.folder-card:hover .folder-card-tab {
  background: var(--bg-elevated);
  border-color: rgba(255, 84, 0, 0.4);
}

.folder-card:hover .folder-tab-label {
  color: var(--brand-orange);
}

.folder-card:hover .folder-card-body {
  border-color: rgba(255, 84, 0, 0.45);
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.5), 0 0 24px rgba(255, 84, 0, 0.12);
}

.folder-card.is-archived .folder-card-body {
  opacity: 0.75;
  background: linear-gradient(180deg, rgba(20, 22, 27, 0.6) 0%, rgba(15, 17, 21, 0.6) 100%);
}

/* Header inside folder */
.folder-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 14px;
}

.folder-svg-wrapper {
  width: 50px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: none;
  transition: transform 0.2s ease;
}

.folder-card:hover .folder-svg-wrapper {
  transform: scale(1.05);
}

.folder-main-icon {
  width: 100%;
  height: 100%;
}

.folder-header-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.folder-badge-unresolved {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #dc2626;
  color: #ffffff;
  padding: 3px 9px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: -0.2px;
  box-shadow: none;
  border: none;
  animation: badgePop 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.folder-badge-unresolved .notification-red-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: none;
}

.folder-badge-archived {
  font-size: 10.5px;
  font-weight: 700;
  background: var(--bg-elevated);
  color: var(--text-muted);
  padding: 3px 8px;
  border-radius: 6px;
  border: 1px solid var(--border-medium);
}

.folder-badge-locked {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: var(--bg-tertiary);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

/* Folder Title & Meta */
.folder-content {
  margin-bottom: 16px;
}

.folder-name {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.folder-meta-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.folder-client-tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--brand-orange);
  background: transparent;
  border: none;
  padding: 0;
  border-radius: 0;
  display: inline-flex;
  align-items: center;
}

.folder-meta-sep {
  color: var(--text-muted);
  opacity: 0.5;
  font-size: 10px;
  user-select: none;
}

.folder-files-count {
  font-size: 12px;
  color: var(--text-secondary);
}

/* Container for multiple search matches on lobby folder card */
.folder-search-matches-list {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 10px;
  max-height: 185px;
  overflow-y: auto;
  overflow-x: hidden;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 84, 0, 0.35) transparent;
}

.folder-search-matches-list::-webkit-scrollbar {
  width: 4px;
}
.folder-search-matches-list::-webkit-scrollbar-track {
  background: transparent;
}
.folder-search-matches-list::-webkit-scrollbar-thumb {
  background: rgba(255, 84, 0, 0.3);
  border-radius: 4px;
}
.folder-search-matches-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 84, 0, 0.6);
}

/* Individual search match badge on folder card */
.folder-search-match-badge {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 5px 9px;
  border-radius: 6px;
  background: rgba(255, 84, 0, 0.12);
  border: 1px solid rgba(255, 84, 0, 0.28);
  color: #ff8533;
  font-size: 11.5px;
  font-weight: 600;
  max-width: 100%;
  box-sizing: border-box;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-decoration: none;
  user-select: none;
}

.folder-search-match-badge .match-badge-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-orange);
}

.folder-search-match-badge .match-badge-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-search-match-badge .match-badge-container {
  flex-shrink: 0;
  font-size: 10.5px;
  font-weight: 600;
  opacity: 0.85;
  padding-left: 6px;
  border-left: 1px solid rgba(255, 84, 0, 0.28);
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.folder-search-match-badge:hover {
  background: rgba(255, 84, 0, 0.22);
  border-color: rgba(255, 84, 0, 0.45);
  color: #ffffff;
  transform: translateY(-1px);
}

.folder-search-match-badge:hover .match-badge-icon {
  color: #ffffff;
}

.folder-search-match-badge:hover .match-badge-container {
  border-left-color: rgba(255, 255, 255, 0.35);
  opacity: 1;
}

@keyframes searchItemPulse {
  0% {
    box-shadow: 0 0 0 4px rgba(255, 84, 0, 0.7), 0 0 24px rgba(255, 84, 0, 0.45);
    border-color: var(--brand-orange) !important;
    transform: translateY(-2px) scale(1.02);
  }
  50% {
    box-shadow: 0 0 0 3px rgba(255, 84, 0, 0.45), 0 0 16px rgba(255, 84, 0, 0.3);
    border-color: var(--brand-orange) !important;
    transform: translateY(-1px) scale(1.01);
  }
  100% {
    box-shadow: 0 0 0 1px rgba(255, 84, 0, 0.2);
    transform: translateY(0) scale(1);
  }
}

.video-card.highlighted-search-item {
  animation: searchItemPulse 1.2s ease-out 3;
  border-color: var(--brand-orange) !important;
  z-index: 5;
}

/* Folder Footer / Action buttons */
.folder-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

.folder-footer-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-folder-copy,
.btn-folder-edit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  background: transparent;
  border: 1px solid var(--border-medium);
  border-radius: 6px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-folder-copy:hover,
.btn-folder-edit:hover {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
  border-color: var(--border-active);
}

.btn-folder-copy.copied {
  background: rgba(16, 185, 129, 0.15);
  color: var(--success);
  border-color: rgba(16, 185, 129, 0.4);
}

.folder-open-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  color: var(--text-secondary);
  transition: color 0.2s ease, transform 0.2s ease;
  cursor: pointer;
}

.folder-card:hover .folder-open-action {
  color: var(--brand-orange);
  transform: translateX(3px);
}

/* Empty State */
.lobby-empty-state {
  text-align: center;
  padding: 72px 24px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 520px;
  margin: 32px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lobby-empty-icon {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}

.lobby-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
}

.lobby-empty-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* ==========================================================================
   Selection Mode & Batch Download Controls
   ========================================================================== */
.active-select-btn {
  background: var(--brand-orange-subtle) !important;
  color: var(--brand-orange) !important;
  border-color: rgba(255, 84, 0, 0.4) !important;
}

.selection-control-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 10px 18px;
  margin-bottom: 20px;
  animation: fadeIn 0.2s ease-out;
  gap: 12px;
}

.selection-control-left {
  display: flex;
  align-items: center;
  gap: 14px;
}

.selection-count-text {
  font-size: 13px;
  color: var(--text-secondary);
}

.selection-count-text strong {
  color: var(--brand-orange);
  font-size: 14px;
}

.btn-sm {
  padding: 6px 14px !important;
  font-size: 12px !important;
}

/* Card Checkbox in Gallery Grid */
.media-checkbox-container {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 8;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  background: rgba(15, 17, 21, 0.85);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-checkbox-container.checked {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 84, 0, 0.4);
}

.video-card.selected-for-batch,
.gallery-card.selected-for-batch {
  border-color: var(--brand-orange) !important;
  box-shadow: 0 0 0 2px rgba(255, 84, 0, 0.3), 0 8px 24px rgba(0, 0, 0, 0.5) !important;
}

/* Batch Modal Styling */
.batch-selection-info {
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.batch-selection-info strong {
  color: var(--text-primary);
}

.batch-download-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.batch-option-card {
  display: flex;
  align-items: center;
  gap: 16px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-md);
  padding: 16px;
  cursor: pointer;
  transition: all var(--transition-fast);
  position: relative;
}

.batch-option-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--brand-orange);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

.batch-option-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.batch-option-icon.zip-icon {
  background: rgba(255, 84, 0, 0.12);
  color: var(--brand-orange);
  border: 1px solid rgba(255, 84, 0, 0.25);
}

.batch-option-icon.loose-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #60a5fa;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.batch-option-info {
  flex: 1;
}

.batch-option-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 4px;
}

.batch-option-title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.batch-badge {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(255, 84, 0, 0.12);
  color: var(--brand-orange);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(255, 84, 0, 0.2);
}

.batch-badge-mobile {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: rgba(16, 185, 129, 0.12);
  color: var(--success);
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.batch-option-desc {
  margin: 0;
  font-size: 12px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.batch-option-desc strong {
  color: var(--text-primary);
  font-weight: 600;
}

.batch-option-arrow {
  color: var(--text-muted);
  transition: transform var(--transition-fast), color var(--transition-fast);
}

.batch-option-card:hover .batch-option-arrow {
  color: var(--brand-orange);
  transform: translateX(3px);
}

/* Progress bar inside batch modal */
.batch-download-progress {
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
}

.progress-bar-container {
  width: 100%;
  height: 8px;
  background: var(--bg-tertiary);
  border-radius: 999px;
  overflow: hidden;
  border: 1px solid var(--border-medium);
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange) 0%, #ff7a30 100%);
  border-radius: 999px;
  transition: width 0.25s ease;
}

.progress-status-text {
  font-size: 12.5px;
  color: var(--text-secondary);
  margin: 8px 0 0 0;
  text-align: center;
}

/* Header Download Button inside Player / Photo detail */
.header-download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  font-weight: 600;
  cursor: pointer;
}

/* ==========================================================================
   Light Mode - Silvery Gradient & Soft Ambient Shadows
   ========================================================================== */

[data-theme="light"] .lobby-stat-card {
  background: #ffffff;
  border: 1px solid rgba(203, 213, 225, 0.75);
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.08);
}

[data-theme="light"] .lobby-stat-card:hover {
  background: #f8fafc;
  border-color: rgba(255, 84, 0, 0.35);
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.14);
}

[data-theme="light"] .lobby-stat-card.has-unresolved {
  background: rgba(239, 68, 68, 0.04);
  border-color: rgba(239, 68, 68, 0.35);
}

[data-theme="light"] .folder-card-tab {
  background: linear-gradient(180deg, #ffffff 0%, #edf1f7 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  border-bottom: none;
}

[data-theme="light"] .folder-card:hover .folder-card-tab {
  background: #ffffff;
  border-color: rgba(255, 84, 0, 0.45);
}

[data-theme="light"] .folder-card-body {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 40%, #e3e9f2 100%);
  border: 1px solid rgba(203, 213, 225, 0.9);
  box-shadow: 0 4px 18px rgba(148, 163, 184, 0.18), 0 1px 3px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .folder-card:hover .folder-card-body {
  border-color: rgba(255, 84, 0, 0.45);
  box-shadow: 0 12px 28px rgba(148, 163, 184, 0.26), 0 0 20px rgba(255, 84, 0, 0.1);
}

[data-theme="light"] .folder-card.is-archived .folder-card-body {
  background: linear-gradient(180deg, #f8f9fb 0%, #e7ecf3 100%);
  opacity: 0.85;
}

[data-theme="light"] .folder-footer {
  border-top: 1px solid rgba(203, 213, 225, 0.7);
}

[data-theme="light"] .folder-search-match-badge {
  background: rgba(255, 84, 0, 0.08);
  border-color: rgba(255, 84, 0, 0.25);
  color: #d94800;
}

[data-theme="light"] .folder-search-match-badge .match-badge-container {
  border-left-color: rgba(255, 84, 0, 0.22);
}

[data-theme="light"] .folder-search-match-badge:hover {
  background: rgba(255, 84, 0, 0.16);
  border-color: rgba(255, 84, 0, 0.4);
  color: #b33900;
}

[data-theme="light"] .folder-search-match-badge:hover .match-badge-icon {
  color: #b33900;
}

[data-theme="light"] .folder-search-matches-list::-webkit-scrollbar-thumb {
  background: rgba(255, 84, 0, 0.25);
}

[data-theme="light"] .folder-search-matches-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 84, 0, 0.5);
}

[data-theme="light"] .btn-folder-copy,
[data-theme="light"] .btn-folder-edit {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(203, 213, 225, 0.95);
  color: #334155;
  backdrop-filter: blur(4px);
  box-shadow: 0 1px 2px rgba(148, 163, 184, 0.12);
}

[data-theme="light"] .btn-folder-copy:hover,
[data-theme="light"] .btn-folder-edit:hover {
  background: #ffffff;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  box-shadow: 0 2px 6px rgba(148, 163, 184, 0.2);
}

[data-theme="light"] .folder-open-action {
  color: #475569;
}

[data-theme="light"] .folder-card:hover .folder-open-action {
  color: var(--brand-orange);
}

[data-theme="light"] .folder-badge-locked {
  background: #ffffff;
  border-color: rgba(203, 213, 225, 0.85);
  color: #64748b;
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.15);
}

[data-theme="light"] .filter-tab {
  background: linear-gradient(180deg, #ffffff 0%, #f1f4f9 100%);
  border: 1px solid rgba(203, 213, 225, 0.85);
  box-shadow: 0 1px 3px rgba(148, 163, 184, 0.1);
}

[data-theme="light"] .filter-tab:hover {
  background: #ffffff;
  border-color: var(--border-active);
}

[data-theme="light"] .filter-tab.active {
  background: var(--brand-orange-subtle);
  border-color: rgba(255, 84, 0, 0.4);
  box-shadow: none;
}

[data-theme="light"] .filter-tab .tab-badge {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .filter-tab.active .tab-badge {
  background: rgba(255, 84, 0, 0.15);
}

[data-theme="light"] .media-stat-icon {
  color: #2563eb;
}

[data-theme="light"] .comment-stat-icon {
  color: #dc2626;
}

/* Category Context Menu (Right Click on Category) */
.category-context-menu {
  position: fixed;
  z-index: 10000;
  width: 250px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 84, 0, 0.15);
  padding: 12px;
  user-select: none;
  animation: ctxMenuFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .category-context-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.12), 0 2px 8px rgba(0, 0, 0, 0.05);
}

@keyframes ctxMenuFadeIn {
  from {
    opacity: 0;
    transform: scale(0.96) translateY(-4px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.context-menu-header {
  padding-bottom: 8px;
  margin-bottom: 8px;
  border-bottom: 1px solid var(--border-subtle);
}

.context-menu-title-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.context-menu-label {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
  text-transform: uppercase;
}

.context-menu-cat-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-default-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  background: var(--brand-orange-subtle);
  border: 1px solid rgba(255, 84, 0, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
}

.context-default-btn:hover {
  background: rgba(255, 84, 0, 0.18);
  border-color: rgba(255, 84, 0, 0.45);
  transform: translateY(-1px);
}

.context-default-btn.selected {
  border-color: #FF5400;
  background: rgba(255, 84, 0, 0.22);
}

.context-swatch-lg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 0 10px rgba(255, 84, 0, 0.45);
}

.context-default-info {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.context-default-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.context-default-sub {
  font-size: 10px;
  color: var(--brand-orange);
  font-weight: 600;
}

.context-check-mark {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-orange);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.context-default-btn.selected .context-check-mark {
  opacity: 1;
}

.context-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 6px 0;
}

/* Specific styling for division context menu */
.division-context-menu {
  width: 195px;
  padding: 8px;
}

.division-context-menu .context-menu-header {
  padding: 4px 10px 8px 10px;
  margin-bottom: 4px;
  border-bottom: 1px solid var(--border-subtle);
}

.division-context-menu .context-menu-cat-name {
  color: var(--brand-orange);
  margin-top: 2px;
  display: block;
}

.division-ctx-actions {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.division-ctx-item {
  width: 100%;
  border-radius: var(--radius-sm);
  padding: 8px 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  text-align: left;
  font-size: 13px;
  font-weight: 500;
  font-family: inherit;
  transition: all var(--transition-fast);
}

.division-ctx-item svg {
  flex-shrink: 0;
  color: var(--brand-orange);
  transition: transform var(--transition-fast);
}

.division-ctx-item:hover {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
}

.division-ctx-item:hover svg {
  transform: scale(1.15);
}

.division-ctx-item.item-delete {
  color: var(--danger);
}

.division-ctx-item.item-delete svg {
  color: var(--danger);
}

.division-ctx-item.item-delete:hover {
  background: rgba(239, 68, 68, 0.1);
  color: #dc2626;
}

[data-theme="light"] .context-swatch-btn {
  border: 2px solid rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .context-swatch-btn:hover {
  border-color: #000000;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.context-palette-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}

.context-color-hover-name {
  font-size: 10px;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: none;
  letter-spacing: normal;
  max-width: 125px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.context-palette-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
  padding: 2px 0;
}

.context-swatch-btn {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.15);
  cursor: pointer;
  padding: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.context-swatch-btn:hover {
  transform: scale(1.22);
  z-index: 2;
  border-color: #ffffff;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

.context-swatch-btn.selected {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.4);
}

.context-swatch-btn.selected::after {
  content: '✓';
  font-size: 11px;
  font-weight: 900;
  color: #ffffff;
  text-shadow: 0 0 2px #000, 0 1px 3px #000;
}

/* ==========================================================================
   Universal Context Menu (Desktop Right-Click & Mobile Long-Press)
   Identidade Visual: sleek dark glass with orange accents
   ========================================================================== */
.app-universal-context-menu {
  position: fixed;
  z-index: 10000;
  width: 250px;
  background: var(--bg-secondary, #18191c);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.1));
  border-radius: 14px;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 84, 0, 0.2);
  padding: 10px;
  user-select: none;
  animation: ctxMenuFadeIn 0.14s cubic-bezier(0.16, 1, 0.3, 1);
}

[data-theme="light"] .app-universal-context-menu {
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.15), 0 2px 8px rgba(0, 0, 0, 0.06), 0 0 0 1px rgba(255, 84, 0, 0.25);
}

.ctx-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 8px 6px;
}

.ctx-header-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(255, 84, 0, 0.12);
  color: var(--brand-orange, #FF5400);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ctx-header-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.ctx-badge-type {
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.8px;
  color: var(--brand-orange, #FF5400);
  text-transform: uppercase;
}

.ctx-item-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ctx-actions {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ctx-item {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
}

.ctx-item:hover {
  background: rgba(255, 84, 0, 0.1);
  color: var(--brand-orange, #FF5400);
}

.ctx-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}

.ctx-item-left svg {
  flex-shrink: 0;
}

.ctx-chevron {
  transition: transform 0.2s ease;
  color: var(--text-muted);
}

.ctx-color-group.open .ctx-chevron {
  transform: rotate(90deg);
  color: var(--brand-orange, #FF5400);
}

.ctx-item-hint {
  font-size: 10px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-tertiary, rgba(255, 255, 255, 0.05));
  color: var(--text-muted);
}

.ctx-item-badge-drive {
  font-size: 10px;
  font-weight: 700;
  padding: 2px 6px;
  border-radius: 4px;
  background: rgba(59, 130, 246, 0.12);
  color: #3b82f6;
  border: 1px solid rgba(59, 130, 246, 0.25);
}

.ctx-item-danger {
  color: #EF4444;
}

.ctx-item-danger:hover {
  background: rgba(239, 68, 68, 0.12) !important;
  color: #EF4444 !important;
}

.ctx-color-preview-dot {
  width: 15px;
  height: 15px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.35);
  flex-shrink: 0;
}

.ctx-palette-wrapper {
  padding: 8px;
  background: var(--bg-tertiary, rgba(0, 0, 0, 0.2));
  border-radius: 9px;
  margin: 4px 0 6px 0;
  border: 1px solid var(--border-subtle, rgba(255, 255, 255, 0.06));
}

[data-theme="light"] .ctx-palette-wrapper {
  background: #f8fafc;
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.ctx-swatch-default-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 6px 8px;
  background: var(--brand-orange-subtle, rgba(255, 84, 0, 0.1));
  border: 1px solid rgba(255, 84, 0, 0.25);
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
  text-align: left;
  margin-bottom: 6px;
}

.ctx-swatch-default-btn:hover {
  background: rgba(255, 84, 0, 0.18);
  border-color: rgba(255, 84, 0, 0.45);
}

.ctx-swatch-circle {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  flex-shrink: 0;
}

.ctx-default-text {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.ctx-default-name {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.ctx-default-sub {
  font-size: 9.5px;
  color: var(--brand-orange, #FF5400);
  font-weight: 600;
}

.ctx-swatch-check {
  font-size: 12px;
  font-weight: 800;
  color: var(--brand-orange, #FF5400);
}

.ctx-swatches-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  justify-items: center;
  padding: 4px 2px;
}

.ctx-swatch-btn {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.ctx-swatch-btn:hover {
  transform: scale(1.22);
  border-color: #ffffff;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  z-index: 2;
}

.ctx-swatch-btn.selected {
  border-color: #ffffff;
  transform: scale(1.15);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.5);
}

.ctx-swatch-btn.selected::after {
  content: '✓';
  font-size: 10px;
  font-weight: 900;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 18px;
  text-shadow: 0 0 2px #000;
}

/* Modais de Alerta e Confirmação */
.rename-warning-drive {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-primary);
  font-size: 13px;
  line-height: 1.5;
}

.cloud-keep-notice {
  background: rgba(255, 84, 0, 0.08);
  border: 1px solid rgba(255, 84, 0, 0.25);
  border-radius: 10px;
  padding: 12px 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.danger-warning-drive {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.35);
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--text-primary);
}

.danger-final-box {
  background: rgba(220, 38, 38, 0.15);
  border: 2px solid #EF4444;
  border-radius: 10px;
  padding: 14px;
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

/* File & Archive Media Cards in Grid */
.video-card.file-card .card-media-wrapper {
  background: #0f1217;
}

.card-file-display {
  width: 100%;
  height: 100%;
  min-height: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 40%, rgba(255, 255, 255, 0.05) 0%, rgba(13, 15, 18, 0.95) 75%);
  position: relative;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 16px;
}

.video-card:hover .card-file-display {
  transform: scale(1.02);
}

.card-zip-display {
  background: radial-gradient(circle at 50% 40%, rgba(245, 158, 11, 0.12) 0%, rgba(13, 15, 18, 0.98) 75%);
}

.card-doc-display {
  background: radial-gradient(circle at 50% 40%, rgba(148, 163, 184, 0.12) 0%, rgba(13, 15, 18, 0.98) 75%);
}

.file-icon-box {
  width: 66px;
  height: 66px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: none;
  transition: all 0.25s ease;
}

.video-card:hover .file-icon-box {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow: none;
}

.file-icon-box.zip-box {
  color: #f59e0b;
  background: rgba(245, 158, 11, 0.09);
  border-color: rgba(245, 158, 11, 0.25);
}

.file-icon-box.doc-box {
  color: #94a3b8;
  background: rgba(148, 163, 184, 0.09);
  border-color: rgba(148, 163, 184, 0.25);
}

.file-ext-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-secondary);
  background: rgba(255, 255, 255, 0.06);
  padding: 3px 9px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.card-media-type-pill.zip-pill {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.45);
}

.card-media-type-pill.file-pill {
  color: #94a3b8;
  border-color: rgba(148, 163, 184, 0.45);
}

.card-media-type-pill.psd-pill {
  color: #38bdf8;
  border-color: rgba(56, 189, 248, 0.45);
  background: rgba(14, 116, 144, 0.25);
}

.card-media-type-pill.ai-pill {
  color: #fb923c;
  border-color: rgba(251, 146, 60, 0.45);
  background: rgba(194, 65, 12, 0.25);
}

.card-media-type-pill.pdf-pill,
.card-media-type-pill.doc-pill.pdf-pill {
  color: #f87171;
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(185, 28, 28, 0.25);
}

/* Detail View: PDF Interactive Reader & Cover */
.custom-pdf-wrapper {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 600px;
  display: flex;
  flex-direction: column;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg, 12px);
  overflow: hidden;
}

.pdf-top-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  background: var(--bg-primary, #18191c);
  border-bottom: 1px solid var(--border-subtle);
  gap: 12px;
  flex-wrap: wrap;
  z-index: 2;
}

.pdf-top-toolbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.pdf-filename {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 320px;
}

.pdf-size {
  font-size: 12px;
  color: var(--text-secondary);
}

.pdf-top-toolbar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.pdf-container-body {
  position: relative;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 540px;
  background: #111215;
  display: flex;
  align-items: center;
  justify-content: center;
}

.pdf-embed-frame {
  width: 100%;
  height: 100%;
  min-height: 540px;
  border: none;
  display: block;
}

.pdf-cover-view {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  overflow: auto;
}

.pdf-cover-view img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
}

/* Detail Player/Viewer: File Showcase Card */
.custom-file-wrapper {
  width: 100%;
  min-height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  background: var(--bg-secondary);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

.file-showcase-card {
  max-width: 560px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 32px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: 18px;
  box-shadow: none;
}

.file-showcase-icon {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 22px;
  box-shadow: none;
}

.file-showcase-icon.zip-showcase {
  background: rgba(245, 158, 11, 0.12);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.35);
  box-shadow: none;
}

.file-showcase-icon.doc-showcase {
  background: rgba(148, 163, 184, 0.12);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.25);
  box-shadow: none;
}

.file-showcase-details {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.file-showcase-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.file-showcase-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.8px;
  padding: 3px 8px;
  border-radius: 4px;
}

.file-showcase-tag.zip-tag {
  background: rgba(245, 158, 11, 0.2);
  color: #f59e0b;
  border: 1px solid rgba(245, 158, 11, 0.4);
}

.file-showcase-tag.doc-tag {
  background: rgba(148, 163, 184, 0.18);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.3);
}

.file-showcase-type-name {
  font-size: 12px;
  color: var(--text-secondary);
}

.file-showcase-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 10px 0;
  word-break: break-word;
  line-height: 1.35;
}

.file-showcase-meta {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 24px;
}

.file-showcase-meta strong {
  color: var(--text-primary);
}

.file-showcase-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
}

.file-download-main-btn {
  padding: 10px 22px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none !important;
  box-shadow: none !important;
}

.file-showcase-actions a,
.file-showcase-actions a:hover,
.file-showcase-actions a:focus,
.file-showcase-actions a span,
.file-showcase-actions a:hover span,
.file-showcase-actions button,
.file-showcase-actions button:hover,
.file-showcase-actions .btn-primary,
.file-showcase-actions .btn-secondary {
  text-decoration: none !important;
  box-shadow: none !important;
}

/* Light Mode: File Showcase Box & Gallery File Cards */
[data-theme="light"] .custom-file-wrapper {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

[data-theme="light"] .file-showcase-card {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

[data-theme="light"] .file-showcase-icon {
  box-shadow: none;
}

[data-theme="light"] .file-showcase-icon.doc-showcase {
  background: #ffffff;
  color: #334155;
  border: 1px solid rgba(0, 0, 0, 0.12);
  box-shadow: none;
}

[data-theme="light"] .file-showcase-icon.zip-showcase {
  background: rgba(245, 158, 11, 0.1);
  color: #d97706;
  border: 1px solid rgba(245, 158, 11, 0.25);
  box-shadow: none;
}

[data-theme="light"] .file-showcase-tag.doc-tag {
  background: #ffffff;
  color: #1e293b;
  border: 1px solid rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .file-showcase-tag.zip-tag {
  background: rgba(245, 158, 11, 0.12);
  color: #b45309;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

[data-theme="light"] .file-showcase-type-name {
  color: var(--text-muted);
}

[data-theme="light"] .file-showcase-title {
  color: var(--text-primary);
}

[data-theme="light"] .file-showcase-meta {
  color: var(--text-secondary);
}

[data-theme="light"] .file-showcase-meta strong {
  color: var(--text-primary);
}

[data-theme="light"] .file-showcase-actions .btn-secondary {
  background-color: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
  box-shadow: none;
  text-decoration: none !important;
}

[data-theme="light"] .file-showcase-actions .btn-secondary:hover {
  background-color: var(--bg-tertiary);
  border-color: var(--border-active);
  text-decoration: none !important;
}

[data-theme="light"] .file-showcase-actions .btn-primary {
  background-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: none;
  text-decoration: none !important;
}

[data-theme="light"] .file-showcase-actions .btn-primary:hover {
  background-color: var(--brand-orange-hover);
  text-decoration: none !important;
}

[data-theme="light"] .video-card.file-card .card-media-wrapper {
  background: var(--bg-tertiary);
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-file-display {
  background: var(--bg-tertiary);
}

[data-theme="light"] .card-zip-display {
  background: #fffbeb;
}

[data-theme="light"] .card-doc-display {
  background: #f8fafc;
}

[data-theme="light"] .file-icon-box {
  background: #ffffff;
  border: 1px solid var(--border-medium);
  box-shadow: none;
}

[data-theme="light"] .video-card:hover .file-icon-box {
  border-color: var(--border-active);
  box-shadow: none;
}

[data-theme="light"] .file-icon-box.doc-box {
  color: #475569;
}

[data-theme="light"] .file-icon-box.zip-box {
  color: #d97706;
}

[data-theme="light"] .file-ext-tag {
  background: #ffffff;
  color: var(--text-primary);
  border: 1px solid var(--border-medium);
}

/* Gallery Breadcrumb Navigation */
.gallery-breadcrumb-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.gallery-crumb-link {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-secondary);
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
}

.gallery-crumb-link:hover {
  color: var(--brand-orange);
}

.gallery-crumb-sep {
  font-size: 14px;
  color: var(--text-tertiary);
  user-select: none;
}

.gallery-crumb-current {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  line-height: 1.2;
}

/* Subfolders Section */
.subfolders-section {
  margin-bottom: 28px;
}

.subfolders-header-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-secondary);
  margin-bottom: 12px;
}

.subfolders-header-label svg {
  color: var(--brand-orange);
}

.subfolders-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 12px;
}

.subfolder-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  user-select: none;
}

.subfolder-card:hover {
  background: var(--bg-tertiary);
  border-color: var(--border-active);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
}

.subfolder-icon-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--brand-orange);
  background: transparent;
  border: none;
  box-shadow: none;
  padding: 0;
  transition: transform 0.2s ease;
}

.subfolder-icon-wrap svg {
  width: 24px;
  height: 24px;
}

.subfolder-card:hover .subfolder-icon-wrap {
  background: transparent;
  border-color: transparent;
  box-shadow: none;
  transform: scale(1.08);
}

.subfolder-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.subfolder-name {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  line-height: 1.3;
}

.subfolder-count {
  font-size: 11.5px;
  color: var(--text-secondary);
  margin-top: 2px;
}

.subfolder-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.subfolder-copy-btn {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-secondary);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.18s ease;
  padding: 0;
}

.subfolder-copy-btn:hover {
  background: rgba(255, 84, 0, 0.15);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
  transform: scale(1.1);
}

.subfolder-chevron {
  color: var(--text-tertiary);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.2s ease, color 0.2s ease;
}

.subfolder-card:hover .subfolder-chevron {
  color: var(--text-primary);
  transform: translateX(2px);
}

[data-theme="light"] .subfolder-card {
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  box-shadow: none;
}

[data-theme="light"] .subfolder-card:hover {
  background: #ffffff;
  border-color: var(--border-active);
  box-shadow: var(--shadow-sm);
}

[data-theme="light"] .subfolder-copy-btn {
  background: rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--text-secondary);
}

[data-theme="light"] .subfolder-copy-btn:hover {
  background: rgba(255, 84, 0, 0.12);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

/* Subfolder Selection Checkbox & Selected State */
.subfolder-checkbox-container {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  background: rgba(15, 17, 21, 0.85);
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all var(--transition-fast);
  color: #ffffff;
}

.subfolder-checkbox-container:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 84, 0, 0.15);
}

.subfolder-checkbox-container.checked {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(255, 84, 0, 0.4);
}

.subfolder-card.selected-for-batch {
  border-color: var(--brand-orange) !important;
  background: rgba(255, 84, 0, 0.08) !important;
  box-shadow: 0 0 0 1.5px rgba(255, 84, 0, 0.4), 0 4px 14px rgba(0, 0, 0, 0.25) !important;
}

.subfolder-card.selected-for-batch:hover {
  background: rgba(255, 84, 0, 0.12) !important;
  border-color: var(--brand-orange) !important;
}

[data-theme="light"] .subfolder-checkbox-container {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
}

[data-theme="light"] .subfolder-checkbox-container.checked {
  background: var(--brand-orange);
  border-color: var(--brand-orange);
  color: #ffffff;
}

[data-theme="light"] .subfolder-card.selected-for-batch {
  background: rgba(255, 84, 0, 0.06) !important;
  border-color: var(--brand-orange) !important;
}

/* Drag & Drop Upload Overlay */
.upload-dropzone-overlay {
  position: fixed;
  inset: 0;
  z-index: 9990;
  background: rgba(13, 15, 18, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 30px;
}

.upload-dropzone-overlay.visible {
  opacity: 1;
  pointer-events: all;
}

.upload-dropzone-box {
  width: 100%;
  max-width: 520px;
  border: 2px dashed var(--brand-orange);
  border-radius: var(--radius-lg);
  background: rgba(255, 84, 0, 0.05);
  box-shadow: 0 0 35px rgba(255, 84, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 32px;
  text-align: center;
  color: var(--text-primary);
  animation: pulseDropzone 2s infinite ease-in-out;
}

.upload-dropzone-box svg {
  color: var(--brand-orange);
  margin-bottom: 16px;
  filter: drop-shadow(0 0 12px rgba(255, 84, 0, 0.4));
}

.upload-dropzone-box h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 8px;
  letter-spacing: -0.01em;
}

.upload-dropzone-box p {
  font-size: 14px;
  color: var(--text-secondary);
}

.upload-dropzone-box p strong {
  color: var(--brand-orange);
  font-weight: 600;
}

@keyframes pulseDropzone {
  0%, 100% {
    border-color: var(--brand-orange);
    box-shadow: 0 0 25px rgba(255, 84, 0, 0.15);
  }
  50% {
    border-color: #ff7733;
    box-shadow: 0 0 45px rgba(255, 84, 0, 0.3);
  }
}

/* Upload Progress Modal */
.upload-progress-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  animation: fadeInModal 0.2s ease forwards;
}

.upload-progress-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg), 0 0 40px rgba(0, 0, 0, 0.6);
  padding: 24px;
  overflow: hidden;
}

.upload-progress-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 20px;
}

.upload-progress-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.upload-progress-header-text {
  flex: 1;
  min-width: 0;
}

.upload-progress-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.upload-progress-sub {
  font-size: 13px;
  color: var(--text-secondary);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-progress-sub strong {
  color: var(--brand-orange);
}

.upload-current-file {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
  font-size: 13px;
}

.upload-file-name {
  color: var(--text-primary);
  font-weight: 500;
  max-width: 80%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.upload-file-pct {
  color: var(--brand-orange);
  font-weight: 700;
  font-family: monospace;
}

.upload-bar-track {
  width: 100%;
  height: 8px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 12px;
}

.upload-bar-thumb {
  height: 100%;
  background: linear-gradient(90deg, var(--brand-orange), #ff7733);
  border-radius: 999px;
  transition: width 0.15s ease-out;
  box-shadow: 0 0 10px rgba(255, 84, 0, 0.5);
}

.upload-footer-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--text-muted);
}

[data-theme="light"] .upload-dropzone-overlay {
  background: rgba(247, 248, 250, 0.92);
}

[data-theme="light"] .upload-bar-track {
  background: rgba(0, 0, 0, 0.08);
}

/* Category Color Selection (modalAddCategory & modalManageCategories) */
.new-cat-default-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 12px;
  background: rgba(255, 84, 0, 0.08);
  border: 1px solid rgba(255, 84, 0, 0.25);
  border-radius: 8px;
  cursor: pointer;
  transition: all var(--transition-fast);
  text-align: left;
  margin-top: 4px;
}

.new-cat-default-btn:hover {
  background: rgba(255, 84, 0, 0.16);
  border-color: rgba(255, 84, 0, 0.45);
}

.new-cat-default-btn.selected {
  border-color: #FF5400;
  background: rgba(255, 84, 0, 0.22);
}

.new-cat-swatch-lg {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 2px solid rgba(255, 255, 255, 0.9);
}

.new-cat-default-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.new-cat-default-title {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.new-cat-default-sub {
  font-size: 10.5px;
  color: var(--brand-orange);
  font-weight: 600;
}

.new-cat-check {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand-orange);
  opacity: 0;
  transition: opacity var(--transition-fast);
}

.new-cat-default-btn.selected .new-cat-check {
  opacity: 1;
}

.new-cat-divider {
  height: 1px;
  background: var(--border-subtle);
  margin: 12px 0 10px 0;
}

.new-cat-palette-header {
  display: none;
}

.new-cat-palette-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 2px 0;
  justify-items: center;
}

.new-cat-swatch-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  padding: 0;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease;
  outline: none;
}

.new-cat-swatch-btn:hover {
  transform: scale(1.18);
  border-color: #ffffff;
}

.new-cat-swatch-btn.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--brand-orange);
  transform: scale(1.12);
}

/* Category Color Picker in Manage Modal */
.category-manage-color-btn {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 6px 3px 3px;
  border-radius: 8px;
  transition: all var(--transition-fast);
  flex-shrink: 0;
}

.category-manage-color-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.2);
}

.category-manage-color-btn.active {
  background: rgba(255, 84, 0, 0.15);
  border-color: var(--brand-orange);
}

.cat-tag-badge {
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
  transition: transform var(--transition-fast);
}

.category-manage-color-btn:hover .cat-tag-badge {
  transform: scale(1.06);
}

.category-color-chevron {
  font-size: 8px;
  color: var(--text-muted);
  line-height: 1;
  transition: transform 0.2s ease, color 0.2s ease;
  user-select: none;
}

.category-manage-color-btn.active .category-color-chevron {
  transform: rotate(180deg);
  color: var(--brand-orange);
}

/* Inline Color Palette Drawer */
.category-inline-palette {
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 0.26s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease, padding 0.2s ease;
  background: rgba(0, 0, 0, 0.22);
  border-top: 1px solid transparent;
  padding: 0 12px;
}

.category-inline-palette.open {
  max-height: 240px;
  opacity: 1;
  padding: 10px 12px 12px 12px;
  border-top: 1px solid var(--border-subtle);
}

.category-palette-inner {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-palette-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
}

.category-palette-title {
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: var(--text-muted);
  font-size: 10px;
}

.cat-palette-hover-name {
  font-weight: 700;
  color: var(--brand-orange);
  font-size: 11.5px;
}

.category-palette-swatches {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.category-palette-default-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 7px 10px;
  border-radius: 6px;
  border: 1px solid rgba(255, 84, 0, 0.25);
  background: rgba(255, 84, 0, 0.08);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.category-palette-default-btn:hover {
  background: rgba(255, 84, 0, 0.16);
  border-color: rgba(255, 84, 0, 0.45);
}

.category-palette-default-btn.selected {
  background: rgba(255, 84, 0, 0.22);
  border-color: var(--brand-orange);
}

.swatch-circle {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  box-shadow: 0 0 5px rgba(255, 84, 0, 0.5);
  flex-shrink: 0;
}

.swatch-check {
  margin-left: auto;
  font-size: 13px;
  font-weight: 800;
  color: var(--brand-orange);
}

.category-palette-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 8px;
  padding: 2px 0;
  justify-items: center;
}

.cat-palette-swatch {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.2);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  position: relative;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  outline: none;
  box-sizing: border-box;
}

.cat-palette-swatch:hover {
  transform: scale(1.18);
  border-color: #ffffff;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
}

.cat-palette-swatch.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2px var(--brand-orange);
  transform: scale(1.12);
}

.swatch-mini-check {
  font-size: 11px;
  font-weight: 800;
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.85);
  line-height: 1;
}

/* Light theme overrides */
[data-theme="light"] .category-manage-color-btn {
  background: rgba(0, 0, 0, 0.04);
  border-color: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .category-manage-color-btn:hover {
  background: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .category-inline-palette {
  background: rgba(0, 0, 0, 0.03);
}

[data-theme="light"] .category-palette-default-btn {
  background: rgba(255, 84, 0, 0.06);
  border-color: rgba(255, 84, 0, 0.25);
  color: #1e293b;
}

[data-theme="light"] .category-palette-default-btn:hover {
  background: rgba(255, 84, 0, 0.12);
}

[data-theme="light"] .cat-palette-swatch,
[data-theme="light"] .new-cat-swatch-btn {
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .cat-palette-swatch:hover,
[data-theme="light"] .cat-palette-swatch.selected,
[data-theme="light"] .new-cat-swatch-btn:hover,
[data-theme="light"] .new-cat-swatch-btn.selected {
  border-color: #1e293b;
}

/* ==========================================================================
   AUDIO CARD & AUDIO PLAYER SYSTEM
   ========================================================================== */

/* Gallery: Audio Card Visuals */
.video-card.audio-card {
  cursor: pointer;
}

.card-audio-display {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.16) 0%, rgba(15, 23, 42, 0.75) 75%);
  transition: all 0.3s ease;
  overflow: hidden;
}

.video-card.audio-card:hover .card-audio-display {
  background: radial-gradient(circle at 50% 45%, rgba(139, 92, 246, 0.28) 0%, rgba(15, 23, 42, 0.85) 75%);
}

.card-audio-disc-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(139, 92, 246, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #a78bfa;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.card-audio-disc-icon svg {
  display: block;
  fill: none;
  stroke: currentColor;
}

.video-card.audio-card:hover .card-audio-disc-icon {
  transform: scale(1.08) rotate(15deg);
  border-color: rgba(139, 92, 246, 0.6);
  color: #c4b5fd;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.35);
}

.card-audio-wave-anim {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 18px;
}

.card-audio-wave-anim span {
  width: 3px;
  border-radius: 3px;
  background: #a78bfa;
  height: 6px;
  transition: height 0.25s ease;
}

.card-audio-wave-anim span:nth-child(1) { height: 6px; }
.card-audio-wave-anim span:nth-child(2) { height: 12px; }
.card-audio-wave-anim span:nth-child(3) { height: 16px; }
.card-audio-wave-anim span:nth-child(4) { height: 10px; }
.card-audio-wave-anim span:nth-child(5) { height: 5px; }

.video-card.audio-card:hover .card-audio-wave-anim span {
  animation: audioWaveBounce 0.9s infinite ease-in-out;
}

.video-card.audio-card:hover .card-audio-wave-anim span:nth-child(1) { animation-delay: 0.0s; }
.video-card.audio-card:hover .card-audio-wave-anim span:nth-child(2) { animation-delay: 0.15s; }
.video-card.audio-card:hover .card-audio-wave-anim span:nth-child(3) { animation-delay: 0.3s; }
.video-card.audio-card:hover .card-audio-wave-anim span:nth-child(4) { animation-delay: 0.45s; }
.video-card.audio-card:hover .card-audio-wave-anim span:nth-child(5) { animation-delay: 0.6s; }

@keyframes audioWaveBounce {
  0%, 100% { height: 4px; }
  50% { height: 18px; }
}

.card-media-type-pill.audio-pill {
  color: #a78bfa;
  background: rgba(139, 92, 246, 0.18);
  border-color: rgba(139, 92, 246, 0.45);
}

/* Light Theme: Audio Card */
[data-theme="light"] .video-card.audio-card .card-media-wrapper {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .card-audio-display {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

[data-theme="light"] .video-card.audio-card:hover .card-audio-display {
  background: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
}

[data-theme="light"] .card-audio-disc-icon {
  background: #ffffff;
  border: 1px solid rgba(139, 92, 246, 0.25);
  color: #7c3aed;
  box-shadow: 0 4px 14px rgba(139, 92, 246, 0.12);
}

[data-theme="light"] .video-card.audio-card:hover .card-audio-disc-icon {
  border-color: rgba(139, 92, 246, 0.5);
  color: #6d28d9;
  box-shadow: 0 6px 18px rgba(139, 92, 246, 0.22);
}

[data-theme="light"] .card-audio-wave-anim span {
  background: #7c3aed;
}

[data-theme="light"] .card-media-type-pill.audio-pill {
  color: #7c3aed;
  background: rgba(139, 92, 246, 0.1);
  border-color: rgba(139, 92, 246, 0.25);
}

/* ==========================================================================
   DETAIL VIEW: CUSTOM AUDIO PLAYER
   ========================================================================== */

.custom-audio-wrapper {
  width: 100%;
  display: flex;
  flex-direction: column;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: none;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  user-select: none;
}

.custom-audio-element {
  display: none;
}

.audio-stage {
  width: 100%;
  min-height: 480px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 24px 32px 28px 32px;
  background: #0f1217;
  box-sizing: border-box;
  position: relative;
}

/* Stage Top: Badges & Actions */
.audio-stage-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  z-index: 5;
}

.audio-badge-group {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.audio-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent !important;
  border: none !important;
  color: var(--brand-orange);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.4px;
  padding: 0 !important;
  border-radius: 0 !important;
}

.audio-specs-text,
.audio-size-badge,
.audio-track-index-badge {
  display: inline-flex;
  align-items: center;
  background: transparent !important;
  border: none !important;
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.2px;
  padding: 0 !important;
  border-radius: 0 !important;
}

.audio-badge-group .audio-meta-sep {
  color: var(--text-muted);
  opacity: 0.45;
  font-size: 10px;
  user-select: none;
}

.audio-top-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-action-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  text-decoration: none !important;
  transition: all 0.2s ease;
}

.audio-action-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

/* Center Disc / Turntable Visualizer */
.audio-center-disc-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px 0 16px 0;
  position: relative;
  z-index: 2;
}

.audio-disc-ambient-glow {
  display: none !important;
}

.audio-disc-container {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: #141820;
  border: 2px solid var(--border-medium);
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25);
  margin-bottom: 20px;
  transition: transform 0.4s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  cursor: pointer;
}

/* Loading no lugar do Vinyl enquanto a waveform carrega (igual no vídeo) */
.audio-disc-loading-placeholder {
  width: 140px;
  height: 140px;
  margin-bottom: 20px;
  position: relative;
  display: none;
  align-items: center;
  justify-content: center;
}

.custom-audio-wrapper.waveform-loading .audio-disc-container {
  display: none !important;
}

.custom-audio-wrapper.waveform-loading .audio-disc-loading-placeholder {
  display: flex !important;
}

.audio-disc-loading-placeholder .player-center-loading {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  transform: none !important;
  display: flex !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: none;
}

.audio-disc-loading-placeholder .audio-center-loading {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: rgba(13, 15, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex !important;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45);
}

.audio-disc-loading-placeholder .player-loading-spinner {
  width: 20px;
  height: 20px;
  border: 2.5px solid rgba(255, 84, 0, 0.22);
  border-top-color: var(--brand-orange, #FF5400);
  border-radius: 50%;
  animation: spinnerRotate 0.75s linear infinite;
  display: block;
}

.audio-disc-container:hover {
  transform: scale(1.03);
  border-color: var(--brand-orange);
  box-shadow: 0 6px 20px rgba(255, 84, 0, 0.2);
}

.audio-disc-container:active {
  transform: scale(0.97);
}

.custom-audio-wrapper.buffering .audio-disc-container {
  opacity: 0.8;
  animation: discPulse 1.2s infinite ease-in-out;
}

@keyframes discPulse {
  0%, 100% { transform: scale(1); opacity: 0.8; }
  50% { transform: scale(1.04); opacity: 1; }
}

.custom-audio-wrapper.playing .audio-disc-container {
  animation: discSpin 14s infinite linear;
}

.custom-audio-wrapper.playing.buffering .audio-disc-container {
  animation: discSpin 14s infinite linear, discPulse 1.2s infinite ease-in-out;
}

@keyframes discSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.audio-disc-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.1);
  pointer-events: none;
}

.audio-disc-ring.ring-outer {
  width: 116px;
  height: 116px;
}

.audio-disc-ring.ring-mid {
  width: 86px;
  height: 86px;
}

.audio-disc-center {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.audio-disc-core {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #0f1217;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
}

.audio-meta-block {
  max-width: 540px;
}

.audio-track-title {
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px 0;
  line-height: 1.3;
  letter-spacing: -0.3px;
  word-break: break-word;
}

.audio-track-subtitle {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
}

/* Waveform Canvas Container */
.audio-waveform-container {
  width: 100%;
  height: 60px;
  position: relative;
  margin: 12px 0 8px 0;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.audio-waveform-canvas {
  width: 100%;
  height: 100%;
  display: block;
}

.audio-waveform-hover-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--brand-orange);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease;
  box-shadow: none;
}

/* Timeline Scrubber */
.audio-timeline-wrapper {
  width: 100%;
  height: 24px;
  position: relative;
  cursor: pointer;
  display: flex;
  align-items: center;
}

.audio-timeline-track {
  width: 100%;
  height: 5px;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 4px;
  position: relative;
  overflow: visible;
  transition: height 0.15s ease;
}

.audio-timeline-wrapper:hover .audio-timeline-track {
  height: 7px;
}

.audio-buffer-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 4px;
  width: 0;
  pointer-events: none;
}

.audio-progress-bar {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  background: var(--brand-orange);
  border-radius: 4px;
  width: 0;
  pointer-events: none;
}

.audio-scrubber-handle {
  position: absolute;
  top: 50%;
  left: 0;
  transform: translate(-50%, -50%);
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.1s ease;
}

.audio-timeline-wrapper:hover .audio-scrubber-handle {
  opacity: 1;
}

.audio-time-tooltip {
  position: absolute;
  top: -26px;
  transform: translateX(-50%);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 4px;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
  transition: opacity 0.15s ease;
  z-index: 10;
}

/* Controls Bar */
.audio-controls-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 12px;
  flex-wrap: wrap;
}

.audio-controls-left,
.audio-controls-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.audio-ctrl-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-ctrl-btn:hover {
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-primary);
}

.audio-play-main-btn {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-orange);
  border: none;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  transition: transform 0.15s ease, background-color 0.15s ease;
  margin: 0 4px;
}

.audio-play-main-btn:hover {
  transform: scale(1.05);
  background: var(--brand-orange-hover);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

.audio-play-main-btn:active {
  transform: scale(0.96);
}

.audio-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.audio-pill-btn:hover {
  background: rgba(255, 255, 255, 0.12);
  color: var(--text-primary);
}

.audio-pill-btn.active {
  background: rgba(255, 84, 0, 0.15);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

.audio-timecode-box {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  color: var(--text-secondary);
  margin-left: 6px;
}

.audio-timecode-current {
  color: var(--text-primary);
  font-weight: 600;
}

.audio-timecode-sep {
  opacity: 0.5;
}

.audio-volume-group {
  display: flex;
  align-items: center;
  gap: 4px;
}

.audio-volume-slider {
  width: 72px;
  height: 4px;
  -webkit-appearance: none;
  appearance: none;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 3px;
  outline: none;
  cursor: pointer;
  transition: height 0.15s ease;
}

.audio-volume-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.audio-volume-slider::-moz-range-thumb {
  width: 12px;
  height: 12px;
  border: none;
  border-radius: 50%;
  background: #ffffff;
  cursor: pointer;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

/* Light Theme: Audio Player Detail */
[data-theme="light"] .custom-audio-wrapper {
  background: var(--bg-primary);
  border: 1px solid var(--border-medium);
}

[data-theme="light"] .audio-stage {
  background: #f8fafc;
}

[data-theme="light"] .audio-disc-container {
  background: #ffffff;
  border-color: #e2e8f0;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .audio-disc-core {
  background: #ffffff;
  color: var(--brand-orange);
}

[data-theme="light"] .audio-disc-ring {
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .audio-action-btn,
[data-theme="light"] .audio-pill-btn {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.1);
  color: #334155;
}

[data-theme="light"] .audio-specs-text,
[data-theme="light"] .audio-size-badge,
[data-theme="light"] .audio-track-index-badge {
  background: transparent !important;
  border: none !important;
  color: #64748b !important;
  padding: 0 !important;
}

[data-theme="light"] .audio-action-btn:hover,
[data-theme="light"] .audio-pill-btn:hover {
  background: rgba(0, 0, 0, 0.09);
  color: #0f172a;
}

[data-theme="light"] .audio-pill-btn.active {
  background: rgba(255, 84, 0, 0.12);
  border-color: var(--brand-orange);
  color: var(--brand-orange);
}

[data-theme="light"] .audio-ctrl-btn:hover {
  background: rgba(0, 0, 0, 0.06);
}

[data-theme="light"] .audio-timeline-track {
  background: rgba(0, 0, 0, 0.1);
}

[data-theme="light"] .audio-buffer-bar {
  background: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .audio-progress-bar {
  background: var(--brand-orange);
}

[data-theme="light"] .audio-volume-slider {
  background: rgba(0, 0, 0, 0.16);
}

[data-theme="light"] .audio-volume-slider::-webkit-slider-thumb {
  background: var(--brand-orange);
}

[data-theme="light"] .audio-volume-slider::-moz-range-thumb {
  background: var(--brand-orange);
}

/* ========================================================
   Gallery View Location Search Bar, Toolbar & Results
   ======================================================== */
.gallery-title-header-row {
  margin-bottom: 20px;
}

.gallery-toolbar-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
  width: 100%;
}

.gallery-toolbar-left {
  display: flex;
  align-items: center;
  flex: 0 1 320px;
}

.gallery-toolbar-left .gallery-header-search-box {
  width: 100%;
  max-width: 320px;
  min-width: 200px;
}

.gallery-toolbar-right {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
}

@media (max-width: 900px) {
  .gallery-toolbar-section {
    flex-wrap: wrap;
    gap: 14px;
  }
  .gallery-toolbar-left {
    flex: 1 1 100%;
    max-width: 100%;
  }
  .gallery-toolbar-left .gallery-header-search-box {
    max-width: 100%;
  }
  .gallery-toolbar-right {
    flex: 1 1 100%;
    justify-content: flex-start;
    margin-left: 0;
  }
}

.gallery-header-search-box {
  position: relative;
  display: flex;
  align-items: center;
  min-width: 170px;
  max-width: 320px;
  flex: 1 1 180px;
}

.gallery-header-search-box svg.search-icon {
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.gallery-header-search-box input {
  width: 100%;
  height: 36px;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: 999px;
  padding: 0 32px 0 32px;
  font-size: 13px;
  color: var(--text-primary);
  font-family: inherit;
  transition: all var(--transition-fast);
}

.gallery-header-search-box input:focus {
  outline: none;
  border-color: var(--brand-orange);
  box-shadow: 0 0 0 3px var(--brand-orange-subtle);
  background: var(--bg-primary);
}

.gallery-header-search-box .clear-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  line-height: 1;
  cursor: pointer;
  padding: 2px 4px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-header-search-box .clear-search-btn:hover {
  color: var(--text-primary);
}

.gallery-search-results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.gallery-search-results-info {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.gallery-search-results-info svg {
  color: var(--brand-orange);
  flex-shrink: 0;
}

.gallery-search-results-info em {
  font-style: normal;
  color: var(--text-primary);
  font-weight: 600;
}

.gallery-search-empty {
  text-align: center;
  padding: 60px 20px;
  color: var(--text-secondary);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.gallery-search-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.gallery-search-empty h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
}

.gallery-search-empty p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0;
  max-width: 420px;
  line-height: 1.5;
}

/* Gallery Empty State (Centralizado e elegante para diretórios verdadeiramente vazios) */
.gallery-empty-state {
  text-align: center;
  padding: 64px 24px;
  background: var(--bg-secondary);
  border: 1px dashed var(--border-medium);
  border-radius: var(--radius-lg);
  max-width: 500px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: border-color 0.2s, background 0.2s;
}

.gallery-empty-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--brand-orange-subtle);
  color: var(--brand-orange);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.gallery-empty-state h3 {
  font-size: 18px;
  font-weight: 700;
  margin: 0 0 8px 0;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.gallery-empty-state p {
  font-size: 13.5px;
  color: var(--text-secondary);
  margin: 0 0 20px 0;
  line-height: 1.5;
  max-width: 420px;
}

.gallery-empty-state p strong {
  color: var(--text-primary);
  font-weight: 600;
}

.gallery-empty-actions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
}

.card-search-folder-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: var(--brand-orange);
  background: var(--brand-orange-subtle);
  padding: 2px 6px;
  border-radius: 4px;
  margin-top: 4px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.card-search-folder-tag svg {
  flex-shrink: 0;
}

@media (max-width: 768px) {
  .gallery-header-search-box {
    width: 100%;
    max-width: 100%;
    order: 10;
    margin-top: 6px;
  }
}

/* Modal Personalizar Comentários */
.comments-config-options-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.comments-config-option-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  background: var(--bg-surface-elevated, #16181D);
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
}

.comments-config-option-card:hover {
  border-color: rgba(255, 84, 0, 0.4);
  background: rgba(255, 84, 0, 0.04);
}

.comments-config-option-card.selected {
  border-color: var(--brand-orange);
  background: rgba(255, 84, 0, 0.08);
  box-shadow: 0 0 0 1px var(--brand-orange);
}

.comments-config-radio {
  margin: 0;
  accent-color: var(--brand-orange);
  width: 16px;
  height: 16px;
  cursor: pointer;
  flex-shrink: 0;
}

.comments-config-option-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.comments-config-option-icon.is-allow {
  background: rgba(34, 197, 94, 0.15);
  color: #22c55e;
}

.comments-config-option-icon.is-deny {
  background: rgba(239, 68, 68, 0.15);
  color: #ef4444;
}

.comments-config-option-icon.is-inherit {
  background: rgba(148, 163, 184, 0.15);
  color: #94a3b8;
}

.comments-config-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.comments-config-option-title {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.comments-config-option-desc {
  font-size: 12px;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.35;
}

/* Subfolder comments button */
.subfolder-comments-btn {
  background: transparent;
  border: 1px solid transparent;
  color: var(--text-secondary);
  border-radius: 6px;
  width: 28px;
  height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.subfolder-comments-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-primary);
  transform: scale(1.05);
}

.subfolder-comments-btn.is-allowed {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.subfolder-comments-btn.is-allowed:hover {
  background: rgba(34, 197, 94, 0.22);
}

.subfolder-comments-btn.is-disabled {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.subfolder-comments-btn.is-disabled:hover {
  background: rgba(239, 68, 68, 0.22);
}

.subfolder-comments-btn.is-inherited {
  opacity: 0.65;
}

/* Card comments button */
.card-comments-config-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--text-secondary);
  border-radius: 6px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.15s ease;
  margin-left: auto;
  flex-shrink: 0;
}

.card-comments-config-btn:hover {
  background: rgba(255, 255, 255, 0.18);
  color: var(--text-primary);
  transform: scale(1.08);
}

.card-comments-config-btn.is-allowed {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.12);
  border-color: rgba(34, 197, 94, 0.25);
}

.card-comments-config-btn.is-allowed:hover {
  background: rgba(34, 197, 94, 0.22);
}

.card-comments-config-btn.is-disabled {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.12);
  border-color: rgba(239, 68, 68, 0.25);
}

.card-comments-config-btn.is-disabled:hover {
  background: rgba(239, 68, 68, 0.22);
}

.card-comments-config-btn.is-inherited {
  opacity: 0.65;
}

/* Author video comments pill control in player */
.author-comments-control {
  display: inline-flex;
  align-items: center;
}

.author-comments-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 20px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.2s ease;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-primary);
}

.author-comments-pill-btn.is-allowed {
  background: rgba(34, 197, 94, 0.14);
  border-color: rgba(34, 197, 94, 0.3);
  color: #22c55e;
}

.author-comments-pill-btn.is-disabled {
  background: rgba(239, 68, 68, 0.14);
  border-color: rgba(239, 68, 68, 0.3);
  color: #ef4444;
}

.author-comments-pill-btn.is-inherited {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--text-secondary);
}

.author-comments-pill-btn:hover {
  filter: brightness(1.15);
  transform: translateY(-1px);
}

/* Comments panel author notification pill */
.comments-disabled-author-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.25);
  color: #f87171;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 600;
  margin: 8px 14px 4px 14px;
}

/* Light Theme Overrides */
[data-theme="light"] .comments-config-option-card {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.12);
}

[data-theme="light"] .comments-config-option-card:hover {
  background: rgba(255, 84, 0, 0.05);
}

[data-theme="light"] .comments-config-option-card.selected {
  background: rgba(255, 84, 0, 0.09);
}

[data-theme="light"] .author-comments-pill-btn.is-inherited {
  background: rgba(0, 0, 0, 0.05);
  border-color: rgba(0, 0, 0, 0.12);
  color: #64748b;
}

/* ========================================================
   Notifications Bell, Popover & Bottom-Right Toasts
   ======================================================== */

.author-header-group,
.client-header-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

.notifications-bell-mount {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.notifications-bell-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.btn-notifications-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: var(--text-secondary);
  cursor: pointer;
  transition: color var(--transition-fast), transform var(--transition-fast);
  padding: 6px 8px;
  outline: none;
  border-radius: 0;
}

.btn-notifications-bell:hover {
  background: transparent !important;
  color: var(--text-primary);
  transform: scale(1.03);
}

.btn-notifications-bell.has-pending {
  color: var(--brand-orange, #ff5400);
}

.btn-notifications-bell .bell-icon.bell-outlined {
  display: block;
}

.btn-notifications-bell .bell-icon.bell-filled {
  display: none;
}

.btn-notifications-bell.has-pending .bell-icon.bell-outlined {
  display: none;
}

.btn-notifications-bell.has-pending .bell-icon.bell-filled {
  display: block;
  color: var(--brand-orange, #ff5400);
}

.btn-notifications-bell.bell-ringing .bell-icon {
  animation: bellShake 0.65s cubic-bezier(0.36, 0.07, 0.19, 0.97) both;
}

@keyframes bellShake {
  0% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-14deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-10deg); }
  75% { transform: rotate(4deg); }
  100% { transform: rotate(0); }
}

.bell-badge {
  position: absolute;
  top: 0px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--brand-orange, #ff5400);
  color: #ffffff;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg-primary, #0b0b0e);
  box-shadow: none;
  pointer-events: none;
}

/* Notifications Popover Dropdown */
.notifications-popover {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 380px;
  max-width: calc(100vw - 28px);
  background: rgba(20, 20, 25, 0.97);
  border: 1px solid var(--border-medium, rgba(255, 255, 255, 0.12));
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.04);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 1000;
  overflow: hidden;
  animation: popoverFadeIn 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes popoverFadeIn {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.notifications-popover-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(255, 255, 255, 0.02);
  gap: 12px;
}

.notifications-popover-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
}

.notifications-popover-title svg {
  color: var(--brand-orange, #ff5400);
}

.notif-header-actions {
  display: flex;
  align-items: center;
  gap: 9px;
  flex-shrink: 0;
}

.notif-count-text {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  user-select: none;
}

.btn-notif-history-toggle {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 11px;
  font-weight: 500;
  padding: 3px 8px;
  border-radius: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
  outline: none;
  line-height: 1.2;
}

.btn-notif-history-toggle:hover {
  color: var(--text-primary);
  border-color: var(--border-medium);
  background: rgba(255, 255, 255, 0.06);
}

.btn-notif-history-toggle.is-active {
  color: var(--brand-orange, #ff5400);
  border-color: rgba(255, 84, 0, 0.35);
  background: rgba(255, 84, 0, 0.08);
}

.notifications-popover-list {
  max-height: 420px;
  overflow-y: auto;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.notifications-popover-list::-webkit-scrollbar {
  width: 5px;
}
.notifications-popover-list::-webkit-scrollbar-thumb {
  background: var(--border-medium);
  border-radius: 4px;
}

/* Card item inside popover */
.notif-card {
  padding: 11px 13px;
  border-radius: 10px;
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  transition: all var(--transition-fast);
  display: flex;
  flex-direction: column;
  gap: 7px;
  text-align: left;
}

.notif-card:hover {
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 84, 0, 0.35);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.notif-card.is-staged-resolved {
  opacity: 0.68;
  border-color: rgba(16, 185, 129, 0.25);
  background: rgba(16, 185, 129, 0.03);
}

.notif-card.is-history-card {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.05);
  opacity: 0.88;
}

.notif-card.is-history-card:hover {
  opacity: 1;
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--border-medium);
}

.notif-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.notif-card-author {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}

.notif-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
}

.notif-author-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-card-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.notif-timecode-pill {
  font-size: 10.5px;
  font-weight: 600;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary);
  font-family: monospace, monospace;
}

.notif-rel-time {
  font-size: 11px;
  color: var(--text-muted);
}

.notif-card-context {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 2px 0;
}

.notif-ctx-proj {
  color: var(--brand-orange, #ff5400);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-ctx-sep {
  opacity: 0.5;
}

.notif-ctx-video {
  color: var(--brand-orange, #ff5400);
  font-weight: 600;
  font-size: 11.5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.notif-card-snippet {
  font-size: 12.5px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.notif-card:hover .notif-card-snippet {
  color: var(--text-primary);
}

.notif-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: 2px;
  padding-top: 6px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
}

.btn-quick-resolve {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #34d399;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quick-resolve:hover {
  background: rgba(16, 185, 129, 0.22);
  border-color: #10b981;
  color: #ffffff;
  transform: scale(1.02);
}

.btn-quick-undo {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(245, 158, 11, 0.12);
  border: 1px solid rgba(245, 158, 11, 0.35);
  color: #fbbf24;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-quick-undo:hover {
  background: rgba(245, 158, 11, 0.22);
  border-color: #f59e0b;
  color: #ffffff;
  transform: scale(1.02);
}

/* Empty State inside popover */
.notif-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 36px 16px;
  text-align: center;
  gap: 8px;
}

.notif-empty-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 4px;
}

.notif-empty-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

.notif-empty-desc {
  font-size: 12px;
  color: var(--text-muted);
}

/* ========================================================
   Bottom-Right Comments Toast Notifications
   ======================================================== */
.comments-toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 99999;
  display: flex;
  flex-direction: column-reverse;
  gap: 12px;
  max-width: 390px;
  width: calc(100vw - 48px);
  pointer-events: none;
}

.comment-toast {
  pointer-events: auto;
  position: relative;
  background: rgba(22, 22, 28, 0.96);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid rgba(255, 84, 0, 0.35);
  border-radius: 14px;
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.05);
  padding: 13px 15px 12px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  animation: toastSlideInRight 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.comment-toast:hover {
  transform: translateY(-2px);
  border-color: var(--brand-orange, #ff5400);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.75), 0 0 16px rgba(255, 84, 0, 0.25);
}

.comment-toast.is-dismissing {
  animation: toastSlideOutRight 0.3s cubic-bezier(0.4, 0, 1, 1) forwards;
}

@keyframes toastSlideInRight {
  from {
    opacity: 0;
    transform: translateX(60px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

@keyframes toastSlideOutRight {
  from {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
  to {
    opacity: 0;
    transform: translateX(80px) scale(0.92);
  }
}

.comment-toast-accent-strip {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #ff5400 0%, #ff8c42 100%);
  box-shadow: 0 0 8px rgba(255, 84, 0, 0.6);
}

.comment-toast-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.comment-toast-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand-orange, #ff5400);
}

.comment-toast-icon {
  flex-shrink: 0;
}

.btn-close-toast {
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.btn-close-toast:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.08);
}

.comment-toast-context {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text-muted);
}

.toast-proj-name {
  color: var(--text-secondary);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
}

.toast-ctx-sep {
  opacity: 0.5;
}

.toast-file-name {
  color: var(--brand-orange, #ff5400);
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
}

.comment-toast-body {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.comment-toast-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--border-subtle);
  margin-top: 2px;
}

.comment-toast-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.comment-toast-author-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}

.comment-toast-author {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary);
}

.comment-toast-timecode {
  font-size: 10.5px;
  font-weight: 600;
  padding: 1px 5px;
  border-radius: 4px;
  background: var(--bg-hover, rgba(255, 255, 255, 0.08));
  color: var(--text-secondary);
  font-family: monospace, monospace;
}

.comment-toast-snippet {
  font-size: 12.5px;
  color: #e4e4e7;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.comment-toast-footer {
  font-size: 11px;
  color: var(--brand-orange, #ff5400);
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
  padding-top: 4px;
}

.comment-toast-progress {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
}

.comment-toast-progress-bar {
  height: 100%;
  background: var(--brand-orange, #ff5400);
  width: 100%;
  animation: toastProgressBar 8s linear forwards;
}

@keyframes toastProgressBar {
  from { width: 100%; }
  to { width: 0%; }
}

/* Pulse highlight on focused comment */
.comment-item.comment-highlight-pulse {
  animation: commentHighlightPulse 3.5s cubic-bezier(0.25, 1, 0.5, 1) forwards !important;
}

@keyframes commentHighlightPulse {
  0% {
    background-color: rgba(255, 84, 0, 0.32);
    box-shadow: 0 0 0 3px rgba(255, 84, 0, 0.5), 0 0 20px rgba(255, 84, 0, 0.35);
    transform: scale(1.02);
  }
  30% {
    background-color: rgba(255, 84, 0, 0.22);
    box-shadow: 0 0 0 2px rgba(255, 84, 0, 0.4), 0 0 14px rgba(255, 84, 0, 0.25);
    transform: scale(1.01);
  }
  60% {
    background-color: rgba(255, 84, 0, 0.12);
    box-shadow: 0 0 0 1px rgba(255, 84, 0, 0.25);
    transform: scale(1);
  }
  100% {
    background-color: transparent;
    box-shadow: none;
    transform: scale(1);
  }
}

/* Light Theme Overrides for Notifications & Popover */
[data-theme="light"] .notifications-popover {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .notif-card {
  background: #f8fafc;
  border-color: rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .notif-card:hover {
  background: #ffffff;
  border-color: var(--brand-orange, #ff5400);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

[data-theme="light"] .comment-toast {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(255, 84, 0, 0.4);
  box-shadow: 0 16px 42px rgba(0, 0, 0, 0.15);
}

[data-theme="light"] .comment-toast-snippet {
  color: #334155;
}

[data-theme="light"] .bell-badge {
  border-color: #ffffff;
}

/* ========================================================
   MENÇÕES (@usuário) & AUTOCOMPLETE + RESPOSTAS NAS NOTIFICAÇÕES
   ======================================================== */
.comment-input-wrapper,
.reply-form,
.edit-comment-form,
.edit-reply-form {
  position: relative;
}

.comment-mention {
  display: inline-block;
  color: var(--brand-orange, #ff5400);
  background: rgba(255, 84, 0, 0.14);
  border: 1px solid rgba(255, 84, 0, 0.28);
  padding: 0 5px;
  border-radius: 5px;
  font-weight: 600;
  font-size: 0.94em;
  line-height: 1.35;
}

.mention-autocomplete-dropdown {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  background: rgba(18, 22, 31, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.55);
  z-index: 2500;
  overflow: hidden;
  max-height: 220px;
  display: flex;
  flex-direction: column;
}

.mention-autocomplete-dropdown.mention-dropdown-up {
  top: auto;
  bottom: calc(100% + 6px);
}

.mention-dropdown-header {
  padding: 6px 10px;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted, #94a3b8);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.02);
}

.mention-dropdown-list {
  overflow-y: auto;
  max-height: 185px;
  padding: 4px;
}

.mention-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.15s ease;
}

.mention-option:hover,
.mention-option.is-active {
  background: rgba(255, 84, 0, 0.16);
}

.mention-option-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.mention-option-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
  flex: 1;
}

.mention-option-name {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-primary, #f8fafc);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mention-option-email {
  font-size: 10.5px;
  color: var(--text-muted, #94a3b8);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge-notif-mention {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  background: rgba(255, 84, 0, 0.18);
  color: var(--brand-orange, #ff5400);
  border: 1px solid rgba(255, 84, 0, 0.35);
  white-space: nowrap;
}

.badge-notif-replies {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-muted, #94a3b8);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 7px;
  border-radius: 999px;
  margin-left: auto;
  white-space: nowrap;
}

.notif-card-reply-preview {
  margin-top: 7px;
  padding: 7px 9px;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.04);
  border-left: 2.5px solid var(--brand-orange, #ff5400);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.notif-reply-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.notif-reply-avatar {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.notif-reply-author {
  font-weight: 600;
  color: var(--text-primary, #f1f5f9);
  font-size: 11.5px;
}

.notif-reply-text {
  font-size: 12px;
  color: var(--text-secondary, #cbd5e1);
  line-height: 1.38;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
}

.comment-toast-parent-quote {
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 2px;
}

[data-theme="light"] .mention-autocomplete-dropdown {
  background: rgba(255, 255, 255, 0.98);
  border-color: rgba(0, 0, 0, 0.12);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

[data-theme="light"] .mention-dropdown-header {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  background: rgba(0, 0, 0, 0.02);
  color: #64748b;
}

[data-theme="light"] .mention-option-name {
  color: #0f172a;
}

[data-theme="light"] .mention-option-email {
  color: #64748b;
}

[data-theme="light"] .notif-card-reply-preview {
  background: rgba(15, 23, 42, 0.04);
}

[data-theme="light"] .notif-reply-author {
  color: #0f172a;
}

[data-theme="light"] .notif-reply-text {
  color: #334155;
}

[data-theme="light"] .badge-notif-replies {
  background: rgba(15, 23, 42, 0.06);
  color: #475569;
}

.settings-auto-delete-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.settings-auto-delete-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.settings-days-counter {
  width: 68px !important;
  height: 32px;
  padding: 4px 8px !important;
  text-align: center;
  font-size: 13px !important;
  font-weight: 600;
  border-radius: 7px;
  transition: opacity 0.18s ease, border-color 0.18s ease;
}

.settings-days-counter.is-disabled,
.settings-days-counter:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Settings Theme Color Picker */
.settings-theme-color-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  padding: 6px 0;
}

.settings-color-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2.5px solid transparent;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
  padding: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  position: relative;
  outline: none;
}

.settings-color-btn:hover {
  transform: scale(1.15);
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.35);
}

.settings-color-btn.selected {
  border-color: #ffffff;
  box-shadow: 0 0 0 2.5px currentColor, 0 3px 10px rgba(0, 0, 0, 0.4);
  transform: scale(1.15);
}

.settings-color-check {
  color: #ffffff;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.15s ease;
}

.settings-color-btn.selected .settings-color-check {
  opacity: 1;
}

/* ==========================================================================
   VIEW MODE TOGGLE: GALERIA VS COLUNAS (macOS Style)
   ========================================================================== */
.view-mode-toggle-group {
  display: inline-flex;
  align-items: center;
  background: var(--bg-secondary);
  border: 1px solid var(--border-medium);
  border-radius: var(--radius-sm);
  padding: 2px;
  gap: 2px;
}

.view-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 30px;
  border: none;
  background: transparent;
  color: var(--text-tertiary);
  border-radius: 4px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.view-mode-btn:hover {
  color: var(--text-primary);
  background: rgba(255, 255, 255, 0.05);
}

.view-mode-btn.active {
  background: var(--bg-tertiary);
  color: var(--brand-orange);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

[data-theme="light"] .view-mode-toggle-group {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

[data-theme="light"] .view-mode-btn:hover {
  background: rgba(0, 0, 0, 0.05);
}

[data-theme="light"] .view-mode-btn.active {
  background: #ffffff;
  color: var(--brand-orange);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* ==========================================================================
   MACOS FINDER COLUMNS VIEW
   ========================================================================== */
.macos-columns-viewport {
  width: 100%;
  height: calc(100vh - 210px);
  min-height: 480px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--bg-secondary);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  margin-top: 12px;
}

.macos-columns-scroll-track {
  display: flex;
  height: 100%;
  min-width: 100%;
  width: max-content;
}

.macos-column {
  width: 270px;
  min-width: 270px;
  max-width: 340px;
  height: 100%;
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--border-subtle);
  background: var(--bg-secondary);
}

.macos-column-header {
  height: 38px;
  min-height: 38px;
  padding: 0 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-primary);
  user-select: none;
}

.macos-column-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.macos-column-count {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--bg-tertiary);
  padding: 1px 7px;
  border-radius: 10px;
}

.macos-column-list {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 6px;
  outline: none;
}

.macos-col-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--text-primary);
  cursor: pointer;
  user-select: none;
  transition: background-color 0.12s ease, color 0.12s ease;
  margin-bottom: 2px;
  gap: 8px;
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.macos-col-item:focus,
.macos-col-item:focus-visible,
.macos-col-item:active {
  outline: none !important;
  border: none !important;
  box-shadow: none !important;
}

.macos-col-item:hover {
  background: var(--bg-tertiary);
}

.macos-col-item.active {
  background: var(--brand-orange) !important;
  color: #ffffff !important;
}

.macos-col-item.active .macos-col-icon,
.macos-col-item.active .macos-col-chevron,
.macos-col-item.active .macos-col-name,
.macos-col-item.active .macos-col-badge,
.macos-col-item.active .macos-col-ext-tag {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

/* Container / Pasta aberta na trilha de navegação (neutro, não laranja) */
.macos-col-item.in-path {
  background: rgba(255, 255, 255, 0.08) !important;
  color: var(--text-primary) !important;
}

.macos-col-item.in-path .macos-col-name {
  color: var(--text-primary) !important;
  font-weight: 600;
}

.macos-col-item.in-path .macos-col-chevron {
  color: var(--text-primary) !important;
  opacity: 0.9;
}

[data-theme="light"] .macos-col-item.in-path {
  background: #e2e8f0 !important;
  color: #0f172a !important;
}

[data-theme="light"] .macos-col-item.in-path .macos-col-name {
  color: #0f172a !important;
  font-weight: 600;
}

[data-theme="light"] .macos-col-item.in-path .macos-col-chevron {
  color: #0f172a !important;
  opacity: 0.9;
}

/* Checkbox de Seleção no Modo Colunas macOS */
.macos-col-checkbox {
  width: 17px;
  height: 17px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.08);
  border: 1.5px solid rgba(255, 255, 255, 0.38);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #ffffff;
  margin-right: 2px;
}

.macos-col-checkbox:hover {
  border-color: var(--brand-orange);
  background: rgba(255, 84, 0, 0.18);
}

.macos-col-checkbox.checked {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
  box-shadow: 0 1px 6px rgba(255, 84, 0, 0.4);
}

.macos-col-item.selected-for-batch {
  background: rgba(255, 84, 0, 0.14) !important;
  border-left: 3px solid var(--brand-orange);
  padding-left: 7px;
}

.macos-col-item.selected-for-batch:hover {
  background: rgba(255, 84, 0, 0.22) !important;
}

.macos-col-item.active.selected-for-batch {
  background: var(--brand-orange) !important;
  border-left: 3px solid #ffffff !important;
}

.macos-col-item.active .macos-col-checkbox {
  border-color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.2);
}

.macos-col-item.active .macos-col-checkbox.checked {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--brand-orange) !important;
}

[data-theme="light"] .macos-col-checkbox {
  background: #ffffff;
  border: 1.5px solid rgba(0, 0, 0, 0.28);
  color: #ffffff;
}

[data-theme="light"] .macos-col-checkbox.checked {
  background: var(--brand-orange) !important;
  border-color: var(--brand-orange) !important;
  color: #ffffff !important;
}

[data-theme="light"] .macos-col-item.selected-for-batch:not(.active) {
  background: rgba(255, 84, 0, 0.08) !important;
  border-left: 3px solid var(--brand-orange) !important;
  color: #0f172a !important;
}

[data-theme="light"] .macos-col-item.selected-for-batch:not(.active) .macos-col-name {
  color: #0f172a !important;
}

[data-theme="light"] .macos-col-item.selected-for-batch:not(.active):hover {
  background: rgba(255, 84, 0, 0.15) !important;
}

[data-theme="light"] .macos-col-item.active,
[data-theme="light"] .macos-col-item.active.selected-for-batch {
  background: var(--brand-orange) !important;
  color: #ffffff !important;
}

[data-theme="light"] .macos-col-item.active .macos-col-name,
[data-theme="light"] .macos-col-item.active .macos-col-icon,
[data-theme="light"] .macos-col-item.active .macos-col-chevron,
[data-theme="light"] .macos-col-item.active .macos-col-badge,
[data-theme="light"] .macos-col-item.active .macos-col-ext-tag,
[data-theme="light"] .macos-col-item.active.selected-for-batch .macos-col-name,
[data-theme="light"] .macos-col-item.active.selected-for-batch .macos-col-icon,
[data-theme="light"] .macos-col-item.active.selected-for-batch .macos-col-chevron,
[data-theme="light"] .macos-col-item.active.selected-for-batch .macos-col-badge,
[data-theme="light"] .macos-col-item.active.selected-for-batch .macos-col-ext-tag {
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .macos-col-item.active.selected-for-batch {
  border-left: 3px solid #ffffff !important;
}

[data-theme="light"] .macos-col-item.active .macos-col-checkbox {
  border-color: rgba(255, 255, 255, 0.8) !important;
  background: rgba(255, 255, 255, 0.25) !important;
  color: #ffffff !important;
}

[data-theme="light"] .macos-col-item.active .macos-col-checkbox.checked {
  background: #ffffff !important;
  border-color: #ffffff !important;
  color: var(--brand-orange) !important;
}

.macos-col-item-left {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  flex: 1;
}

.macos-col-icon {
  flex-shrink: 0;
  color: var(--text-secondary);
}

.macos-col-icon.folder-icon {
  color: var(--brand-orange);
}

.macos-col-icon.photo-icon {
  color: #38bdf8;
}

.macos-col-icon.video-icon {
  color: #fb923c;
}

.macos-col-icon.audio-icon {
  color: #a78bfa;
}

.macos-col-name {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 13px;
  font-weight: 500;
}

.macos-col-item-right {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.macos-col-badge {
  font-size: 10px;
  color: var(--text-tertiary);
  font-weight: 600;
}

.macos-col-chevron {
  color: var(--text-muted);
}

.macos-col-ext-tag {
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
  border: 1px solid var(--border-subtle);
}

.sidebar-ext-tag {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--text-tertiary);
  background: rgba(255, 255, 255, 0.08);
  padding: 1px 4px;
  border-radius: 3px;
  margin-left: auto;
  border: 1px solid var(--border-subtle);
}

.project-item.active .sidebar-ext-tag {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.25) !important;
  border-color: rgba(255, 255, 255, 0.4) !important;
}

[data-theme="light"] .sidebar-ext-tag {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

.macos-column.drag-over,
.macos-col-item.drag-over {
  background: rgba(255, 84, 0, 0.15) !important;
  outline: 2px dashed var(--brand-orange) !important;
  outline-offset: -2px;
}

.macos-col-unresolved-pill {
  font-size: 10px;
  font-weight: 800;
  color: #ffffff;
  background: #ef4444;
  min-width: 17px;
  height: 17px;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  line-height: 1;
  letter-spacing: -0.2px;
  flex-shrink: 0;
  box-shadow: none;
}

.macos-col-empty {
  padding: 30px 10px;
  text-align: center;
  color: var(--text-muted);
  font-size: 12px;
}

/* Coluna de Preview macOS (painel da direita) */
.macos-preview-column {
  width: 320px;
  min-width: 320px;
  height: 100%;
  display: flex;
  flex-direction: column;
  background: var(--bg-primary);
  border-left: 1px solid var(--border-subtle);
  overflow-y: auto;
}

.macos-preview-hero {
  width: 100%;
  height: 200px;
  min-height: 200px;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
  border-bottom: 1px solid var(--border-subtle);
}

.macos-preview-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.macos-preview-video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.macos-preview-audio-disc {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(139, 92, 246, 0.15);
  border: 1px solid rgba(139, 92, 246, 0.35);
  color: #a78bfa;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 6px 20px rgba(139, 92, 246, 0.25);
}

.macos-preview-generic-box {
  width: 80px;
  height: 80px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border-medium);
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
}

.macos-preview-details {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.macos-preview-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0;
  word-break: break-word;
  line-height: 1.35;
}

.macos-preview-kind {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--text-tertiary);
  letter-spacing: 0.5px;
}

.macos-preview-meta-table {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 10px 0;
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
}

.macos-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
}

.macos-meta-label {
  color: var(--text-tertiary);
}

.macos-meta-value {
  color: var(--text-primary);
  font-weight: 500;
}

.macos-meta-value.has-alert {
  color: var(--brand-orange);
  font-weight: 700;
}

.macos-preview-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 4px;
}

.macos-preview-actions .btn-primary,
.macos-preview-actions .btn-secondary {
  font-family: 'Outfit', sans-serif;
  font-size: 13px;
  font-weight: 500;
}

.btn-block {
  width: 100%;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
}

/* Light Mode Overrides */
[data-theme="light"] .macos-columns-viewport {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .macos-column {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .macos-column-header {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .macos-column-title {
  color: #64748b;
}

[data-theme="light"] .macos-column-count {
  background: #e2e8f0;
  color: #475569;
}

[data-theme="light"] .macos-col-item:not(.active):not(.selected-for-batch):hover {
  background: #e2e8f0;
}

[data-theme="light"] .macos-col-item.active:hover {
  background: var(--brand-orange-hover, #ff6b1a) !important;
}

[data-theme="light"] .macos-col-ext-tag {
  background: #e2e8f0;
  border-color: #cbd5e1;
  color: #475569;
}

[data-theme="light"] .macos-preview-column {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .macos-preview-hero {
  background: #f1f5f9;
  border-color: #e2e8f0;
}

/* ==========================================================================
   Multi-Cloud Accounts & Provider Detection Styles
   ========================================================================== */

/* Provider Detection Minimal Icon in New Directory Modal */
.drive-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.drive-input-wrapper .form-input {
  width: 100%;
  box-sizing: border-box;
}

.provider-detection-badge {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  padding: 0 !important;
  box-shadow: none !important;
  color: var(--text-tertiary, #94a3b8);
  pointer-events: auto;
  cursor: default;
  transition: color 0.15s ease, opacity 0.15s ease;
  opacity: 0.65;
}

.provider-detection-badge:hover {
  opacity: 1;
  color: var(--text-secondary, #64748b);
}

[data-theme="light"] .provider-detection-badge {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  color: #64748b;
}

[data-theme="light"] .provider-detection-badge:hover {
  color: #0f172a;
}

/* Connected Account Cards */
.connected-accounts-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.connected-account-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  transition: border-color 0.15s ease;
}

.primary-account-row {
  display: flex;
  align-items: center;
  padding: 4px 0;
  background: transparent !important;
  border: none !important;
}

.account-card-left {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.account-provider-icon {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.account-card-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.account-card-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-card-meta {
  font-size: 11px;
  color: var(--text-tertiary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.account-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 999px;
  flex-shrink: 0;
}

.account-card-badge.status-connected {
  background: rgba(34, 197, 94, 0.12);
  color: #22c55e;
  border: 1px solid rgba(34, 197, 94, 0.28);
}

.btn-disconnect-account {
  background: transparent;
  border: 1px solid var(--border-subtle);
  color: var(--text-secondary);
  font-size: 11px;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.btn-disconnect-account:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: rgba(239, 68, 68, 0.08);
}

.accounts-empty-state {
  padding: 12px;
  font-size: 12px;
  color: var(--text-tertiary);
  text-align: center;
  background: var(--bg-tertiary);
  border-radius: var(--radius-sm);
  border: 1px dashed var(--border-subtle);
}

/* Cloud Provider Grid */
.cloud-provider-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 10px;
}

.cloud-provider-card {
  padding: 16px 10px 14px;
  border-radius: var(--radius-md);
  background: var(--bg-tertiary);
  border: 1px solid var(--border-subtle);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  gap: 8px;
  transition: all 0.15s ease;
  user-select: none;
}

.cloud-provider-card:hover {
  border-color: var(--brand-orange);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.cloud-provider-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cloud-provider-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.25;
}

.cloud-provider-desc {
  font-size: 10px;
  color: var(--text-tertiary);
  line-height: 1.3;
}

/* Connect Provider Hero Box in Modal */
.connect-provider-hero {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: var(--radius-md);
  margin-bottom: 14px;
  border: 1px solid var(--border-subtle);
}

.connect-hero-icon {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.connect-hero-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.connect-hero-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-primary);
}

.connect-hero-desc {
  font-size: 11px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.form-hint {
  display: block;
  font-size: 11px;
  color: var(--text-tertiary);
  margin-top: 5px;
  line-height: 1.4;
}

/* Light Theme Overrides for Multi-Cloud */
[data-theme="light"] .connected-account-card {
  background: #ffffff;
  border-color: #e2e8f0;
}


[data-theme="light"] .cloud-provider-card {
  background: #ffffff;
  border-color: #e2e8f0;
}

[data-theme="light"] .cloud-provider-card:hover {
  border-color: var(--brand-orange);
  background: #fffbf9;
}

[data-theme="light"] .connect-provider-hero {
  background: #f8fafc;
  border-color: #e2e8f0;
}

[data-theme="light"] .accounts-empty-state {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #64748b;
}

/* Mobile Navigation, Breadcrumbs & Columns Responsive Polish */
@media (max-width: 768px) {
  .content-header-row {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }

  .project-title-wrapper {
    width: 100%;
    min-width: 0;
  }

  .project-breadcrumb {
    flex-wrap: wrap;
    row-gap: 6px;
    max-width: 100%;
    overflow: hidden;
  }

  .breadcrumb-current,
  .breadcrumb-item {
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .project-actions-right {
    width: 100%;
    flex-wrap: wrap;
    justify-content: flex-start;
    gap: 8px;
  }

  .macos-columns-viewport {
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .macos-column,
  .macos-preview-column {
    scroll-snap-align: start;
  }
}

/* ==========================================================================
   Password Protection Badges & Locked Placeholders (Folders & Files)
   ========================================================================== */
.card-lock-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 4;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  color: #f8fafc;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
}

.video-card .media-checkbox-container ~ .card-lock-badge {
  left: 40px;
}

.card-locked-display {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.85));
}

[data-theme="light"] .card-locked-display {
  background: linear-gradient(145deg, #f1f5f9, #e2e8f0);
}

.card-locked-display .locked-box {
  color: var(--brand-orange);
}

.card-locked-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  letter-spacing: 0.2px;
}

.subfolder-lock-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  padding: 2px;
  flex-shrink: 0;
}

.macos-col-lock-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-tertiary);
  flex-shrink: 0;
}

.macos-col-item.active .macos-col-lock-icon {
  color: #ffffff !important;
}

.macos-preview-locked-box {
  flex-direction: column;
  width: 140px;
  height: 110px;
  color: var(--brand-orange);
}

