/* Template button icons */
.template-btn i,
.template-group-header i,
.template-sidebar h3 i {
  width: 16px;
  height: 16px;
  margin-right: 8px;
  vertical-align: middle;
}

.template-group-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.template-group-header span:first-child {
  display: flex;
  align-items: center;
}

/* Mini Component Styles */
.mini-tales-component,
.mini-beacons-component,
.mini-broadsheets-component {
  border: 2px solid var(--theme-primary);
  padding: 1rem;
  margin: 1rem 0;
  background: var(--theme-surface);
  border-radius: 4px;
}

.component-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--theme-border);
}

.mini-content {
  margin: 0.5rem 0;
  color: var(--theme-text);
}

.read-more {
  color: var(--theme-primary);
  text-decoration: none;
  font-weight: bold;
}

.read-more:hover {
  text-decoration: underline;
}

/* Help Wanted Component */
.help-wanted-component {
  background: rgba(10, 10, 10, 0.8);
  border: 2px solid var(--theme-primary);
  border-radius: 8px;
  padding: 2rem;
  margin: 2rem 0;
}

.project-display {
  width: 100%;
}

.project-header h3 {
  color: var(--theme-accent);
  margin-bottom: 1.5rem;
  font-size: 1.8rem;
}

.project-description {
  color: var(--theme-text);
  margin-bottom: 2rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.3);
  border-left: 3px solid var(--theme-primary);
}

.submission-form {
  background: rgba(0, 0, 0, 0.4);
  padding: 1.5rem;
  border-radius: 6px;
  margin-bottom: 2rem;
}

.submission-form h4 {
  color: var(--theme-secondary);
  margin-bottom: 1rem;
}

.form-group {
  margin-bottom: 1rem;
}

.form-group label {
  display: block;
  color: var(--theme-text);
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.form-input,
.form-textarea {
  width: 100%;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid var(--theme-primary);
  color: var(--theme-text);
  border-radius: 4px;
  font-family: inherit;
}

.form-textarea {
  resize: vertical;
  min-height: 100px;
}

.submit-btn {
  background: var(--theme-accent);
  color: #000;
  padding: 0.75rem 2rem;
  border: none;
  border-radius: 4px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
}

.submit-btn:hover:not(:disabled) {
  background: var(--theme-secondary);
  transform: translateY(-2px);
}

.submit-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.submissions-area {
  background: rgba(0, 0, 0, 0.3);
  padding: 1.5rem;
  border-radius: 6px;
  margin-top: 2rem;
}

.submissions-area h4 {
  color: var(--theme-secondary);
  margin-bottom: 1.5rem;
}

.submission-item {
  background: rgba(0, 0, 0, 0.5);
  padding: 1rem;
  margin-bottom: 1rem;
  border-left: 3px solid var(--theme-primary);
  border-radius: 4px;
}

.submission-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
  color: var(--theme-accent);
}

.submission-date {
  font-size: 0.85rem;
  color: var(--theme-text);
  opacity: 0.7;
}

.submission-content {
  color: var(--theme-text);
  line-height: 1.6;
}

.no-submissions {
  text-align: center;
  padding: 2rem;
  color: var(--theme-text);
  opacity: 0.6;
  font-style: italic;
}

.no-project,
.loading-state {
  text-align: center;
  padding: 3rem;
  color: var(--theme-text);
  opacity: 0.7;
}

/* ====== Thumbnail Renderer (read-only SVG) ====== */
.thumbnail-renderer { line-height: 0; }
.thumbnail-renderer--fixed { display: inline-block; overflow: hidden; }
.thumbnail-renderer--responsive { display: block; width: 100%; }
.thumbnail-renderer--fixed .thumbnail-renderer__svg {
  display: block; width: 100%; height: 100%;
}
.thumbnail-renderer--responsive .thumbnail-renderer__svg {
  display: block; width: 100%; height: auto;
}
.thumbnail-renderer__state {
  display: inline-block;
  padding: 0.5rem 0.75rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--theme-text);
  opacity: 0.6;
  border: 1px dashed var(--theme-primary);
  background: rgba(0, 0, 0, 0.4);
}
.thumbnail-renderer__state--error { color: var(--theme-error); border-color: var(--theme-error); }

