:root {
  --bg: #161a1d;
  --surface: #1d2226;
  --surface-2: #252a2e;
  --surface-3: #2d3338;
  --ink: #cddbe8;
  --muted: #5e7a8e;
  --line: rgba(19, 87, 94, 0.25);
  --accent: #1e5287;
  --accent-text: #4a9ad4;
  --gold: #c8a45d;
  --danger: #d76a5a;
  --success: #6ed094;
  font-family: Inter, "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  overflow: hidden;
  font-family: inherit;
}

button {
  font: inherit;
  cursor: pointer;
  border: 0;
  background: transparent;
  color: inherit;
  -webkit-appearance: none;
  appearance: none;
}

input, select, textarea {
  font: inherit;
  background: var(--surface-2);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  width: 100%;
  min-height: 36px;
}

input[type="color"] {
  padding: 2px;
  height: 36px;
  cursor: pointer;
}

input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: rgba(74, 154, 212, 0.45);
  box-shadow: 0 0 0 2px rgba(74, 154, 212, 0.18);
}

select option { background: #1d2226; color: var(--ink); }

textarea { resize: vertical; min-height: 70px; }

label {
  display: grid;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--muted);
  font-weight: 600;
}

kbd {
  background: var(--surface-3);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 0.75rem;
  border: 1px solid var(--line);
  font-family: monospace;
}

/* Layout principal */
.print-shell {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr) 280px;
  grid-template-rows: 56px minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  background: var(--bg);
}

.print-topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 0 14px;
  background: rgba(13, 22, 36, 0.82);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 10;
}

.print-back {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: rgba(30, 82, 135, 0.14);
  border: 1px solid var(--line);
  color: var(--ink);
  text-decoration: none;
  flex-shrink: 0;
}

.print-back:hover { background: rgba(30, 82, 135, 0.28); }

.print-brand {
  display: grid;
  gap: 1px;
  flex: 0 0 auto;
}
.print-brand strong {
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.print-brand span {
  font-size: 0.92rem;
  color: var(--ink);
  max-width: 200px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.print-side-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 8px;
  margin-left: auto;
}

.side-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
}

.side-tab.active {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 0 16px rgba(30, 82, 135, 0.5);
}

.print-actions {
  display: flex;
  gap: 6px;
  margin-left: auto;
}

.topbar-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 600;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
  min-height: 36px;
}

.topbar-btn:hover { background: var(--surface-3); border-color: rgba(74, 154, 212, 0.4); }
.topbar-btn.primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.topbar-btn.primary:hover { background: #1a4778; }
.topbar-btn.accent { background: var(--gold); color: #1a1a1a; border-color: var(--gold); }
.topbar-btn.accent:hover { background: #b8893f; }

.topbar-btn:not(:has(span)):not(:has(small)):has(i:only-child) {
  width: 36px;
  padding: 0;
  justify-content: center;
}

/* Sidebar de ferramentas */
.print-tools {
  grid-column: 1;
  grid-row: 2;
  background: var(--surface);
  border-right: 1px solid var(--line);
  overflow-y: auto;
  padding: 16px;
  display: grid;
  gap: 18px;
  align-content: start;
}

.tools-section {
  display: grid;
  gap: 8px;
}

.tools-title {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

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

.tool-btn {
  display: grid;
  place-items: center;
  gap: 4px;
  padding: 10px 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--ink);
  transition: all 160ms ease;
}

.tool-btn:hover {
  background: rgba(30, 82, 135, 0.22);
  border-color: rgba(74, 154, 212, 0.4);
  transform: translateY(-1px);
}

.tool-btn i { font-size: 1.2rem; color: var(--accent-text); }
.tool-btn small { font-size: 0.72rem; font-weight: 600; }

.quick-import {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.import-chip {
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--accent-text);
  font-size: 0.75rem;
  font-weight: 600;
}

.import-chip:hover {
  background: rgba(30, 82, 135, 0.28);
  border-color: rgba(74, 154, 212, 0.5);
}

.size-custom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.templates-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-height: 460px;
  overflow-y: auto;
  padding-right: 2px;
}

.template-thumb {
  aspect-ratio: 85 / 54;
  background: #fff;
  border: 1px solid rgba(74, 154, 212, 0.22);
  border-radius: 9px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  min-height: 74px;
  color: #fff;
  box-shadow: inset 0 -32px 36px rgba(0, 0, 0, 0.28);
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.template-thumb:hover {
  transform: translateY(-2px);
  border-color: var(--accent-text);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.32), inset 0 -34px 36px rgba(0, 0, 0, 0.34);
}

.template-thumb-bg { position: absolute; inset: 0; }

.template-thumb-bg::before,
.template-thumb-bg::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.template-thumb-bg::before {
  width: 44%;
  aspect-ratio: 1;
  left: -12%;
  top: -18%;
  background: rgba(255, 255, 255, 0.22);
}

.template-thumb-bg::after {
  width: 42%;
  aspect-ratio: 1;
  right: -14%;
  bottom: -22%;
  background: rgba(0, 0, 0, 0.18);
}

.template-thumb-category {
  position: absolute;
  top: 6px;
  left: 6px;
  max-width: calc(100% - 12px);
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.34);
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.56rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  z-index: 1;
}

.template-thumb-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.18) 42%, transparent 64%);
  transform: translateX(-100%);
  transition: transform 340ms ease;
}

