/* =========================================================
   PolyPixl 3D · Configurador 3D — Mesa de Sinuca Edição Signature
   ========================================================= */

:root {
  --font-display: "Cormorant Garamond", Georgia, serif;
  --font-ui: "Manrope", system-ui, sans-serif;

  /* identidade PolyPixl: laranja do cubo + amarelo e vermelho-alaranjado da marca */
  --accent: #ff7e26;
  --accent-2: #ffbc50;
  --accent-3: #f05831;
  --accent-rgb: 255, 126, 38;
  --text: #f3f1ec;
  --text-dim: rgba(243, 241, 236, 0.62);
  --text-faint: rgba(243, 241, 236, 0.38);
  --line: rgba(255, 255, 255, 0.09);
  --glass: rgba(18, 19, 22, 0.62);
  --glass-strong: rgba(14, 15, 18, 0.82);

  /* fundo (alterado pelo tema de ambiente) */
  --bg-center: #4a4d55;
  --bg-mid: #1b1d22;
  --bg-edge: #060708;
  --brand-color: #f3f1ec;

  --panel-w: 380px;
  --radius: 18px;
  --ease: cubic-bezier(.22, .8, .22, 1);
}

body[data-theme="showroom"] {
  --bg-center: #5a4636;
  --bg-mid: #22180f;
  --bg-edge: #080605;
}
body[data-theme="light"] {
  --bg-center: #ffffff;
  --bg-mid: #dcdcd9;
  --bg-edge: #9fa1a4;
  --brand-color: #17181b;
}

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

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
  max-width: 100vw;
  overscroll-behavior: none;
  background: var(--bg-edge);
  font-family: var(--font-ui);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Fundo ---------- */
.backdrop {
  position: fixed; inset: 0; z-index: 0;
  background:
    radial-gradient(ellipse 60% 55% at 42% 46%, var(--bg-center) 0%, var(--bg-mid) 55%, var(--bg-edge) 100%);
  transition: background 1s var(--ease);
}
.vignette {
  position: fixed; inset: 0; z-index: 2; pointer-events: none;
  background: radial-gradient(ellipse 85% 80% at 42% 50%, transparent 55%, rgba(0,0,0,.45) 100%);
}
body[data-theme="light"] .vignette { background: radial-gradient(ellipse 85% 80% at 42% 50%, transparent 60%, rgba(0,0,0,.12) 100%); }

#viewer { position: fixed; inset: 0; z-index: 1; }
#viewer canvas { display: block; outline: none; cursor: grab; }
#viewer canvas:active { cursor: grabbing; }

/* ---------- Loader ---------- */
#loader {
  position: fixed; inset: 0; z-index: 100;
  display: grid; place-items: center;
  background: radial-gradient(ellipse at center, #1c1e23 0%, #060708 75%);
  transition: opacity .9s var(--ease), visibility .9s;
}
#loader.hidden { opacity: 0; visibility: hidden; }
.loader-inner { width: 260px; text-align: center; }
.loader-logo { width: 260px; height: auto; display: block; margin: 0 auto 34px; animation: breathe 2.2s ease-in-out infinite; }
@keyframes breathe { 0%,100% { opacity: .55; transform: scale(.98); } 50% { opacity: 1; transform: scale(1); } }
.loader-bar { height: 2px; background: rgba(255,255,255,.08); border-radius: 2px; overflow: hidden; }
.loader-bar span { display: block; height: 100%; width: 0%; background: linear-gradient(90deg, var(--accent), var(--accent-2)); transition: width .3s; }
.loader-text { margin-top: 14px; font-size: 11px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }

/* ---------- Topo ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: calc(var(--panel-w) + 40px);
  z-index: 10; padding: 30px 40px;
  display: flex; align-items: flex-start; justify-content: space-between;
  pointer-events: none;
  color: var(--brand-color);
  transition: color .8s var(--ease);
}
.brand { display: flex; align-items: flex-end; gap: 16px; pointer-events: auto; }
.brand-logo { height: 34px; width: auto; display: block; filter: drop-shadow(0 4px 18px rgba(0,0,0,.35)); transition: filter .8s var(--ease); }
/* logo negativo (texto claro) nos fundos escuros; logo original no tema claro */
.brand-logo.logo-on-light { display: none; }
body[data-theme="light"] .brand-logo.logo-on-dark { display: none; }
body[data-theme="light"] .brand-logo.logo-on-light { display: block; filter: drop-shadow(0 4px 14px rgba(0,0,0,.06)); }
.brand-sub { font-size: 10px; letter-spacing: .28em; text-transform: uppercase; opacity: .55; padding-bottom: 6px; padding-left: 16px; border-left: 1px solid currentColor; border-left-color: rgba(127,127,127,.35); }