/* ====== Thumbnail Editor (standalone page) ====== */
.thumbnail-generator-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.5rem;
}
.thumbnail-generator-header {
  margin-bottom: 1rem;
}
.thumbnail-generator-header h2 {
  color: var(--theme-primary);
  text-shadow: 0 0 8px rgba(255, 93, 0, 0.4);
}
.thumbnail-generator-header p { opacity: 0.8; }
.thumbnail-generator-header a {
  color: var(--theme-secondary);
  text-decoration: underline;
}

.thumbnail-editor {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid var(--theme-primary);
  border-radius: 8px;
  padding: 1rem;
}
.thumbnail-editor__header {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--theme-border);
}
.thumbnail-editor__title-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}
.thumbnail-editor__name {
  flex: 1 1 240px;
  font-size: 1.1rem;
}
.thumbnail-editor__id {
  font-family: var(--font-primary);
  opacity: 0.6;
  font-size: 0.85rem;
}
.thumbnail-editor__actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.thumbnail-editor__save-msg {
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--theme-secondary);
  margin-left: 0.5rem;
}
.thumbnail-editor__danger-text { color: var(--theme-error); }

.thumbnail-editor__body {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
  align-items: flex-start;
}
/* Preview panel stays in view while the ops list scrolls past it. */
.thumbnail-editor__preview-panel {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  padding-right: 0.25rem;
}
.thumbnail-editor__preview-frame {
  position: relative;
  display: inline-block;
  width: 100%;
  user-select: none;
}
.thumbnail-editor__preview-frame--rect { cursor: crosshair; }
.thumbnail-editor__preview-frame--brush { cursor: cell; }
.thumbnail-editor__preview-frame .thumbnail-renderer,
.thumbnail-editor__preview-frame .thumbnail-renderer svg,
.thumbnail-editor__preview-frame .thumbnail-renderer svg * {
  pointer-events: none;
}
.thumbnail-editor__selection-mode {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
  padding: 0.3rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
}
.thumbnail-editor__selection-mode-label {
  color: var(--theme-text);
  opacity: 0.65;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.thumbnail-editor__selection-overlay {
  position: absolute;
  border: 1px dashed var(--theme-secondary);
  background: rgba(0, 255, 255, 0.08);
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}
.thumbnail-editor__selection-overlay--pending {
  border-style: dotted;
  border-color: var(--theme-accent);
  background: rgba(255, 0, 255, 0.08);
  box-shadow: none;
}
.thumbnail-editor__selection-toolbar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 0.4rem;
  padding: 0.4rem 0.5rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  font-family: var(--font-primary);
  font-size: 0.78rem;
}
.thumbnail-editor__selection-coords {
  color: var(--theme-secondary);
  flex: 1 1 auto;
}
.thumbnail-editor__selection-coords--empty {
  color: var(--theme-text);
  opacity: 0.6;
  font-style: italic;
}
.thumbnail-editor__canvas-panel {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: flex-start;
}
.thumbnail-editor__canvas-frame {
  background: var(--theme-surface);
  border: 1px solid var(--theme-secondary);
  border-radius: 4px;
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.15);
  max-width: 100%;
  overflow: hidden;
}
.thumbnail-editor__canvas {
  display: block;
  background: var(--cc-black);
  touch-action: none;
}
.thumbnail-editor__canvas-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
.thumbnail-editor__field-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--theme-text);
  font-family: var(--font-primary);
  font-size: 0.85rem;
}
.thumbnail-editor__small-input {
  width: 88px;
  padding: 0.35rem 0.5rem;
}

.thumbnail-editor__sidebar {
  flex: 1 1 280px;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.thumbnail-editor__layers h4,
.thumbnail-editor__controls h4 {
  color: var(--theme-secondary);
  margin: 0 0 0.5rem 0;
  font-family: var(--font-primary);
  letter-spacing: 1px;
}
.thumbnail-editor__layer-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid var(--theme-border);
  border-radius: 4px;
}
.thumbnail-editor__layer-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.6rem;
  cursor: pointer;
  border-bottom: 1px solid rgba(255, 93, 0, 0.15);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--theme-text);
}
.thumbnail-editor__layer-item:last-child { border-bottom: none; }
.thumbnail-editor__layer-item:hover { background: rgba(0, 255, 255, 0.08); }
.thumbnail-editor__layer-item.is-selected {
  background: rgba(0, 255, 255, 0.15);
  outline: 1px solid var(--theme-secondary);
}
.thumbnail-editor__layer-empty {
  padding: 0.6rem;
  opacity: 0.6;
  font-style: italic;
}
.thumbnail-editor__swatch {
  width: 18px; height: 18px;
  border: 1px solid var(--theme-border);
  display: inline-block;
}
.thumbnail-editor__layer-label { flex: 1; }

