/* ==========================================================================
   Image Toolbox — Stylesheet
   Dark theme, lime & cyan accents, responsive touch & desktop layout
   ========================================================================== */

/* Hero Section */
.imgtool-hero {
  padding-block: 40px 30px;
  text-align: center;
  position: relative;
}

.imgtool-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.22em;
  color: #38bdf8;
  margin-bottom: 12px;
}

.imgtool-eyebrow .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 10px #38bdf8;
}

.imgtool-title {
  font-size: clamp(34px, 5.5vw, 56px);
  font-weight: 950;
  font-style: italic;
  letter-spacing: -0.06em;
  margin: 0 0 6px;
  line-height: 1.05;
}

.imgtool-title span {
  color: #38bdf8;
  text-shadow: 0 0 24px rgba(56, 189, 248, 0.4);
}

.imgtool-subtitle {
  font-size: 18px;
  font-weight: 700;
  color: #d1d5db;
  margin-bottom: 12px;
}

.imgtool-desc {
  max-width: 640px;
  margin: 0 auto 24px;
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
}

/* Privacy Guarantee Banner */
.imgtool-privacy-banner {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(14, 25, 14, 0.7);
  border: 1px solid #1f381c;
  border-radius: 12px;
  padding: 16px 20px;
  max-width: 820px;
  margin: 0 auto;
  text-align: left;
  backdrop-filter: blur(8px);
}

.imgtool-privacy-icon {
  font-size: 26px;
  line-height: 1;
}

.imgtool-privacy-text {
  font-size: 12px;
  line-height: 1.55;
  color: #c5d4c0;
}

.imgtool-privacy-text strong {
  display: block;
  font-size: 13px;
  color: var(--lime);
  margin-bottom: 3px;
}

/* Temporary Storage: MY COMPLETED IMAGES */
.completed-storage-section {
  background: #0c140d;
  border: 1px solid #233e1c;
  border-radius: 14px;
  padding: 20px;
  margin-block: 20px 32px;
}

.storage-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid #1a2a16;
  padding-bottom: 12px;
}

.storage-panel-title {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.storage-icon {
  font-size: 20px;
}

.storage-panel-title h3 {
  font-size: 16px;
  font-weight: 850;
  margin: 0;
  letter-spacing: -0.02em;
}

.storage-badge {
  background: rgba(56, 189, 248, 0.15);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.35);
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
}

.storage-badge.storage-quota-full {
  background: rgba(245, 158, 11, 0.18);
  color: #fbbf24;
  border-color: rgba(245, 158, 11, 0.45);
}

.storage-panel-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
}

.storage-auto-delete-note {
  color: var(--muted);
  font-size: 11px;
}

.storage-quota-full-notice {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 16px;
  color: #fef3c7;
}

.storage-quota-full-notice .quota-full-icon {
  font-size: 22px;
  flex-shrink: 0;
}

.storage-quota-full-notice .quota-full-text {
  font-size: 12px;
  line-height: 1.45;
}

.storage-quota-full-notice .quota-full-text strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fbbf24;
  margin-bottom: 2px;
}

/* Auth Gate (Sign In Required for Image Toolbox) */
.imgtool-auth-gate-section {
  margin: 24px 0 40px;
  display: flex;
  justify-content: center;
}

.imgtool-auth-gate-card {
  background: #0c150b;
  border: 1px solid #233e1c;
  border-radius: 14px;
  max-width: 620px;
  width: 100%;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
}

.auth-gate-icon {
  font-size: 42px;
  margin-bottom: 16px;
  display: inline-block;
  color: var(--lime);
}

.imgtool-auth-gate-card h2 {
  font-size: 24px;
  font-weight: 850;
  color: #ffffff;
  margin: 0 0 12px;
}

.imgtool-auth-gate-card p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--muted);
  max-width: 520px;
  margin: 0 auto 24px;
}

.auth-gate-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

.auth-gate-btn {
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 750;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
}

.completed-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 14px;
}

.completed-photo-card {
  background: #080d08;
  border: 1px solid #1b2e17;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.15s, border-color 0.15s;
}

.completed-photo-card:hover {
  transform: translateY(-2px);
  border-color: #38bdf8;
}