.model-title { text-align: right; }
.model-title h1 { font-family: var(--font-display); font-weight: 400; font-size: 38px; line-height: 1; letter-spacing: .01em; }
.model-title h1 em, .panel-head h2 em { font-style: italic; color: var(--accent); }
.eyebrow { display: block; font-size: 10px; letter-spacing: .32em; text-transform: uppercase; opacity: .6; margin-bottom: 8px; }

/* ---------- Painel ---------- */
.panel {
  position: fixed; top: 20px; right: 20px; bottom: 20px;
  width: var(--panel-w); z-index: 20;
  display: flex; flex-direction: column;
  background: var(--glass);
  backdrop-filter: blur(26px) saturate(140%);
  -webkit-backdrop-filter: blur(26px) saturate(140%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: 0 30px 80px rgba(0,0,0,.45), inset 0 1px 0 rgba(255,255,255,.06);
  overflow: hidden;
  transition: transform .6s var(--ease), opacity .6s var(--ease);
}
.panel-head { padding: 30px 30px 22px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-family: var(--font-display); font-weight: 400; font-size: 31px; line-height: 1.05; }
.panel-lead { margin-top: 10px; font-size: 12.5px; line-height: 1.6; color: var(--text-dim); }

.sections { flex: 1; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.12) transparent; }
.sections::-webkit-scrollbar { width: 6px; }
.sections::-webkit-scrollbar-thumb { background: rgba(255,255,255,.12); border-radius: 3px; }

.section { border-bottom: 1px solid var(--line); }
.section:last-child { border-bottom: 0; }
.section-head {
  width: 100%; display: grid; grid-template-columns: 34px 1fr auto 16px; align-items: center; gap: 10px;
  padding: 18px 30px; text-align: left;
  transition: background .3s;
}
.section-head:hover { background: rgba(255,255,255,.025); }
.section-num { font-family: var(--font-display); font-size: 15px; color: var(--accent); font-style: italic; }
.section-title { font-size: 12px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; }
.section-value { font-size: 12px; color: var(--text-dim); display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.section-value .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.25); }
.chev { width: 14px; height: 14px; opacity: .5; transition: transform .45s var(--ease); }
.section.open .chev { transform: rotate(180deg); }

.section-body {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .5s var(--ease);
}
.section.open .section-body { grid-template-rows: 1fr; }
.section-inner { overflow: hidden; }
.section-content { padding: 4px 30px 24px; }
.section-desc { font-size: 12px; color: var(--text-faint); line-height: 1.55; margin-bottom: 16px; }