.thumbnail-editor__controls {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
}
.thumbnail-editor__field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
  color: var(--theme-text);
}
.thumbnail-editor__field span em {
  color: var(--theme-accent);
  font-style: normal;
  margin-left: 0.25rem;
}
.thumbnail-editor__field input[type="range"] { width: 100%; accent-color: var(--theme-primary); }
.thumbnail-editor__field-row {
  display: flex;
  gap: 1rem;
}
.thumbnail-editor__toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-primary);
  font-size: 0.85rem;
}
.thumbnail-editor__color-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.thumbnail-editor__color-input {
  width: 40px;
  height: 32px;
  border: 1px solid var(--theme-border);
  background: transparent;
  cursor: pointer;
}
.thumbnail-editor__swatches {
  display: flex;
  gap: 0.25rem;
  flex-wrap: wrap;
  margin-top: 0.25rem;
}
.thumbnail-editor__swatch-btn {
  width: 22px; height: 22px;
  border: 1px solid var(--theme-border);
  cursor: pointer;
}
.thumbnail-editor__layer-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
  margin-top: 0.5rem;
}
.thumbnail-editor__secondary {
  background: rgba(0, 255, 255, 0.12);
  color: var(--theme-secondary);
  border: 1px solid var(--theme-secondary);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.thumbnail-editor__danger {
  background: rgba(255, 0, 0, 0.15);
  color: var(--theme-error);
  border: 1px solid var(--theme-error);
  padding: 0.4rem 0.8rem;
  font-size: 0.85rem;
}
.thumbnail-editor__no-selection {
  padding: 1rem;
  text-align: center;
  font-style: italic;
  opacity: 0.6;
  border: 1px dashed var(--theme-border);
  border-radius: 4px;
}

/* Pattern picker */
.thumbnail-editor__pattern-picker {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.5rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid var(--theme-border);
}
.thumbnail-editor__pattern-tile {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.25rem;
  padding: 0.75rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-family: var(--font-primary);
  text-align: left;
  cursor: pointer;
  transition: var(--theme-transition);
}
.thumbnail-editor__pattern-tile:hover {
  border-color: var(--theme-secondary);
  background: rgba(0, 255, 255, 0.08);
}
.thumbnail-editor__pattern-tile.is-active {
  border-color: var(--theme-secondary);
  background: rgba(0, 255, 255, 0.18);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.25);
}
.thumbnail-editor__pattern-label {
  font-size: 0.95rem;
  font-weight: bold;
  color: var(--theme-primary);
  letter-spacing: 1px;
}
.thumbnail-editor__pattern-desc {
  font-size: 0.78rem;
  opacity: 0.75;
  line-height: 1.3;
}

/* Preview panel */
.thumbnail-editor__preview-panel {
  flex: 1 1 380px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.thumbnail-editor__preview-render {
  border: 1px solid var(--theme-secondary);
  background: var(--cc-black);
  box-shadow: 0 0 16px rgba(0, 255, 255, 0.18);
}
.thumbnail-editor__preview-meta {
  display: flex;
  gap: 1rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  color: var(--theme-text);
  opacity: 0.75;
}

/* Aspect / enum buttons */
.thumbnail-editor__aspect-row,
.thumbnail-editor__enum-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}
.thumbnail-editor__aspect-btn,
.thumbnail-editor__enum-btn {
  padding: 0.3rem 0.6rem;
  font-family: var(--font-primary);
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  cursor: pointer;
  transition: var(--theme-transition);
}
.thumbnail-editor__aspect-btn:hover,
.thumbnail-editor__enum-btn:hover {
  background: rgba(0, 255, 255, 0.1);
}
.thumbnail-editor__aspect-btn.is-active,
.thumbnail-editor__enum-btn.is-active {
  background: rgba(0, 255, 255, 0.2);
  border-color: var(--theme-secondary);
  color: var(--theme-secondary);
}
.thumbnail-editor__divider {
  border: none;
  border-top: 1px solid var(--theme-border);
  margin: 0.5rem 0;
}
.thumbnail-editor__section-title {
  margin: 0 0 0.3rem 0;
  color: var(--theme-accent);
  font-family: var(--font-primary);
  letter-spacing: 1px;
}
.thumbnail-editor__inline-btn {
  margin-left: 0.5rem;
  padding: 0.15rem 0.4rem;
  font-size: 0.7rem;
}