.photo-card-thumb-wrap {
  width: 100%;
  height: 120px;
  background: repeating-conic-gradient(#141f14 0% 25%, #0d140d 0% 50%) 50% / 16px 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.photo-card-thumb-wrap img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.photo-card-tool-tag {
  position: absolute;
  top: 6px;
  left: 6px;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(4px);
  color: #38bdf8;
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.photo-card-body {
  padding: 10px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.photo-card-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-bottom: 4px;
}

.photo-card-meta {
  font-size: 11px;
  color: var(--muted);
  margin-bottom: 6px;
}

.photo-card-expiry {
  font-size: 10px;
  color: #ffaa00;
  font-weight: 700;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-card-actions {
  display: flex;
  margin-top: auto;
}

.photo-card-actions button {
  width: 100%;
  padding: 7px 10px;
  font-size: 11px;
  font-weight: 700;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-card-download {
  background: #38bdf8;
  color: #03141f;
  transition: background 0.15s ease;
}

.btn-card-download:hover {
  background: #7dd3fc;
}

.completed-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 24px;
  color: var(--muted);
  font-size: 13px;
  background: #081008;
  border: 1px dashed #1a2a16;
  border-radius: 8px;
}

/* Tools Directory Grid */
.section-heading {
  margin-bottom: 20px;
}

.section-heading h2 {
  font-size: 24px;
  margin: 0 0 4px;
  font-weight: 850;
  letter-spacing: -0.04em;
}

.section-heading h2 span {
  color: #38bdf8;
}

.section-heading p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.imgtool-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-bottom: 40px;
}

.tool-launcher-card {
  background: linear-gradient(135deg, #131b14, #0a0f0a);
  border: 1px solid #233e1c;
  border-radius: 12px;
  padding: 20px 18px;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.18s, border-color 0.18s, box-shadow 0.18s;
  outline: none;
}

.tool-launcher-card:hover, .tool-launcher-card:focus-visible {
  transform: translateY(-3px);
  border-color: #38bdf8;
  box-shadow: 0 8px 30px rgba(56, 189, 248, 0.15);
}

.tool-launcher-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.tool-launcher-icon {
  font-size: 28px;
  line-height: 1;
}

.tool-launcher-badge {
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  color: #38bdf8;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  padding: 2px 7px;
  border-radius: 4px;
}

.tool-launcher-card h3 {
  font-size: 17px;
  font-weight: 800;
  margin: 0 0 6px;
  color: #ffffff;
}

.tool-launcher-card p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
  margin: 0 0 16px;
  flex: 1;
}

.tool-launcher-footer {
  font-size: 12px;
  font-weight: 800;
  color: #38bdf8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #1a2b16;
  padding-top: 10px;
}

/* Focused Workspace */
.imgtool-workspace-section {
  background: #0a0f0a;
  border: 1px solid #233e1c;
  border-radius: 14px;
  padding: 22px;
  margin-bottom: 40px;
}

.workspace-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  border-bottom: 1px solid #1a2a16;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.btn-back {
  background: #141f14;
  color: #d1d5db;
  border: 1px solid #284420;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-back:hover {
  background: #1c2e1c;
  color: var(--lime);
  border-color: var(--lime);
}

.workspace-titles h2 {
  font-size: 22px;
  font-weight: 850;
  margin: 0 0 3px;
  color: #ffffff;
}

.workspace-titles p {
  margin: 0;
  font-size: 12px;
  color: var(--muted);
}

.workspace-layout {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 20px;
  align-items: start;
}

/* Left Card: Controls */
.workspace-controls-card {
  background: #0d150e;
  border: 1px solid #20351b;
  border-radius: 12px;
  padding: 18px;
}

/* Dropzone */
.file-dropzone {
  border: 2px dashed #284420;
  border-radius: 10px;
  padding: 24px 16px;
  text-align: center;
  background: #090f09;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  margin-bottom: 16px;
}

.file-dropzone:hover, .file-dropzone.dragover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.05);
}

.dropzone-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.dropzone-icon {
  font-size: 32px;
  margin-bottom: 4px;
}