.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px 8px; }
.swatch { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.swatch-chip {
  position: relative;
  width: 40px; height: 40px; border-radius: 50%;
  background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14), 0 6px 14px rgba(0,0,0,.35);
  transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.swatch-chip::after {
  content: ""; position: absolute; inset: -5px; border-radius: 50%;
  border: 1.5px solid var(--accent); opacity: 0; transform: scale(.9);
  transition: opacity .35s var(--ease), transform .35s var(--ease);
}
.swatch:hover .swatch-chip { transform: translateY(-2px); }
.swatch.active .swatch-chip::after { opacity: 1; transform: scale(1); }
.swatch-name { font-size: 10px; line-height: 1.25; text-align: center; color: var(--text-dim); letter-spacing: .02em; max-width: 64px; }
.swatch.active .swatch-name { color: var(--text); }

.option-row { display: flex; gap: 8px; flex-wrap: wrap; }
.pill {
  padding: 10px 16px; border-radius: 999px; font-size: 12px;
  border: 1px solid var(--line); color: var(--text-dim);
  transition: all .3s var(--ease);
}
.pill:hover { border-color: rgba(255,255,255,.25); color: var(--text); }
.pill.active { border-color: var(--accent); color: var(--text); background: rgba(var(--accent-rgb),.12); }

.slider-row { margin-top: 18px; }
.slider-row label { display: flex; justify-content: space-between; font-size: 11px; color: var(--text-dim); letter-spacing: .06em; margin-bottom: 10px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 2px; background: rgba(255,255,255,.14); border-radius: 2px; outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 14px; height: 14px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 4px rgba(var(--accent-rgb),.18); cursor: pointer; }
input[type="range"]::-moz-range-thumb { width: 14px; height: 14px; border: 0; border-radius: 50%; background: var(--accent); cursor: pointer; }

/* Rodapé do painel */
.panel-foot { padding: 20px 30px 26px; border-top: 1px solid var(--line); background: rgba(0,0,0,.18); }
.summary-row { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 10px; }
.summary-label { font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-faint); }
.summary-code { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: 12px; color: var(--accent-2); letter-spacing: .06em; }
.summary-list { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 4px 14px; margin-bottom: 18px; }
.summary-list li { font-size: 11px; color: var(--text-dim); display: flex; justify-content: space-between; gap: 6px; }
.summary-list li span:first-child { color: var(--text-faint); }
.summary-list li span:last-child { text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.foot-actions { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; }
.btn-icon { padding: 14px; }
.btn-icon svg { width: 18px; height: 18px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 18px; border-radius: 12px; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.btn svg { width: 16px; height: 16px; }
.btn-ghost { border: 1px solid var(--line); color: var(--text-dim); }
.btn-ghost:hover { color: var(--text); border-color: rgba(255,255,255,.25); }
.btn-primary { background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #17140e; box-shadow: 0 10px 30px rgba(var(--accent-rgb),.25); }
.btn-primary:hover { transform: translateY(-1px); box-shadow: 0 14px 34px rgba(var(--accent-rgb),.38); }

/* ---------- Barra de vistas ---------- */
.viewbar {
  position: fixed; bottom: 28px; left: calc((100% - var(--panel-w) - 40px) / 2); transform: translateX(-50%);
  z-index: 15; display: flex; align-items: center; gap: 4px; padding: 6px;
  background: var(--glass-strong);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--line); border-radius: 999px;
  box-shadow: 0 18px 50px rgba(0,0,0,.4);
}
.view-btn { padding: 10px 18px; border-radius: 999px; font-size: 11px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); transition: all .3s var(--ease); }
.view-btn:hover { color: var(--text); }
.view-btn.active { background: rgba(255,255,255,.1); color: var(--text); }
.viewbar-sep { width: 1px; height: 22px; background: var(--line); margin: 0 6px; }
.icon-btn { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: var(--text-dim); transition: all .3s var(--ease); }
.icon-btn:hover { color: var(--text); background: rgba(255,255,255,.06); }
.icon-btn.active { color: var(--accent); background: rgba(var(--accent-rgb),.12); }

.hint {
  position: fixed; bottom: 92px; left: calc((100% - var(--panel-w) - 40px) / 2); transform: translateX(-50%);
  z-index: 15; font-size: 10px; letter-spacing: .26em; text-transform: uppercase;
  color: var(--brand-color); opacity: .45; pointer-events: none; transition: opacity 1s;
}
.hint.gone { opacity: 0; }

.toast {
  position: fixed; top: 30px; left: calc((100% - var(--panel-w) - 40px) / 2); transform: translate(-50%, -20px);
  z-index: 50; padding: 12px 20px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--line);
  font-size: 12px; letter-spacing: .06em; opacity: 0; pointer-events: none;
  transition: all .45s var(--ease);
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

.panel-toggle { display: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 1100px) {
  :root { --panel-w: 340px; }
  .model-title { display: none; }
}
/* Acessórios: cartões de opção */
.acc-cards { display: grid; gap: 10px; }
.acc-card {
  display: grid; grid-template-columns: 20px 1fr; gap: 14px; align-items: center; text-align: left;
  padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line);
  transition: all .3s var(--ease);
}
.acc-card:hover { border-color: rgba(255,255,255,.22); }
.acc-card.active { border-color: var(--accent); background: rgba(var(--accent-rgb),.1); }
.acc-radio { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid rgba(255,255,255,.35); position: relative; transition: border-color .3s; }
.acc-card.active .acc-radio { border-color: var(--accent); }
.acc-card.active .acc-radio::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--accent); }
.acc-text { display: flex; flex-direction: column; gap: 3px; }
.acc-text strong { font-size: 12.5px; font-weight: 600; letter-spacing: .02em; }
.acc-text small { font-size: 11px; color: var(--text-faint); line-height: 1.4; }