.template-thumb:hover .template-thumb-shine { transform: translateX(100%); }

.template-thumb-label {
  position: relative;
  width: 100%;
  padding: 7px;
  font-size: 0.68rem;
  font-weight: 800;
  line-height: 1.15;
  text-align: left;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.5);
  z-index: 1;
}

/* Stage / canvas */
.print-stage {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(rgba(19, 87, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 87, 94, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
  overflow: hidden;
}

.stage-info {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.78rem;
  color: var(--muted);
  border-bottom: 1px solid var(--line);
  background: rgba(13, 22, 36, 0.5);
}

.stage-info .dot { opacity: 0.4; }

.zoom-controls {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.zoom-btn {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  color: var(--ink);
}

.zoom-btn:hover { background: var(--surface-3); }

.zoom-fit-btn {
  width: auto;
  padding: 0 10px;
  display: inline-flex;
  gap: 6px;
  white-space: nowrap;
}

.zoom-fit-btn span {
  font-size: 0.72rem;
  font-weight: 700;
}

#zoomValue {
  display: inline-block;
  min-width: 54px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--accent-text);
}

.print-canvas-viewport {
  flex: 1;
  display: grid;
  place-items: center;
  overflow: auto;
  padding: 28px 24px 56px;
  position: relative;
  min-width: 0;
  min-height: 0;
  scrollbar-gutter: stable;
  background:
    linear-gradient(rgba(19, 87, 94, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 87, 94, 0.04) 1px, transparent 1px),
    var(--bg);
  background-size: 32px 32px;
}

.print-canvas-viewport.viewport-locked {
  overflow: hidden;
  scrollbar-gutter: auto;
}

.canvas-wrap > .canvas-container {
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  overflow: visible !important;
  position: relative !important;
  background: transparent !important;
}

.canvas-wrap {
  position: relative;
  background: #fff;
  margin: 0;
  display: block;
  flex: 0 0 auto;
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(74, 154, 212, 0.18);
  border-radius: 4px;
  transform-origin: center center;
}

.stage-help {
  padding: 8px 16px;
  font-size: 0.76rem;
  color: var(--muted);
  border-top: 1px solid var(--line);
  background: rgba(13, 22, 36, 0.5);
  display: flex;
  align-items: center;
  gap: 8px;
}

.stage-help i { color: var(--accent-text); }

/* Properties panel */
.print-properties {
  grid-column: 3;
  grid-row: 2;
  background: var(--surface);
  border-left: 1px solid var(--line);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.props-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}

.props-tab {
  flex: 1;
  padding: 12px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--muted);
  border-bottom: 2px solid transparent;
}

.props-tab.active {
  color: var(--accent-text);
  border-bottom-color: var(--accent-text);
  background: rgba(30, 82, 135, 0.1);
}