.dropzone-content strong {
  font-size: 14px;
  color: #ffffff;
}

.dropzone-hint {
  font-size: 11px;
  color: var(--muted);
}

/* Loaded file bar */
.loaded-file-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #121e12;
  border: 1px solid #233e1c;
  border-radius: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
}

.loaded-file-name {
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.loaded-file-meta {
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}

.btn-change-file {
  background: none;
  border: none;
  color: #ff6b6b;
  cursor: pointer;
  font-size: 13px;
  font-weight: 900;
  padding: 2px 6px;
}

/* Inputs and Control Groups */
.control-group {
  margin-bottom: 14px;
}

.control-group label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: #c5d4c0;
  margin-bottom: 6px;
}

.select-input, .text-input {
  width: 100%;
  background: #080d08;
  border: 1px solid #233e1c;
  border-radius: 6px;
  padding: 8px 12px;
  color: #ffffff;
  font-size: 13px;
}

.select-input:focus, .text-input:focus {
  outline: none;
  border-color: #38bdf8;
}

.range-slider {
  width: 100%;
  accent-color: #38bdf8;
  cursor: pointer;
}

.radio-group {
  display: flex;
  gap: 14px;
}

.radio-option, .checkbox-option {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #d1d5db;
  cursor: pointer;
}

.btn-grid-4 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.btn-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.tool-buttons-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 6px;
}