/* Operation cards (compositional ops stack) */
.thumbnail-editor__op-card {
  display: flex;
  flex-direction: column;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border);
  border-radius: 4px;
  margin-bottom: 0.6rem;
}
.thumbnail-editor__op-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border-bottom: 1px solid var(--theme-border);
}
.thumbnail-editor__op-title {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--theme-primary);
  font-family: var(--font-primary);
  font-size: 0.85rem;
  letter-spacing: 0.5px;
}
.thumbnail-editor__op-category {
  display: inline-block;
  font-style: normal;
  font-size: 0.65rem;
  padding: 0.1rem 0.4rem;
  border-radius: 2px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--theme-text);
}
.thumbnail-editor__op-category[data-category="mask"] {
  background: rgba(255, 93, 0, 0.2);
  color: var(--theme-primary);
  border: 1px solid var(--theme-primary);
}
.thumbnail-editor__op-category[data-category="geometry"] {
  background: rgba(0, 255, 255, 0.18);
  color: var(--theme-secondary);
  border: 1px solid var(--theme-secondary);
}
.thumbnail-editor__op-category[data-category="style"] {
  background: rgba(255, 0, 255, 0.18);
  color: var(--theme-accent);
  border: 1px solid var(--theme-accent);
}
.thumbnail-editor__op-actions {
  display: inline-flex;
  gap: 0.25rem;
}
.thumbnail-editor__icon-btn {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  font-family: var(--font-primary);
  cursor: pointer;
  transition: var(--theme-transition);
  padding: 0;
  font-size: 0.85rem;
}
.thumbnail-editor__icon-btn:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.12);
  border-color: var(--theme-secondary);
}
.thumbnail-editor__icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.thumbnail-editor__op-body {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
}
.thumbnail-editor__op-scope {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.35rem 0.6rem;
  background: rgba(0, 0, 0, 0.2);
  border-bottom: 1px solid var(--theme-border);
  font-family: var(--font-primary);
  font-size: 0.72rem;
}
.thumbnail-editor__op-scope-label {
  color: var(--theme-text);
  opacity: 0.65;
  letter-spacing: 1px;
  text-transform: uppercase;
  font-size: 0.65rem;
}
.thumbnail-editor__scope-btn {
  background: rgba(0, 0, 0, 0.4);
  border: 1px solid var(--theme-border);
  color: var(--theme-text);
  padding: 0.15rem 0.5rem;
  font-family: var(--font-primary);
  font-size: 0.72rem;
  cursor: pointer;
  transition: var(--theme-transition);
}
.thumbnail-editor__scope-btn:hover:not(:disabled) {
  background: rgba(0, 255, 255, 0.1);
  border-color: var(--theme-secondary);
}
.thumbnail-editor__scope-btn.is-active {
  background: rgba(0, 255, 255, 0.18);
  border-color: var(--theme-secondary);
  color: var(--theme-secondary);
}
.thumbnail-editor__scope-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.thumbnail-editor__op-count {
  color: var(--theme-text);
  font-style: normal;
  font-size: 0.8rem;
  opacity: 0.7;
  margin-left: 0.4rem;
}
.thumbnail-editor__op-hint {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--theme-text);
  opacity: 0.7;
  margin: 0.4rem 0 0 0;
  line-height: 1.4;
}
.thumbnail-editor__add-op {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding: 0.6rem;
  background: rgba(0, 0, 0, 0.3);
  border: 1px dashed var(--theme-border);
  border-radius: 4px;
  margin-top: 0.4rem;
}
.thumbnail-editor__add-op select {
  flex: 1;
}
.thumbnail-editor__palette-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  align-items: center;
}
.thumbnail-editor__palette-item {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
}