.props-pane {
  padding: 16px;
  overflow-y: auto;
  flex: 1;
}

.props-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--muted);
}

.props-empty i {
  font-size: 2.5rem;
  opacity: 0.4;
  margin-bottom: 10px;
  display: block;
}

.props-empty p { margin: 0; font-size: 0.86rem; }

.props-content { display: grid; gap: 16px; }

.props-group {
  display: grid;
  gap: 10px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.props-group:last-of-type { border-bottom: 0; }

.props-subtitle {
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.props-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.props-row.three { grid-template-columns: repeat(3, 1fr); }

.prop-toggle {
  flex: 1;
  height: 32px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.prop-toggle.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.props-actions {
  display: flex;
  gap: 6px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.prop-action {
  flex: 1;
  height: 36px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  display: grid;
  place-items: center;
}

.prop-action:hover { background: var(--surface-3); }
.prop-action.danger:hover { background: rgba(215, 106, 90, 0.2); color: var(--danger); border-color: rgba(215, 106, 90, 0.4); }

.layers-list {
  display: grid;
  gap: 4px;
  margin-bottom: 16px;
}

.layer-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  font-size: 0.82rem;
}

.layer-row.active {
  background: rgba(30, 82, 135, 0.22);
  border-color: var(--accent-text);
}

.layer-row i.layer-icon { color: var(--accent-text); font-size: 1rem; flex-shrink: 0; }

.layer-row span {
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.layer-row .layer-controls {
  display: flex;
  gap: 2px;
}

.layer-row .layer-controls button {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  background: transparent;
  color: var(--muted);
}

.layer-row .layer-controls button:hover { background: var(--surface-3); color: var(--ink); }

.bg-section {
  display: grid;
  gap: 8px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

/* Modais */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.78);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  animation: backdropIn 200ms ease-out;
}

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

.modal-card {
  position: relative;
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  background: linear-gradient(180deg, #1d2226 0%, #161a1d 100%);
  border: 1px solid rgba(30, 82, 135, 0.32);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7);
  animation: modalIn 280ms cubic-bezier(0.2, 1, 0.3, 1);
}

.modal-card.modal-large { width: min(900px, 100%); }

@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px) scale(0.97); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.modal-head {
  margin-bottom: 16px;
  padding-right: 50px;
}

.modal-head h2 { margin: 0 0 4px; font-size: 1.2rem; color: #e1ecf6; }
.modal-head p { margin: 0; color: var(--muted); font-size: 0.86rem; }

.modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: rgba(30, 82, 135, 0.14);
  border: 1px solid var(--line);
  color: var(--ink);
  display: grid;
  place-items: center;
}

.modal-close:hover { background: rgba(30, 82, 135, 0.28); }

.modal-foot {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: flex-end;
}

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

.design-card {
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  cursor: pointer;
  transition: all 160ms ease;
  position: relative;
}

.design-card:hover { border-color: var(--accent-text); transform: translateY(-2px); }

.design-card .design-preview {
  aspect-ratio: 85 / 54;
  background: #fff;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  color: #1a1a1a;
}

.design-card .design-info {
  padding: 8px 10px;
}

.design-card .design-info strong {
  display: block;
  color: var(--ink);
  font-size: 0.85rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.design-card .design-info small {
  color: var(--muted);
  font-size: 0.72rem;
}

.design-card .design-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 6px;
  background: rgba(215, 106, 90, 0.18);
  color: var(--danger);
  opacity: 0;
  transition: opacity 160ms ease;
}

.design-card:hover .design-delete { opacity: 1; }
.design-card .design-delete:hover { background: rgba(215, 106, 90, 0.4); }

.designs-empty {
  grid-column: 1 / -1;
  text-align: center;
  padding: 40px;
  color: var(--muted);
}

.icon-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 360px;
  overflow-y: auto;
}

.icon-grid button {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 1.2rem;
  color: var(--ink);
}

.icon-grid button:hover { background: rgba(30, 82, 135, 0.22); border-color: var(--accent-text); }

.export-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.export-option {
  display: grid;
  gap: 6px;
  padding: 18px 14px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
}

.export-option:hover {
  background: rgba(30, 82, 135, 0.18);
  border-color: var(--accent-text);
}

.export-option i { font-size: 1.6rem; color: var(--accent-text); }
.export-option strong { font-size: 0.92rem; }
.export-option small { font-size: 0.78rem; color: var(--muted); }

/* Loader */
.print-loader {
  position: fixed;
  inset: 0;
  background: rgba(8, 12, 18, 0.85);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
}

.print-loader span { color: var(--ink); font-weight: 600; }

.loader-spin {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(74, 154, 212, 0.2);
  border-top-color: var(--accent-text);
  border-radius: 50%;
  animation: loaderSpin 1s linear infinite;
}

@keyframes loaderSpin { to { transform: rotate(360deg); } }

.print-auth-gate {
  position: fixed;
  inset: 0;
  background: var(--bg);
  z-index: 300;
  display: grid;
  place-items: center;
  padding: 24px;
}

.print-auth-gate .modal-card { width: min(420px, 100%); text-align: center; }
.print-auth-gate h2 { margin: 0 0 10px; }
.print-auth-gate p { color: var(--muted); margin: 0 0 20px; }
.print-auth-gate a { width: auto; display: inline-flex; }

/* Mobile */
@media (max-width: 1100px) {
  .print-shell {
    grid-template-columns: 240px minmax(0, 1fr) 240px;
  }
}

@media (max-width: 900px) {
  .print-shell {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 56px auto minmax(0, 1fr) auto;
  }
  .print-tools {
    grid-row: 2;
    grid-column: 1;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    max-height: 200px;
    grid-auto-rows: max-content;
  }
  .print-stage { grid-row: 3; grid-column: 1; }
  .print-properties { grid-row: 4; grid-column: 1; border-left: 0; border-top: 1px solid var(--line); max-height: 240px; }
  .print-actions { gap: 4px; }
  .topbar-btn { padding: 8px 10px; font-size: 0.78rem; }
  .topbar-btn span:not(.zoom-controls span) { display: none; }
  .print-brand span { display: none; }
  .print-side-tabs { margin-left: 0; }
}

/* ─── Filtros de imagem ─────────────────────────────────────────────────── */
.filter-val {
  font-size: 0.7rem;
  color: var(--accent-text);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.filter-presets {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 5px;
  margin-top: 6px;
}

.filter-preset {
  padding: 7px 8px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  font-size: 0.74rem;
  font-weight: 600;
}

.filter-preset:hover {
  background: rgba(30, 82, 135, 0.22);
  border-color: var(--accent-text);
}

/* ─── Galeria de fundos ─────────────────────────────────────────────────── */
.bg-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  background: var(--surface-2);
  border-radius: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.bg-tab {
  flex: 1;
  min-width: 80px;
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--muted);
}

.bg-tab.active {
  background: var(--accent);
  color: #fff;
}

.bg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 8px;
  max-height: 60vh;
  overflow-y: auto;
}

.bg-tile {
  aspect-ratio: 85 / 54;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
  transition: transform 160ms ease;
}

.bg-tile:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: var(--accent-text);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4);
}

.bg-tile.upload-tile {
  background: var(--surface-2);
  color: var(--accent-text);
  border-style: dashed;
  text-shadow: none;
}

.bg-tile.upload-tile i {
  font-size: 1.5rem;
  margin-bottom: 4px;
}

.bg-tile-overlay {
  position: relative;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.65rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* ─── Logo picker ───────────────────────────────────────────────────────── */
.logo-options {
  display: grid;
  gap: 10px;
}

.logo-option {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 16px;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  text-align: left;
  color: var(--ink);
}

.logo-option:hover {
  background: rgba(30, 82, 135, 0.18);
  border-color: var(--accent-text);
}

.logo-option i {
  font-size: 2.4rem;
  color: var(--accent-text);
  text-align: center;
}

.logo-option strong { display: block; font-size: 0.95rem; }
.logo-option small { color: var(--muted); font-size: 0.78rem; }

/* ─── Hide image filters when not image ─────────────────────────────────── */
[data-props-for="image"] {
  display: none;
}