.btn-tool {
  background: #090f09;
  border: 1px solid #1f351a;
  border-radius: 6px;
  color: #d1d5db;
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 700;
  text-align: left;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-tool:hover {
  background: #132213;
  border-color: #38bdf8;
  color: #ffffff;
}

.btn-tool.active {
  background: rgba(56, 189, 248, 0.15);
  border-color: #38bdf8;
  color: #38bdf8;
}

.btn-tool.special-redact {
  color: #ff6b6b;
  border-color: rgba(255, 107, 107, 0.4);
}

.btn-tool.special-redact.active {
  background: rgba(255, 107, 107, 0.2);
  border-color: #ff6b6b;
  color: #ff6b6b;
}

.btn-filter {
  background: #090f09;
  border: 1px solid #1f351a;
  border-radius: 6px;
  color: #d1d5db;
  padding: 8px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.btn-filter.active {
  background: rgba(184, 255, 54, 0.15);
  border-color: var(--lime);
  color: var(--lime);
}

.info-alert {
  background: #081108;
  border: 1px solid #1c3218;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 11px;
  line-height: 1.5;
  color: #b5c7b0;
  margin-bottom: 14px;
}

.info-alert.redact-alert {
  border-color: rgba(255, 107, 107, 0.35);
  background: #140b0b;
  color: #fca5a5;
}

.compression-stats-card {
  background: #080d08;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 14px;
}

.stat-row {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 4px;
}

.stat-row strong {
  color: #ffffff;
}

.stat-row.highlight strong {
  color: var(--lime);
  font-size: 14px;
}

/* Action Buttons */
.btn-action {
  width: 100%;
  padding: 10px 18px;
  font-size: 13px;
  font-weight: 850;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: filter 0.15s, transform 0.15s;
}

.btn-action.primary {
  background: linear-gradient(135deg, #38bdf8, #0ea5e9);
  color: #03141f;
  box-shadow: 0 0 20px rgba(56, 189, 248, 0.35);
}

.btn-action.primary:hover {
  filter: brightness(1.1);
}

.btn-action.secondary {
  background: #142215;
  color: var(--lime);
  border: 1px solid #284420;
}

.btn-action.secondary:hover {
  background: #1c301d;
}

.btn-subtle {
  background: #101910;
  color: #d1d5db;
  border: 1px solid #233e1c;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
}

.btn-subtle:hover {
  background: #182818;
  color: #ffffff;
}

/* Right Card: Canvas Preview */
.workspace-preview-card {
  background: #0d150e;
  border: 1px solid #20351b;
  border-radius: 12px;
  padding: 18px;
  display: flex;
  flex-direction: column;
}

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

.preview-title {
  font-size: 13px;
  font-weight: 800;
  color: #ffffff;
}

.preview-meta {
  display: flex;
  gap: 8px;
}

.preview-meta span {
  background: #131f13;
  border: 1px solid #233e1c;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.canvas-viewport {
  width: 100%;
  min-height: 440px;
  max-height: 640px;
  background: repeating-conic-gradient(#162216 0% 25%, #0f180f 0% 50%) 50% / 20px 20px;
  border: 1px solid #1e331a;
  border-radius: 8px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  position: relative;
}

.canvas-inner {
  position: relative;
  display: inline-block;
  line-height: 0;
}

#mainCanvas {
  max-width: 100%;
  max-height: 580px;
  object-fit: contain;
  display: block;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.6);
}

/* Crop Overlay */
.crop-overlay {
  position: absolute;
  inset: 0;
  pointer-events: auto;
}

.crop-box {
  position: absolute;
  border: 2px solid #38bdf8;
  box-shadow: 0 0 0 9999px rgba(0, 0, 0, 0.65);
  cursor: move;
  touch-action: none;
}

.crop-grid-lines {
  position: absolute;
  inset: 0;
  border-left: 1px dashed rgba(255, 255, 255, 0.3);
  border-right: 1px dashed rgba(255, 255, 255, 0.3);
  left: 33.333%;
  width: 33.333%;
  pointer-events: none;
}

.crop-handle {
  position: absolute;
  width: 14px;
  height: 14px;
  background: #38bdf8;
  border: 2px solid #ffffff;
  border-radius: 3px;
}

.crop-handle.nw { top: -7px; left: -7px; cursor: nwse-resize; }
.crop-handle.ne { top: -7px; right: -7px; cursor: nesw-resize; }
.crop-handle.sw { bottom: -7px; left: -7px; cursor: nesw-resize; }
.crop-handle.se { bottom: -7px; right: -7px; cursor: nwse-resize; }

/* Result Actions Bar */
.result-actions-bar {
  margin-top: 16px;
}

.download-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.download-group button {
  width: 100%;
}

.download-auto-save-note {
  font-size: 12px;
  color: #9cb09a;
  text-align: center;
  padding: 4px 8px;
  background: rgba(20, 31, 20, 0.5);
  border: 1px dashed rgba(56, 189, 248, 0.25);
  border-radius: 6px;
}

/* AI Model Badges & Progress */
.model-badge-row {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}

.badge-ai-model {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(56, 189, 248, 0.12);
  border: 1px solid rgba(56, 189, 248, 0.3);
  color: #38bdf8;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.badge-device {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(184, 255, 54, 0.12);
  border: 1px solid rgba(184, 255, 54, 0.3);
  color: var(--lime);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 4px;
}

.bg-model-progress-card {
  background: #080d08;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.bg-model-status-text {
  font-size: 12px;
  color: #9cb09a;
  margin-top: 4px;
}

/* Batch processing styles */
.batch-progress-card {
  background: #080d08;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 12px;
  margin-bottom: 12px;
}

.progress-bar-wrap {
  width: 100%;
  height: 8px;
  background: #141f14;
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 6px;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, #38bdf8, var(--lime));
  transition: width 0.2s;
}

.batch-status-text {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
}

.batch-files-list {
  max-height: 160px;
  overflow-y: auto;
  border: 1px solid #192b15;
  border-radius: 6px;
  background: #080d08;
}

.batch-file-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 6px 10px;
  font-size: 11px;
  border-bottom: 1px solid #132210;
}

.batch-file-item:last-child {
  border-bottom: none;
}

.batch-file-status.done { color: var(--lime); font-weight: 700; }
.batch-file-status.pending { color: var(--muted); }
.batch-file-status.error { color: #ff6b6b; font-weight: 700; }

/* Global Toast */
.toast-box {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: #0f1c10;
  color: #ffffff;
  border: 1px solid #284420;
  border-radius: 8px;
  padding: 12px 20px;
  font-size: 13px;
  font-weight: 700;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.7);
  z-index: 9999;
  display: none;
  animation: toastFade 0.25s ease-out;
}

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

/* Responsive adjustments */
@media (max-width: 980px) {
  .imgtool-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .workspace-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .imgtool-grid {
    grid-template-columns: 1fr;
  }
  .download-group {
    flex-direction: column;
  }
}

/* ==========================================================================
   Unified Photo Editor: Navigation, Tool Tabs, History & Filmstrip Tray
   ========================================================================== */

.workspace-nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.history-controls {
  display: flex;
  align-items: center;
  gap: 6px;
}

.btn-history {
  background: #141f14;
  color: #d1d5db;
  border: 1px solid #284420;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.btn-history:hover:not(:disabled) {
  background: #1e331b;
  color: var(--lime);
  border-color: var(--lime);
}

.btn-history:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  border-color: #1a2a16;
  color: var(--muted);
}