/* Regions panel — each region is its own isolated pipeline */
.thumbnail-editor__region-list {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 0.4rem;
}
.thumbnail-editor__region-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.4rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--theme-border);
  border-left: 4px solid var(--theme-border);
  border-radius: 4px;
  cursor: pointer;
  transition: var(--theme-transition);
}
.thumbnail-editor__region-card:hover {
  background: rgba(0, 255, 255, 0.08);
}
.thumbnail-editor__region-card.is-active {
  border-color: var(--theme-secondary);
  border-left-color: var(--theme-primary);
  background: rgba(0, 255, 255, 0.15);
  box-shadow: 0 0 8px rgba(0, 255, 255, 0.2);
}
.thumbnail-editor__region-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1 1 auto;
  min-width: 0;
}
.thumbnail-editor__region-name {
  background: transparent;
  border: none;
  border-bottom: 1px dashed transparent;
  color: var(--theme-primary);
  font-family: var(--font-primary);
  font-size: 0.9rem;
  font-weight: bold;
  padding: 0;
  width: 100%;
}
.thumbnail-editor__region-name:hover,
.thumbnail-editor__region-name:focus {
  border-bottom-color: var(--theme-border);
  outline: none;
}
.thumbnail-editor__region-shape {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  color: var(--theme-text);
  opacity: 0.65;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.thumbnail-editor__region-actions {
  display: inline-flex;
  gap: 0.2rem;
  flex-shrink: 0;
}

/* Animation bar */
.thumbnail-editor__animation-bar {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  margin-top: 0.5rem;
  padding: 0.5rem 0.6rem;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--theme-accent);
  border-radius: 4px;
}
.thumbnail-editor__time-scrubber {
  width: 100%;
  accent-color: var(--theme-accent);
}

/* Per-op animation tracks */
.thumbnail-editor__tracks {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.4rem;
  padding-top: 0.4rem;
  border-top: 1px dashed var(--theme-border);
}
.thumbnail-editor__tracks-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--theme-accent);
}
.thumbnail-editor__track {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
  padding: 0.3rem 0.4rem;
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid var(--theme-border);
  border-radius: 3px;
  font-family: var(--font-primary);
  font-size: 0.72rem;
}
.thumbnail-editor__track select,
.thumbnail-editor__track .thumbnail-editor__small-input {
  font-size: 0.72rem;
}

/* Image picker for image-shape regions and image-mask ops */
.thumbnail-editor__image-picker {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.thumbnail-editor__image-preview {
  width: 100%;
  min-height: 64px;
  max-height: 120px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.45);
  border: 1px dashed var(--theme-border);
  border-radius: 4px;
  overflow: hidden;
}
.thumbnail-editor__image-preview img {
  max-width: 100%;
  max-height: 120px;
  display: block;
  image-rendering: pixelated;
}
.thumbnail-editor__image-empty {
  font-family: var(--font-primary);
  font-size: 0.75rem;
  color: var(--theme-text);
  opacity: 0.45;
  font-style: italic;
}
.thumbnail-editor__image-controls {
  display: flex;
  gap: 0.3rem;
  flex-wrap: wrap;
}

/* Firekeeper picker — let banner-shaped thumbnails breathe */
.thumbnail-picker-controls .thumbnail-picker-preview {
  width: 192px;
  height: 64px;
}

/* ====== Thumbnail Picker (Firekeeper CMS section) ====== */
.thumbnail-picker-controls {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  padding: 0.6rem 0;
  border-top: 1px solid rgba(255, 93, 0, 0.25);
  border-bottom: 1px solid rgba(255, 93, 0, 0.25);
  margin: 0.5rem 0;
}
.thumbnail-picker-controls label {
  font-family: var(--font-primary);
  color: var(--theme-secondary);
}
.thumbnail-picker-preview {
  width: 64px;
  height: 64px;
  border: 1px solid var(--theme-border);
  background: var(--cc-black);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.thumbnail-picker-preview__svg {
  display: block;
  width: 100%;
  height: 100%;
}
.thumbnail-picker-preview__empty {
  font-family: var(--font-primary);
  font-size: 0.7rem;
  color: var(--theme-text);
  opacity: 0.5;
  padding: 0.3rem;
  text-align: center;
}

/* ====== Blog list/detail banner layout ====== */
.blog-post__banner {
  display: block;
  width: 100%;
  margin: 0 0 0.75rem 0;
  border: 1px solid var(--theme-primary);
  background: var(--cc-black);
}
.post-viewer__banner {
  display: block;
  width: 100%;
  margin: 0 0 1rem 0;
  border: 1px solid var(--theme-secondary);
  background: var(--cc-black);
  box-shadow: 0 0 12px rgba(0, 255, 255, 0.2);
}

/* Component styles */
.mini-component {