/* Acabamento */
.finish-chip { width: 30px; height: 30px; border-radius: 50%; display: block; background-size: cover; background-position: center;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.16), 0 4px 10px rgba(0,0,0,.35); }
.finish-cards .acc-card { grid-template-columns: 30px 1fr; }
.chip-wood { background: linear-gradient(115deg, #b98d5c, #8f6439 35%, #c39a6a 55%, #7d5530); }
.chip-laca { background: conic-gradient(#141414, #631E22, #9F542C, #BC9C78, #EDEDED, #52636D, #394933, #141414); }
.laca-colors { margin-top: 20px; transition: opacity .4s var(--ease); }
.section.is-wood .laca-colors { opacity: .35; }
.sub-label { display: flex; justify-content: space-between; font-size: 10px; letter-spacing: .2em; text-transform: uppercase; color: var(--text-faint); margin-bottom: 14px; }
.sub-label .laca-name { color: var(--text-dim); letter-spacing: .08em; text-transform: none; font-size: 11px; }
.section.is-wood .laca-colors .swatch.active .swatch-chip::after { opacity: 0; }

/* Indicador de rolagem do painel */
.sections-wrap { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; }
.sections-wrap .sections { flex: 1; min-height: 0; }
.scroll-cue {
  position: absolute; left: 0; right: 0; bottom: 0; height: 70px;
  display: flex; align-items: flex-end; justify-content: center; gap: 6px; padding-bottom: 10px;
  background: linear-gradient(to bottom, rgba(16,17,20,0) 0%, rgba(16,17,20,.85) 60%, rgba(16,17,20,.95) 100%);
  font-size: 10px; letter-spacing: .22em; text-transform: uppercase; color: var(--text-dim);
  opacity: 0; pointer-events: none; transition: opacity .35s var(--ease);
}
.scroll-cue.show { opacity: 1; pointer-events: auto; }
.scroll-cue svg { width: 14px; height: 14px; color: var(--accent); animation: cue-bounce 1.6s ease-in-out infinite; }
.scroll-cue:hover { color: var(--text); }
@keyframes cue-bounce { 0%, 100% { transform: translateY(-1px); } 50% { transform: translateY(3px); } }

.mobile-only { display: none; }
.panel-toggle .ico-close { display: none; }

/* ======================= CELULAR ======================= */
@media (max-width: 760px) {
  body { position: fixed; inset: 0; }
  .topbar { right: 0; padding: 16px 18px; }
  .brand-logo { height: 24px; }
  .brand-sub, .hint { display: none; }
  .vignette { background: radial-gradient(ellipse 120% 80% at 50% 40%, transparent 55%, rgba(0,0,0,.4) 100%); }

  /* botão superior direito: câmeras e ferramentas */
  .panel-toggle {
    display: grid; place-items: center; position: fixed; top: 14px; right: 14px; z-index: 40;
    width: 44px; height: 44px; border-radius: 50%; background: var(--glass-strong); border: 1px solid var(--line);
    backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  }
  body.views-open .panel-toggle .ico-open { display: none; }
  body.views-open .panel-toggle .ico-close { display: block; }

  .viewbar {
    top: 68px; right: 14px; bottom: auto; left: auto; transform: translateY(-8px);
    width: 236px; padding: 10px; border-radius: 20px;
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px;
    opacity: 0; pointer-events: none; transition: opacity .3s var(--ease), transform .3s var(--ease);
    z-index: 35;
  }
  body.views-open .viewbar { opacity: 1; transform: none; pointer-events: auto; }
  .view-btn { grid-column: 1 / -1; text-align: left; padding: 13px 16px; font-size: 11px; border-radius: 12px; }
  .share-m {
    grid-column: 1 / -1; display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 6px;
    padding: 14px; border-radius: 12px; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
    background: linear-gradient(135deg, var(--accent-2), var(--accent)); color: #17140e;
  }
  .share-m svg { width: 16px; height: 16px; }
  .viewbar-sep { grid-column: 1 / -1; width: auto; height: 1px; margin: 6px 8px; }
  .icon-btn { width: 100%; height: 48px; border-radius: 12px; }
  .mobile-only { display: grid; }
  .share-m.mobile-only { display: flex; white-space: nowrap; }
  .toast { left: 50%; top: 70px; }

  /* painel de opções: barra inferior com abas */
  .panel {
    top: auto; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    width: auto; height: auto; max-height: 60vh; border-radius: 22px;
  }
  .panel-head, .panel-foot, .scroll-cue { display: none; }
  .sections-wrap { flex: initial; }
  .sections { display: flex; flex-wrap: wrap; overflow: visible; padding: 0; }
  .section { display: contents; }
  .section-head {
    order: 2; flex: 1 1 0; min-width: 0;
    display: flex; flex-direction: column; align-items: center; gap: 6px;
    padding: 16px 4px 17px; position: relative; text-align: center;
  }
  .section-head:hover { background: none; }
  .section-num, .chev { display: none; }
  .section-title { font-size: 10px; letter-spacing: .14em; }
  .section-value { font-size: 10.5px; max-width: 100%; overflow: hidden; white-space: nowrap; justify-content: center; gap: 5px; }
  .section-value .dot { width: 9px; height: 9px; flex: none; }
  .section.open .section-title { color: var(--accent); }
  .section.open .section-head::before {
    content: ""; position: absolute; top: 0; left: 22%; right: 22%; height: 2px; border-radius: 2px; background: var(--accent);
  }
  .section-body { order: 1; width: 100%; display: none; border-bottom: 1px solid var(--line); }
  .section.open .section-body { display: block; max-height: 40vh; overflow-y: auto; overscroll-behavior: contain; }
  .section-inner { overflow: visible; }
  .section-content { padding: 22px 20px 20px; }
  .section-desc { display: none; }
  .swatches { grid-template-columns: repeat(6, 1fr); gap: 16px 6px; justify-items: center; }
  .swatch-chip { width: 36px; height: 36px; }
  .swatch-chip::after { inset: -4px; }
  .swatch-name { display: none; }
  .acc-cards { gap: 10px; }
  .acc-card { padding: 14px 14px; }
  .acc-text small { display: none; }
  .finish-cards { grid-template-columns: 1fr 1fr; }
  .laca-colors { margin-top: 22px; }
  .sub-label { margin-bottom: 16px; }
  .option-row { gap: 10px; }
  .option-row .pill { padding: 10px 16px; }
  .slider-row { margin-top: 22px; }
}

/* Logo no feltro */
.t-short { display: none; }
.decal-ui { display: grid; gap: 12px; }
.upload-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px; cursor: pointer;
  padding: 16px; border-radius: 12px; border: 1px dashed rgba(var(--accent-rgb), .55);
  background: rgba(var(--accent-rgb), .06); color: var(--text);
  font-size: 12px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase;
  transition: all .3s var(--ease);
}
.upload-btn:hover { background: rgba(var(--accent-rgb), .12); border-color: var(--accent); }
.upload-btn svg { width: 18px; height: 18px; color: var(--accent); }
.decal-note { font-size: 11px; line-height: 1.5; color: var(--text-faint); }
.decal-controls { display: none; gap: 14px; margin-top: 4px; }
.section.has-decal .decal-controls { display: grid; }
.section.has-decal .decal-ui > .decal-note { display: none; }
.decal-file-row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.decal-thumb {
  width: 44px; height: 44px; flex: none; border-radius: 10px; border: 1px solid var(--line);
  background-color: #2a2c31; background-size: contain; background-position: center; background-repeat: no-repeat;
}
.decal-name { font-size: 12px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.decal-controls .sub-label { margin-bottom: -4px; }
.decal-controls .pill { display: inline-flex; align-items: center; gap: 8px; }
.decal-controls .pill .dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(255,255,255,.3); }
.decal-controls .slider-row { margin-top: 0; }
.decal-actions { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.btn-sm { padding: 10px 8px; font-size: 10px; gap: 6px; letter-spacing: .06em; }
.btn-sm svg { width: 14px; height: 14px; }

@media (max-width: 760px) {
  .t-long { display: none; }
  .t-short { display: inline; }
  .section-head { padding-left: 2px; padding-right: 2px; }
  .section-title { letter-spacing: .06em; font-size: 9.5px; }
  .section-value { font-size: 10px; }
  .decal-ui { gap: 14px; }
  .decal-actions .btn-sm { padding: 12px 6px; }
}

/* aviso flutuante: largura confortável (evita quebrar em várias linhas) */
.toast { width: max-content; max-width: calc(100vw - 32px); text-align: center; }

/* Logo colorido: no modo colorido o botão Inverter não se aplica; no branco/preto, o de Fundo sim */
.decal-actions { grid-template-columns: repeat(3, 1fr); }
.section-head .dot { flex: none; }
.section.decal-color #decal-invert { display: none; }
.btn-sm.active { color: var(--text); border-color: rgba(var(--accent-rgb), .6); background: rgba(var(--accent-rgb), .1); }
.decal-thumb { background-size: contain, 10px 10px; background-repeat: no-repeat, repeat; background-position: center, 0 0; }