/* Editor Tool Tabs Bar */
.editor-tool-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  overflow-x: auto;
  padding: 4px 2px 14px;
  margin-bottom: 14px;
  border-bottom: 1px solid #1a2a16;
  scrollbar-width: thin;
}

.editor-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #0f180f;
  border: 1px solid #20351b;
  border-radius: 8px;
  padding: 8px 14px;
  color: #9cb09a;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s ease;
  user-select: none;
}

.editor-tab .tab-icon {
  font-size: 15px;
}

.editor-tab:hover {
  background: #152415;
  color: #ffffff;
  border-color: #38bdf8;
}

.editor-tab.active {
  background: rgba(184, 255, 54, 0.12);
  border-color: var(--lime);
  color: var(--lime);
  box-shadow: 0 0 10px rgba(184, 255, 54, 0.15);
}

/* Filmstrip Multi-Image Tray */
.editor-filmstrip-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #070c07;
  border: 1px solid #1a2b16;
  border-radius: 10px;
  padding: 8px 12px;
  margin-bottom: 16px;
  overflow-x: auto;
}

.filmstrip-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  overflow-x: auto;
  flex: 1;
  padding: 2px 0;
}

.filmstrip-item {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 72px;
  cursor: pointer;
  border: 2px solid #20351b;
  border-radius: 6px;
  background: #0d150e;
  padding: 3px;
  transition: all 0.15s ease;
  flex-shrink: 0;
}

.filmstrip-item:hover {
  border-color: #38bdf8;
}

.filmstrip-item.active {
  border-color: var(--lime);
  background: rgba(184, 255, 54, 0.08);
  box-shadow: 0 0 8px rgba(184, 255, 54, 0.25);
}

.filmstrip-thumb {
  width: 64px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  background: #050805;
}

.filmstrip-name {
  font-size: 10px;
  color: #9cb09a;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
  text-align: center;
}

.filmstrip-item.active .filmstrip-name {
  color: var(--lime);
  font-weight: 700;
}

.filmstrip-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  background: #dc2626;
  color: #ffffff;
  border: 1px solid #ffffff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  font-size: 10px;
  font-weight: 800;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
  line-height: 1;
}

.filmstrip-item:hover .filmstrip-remove {
  display: flex;
}

.btn-filmstrip-add {
  background: #141f14;
  color: #d1d5db;
  border: 1px dashed #284420;
  border-radius: 6px;
  height: 48px;
  padding: 0 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-filmstrip-add:hover {
  border-color: var(--lime);
  color: var(--lime);
  background: #1c2e1c;
}

/* Integrated Export Controls */
.export-options-bar {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  background: #090e09;
  border: 1px solid #1a2a16;
  border-radius: 8px;
  padding: 10px 14px;
  margin-bottom: 12px;
}

.export-opt-col {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #d1d5db;
}

.export-opt-col label {
  font-weight: 700;
  color: var(--lime);
}

.select-small {
  padding: 6px 10px;
  font-size: 12px;
}

.export-size-wrap {
  margin-left: auto;
}

.export-size-label {
  color: var(--muted);
}

.export-size-badge {
  color: #38bdf8;
  font-weight: 800;
  font-size: 13px;
}

.export-transparency-hint {
  background: rgba(234, 179, 8, 0.1);
  border: 1px solid rgba(234, 179, 8, 0.3);
  color: #facc15;
  font-size: 12px;
  border-radius: 6px;
  padding: 8px 12px;
  margin-bottom: 12px;
  line-height: 1.4;
}

.download-buttons-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
