* {
  margin: 0;
  padding: 0;
  box-sizing: border-box
}
@font-face {
  font-family: Basketball;
  src: url('fonts/Basketball.otf') format('opentype')
}
html {
  overflow-x: hidden
}
body {
  font-family: Arial,Helvetica,sans-serif;
  background: #f8fafc;
  color: #0f172a;
  overflow-x: hidden
}
.cosmos-toast-root {
  position: fixed;
  top: 128px;
  right: 24px;
  z-index: 9999;
  width: min(360px,calc(100vw - 32px));
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none
}
.cosmos-toast {
  pointer-events: auto;
  padding: 12px 14px;
  border: 1px solid rgba(148,163,184,.28);
  border-left: 4px solid #3b82f6;
  border-radius: 8px;
  background: rgba(15,23,42,.94);
  box-shadow: 0 16px 42px rgba(15,23,42,.22);
  color: #f8fafc;
  font-size: 13px;
  line-height: 1.35;
  animation: cosmosToastIn 180ms ease-out both;
  backdrop-filter: blur(12px)
}
.cosmos-toast--success {
  border-left-color: #16a34a
}
.cosmos-toast--warning {
  border-left-color: #f59e0b
}
.cosmos-toast--error {
  border-left-color: #ef4444
}
.cosmos-toast--closing {
  animation: cosmosToastOut 180ms ease-in both
}
@keyframes cosmosToastIn {
  from {
    opacity: 0;
    transform: translateY(-8px)
  }
  to {
    opacity: 1;
    transform: translateY(0)
  }
}
@keyframes cosmosToastOut {
  from {
    opacity: 1;
    transform: translateY(0)
  }
  to {
    opacity: 0;
    transform: translateY(-8px)
  }
}
@media (max-width:720px) {
  .cosmos-toast-root {
    top: 118px;
    right: 16px;
    left: 16px;
    width: auto
  }
}
.topbar {
  width: 100%;
  height: 60px;
  background: #0c0d11;
  border-top: 2px solid #3b82f6;
  border-bottom: 1px solid rgba(255,255,255,.07);
  box-shadow: 0 2px 16px rgba(0,0,0,.45);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 5000;
  gap: 16px
}
.topbar-left,
.topbar-right {
  display: flex;
  gap: 10px;
  align-items: center;
  min-width: 0;
  flex-shrink: 0
}
.topbar-right {
  justify-content: flex-end;
  position: relative;
  z-index: 5200
}
.topbar-left {
  position: relative;
  z-index: 5200;
  pointer-events: auto
}
.topbar-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0
}
.topbar-favicon-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(59,130,246,.15);
  border: 1px solid rgba(59,130,246,.3);
  color: #3b82f6;
  stroke: #3B82F6;
  padding: 5px;
  box-sizing: border-box
}
.topbar-brand-name {
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .12em;
  color: #f8fafc;
  text-transform: uppercase
}
.topbar-brand-sep {
  color: rgba(255,255,255,.22);
  font-size: 15px;
  font-weight: 300;
  margin: 0 2px
}
.topbar-brand-tagline {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .1em;
  color: rgba(255,255,255,.42);
  text-transform: uppercase
}
.topbar-center {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0
}
.topbar-stepper {
  display: flex;
  align-items: center;
  gap: 10px;
  list-style: none
}
.topbar-step {
  display: flex;
  align-items: center;
  gap: 8px
}
.topbar-step-dot {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  flex-shrink: 0;
  background: rgba(255,255,255,.08);
  color: rgba(255,255,255,.35)
}
.topbar-step.is-done .topbar-step-dot {
  background: #16a34a;
  color: #fff
}
.topbar-step-check-icon {
  width: 13px;
  height: 13px;
  stroke-width: 3
}
.topbar-step.is-active .topbar-step-dot {
  background: #6d28d9;
  color: #fff
}
.topbar-step-label {
  font-size: 13px;
  font-weight: 500;
  color: rgba(255,255,255,.42);
  white-space: nowrap
}
.topbar-step.is-active .topbar-step-label {
  color: #f8fafc;
  font-weight: 700
}
.topbar-step.is-done .topbar-step-label {
  color: rgba(255,255,255,.6)
}
.topbar-step-sep {
  font-size: 16px;
  color: rgba(255,255,255,.2);
  line-height: 1;
  margin: 0 2px
}
.topbar-project-status {
  display: none
}
.topbar-project-status--storage-error {
  display: block;
  font-size: 12px;
  color: #f87171;
  padding: 0 8px;
  white-space: nowrap
}
.topbar-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  white-space: nowrap;
  min-width: 0
}
.topbar-breadcrumb-link {
  color: rgba(255,255,255,.55);
  text-decoration: none
}
.topbar-breadcrumb-link:hover {
  color: #f8fafc
}
.topbar-breadcrumb-sep {
  color: rgba(255,255,255,.25)
}
.topbar-breadcrumb-current {
  color: #f8fafc;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px
}
.topbar-save-badge {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  color: #86efac;
  white-space: nowrap
}
.topbar-save-badge::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
  flex-shrink: 0
}
.topbar-save-badge--error {
  color: #f87171
}
.topbar-save-badge--syncing {
  color: #fbbf24
}
.workspace-mode-selector {
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 2px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 8px;
  margin-right: 14px
}
.workspace-mode-btn {
  font-size: 10px;
  font-weight: 600;
  color: rgba(255,255,255,.45);
  background: 0 0;
  border: none;
  border-radius: 5px;
  padding: 4px 10px;
  cursor: pointer;
  white-space: nowrap
}
.workspace-mode-btn:disabled {
  cursor: not-allowed;
  opacity: .5
}
.workspace-mode-btn.is-active {
  background: var(--cosmos-primary);
  color: #f8fafc
}
.viewer-preview-container {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20
}
.workspace-2d-panel {
  flex: 1 1 45%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #0c0d11;
  border-right: 1px solid rgba(255,255,255,.08)
}
.app[data-workspace-active-mode="3d"] .workspace-2d-panel {
  display: none
}
.app[data-workspace-active-mode="2d"] .viewer-wrapper {
  display: none
}
.app[data-workspace-active-mode="2d"] .workspace-2d-panel {
  flex: 1 1 100%
}
.workspace-2d-iframe {
  flex: 1;
  width: 100%;
  border: 0
}
.workspace-2d-fallback,
.workspace-2d-status {
  padding: 16px 20px;
  color: rgba(255,255,255,.6);
  font-size: 13px;
  text-align: center
}
.workspace-2d-status--error {
  color: #fca5a5
}
#ficha > .preview-info {
  margin-top: 16px
}
#ficha > .commercial-highlight,
#ficha > .preview-info {
  margin-bottom: 14px
}
@media (max-width:1560px) {
  .topbar-stepper {
    display: none
  }
}
.topbar-dl-icon {
  width: 15px;
  height: 15px;
  stroke-width: 2.2;
  flex-shrink: 0
}
.logo-topbar {
  display: none
}
.brand-sub {
  display: none
}
.topbar-center h1 {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  letter-spacing: .5px
}
.topbar-center span {
  color: rgba(255,255,255,.65);
  font-weight: 400
}
.topbar-btn {
  padding: 9px 18px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  white-space: nowrap;
  letter-spacing: .3px;
  box-shadow: 0 1px 3px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.15)
}
.topbar-btn:hover {
  background: rgba(255,255,255,.25);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(0,0,0,.25),inset 0 1px 0 rgba(255,255,255,.2)
}
.topbar-btn:active {
  transform: translateY(0);
  box-shadow: 0 1px 3px rgba(0,0,0,.2)
}
#btnSalvarProjeto {
  background: rgba(255,255,255,.9);
  color: #2563eb;
  font-weight: 700
}
#btnSalvarProjeto:hover {
  background: #fff;
  color: #3b82f6
}
.menu-toggle {
  display: none;
  padding: 10px 12px;
  border: none;
  border-radius: 10px;
  background: rgba(255,255,255,.15);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .2s
}
.menu-toggle:hover {
  background: rgba(255,255,255,.25)
}
.top-right button {
  margin-left: 10px;
  padding: 10px 20px;
  background: #3b82f6;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer
}
.app {
  display: flex;
  margin-top: 110px;
  min-height: calc(100dvh - 110px)
}
.sidebar.left {
  width: 420px;
  display: flex;
  background: #f1f5f9;
  border-right: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden
}
.profile-side-panel {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 50;
  display: flex;
  flex-direction: column;
  gap: 0;
  padding: 0 0 14px;
  background: radial-gradient(ellipse 140% 60% at 50% 0,rgba(244,196,48,.07) 0,transparent 65%),linear-gradient(175deg,#0e1219 0,#090c10 55%,#060810 100%);
  border-right: 1px solid rgba(244,196,48,.18);
  box-shadow: inset 0 1px 0 rgba(244,196,48,.18),4px 0 32px rgba(0,0,0,.5);
  overflow-y: auto;
  transform: translateX(-100%);
  transition: transform .24s cubic-bezier(.4, 0, .2, 1);
  pointer-events: none
}
.profile-side-panel:not(.hidden) {
  transform: translateX(0);
  pointer-events: auto
}
.profile-side-panel.hidden {
  transform: translateX(-100%);
  pointer-events: none
}
.profile-side-panel-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 13px 11px;
  border-bottom: 1px solid rgba(244,196,48,.1);
  margin-bottom: 6px;
  flex-shrink: 0
}
.profile-side-panel-header > div:not([class]) {
  flex: 1;
  min-width: 0
}
.profile-side-panel-header strong {
  display: block;
  color: #f0ece4;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: .01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.profile-side-panel-header span {
  display: block;
  color: rgba(255,255,255,.42);
  font-size: 10.5px;
  margin-top: 2px;
  letter-spacing: .025em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.profile-side-close {
  margin-left: auto;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(255,255,255,.04);
  color: rgba(255,255,255,.4);
  font-size: 11px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .16s,color .16s,border-color .16s
}
.profile-side-close:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  border-color: rgba(255,255,255,.18)
}
.profile-side-panel > .user-profile-menu-item {
  margin: 2px 10px
}
.profile-side-panel > .user-profile-hint {
  margin: 6px 10px 4px
}
.profile-side-panel > .user-profile-divider {
  margin: 6px 10px 8px
}
.profile-side-panel > .user-profile-menu-item.danger {
  margin-top: 0
}
.icon-profile {
  appearance: none;
  -webkit-appearance: none;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  border: 1.5px solid rgba(59,130,246,.65);
  background: radial-gradient(circle at 35% 25%,rgba(59,130,246,.18),rgba(10,13,20,.97));
  box-shadow: 0 0 12px rgba(59,130,246,.15),inset 0 1px 0 rgba(255,255,255,.06);
  color: #3b82f6;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-bottom: 0;
  padding: 0;
  line-height: 1;
  transition: border-color .2s,box-shadow .2s,transform .15s
}
.icon-profile:hover,
.icon-profile[aria-expanded=true] {
  border-color: #3b82f6;
  box-shadow: 0 0 22px rgba(59,130,246,.35),inset 0 1px 0 rgba(255,255,255,.08);
  transform: scale(1.05)
}
.icon-profile svg {
  width: 19px;
  height: 19px;
  stroke: #3B82F6;
  stroke-width: 1.75;
  pointer-events: none
}
.icon-bar-sep {
  width: 38px;
  height: 1px;
  background: linear-gradient(90deg,transparent,rgba(255,255,255,.12),transparent);
  margin: 10px 0 12px;
  flex-shrink: 0
}
.icon-bar {
  width: 90px;
  background: linear-gradient(180deg,#020617 0,#3b82f6 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 16px
}
.icon {
  width: 60px;
  height: 60px;
  margin-bottom: 25px;
  background: rgba(255,255,255,.08);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  cursor: pointer;
  font-size: 24px;
  color: #fff;
  transition: .2s
}
.icon:hover {
  background: rgba(255,255,255,.15);
  transform: scale(1.08)
}
.icon.active {
  background: #fff;
  color: #3b82f6
}
.panel-wrapper {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f1f5f9
}
.history-controls {
  display: flex;
  gap: 10px;
  padding: 10px;
  margin-bottom: 10px;
  background: #f1f5f9;
  flex-shrink: 0
}
.history-controls button {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: none;
  background: #3b82f6;
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  transition: background .15s
}
.history-controls button:hover:not(:disabled) {
  background: #2563eb
}
.history-controls button:disabled {
  opacity: .35;
  cursor: not-allowed
}
.panel {
  flex: 1;
  padding: 25px;
  overflow-y: auto;
  background: #eef2f7
}
.mode-toggle {
  display: flex;
  gap: 8px;
  margin-bottom: 25px;
  background: #e2e8f0;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 0;
  z-index: 5
}
.mode-toggle button {
  flex: 1;
  padding: 12px;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  background: 0 0;
  color: #94a3b8;
  font-weight: 600;
  font-size: 14px;
  transition: all .25s ease
}
.mode-toggle button:hover {
  color: #0f172a
}
.mode-toggle button.active {
  background: #fff;
  color: #3b82f6;
  box-shadow: 0 2px 8px rgba(0,0,0,.08)
}
.panel-content {
  display: none;
  word-wrap: break-word;
  overflow-wrap: break-word
}
.panel-content.active {
  display: block
}
.panel-content h3 {
  margin-bottom: 20px;
  font-size: 20px;
  color: #0f172a
}
.catalogo-filtros {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 12px
}
.catalogo-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease
}
.catalogo-chip:hover {
  border-color: #2563eb;
  color: #3b82f6;
  background: #eff6ff
}
.catalogo-chip.active {
  border-color: #2563eb;
  color: #fff;
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.12)
}
.catalogo-contador {
  margin: -4px 0 10px;
  color: #64748b;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2
}
.model-loading-status {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 18px;
  background: rgba(16,17,19,.82);
  border: 1px solid rgba(250,204,21,.22);
  border-radius: 99px;
  backdrop-filter: blur(8px);
  color: #93c5fd;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  pointer-events: none
}
.model-loading-status[hidden] {
  display: none
}
.model-loading-status::before {
  content: "";
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  border: 2px solid rgba(250,204,21,.28);
  border-top-color: #93c5fd;
  border-radius: 50%;
  animation: cosmosSpin 720ms linear infinite
}
@keyframes cosmosSpin {
  to {
    transform: rotate(360deg)
  }
}
.modelos-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px
}
.modelo-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 12px 8px 10px;
  border-radius: 10px;
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  cursor: pointer;
  text-align: center;
  width: 100%;
  transition: all .2s ease
}
.modelo-card-icon {
  width: 72px;
  height: 72px;
  background: #eff6ff;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all .2s ease;
  overflow: hidden
}
.modelo-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 8px;
  display: block
}
.modelo-card-icon svg {
  width: 26px;
  height: 26px;
  stroke: #3B82F6;
  transition: stroke .2s ease
}
.modelo-card-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px
}
.modelo-card-info strong {
  color: #0f172a;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.3
}
.modelo-card-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 100%;
  padding: 3px 7px;
  border-radius: 999px;
  background: #eef2ff;
  color: #3730a3;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap
}
.modelos-empty {
  grid-column: 1/-1;
  margin: 4px 0 0;
  padding: 14px 10px;
  border: 1px dashed #cbd5e1;
  border-radius: 8px;
  color: #64748b;
  background: rgba(255,255,255,.72);
  font-size: 12px;
  line-height: 1.4;
  text-align: center
}
.modelo-card:hover {
  border-color: #2563eb;
  background: #eff6ff
}
.modelo-card.modelo-card--busy,
.modelo-card:disabled {
  cursor: wait;
  opacity: .66;
  transform: none!important
}
.modelo-card.modelo-card--busy:hover,
.modelo-card:disabled:hover {
  border-color: #cbd5e1
}
.modelo-card:hover .modelo-card-icon {
  background: #dbeafe
}
.modelo-card:hover .modelo-card-icon svg {
  stroke: #2563EB
}
.modelo-card.active {
  border-color: #2563eb;
  background: #dbeafe;
  box-shadow: 0 0 0 2px rgba(59,130,246,.14)
}
.modelo-card.active .modelo-card-icon {
  background: #2563eb
}
.modelo-card.active .modelo-card-icon svg {
  stroke: #60a5fa
}
.modelo-card.active .modelo-card-info strong {
  color: #2563eb
}
.estampas-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px
}
.estampas-grid img {
  width: 85px;
  height: 85px;
  object-fit: cover;
  border-radius: 10px;
  cursor: pointer;
  border: 2px solid transparent;
  transition: .2s
}
.estampas-grid img:hover {
  transform: scale(1.1);
  border: 2px solid #2563eb
}
.remover-estampa {
  width: 85px;
  height: 85px;
  border-radius: 50%;
  background: #111;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  cursor: pointer;
  border: 2px solid #2563eb;
  transition: .2s
}
.remover-estampa:hover {
  transform: scale(1.1);
  background: #ef4444;
  color: #fff
}
.partes {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
  flex-wrap: wrap
}
.partes button {
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #94a3b8;
  cursor: pointer;
  font-weight: 600;
  font-size: 13px;
  transition: all .2s ease
}
.partes button:hover {
  color: #fff;
  border-color: #2563eb
}
.partes button.active {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 0 10px rgba(59,130,246,.5)
}
.cores-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}
.cor {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all .2s ease
}
.cor:hover {
  transform: scale(1.1)
}
.cor.active {
  border: 3px solid #fff;
  box-shadow: 0 0 10px rgba(255,255,255,.4)
}
#logo.active {
  display: flex;
  flex-direction: column;
  gap: 15px
}
input[type=file] {
  width: 100%;
  font-size: 13px;
  color: #fff;
  background: #020617;
  border: 1px solid #3b82f6;
  padding: 10px;
  border-radius: 10px
}
input[type=file]::file-selector-button {
  background: #2563eb;
  color: #fff;
  border: none;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer
}
input[type=text] {
  width: 100%;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #1e293b;
  background: #020617;
  color: #fff;
  margin-top: 10px
}
.viewer-wrapper {
  flex: 1;
  min-width: 0;
  position: relative
}
#viewer {
  width: 100%;
  height: 100%
}
#viewer canvas {
  touch-action: none
}
.right-tools {
  display: flex;
  flex-direction: column;
  gap: 20px;
  width: 100%;
  padding: 0 15px
}
.right-tools button {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: .2s
}
.right-tools button:first-child {
  background: #3b82f6;
  color: #fff
}
.right-tools button:last-child {
  background: #22c55e;
  color: #fff
}
.right-tools button:hover {
  transform: scale(1.05);
  filter: brightness(1.1)
}
@media (max-width:1024px) {
  .sidebar.left {
    width: 300px
  }
  .topbar {
    height: 90px
  }
  .app {
    margin-top: 90px;
    height: calc(100vh - 90px)
  }
}
@media (max-width:768px) {
  body {
    overflow-y: auto;
    overflow-x: hidden
  }
  .topbar {
    height: 60px;
    flex-direction: row;
    padding: 0 12px;
    gap: 10px
  }
  .topbar-center {
    text-align: left;
    flex: 0;
    white-space: nowrap;
    order: -1
  }
  .topbar-center h1 {
    font-size: 17px
  }
  .topbar-left {
    flex: 1;
    justify-content: flex-end;
    min-width: 0
  }
  .topbar-left .topbar-btn {
    font-size: 12px;
    padding: 7px 11px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 5px;
    background: rgba(255,255,255,.18);
    box-shadow: 0 1px 4px rgba(0,0,0,.2);
    font-weight: 600;
    letter-spacing: 0
  }
  .topbar-right {
    display: flex;
    min-width: 0;
    flex: 0
  }
  .menu-toggle {
    display: flex
  }
  .app {
    display: flex;
    flex-direction: column;
    height: auto;
    margin-top: 56px;
    overflow: visible
  }
  .viewer-wrapper {
    order: 1;
    width: 100%;
    height: 55vh;
    min-height: 280px;
    flex-shrink: 0;
    overflow: hidden
  }
  .workspace-2d-panel {
    order: 1;
    width: 100%;
    height: 55vh;
    min-height: 280px;
    flex-shrink: 0
  }
  .app[data-workspace-active-mode=dividido] .viewer-wrapper {
    display: none
  }
  #viewer {
    width: 100%;
    height: 100%;
    display: block
  }
  #viewer canvas {
    display: block
  }
  .sidebar.left {
    order: 2;
    width: 100%;
    flex-direction: column;
    height: auto;
    overflow: visible
  }
  .icon-bar {
    flex-direction: row;
    width: 100%;
    height: 60px;
    flex-shrink: 0;
    justify-content: space-around;
    padding-top: 0
  }
  .icon {
    width: 46px;
    height: 46px;
    margin-bottom: 0;
    border-radius: 12px;
    font-size: 20px
  }
  .panel {
    height: auto;
    overflow-y: visible;
    padding: 16px
  }
}
.preview-box {
  display: flex;
  gap: 14px;
  margin-bottom: 20px;
  align-items: center;
  flex-wrap: wrap
}
.preview-item {
  width: 82px;
  height: 82px;
  border-radius: 14px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 12px rgba(0,0,0,.08);
  transition: all .3s ease;
  cursor: pointer
}
.preview-item:hover {
  transform: scale(1.05)
}
.preview-item.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.3),0 4px 12px rgba(0,0,0,.08)
}
.info-box {
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.05);
  border-radius: 14px;
  padding: 14px;
  margin-bottom: 20px;
  font-size: 14px
}
.info-box p {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px
}
.info-box strong {
  color: #94a3b8;
  font-weight: 500
}
.info-box span {
  color: #fff;
  font-weight: 600
}
.price-box {
  font-size: 22px;
  font-weight: 700;
  margin-top: 5px
}
.btn-buy {
  background: linear-gradient(135deg,#2563eb,#2563eb);
  border: none;
  padding: 17px 22px;
  border-radius: 12px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: .3px;
  cursor: pointer;
  transition: all .25s ease
}
.btn-buy:hover {
  transform: scale(1.05);
  filter: brightness(1.12);
  box-shadow: 0 8px 28px rgba(59,130,246,.55)
}
.btn-save-project {
  background: 0 0;
  border: 1px solid #1e293b;
  padding: 14px;
  border-radius: 12px;
  color: #94a3b8;
  cursor: pointer;
  transition: .2s
}
.btn-save-project:hover {
  border-color: #2563eb;
  color: #fff
}
.right-tools {
  display: none
}
@media (min-width:769px) {
  .app {
    display: flex;
    flex-direction: row;
    width: 100%;
    margin-top: 110px;
    height: calc(100dvh - 110px)
  }
  .sidebar.left {
    order: initial;
    width: 420px;
    flex-direction: row;
    height: auto
  }
  .icon-bar {
    flex-direction: column;
    width: 90px;
    height: auto;
    padding-top: 30px;
    justify-content: flex-start
  }
  .icon {
    width: 60px;
    height: 60px;
    margin-bottom: 25px
  }
  .panel {
    max-height: none;
    overflow-y: auto
  }
  .viewer-wrapper {
    order: initial;
    flex: 1;
    min-width: 0;
    position: relative;
    overflow: visible;
    display: flex;
    background: radial-gradient(ellipse at center,#dbeafe 0,#eff6ff 50%,#f4f7fb 100%)
  }
  #viewer {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden
  }
  #viewer canvas {
    display: block;
    filter: drop-shadow(0 0 28px rgba(59, 130, 246, .28))
  }
  .preview-box {
    flex-direction: row;
    flex-wrap: wrap;
    margin-bottom: 20px
  }
  .preview-item {
    width: 82px;
    height: 82px
  }
  .btn-buy,
  .btn-save-project {
    padding: 17px 22px;
    font-size: 15px
  }
}
.preview-item img {
  width: 85%;
  height: 85%;
  object-fit: contain;
  display: block
}
.preview-item:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: 0 12px 25px rgba(0,0,0,.8),0 0 12px rgba(59,130,246,.4)
}
.preview-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle,rgba(255,255,255,.04) 0,rgba(0,0,0,.45) 100%);
  pointer-events: none
}
.preview-item::before {
  content: "";
  position: absolute;
  top: -20%;
  left: -20%;
  width: 140%;
  height: 140%;
  background: radial-gradient(circle,rgba(255,255,255,.08),transparent 70%);
  pointer-events: none
}
.status-ok {
  color: #22c55e;
  font-weight: 600
}
.preset-categorias {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: -8px 0 12px
}
.preset-categorias.visible {
  display: flex
}
.preset-categoria-chip {
  border: 1px solid #cbd5e1;
  background: #fff;
  color: #475569;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all .2s ease
}
.preset-categoria-chip:hover {
  border-color: #2563eb;
  color: #3b82f6;
  background: #eff6ff
}
.preset-categoria-chip.active {
  border-color: #2563eb;
  color: #fff;
  background: #3b82f6;
  box-shadow: 0 0 0 2px rgba(59,130,246,.12)
}
.preset-catalogo-filtros {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  margin: -4px 0 12px
}
.preset-catalogo-filtros.visible {
  display: flex
}
#uploadModeloBtn {
  width: 100%;
  min-height: 38px;
  margin: 2px 0 14px;
  padding: 10px 13px;
  border: 1px solid rgba(59,130,246,.34);
  border-radius: 10px;
  background: linear-gradient(180deg,rgba(59,130,246,.18),rgba(59,130,246,.08)),#20252b;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.06)
}
#uploadModeloBtn:hover {
  border-color: rgba(59,130,246,.72);
  background: linear-gradient(180deg,rgba(59,130,246,.28),rgba(59,130,246,.12)),#262c33;
  color: #fff3b0;
  box-shadow: 0 14px 28px rgba(0,0,0,.26),0 0 0 1px rgba(59,130,246,.14),inset 0 1px 0 rgba(255,255,255,.08)
}
#uploadModeloBtn:active {
  transform: translateY(0) scale(.99)
}
#presets-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 10px
}
.btn-preset {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  cursor: pointer;
  background: #1e3a5f;
  color: #fff;
  border: 1px solid #2563eb;
  border-radius: 6px;
  font-size: 14px
}
.btn-preset:hover {
  background: #3b82f6
}
.btn-upload-escudo {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #bfdbfe;
  background: #eff6ff;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  margin-top: 4px
}
.btn-upload-escudo:hover {
  background: #dbeafe;
  border-color: #3b82f6;
  color: #2563eb
}
.btn-upload-escudo:disabled {
  opacity: .5;
  cursor: not-allowed
}
.btn-upload-escudo:disabled:hover {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #3b82f6
}
.btn-remove-estampa {
  width: 100%;
  padding: 9px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #94a3b8;
  font-size: 13px;
  cursor: pointer;
  transition: all .2s;
  text-align: left;
  margin-bottom: 12px
}
.btn-remove-estampa:hover {
  border-color: #fca5a5;
  color: #ef4444
}
.color-card,
.gradient-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04)
}
.color-card-label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px
}
.color-card-row {
  display: flex;
  align-items: center;
  gap: 12px
}
.color-card-hint {
  font-size: 12px;
  color: #94a3b8;
  line-height: 1.4
}
.color-swatch-input {
  width: 42px;
  height: 42px;
  border: 2px solid #e2e8f0;
  border-radius: 10px;
  cursor: pointer;
  padding: 3px;
  background: #fff;
  flex-shrink: 0;
  transition: border-color .2s
}
.color-swatch-input:hover {
  border-color: #3b82f6
}
.gradient-strip {
  height: 32px;
  border-radius: 8px;
  margin: 10px 0 14px;
  border: 1px solid #e2e8f0;
  background: linear-gradient(to bottom,#e2e8f0,#f1f5f9);
  transition: background .3s ease
}
.gradient-stops-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px
}
.gradient-stop-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: #64748b;
  flex: 1
}
.gradient-arrow {
  color: #cbd5e1;
  font-size: 18px;
  flex-shrink: 0
}
.dir-pills {
  display: flex;
  gap: 6px
}
.dir-pill {
  flex: 1;
  padding: 8px 4px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #94a3b8;
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s ease;
  text-align: center
}
.dir-pill:hover {
  color: #3b82f6;
  border-color: #bfdbfe
}
.dir-pill.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #3b82f6
}
#cores.panel-content.active {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px
}
#cores h3 {
  grid-column: 1/-1;
  margin-bottom: 4px
}
.grupo-cores-row {
  grid-column: 1/-1;
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 2px
}
.grupo-cor-btn {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)),var(--cosmos-card-bg);
  border: 1px solid var(--cosmos-card-border);
  border-radius: var(--cosmos-card-radius,12px);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: #b8c0cc;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: border-color .16s,background .16s;
  user-select: none
}
.grupo-cor-btn:hover {
  border-color: rgba(244,196,48,.4);
  color: #e2e8f0
}
.grupo-cor-input {
  width: 22px;
  height: 22px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,.12);
  padding: 1px;
  cursor: pointer;
  flex-shrink: 0;
  background: 0 0
}
.partes-toggle-btn {
  grid-column: 1/-1;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: 0 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: 100%;
  transition: color .16s,border-color .16s
}
.partes-toggle-btn:hover {
  color: #b8c0cc;
  border-color: rgba(255,255,255,.18)
}
.partes-toggle-chevron {
  font-size: 8px;
  transition: transform .18s
}
#cores.catalog-mode .color-card,
#cores.catalog-mode .extra-color-card,
#cores.catalog-mode .grupo-cores-row,
#cores.catalog-mode .partes-toggle-btn {
  display: none!important
}
#cores.catalog-mode {
  overflow-x: hidden
}
.catalog-ui {
  grid-column: 1/-1;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden;
  padding: 2px 0 12px
}
.catalog-material-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  width: 100%;
  margin: 6px 0 10px
}
.catalog-material-tab {
  height: 26px;
  padding: 0 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.045);
  color: rgba(255,255,255,.88);
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  white-space: nowrap;
  transition: background .15s,border-color .15s
}
.catalog-material-tab:hover {
  background: rgba(255,255,255,.09)
}
.catalog-material-tab.active {
  background: rgba(255,255,255,.14);
  border-color: rgba(255,255,255,.45);
  color: #fff
}
.catalog-parts-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 5px;
  width: 100%;
  max-width: 100%;
  margin: 2px 0 12px;
  box-sizing: border-box
}
.catalog-part-button {
  width: 100%;
  min-width: 0;
  height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 5px;
  box-sizing: border-box;
  overflow: hidden;
  transition: background .15s,border-color .15s
}
.catalog-part-button:hover {
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.95)
}
.catalog-part-button.active {
  background: rgba(255,255,255,.11);
  border-color: rgba(255,255,255,.38);
  color: #fff
}
.catalog-part-button.in-grupo {
  border-color: rgba(244,196,48,.3);
  background: rgba(244,196,48,.06)
}
.catalog-grupo-row {
  display: flex;
  flex-direction: column;
  gap: 5px;
  width: 100%;
  margin: 4px 0 2px
}
.catalog-grupo-btn {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 6px 9px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)),var(--cosmos-card-bg);
  border: 1px solid var(--cosmos-card-border);
  border-radius: var(--cosmos-card-radius,12px);
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: #b8c0cc;
  text-transform: uppercase;
  letter-spacing: .5px;
  transition: border-color .16s,background .16s;
  user-select: none;
  width: 100%
}
.catalog-grupo-btn:hover {
  border-color: rgba(244,196,48,.4);
  color: #e2e8f0
}
.catalog-grupo-btn.active {
  background: rgba(244,196,48,.1);
  border-color: rgba(244,196,48,.45);
  color: #f4c430
}
.catalog-partes-toggle-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  background: 0 0;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 8px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 700;
  color: #6b7280;
  text-transform: uppercase;
  letter-spacing: .5px;
  width: 100%;
  margin-bottom: 4px;
  transition: color .16s,border-color .16s
}
.catalog-partes-toggle-btn:hover {
  color: #b8c0cc;
  border-color: rgba(255,255,255,.18)
}
.catalog-parts-grid.recolhido {
  display: none
}
.catalog-part-dot {
  width: 10px;
  height: 10px;
  min-width: 10px;
  min-height: 10px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.2);
  flex-shrink: 0;
  box-sizing: border-box
}
.catalog-part-label {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left
}
.catalog-color-grid {
  display: grid;
  grid-template-columns: repeat(var(--catalog-grid-columns,4),minmax(0,1fr));
  gap: 10px 4px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: hidden
}
.catalog-color-option {
  width: 100%;
  min-width: 0;
  padding: 0;
  border: 0;
  background: 0 0;
  color: #fff;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  box-sizing: border-box
}
.catalog-color-swatch {
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.1);
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
  flex-shrink: 0
}
.catalog-color-option.active .catalog-color-swatch {
  border-color: #fff;
  box-shadow: 0 0 0 2px rgba(255,255,255,.8),0 0 0 4px rgba(255,255,255,.14)
}
.catalog-color-swatch.is-mescla::after {
  content: "";
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(45deg,rgba(255,255,255,.18) 0,rgba(255,255,255,.18) 5px,rgba(0,0,0,.18) 5px,rgba(0,0,0,.18) 10px)
}
.catalog-color-label {
  width: 100%;
  color: rgba(255,255,255,.8);
  font-size: 10px;
  line-height: 1.2;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
.catalog-pending-message {
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.11);
  color: rgba(255,255,255,.72);
  font-size: 13px;
  line-height: 1.4;
  box-sizing: border-box
}
#cores.partes-recolhidas .color-card {
  display: none
}
#cores .color-card {
  margin-top: 0;
  padding: 5px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 3px
}
#cores .color-card-label {
  margin-bottom: 0;
  text-align: center;
  font-size: 8px;
  letter-spacing: .3px
}
#cores .color-card-row {
  display: flex;
  justify-content: center
}
@media (max-width:768px) {
  .catalog-mobile-tabs {
    display: flex;
    gap: 8px;
    margin: 6px 0 12px
  }
  .catalog-mobile-tab {
    height: 32px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.22);
    background: rgba(255,255,255,.045);
    color: rgba(255,255,255,.8);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    white-space: nowrap;
    transition: background .15s,border-color .15s,color .15s
  }
  .catalog-mobile-tab.active {
    background: rgba(59,130,246,.18);
    border-color: #3b82f6;
    color: #fff
  }
  .catalog-mobile-group-row {
    display: flex;
    gap: 8px;
    margin: 0 0 14px
  }
  .catalog-mobile-group-btn {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border-radius: 12px;
    border: 1.5px solid rgba(255,255,255,.14);
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.8);
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: border-color .15s,background .15s,color .15s
  }
  .catalog-mobile-group-btn.active {
    background: rgba(244,196,48,.1);
    border-color: rgba(244,196,48,.45);
    color: #f4c430
  }
  .catalog-mobile-partes-label {
    margin: 0 0 8px;
    padding: 0;
    font-size: 9px;
    font-weight: 700;
    color: rgba(255,255,255,.38);
    letter-spacing: 1px;
    text-transform: uppercase
  }
  .catalog-mobile-parts-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px;
    margin-bottom: 4px
  }
  .catalog-mobile-part-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 12px 4px 10px;
    border-radius: 14px;
    border: 1.5px solid rgba(255,255,255,.12);
    background: rgba(255,255,255,.035);
    color: rgba(255,255,255,.68);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    transition: border-color .15s,background .15s,color .15s
  }
  .catalog-mobile-part-btn:active {
    background: rgba(255,255,255,.07)
  }
  .catalog-mobile-part-btn.active {
    border-color: #3b82f6;
    background: rgba(59,130,246,.1);
    color: #fff
  }
  .catalog-mobile-part-dot {
    width: 28px;
    height: 28px;
    border-radius: 999px;
    border: 1.5px solid rgba(255,255,255,.22);
    flex-shrink: 0;
    box-sizing: border-box
  }
  .catalog-mobile-part-label {
    font-size: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    text-align: center
  }
}
#catalog-color-sheet-overlay {
  position: fixed;
  inset: 0;
  z-index: 6000;
  display: flex;
  align-items: flex-end
}
#catalog-color-sheet-overlay[hidden] {
  display: none
}
.catalog-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.65);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px)
}
.catalog-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: 80vh;
  overflow-y: auto;
  border-radius: 16px 16px 0 0;
  background: #1f2328;
  border-top: 1px solid rgba(255,255,255,.1);
  padding-bottom: env(safe-area-inset-bottom,0)
}
.catalog-sheet-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  position: sticky;
  top: 0;
  background: #1f2328;
  z-index: 1
}
.catalog-sheet-dot {
  width: 30px;
  height: 30px;
  border-radius: 999px;
  border: 1.5px solid rgba(255,255,255,.22);
  flex-shrink: 0;
  box-sizing: border-box
}
.catalog-sheet-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px
}
.catalog-sheet-part-name {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  line-height: 1.2
}
.catalog-sheet-mat-label {
  font-size: 11px;
  color: rgba(255,255,255,.46);
  line-height: 1.2
}
.catalog-sheet-close {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(255,255,255,.07);
  color: rgba(255,255,255,.65);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background .15s,color .15s
}
.catalog-sheet-close:hover {
  background: rgba(255,255,255,.13);
  color: #fff
}
.catalog-sheet-body {
  padding: 16px
}
.catalog-sheet-grid {
  display: grid;
  grid-template-columns: repeat(5,1fr);
  gap: 12px
}
.catalog-sheet-swatch {
  width: 100%;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 2px solid rgba(255,255,255,.12);
  cursor: pointer;
  box-sizing: border-box;
  transition: transform .12s,border-color .12s,box-shadow .12s
}
.catalog-sheet-swatch:active {
  transform: scale(.9)
}
.catalog-sheet-swatch.active {
  border-color: #3b82f6;
  box-shadow: 0 0 0 2px #3b82f6,0 0 0 4px rgba(59,130,246,.28)
}
.catalog-sheet-custom-btn {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 10px 0;
  background: 0 0;
  border: 1.5px solid rgba(255,255,255,.2);
  border-radius: 8px;
  color: #e0e0e0;
  font-size: 14px;
  cursor: pointer;
  transition: background .15s
}
.catalog-sheet-custom-btn:active,
.catalog-sheet-custom-btn:hover {
  background: rgba(255,255,255,.08)
}
.catalog-sheet-back {
  background: 0 0;
  border: none;
  color: #e0e0e0;
  font-size: 20px;
  line-height: 1;
  padding: 4px 6px;
  cursor: pointer;
  flex-shrink: 0
}
.hue-picker-wrapper {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 4px 0 8px
}
.hue-rail {
  position: relative;
  height: 28px;
  border-radius: 14px;
  background: linear-gradient(to right,red,#ff7f00,#feff00,#7fff00,#0f0,#00ff7f,#00feff,#007fff,#00f,#7f00ff,#ff00fe,#ff007f,red);
  cursor: pointer;
  touch-action: none
}
.hue-thumb {
  position: absolute;
  top: 50%;
  transform: translate(-50%,-50%);
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 3px solid #fff;
  box-shadow: 0 0 0 1.5px rgba(0,0,0,.35),0 2px 6px rgba(0,0,0,.5);
  pointer-events: none
}
.hue-preview-row {
  display: flex;
  align-items: center;
  gap: 12px
}
.hue-preview {
  width: 46px;
  height: 46px;
  border-radius: 8px;
  flex-shrink: 0;
  border: 1.5px solid rgba(255,255,255,.2)
}
.hue-hex-input {
  flex: 1;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.07);
  color: #e0e0e0;
  font-size: 16px;
  font-family: monospace;
  letter-spacing: .05em;
  text-transform: uppercase;
  outline: 0
}
.hue-hex-input:focus {
  border-color: rgba(255,255,255,.45)
}
.hue-apply-btn {
  display: block;
  width: 100%;
  padding: 14px 0;
  background: #3b82f6;
  border: none;
  border-radius: 10px;
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: background .15s
}
.hue-apply-btn:active {
  background: #2563eb
}
@media (max-width:768px) {
  #cores.free-mobile-mode .color-card,
  #cores.free-mobile-mode .extra-color-card {
    display: none!important
  }
}
#cores .color-swatch-input {
  width: 28px!important;
  height: 28px!important;
  border-radius: 7px;
  padding: 1px
}
.id-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 14px;
  margin-top: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.04)
}
.id-input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #0f172a;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .5px;
  margin-top: 8px;
  transition: border-color .2s;
  outline: 0
}
.id-input:focus {
  border-color: #3b82f6
}
.id-input--number {
  font-size: 22px;
  text-align: center;
  letter-spacing: 4px
}
.estampa-ia-hint {
  margin: 0 0 14px;
  font-size: 12px;
  color: var(--cosmos-muted,#7f8792);
  line-height: 1.4
}
.estampa-magica-toolbar {
  position: relative;
  display: flex;
  gap: 8px;
  margin: 0 0 14px
}
.estampa-tipo-group {
  flex: 1;
  min-width: 0
}
.estilo-magico-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer
}
.estilo-magico-toggle > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0
}
.estilo-magico-toggle:hover {
  color: #3b82f6;
  border-color: #bfdbfe
}
.estilo-magico-toggle.open .estilo-magico-caret {
  transform: rotate(180deg)
}
.estilo-magico-caret {
  font-size: 11px;
  transition: transform 150ms ease
}
.estampa-tipo-pills {
  display: none;
  flex-wrap: wrap;
  gap: 6px;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 20;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #fff;
  box-shadow: 0 18px 42px rgba(0,0,0,.12)
}
.estampa-tipo-pills.show {
  display: flex
}
.estampa-tipo-pill {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer
}
.estampa-tipo-pill:hover {
  color: #3b82f6;
  border-color: #bfdbfe
}
.estampa-tipo-pill.active {
  background: #eff6ff;
  border-color: #3b82f6;
  color: #3b82f6
}
.estampa-ia-prompt {
  resize: vertical;
  font-weight: 400;
  letter-spacing: normal
}
.estampa-ia-status {
  margin: 8px 0 0 2px;
  font-size: 11px;
  color: var(--cosmos-muted,#7f8792);
  line-height: 1.4
}
.estampa-ia-status.estampa-ia-status--error {
  color: #f87171
}
.estampa-ia-status.estampa-ia-status--success {
  color: #4ade80
}
.loading-progress-wrap {
  margin: 8px 0 0 2px
}
.loading-progress-track {
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  overflow: hidden
}
.loading-progress-bar {
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: var(--cosmos-primary,#3b82f6);
  transition: width .3s ease
}
.loading-progress-pct {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--cosmos-muted,#7f8792);
  font-variant-numeric: tabular-nums
}
.estampa-lib {
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid #343a42
}
.estampa-lib-hint {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--cosmos-muted,#7f8792)
}
.estampa-lib-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 6px
}
.estampa-lib-thumb {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #343a42;
  cursor: pointer;
  background: #151515;
  transition: border-color .15s,transform .15s
}
.estampa-lib-thumb:hover {
  border-color: var(--cosmos-primary,#3b82f6);
  transform: scale(1.03)
}
.id-color-row {
  display: flex;
  gap: 10px;
  margin-top: 12px
}
.id-color-item {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 8px 10px;
  transition: border-color .2s
}
.id-color-item:hover {
  border-color: #bfdbfe
}
.id-color-item span {
  font-size: 11px;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .5px
}
.preview-container {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 8px;
  margin-bottom: 20px
}
.preview-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 10px 6px 8px
}
.preview-card .preview-item {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: none;
  box-shadow: none;
  background: 0 0
}
.preview-label {
  margin-top: 8px;
  font-size: 11px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: .8px
}
.preview-info {
  background: #f1f5f9;
  border-radius: 12px;
  padding: 16px;
  font-size: 14px;
  margin-bottom: 16px
}
.preview-info p {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 6px 0;
  color: #64748b
}
.preview-info p:last-child {
  margin-bottom: 0
}
.preview-info strong {
  font-weight: 500;
  color: #94a3b8
}
.preview-info span {
  color: #0f172a;
  font-weight: 600
}
.preview-price {
  font-size: 24px;
  font-weight: 700;
  color: #16a34a;
  margin: 16px 0;
  letter-spacing: -.5px
}
.botao-showroom {
  width: 100%;
  padding: 12px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .3px;
  background: 0 0;
  border: 1px solid rgba(99,102,241,.5);
  border-radius: 12px;
  color: #818cf8;
  cursor: pointer;
  transition: all .22s ease;
  margin-bottom: 8px
}
.botao-showroom:hover {
  background: rgba(99,102,241,.1);
  border-color: rgba(99,102,241,.8);
  color: #c7d2fe
}
.topbar-right .botao-showroom {
  width: auto;
  margin: 0;
  padding: 7px 12px;
  font-size: 12px;
  border-radius: 8px
}
.botao-showroom:disabled {
  opacity: .5;
  cursor: not-allowed
}
.botao-showroom:disabled:hover {
  background: 0 0;
  border-color: rgba(99,102,241,.5);
  color: #818cf8
}
.botao-comprar {
  width: 100%;
  padding: 14px;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: .3px;
  background: linear-gradient(135deg,#2563eb,#2563eb);
  border: none;
  border-radius: 12px;
  color: #fff;
  cursor: pointer;
  transition: all .25s ease
}
.botao-comprar:hover {
  transform: scale(1.04);
  filter: brightness(1.12);
  box-shadow: 0 8px 28px rgba(59,130,246,.55)
}
.botao-salvar {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #64748b;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s
}
.botao-salvar:hover {
  border-color: #3b82f6;
  color: #3b82f6
}
.botao-download {
  width: 100%;
  padding: 10px;
  margin-top: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  color: #94a3b8;
  font-size: 12px;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s
}
.botao-download:hover {
  border-color: #3b82f6;
  color: #3b82f6
}
.export-png-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 10px 7px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2
}
.export-png-status[hidden] {
  display: none
}
.icon[hidden] {
  display: none
}
.export-png-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(250,204,21,.28);
  border-top-color: #93c5fd;
  border-radius: 50%;
  animation: cosmosSpin 720ms linear infinite
}
#btnDownloadPNG:disabled,
#menuDownload:disabled {
  cursor: wait;
  opacity: .62
}
.project-file-status {
  display: flex;
  align-items: center;
  gap: 7px;
  margin: 2px 10px 7px;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.2
}
.project-file-status[hidden] {
  display: none
}
.project-file-status::before {
  content: "";
  width: 9px;
  height: 9px;
  border: 2px solid rgba(250,204,21,.28);
  border-top-color: #93c5fd;
  border-radius: 50%;
  animation: cosmosSpin 720ms linear infinite
}
#btnCarregarProjeto:disabled,
#btnSalvarProjeto:disabled,
#menuCarregar:disabled,
#menuSalvar:disabled {
  cursor: wait;
  opacity: .62
}
.menu-container {
  position: relative
}
#menuToggle {
  font-size: 20px;
  background: 0 0;
  color: #fff;
  border: none;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 8px;
  transition: background .2s
}
#menuToggle:hover {
  background: rgba(255,255,255,.15)
}
.menu-dropdown {
  position: absolute;
  top: 45px;
  right: 0;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 15px 40px rgba(0,0,0,.15);
  display: none;
  flex-direction: column;
  min-width: 200px;
  overflow: hidden;
  z-index: 999
}
.menu-dropdown button {
  padding: 12px 16px;
  border: none;
  background: #fff;
  text-align: left;
  font-size: 14px;
  cursor: pointer;
  color: #1e293b;
  font-weight: 500;
  transition: background .15s
}
.menu-dropdown button:hover {
  background: #f1f5f9
}
.menu-dropdown.show {
  display: flex
}
.layers-dock {
  position: absolute;
  top: 18px;
  left: 18px;
  z-index: 20;
  display: flex;
  align-items: flex-start;
  pointer-events: none
}
.layers-dock-controls {
  display: flex;
  flex-direction: column;
  align-items: center
}
.layers-toggle {
  pointer-events: auto;
  writing-mode: vertical-rl;
  transform: rotate(180deg);
  min-height: 112px;
  padding: 12px 8px;
  border: 1px solid #cbd5e1;
  border-radius: 8px 0 0 8px;
  background: #fff;
  color: #3b82f6;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15,23,42,.12)
}
.layers-dock .history-controls {
  pointer-events: auto;
  flex-direction: column;
  gap: 8px;
  padding: 0;
  margin: 10px 0 0;
  background: 0 0
}
.layers-dock-panel {
  pointer-events: auto;
  width: 270px;
  max-height: min(520px,calc(100vh - 160px));
  display: none;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #cbd5e1;
  border-radius: 0 8px 8px 8px;
  background: #f8fafc;
  box-shadow: 0 18px 40px rgba(15,23,42,.18)
}
.layers-dock.open .layers-dock-panel {
  display: flex
}
.layers-dock.open .layers-toggle {
  border-right-color: transparent;
  box-shadow: none
}
.layers-dock-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-bottom: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 14px;
  font-weight: 700
}
.layers-dock-header button {
  width: 28px;
  height: 28px;
  border: none;
  border-radius: 6px;
  background: 0 0;
  color: #64748b;
  font-size: 20px;
  line-height: 1;
  cursor: pointer
}
.layers-dock-header button:hover {
  background: #f1f5f9;
  color: #0f172a
}
#layersPanel {
  min-height: 120px;
  max-height: calc(min(520px,100vh - 160px) - 49px);
  overflow-y: auto;
  background: #f8fafc
}
.layer-item {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border-bottom: 1px solid #e2e8f0;
  cursor: pointer;
  font-size: 13px;
  color: #475569;
  font-weight: 500;
  transition: background .15s
}
.layer-item:hover {
  background: #e2e8f0
}
.layer-item.active {
  background: #3b82f6;
  color: #fff
}
.layer-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap
}
.layer-actions {
  display: flex;
  align-items: center;
  gap: 2px
}
.layer-actions button {
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 4px;
  background: #fff;
  color: #334155;
  font-size: 12px;
  cursor: pointer
}
.layer-actions button:hover {
  border-color: #3b82f6;
  color: #3b82f6
}
.layer-item.active .layer-actions button {
  border-color: rgba(255,255,255,.45)
}
@media (max-width:760px) {
  .layers-dock {
    top: 12px;
    left: 12px
  }
  .layers-dock-panel {
    width: min(270px,calc(100vw - 72px))
  }
}
:root {
  --cosmos-primary: #3B82F6;
  --cosmos-primary-strong: #2563EB;
  --cosmos-dark: #151515;
  --cosmos-panel: #1F2328;
  --cosmos-panel-soft: #262B31;
  --cosmos-white: #FFFFFF;
  --cosmos-soft: #F7F8FA;
  --cosmos-muted: #9CA3AF
}
body {
  background: #101113;
  color: #e5e7eb
}
.topbar {
  background: #0c0d11;
  border-bottom-color: rgba(255,255,255,.07)
}
.icon-bar {
  background: linear-gradient(180deg,#111315 0,#1f2328 100%)
}
.icon.active {
  background: var(--cosmos-primary);
  color: #151515
}
.history-controls,
.panel-wrapper,
.sidebar.left {
  background: #151515;
  border-color: #2b3036
}
.layers-dock .history-controls {
  background: 0 0;
  border-color: transparent
}
.panel {
  background: #1f2328
}
.mode-toggle {
  background: #262b31;
  border-color: #30363d
}
.mode-toggle button:hover {
  color: #e2e8f0
}
.mode-toggle button.active {
  background: var(--cosmos-primary);
  color: #151515;
  box-shadow: 0 2px 8px rgba(59,130,246,.24)
}
.history-controls button {
  background: var(--cosmos-primary);
  color: #151515
}
.history-controls button:hover:not(:disabled) {
  background: var(--cosmos-primary-strong)
}
.panel-content h3 {
  color: #e2e8f0
}
.catalogo-chip {
  border-color: #343a42;
  background: #262b31;
  color: #9ca3af
}
.catalogo-chip:hover {
  border-color: var(--cosmos-primary);
  background: #2b3036;
  color: #93c5fd
}
.catalogo-chip.active {
  border-color: var(--cosmos-primary);
  background: var(--cosmos-primary);
  color: #151515;
  box-shadow: 0 0 0 2px rgba(59,130,246,.16)
}
.catalogo-contador {
  color: #8b92a8
}
.preset-categoria-chip {
  border-color: #343a42;
  background: #262b31;
  color: #9ca3af
}
.preset-categoria-chip:hover {
  border-color: var(--cosmos-primary);
  background: #2b3036;
  color: #93c5fd
}
.preset-categoria-chip.active {
  border-color: var(--cosmos-primary);
  background: var(--cosmos-primary);
  color: #151515;
  box-shadow: 0 0 0 2px rgba(59,130,246,.16)
}
.modelo-card {
  border-color: #343a42;
  background: #262b31;
  color: #9ca3af
}
.modelo-card-icon {
  background: #151515
}
.modelo-card-icon svg {
  stroke: var(--cosmos-primary)
}
.modelo-card-info strong {
  color: #e2e8f0
}
.modelo-card-badge {
  background: rgba(59,130,246,.14);
  color: #93c5fd
}
.modelos-empty {
  border-color: #343a42;
  background: #262b31;
  color: #9ca3af
}
.modelo-card:hover {
  border-color: var(--cosmos-primary);
  background: #2b3036
}
.modelo-card:hover .modelo-card-icon {
  background: #111315
}
.modelo-card:hover .modelo-card-icon svg {
  stroke: #93C5FD
}
.modelo-card.active {
  border-color: var(--cosmos-primary);
  background: #30343a;
  box-shadow: 0 0 0 2px rgba(59,130,246,.16)
}
.modelo-card.active .modelo-card-icon {
  background: #151515
}
.modelo-card.active .modelo-card-icon svg {
  stroke: var(--cosmos-primary)
}
.modelo-card.active .modelo-card-info strong {
  color: #93c5fd
}
.partes button.active {
  background: var(--cosmos-primary);
  border-color: var(--cosmos-primary);
  color: #151515;
  box-shadow: 0 0 10px rgba(59,130,246,.38)
}
.estampas-grid img:hover {
  border-color: var(--cosmos-primary)
}
.viewer-wrapper {
  background: radial-gradient(ellipse at center,#fff 0,#f7f8fa 48%,#e5e7eb 100%)
}
#viewer canvas {
  filter: drop-shadow(0 0 28px rgba(0,0,0,.2))
}
.preview-card {
  background: #262b31;
  border-color: #2b3036
}
.preview-item {
  background: #262b31;
  border-color: #2b3036
}
.preview-item.active {
  border-color: var(--cosmos-primary);
  box-shadow: 0 0 0 2px rgba(59,130,246,.24),0 4px 12px rgba(0,0,0,.08)
}
.preview-info {
  background: #262b31
}
.preview-info p {
  color: #8b92a8
}
.preview-info span {
  color: #e2e8f0
}
.botao-comprar,
.btn-buy {
  background: linear-gradient(135deg,var(--cosmos-primary-strong),var(--cosmos-primary));
  color: #151515
}
.botao-comprar:hover,
.btn-buy:hover {
  box-shadow: 0 8px 28px rgba(59,130,246,.36)
}
.botao-download,
.botao-salvar {
  background: 0 0;
  border-color: #343a42;
  color: #9ca3af
}
.botao-download:hover,
.botao-salvar:hover {
  border-color: var(--cosmos-primary);
  color: #93c5fd
}
.btn-save-project:hover {
  border-color: var(--cosmos-primary)
}
#btnSalvarProjeto {
  background: rgba(59,130,246,.14);
  color: #93c5fd
}
#btnSalvarProjeto:hover {
  background: rgba(59,130,246,.22);
  color: #bfdbfe
}
.menu-dropdown {
  background: #262b31;
  box-shadow: 0 15px 40px rgba(0,0,0,.5)
}
.menu-dropdown button {
  background: 0 0;
  color: #e2e8f0
}
.menu-dropdown button:hover {
  background: #343a42
}
.layers-toggle {
  border-color: #343a42;
  background: #151515;
  color: var(--cosmos-primary)
}
.layers-dock-panel {
  border-color: #343a42;
  background: #262b31
}
.layers-dock-header {
  border-bottom-color: #2b3036;
  background: #1f2328;
  color: #e2e8f0
}
.layers-dock-header button {
  color: #8b92a8
}
.layers-dock-header button:hover {
  background: #343a42;
  color: #e2e8f0
}
#layersPanel {
  background: #262b31
}
.layer-item {
  border-bottom-color: #2b3036;
  color: #9ca3af
}
.layer-item:hover {
  background: #343a42
}
.layer-item.active {
  background: var(--cosmos-primary);
  color: #151515
}
.layer-actions button {
  border-color: #343a42;
  background: #1f2328;
  color: #9ca3af
}
.layer-actions button:hover {
  border-color: var(--cosmos-primary);
  color: #93c5fd
}
.color-card,
.gradient-card {
  background: #262b31;
  border-color: #2b3036;
  box-shadow: none
}
.color-swatch-input {
  border-color: #343a42;
  background: #151515
}
.color-swatch-input:hover {
  border-color: var(--cosmos-primary)
}
.gradient-strip {
  border-color: #2b3036
}
.gradient-stop-item {
  color: #94a3b8
}
.gradient-arrow {
  color: #6b7280
}
.dir-pill {
  border-color: #2b3036;
  background: #262b31
}
.dir-pill:hover {
  color: #93c5fd;
  border-color: var(--cosmos-primary)
}
.dir-pill.active {
  background: #151515;
  border-color: var(--cosmos-primary);
  color: #93c5fd
}
.estampa-tipo-pill {
  border-color: #2b3036;
  background: #262b31;
  color: #9ca3af
}
.estampa-tipo-pill:hover {
  color: #93c5fd;
  border-color: var(--cosmos-primary)
}
.estampa-tipo-pill.active {
  background: #151515;
  border-color: var(--cosmos-primary);
  color: #93c5fd
}
.estilo-magico-toggle {
  border-color: #2b3036;
  background: #262b31;
  color: #9ca3af
}
.estilo-magico-toggle.open,
.estilo-magico-toggle:hover {
  color: #93c5fd;
  border-color: var(--cosmos-primary)
}
.estampa-tipo-pills {
  border-color: #2b3036;
  background: #1f2328;
  box-shadow: 0 18px 42px rgba(0,0,0,.34)
}
.id-card {
  background: #262b31;
  border-color: #2b3036;
  box-shadow: none
}
.id-input {
  border-color: #343a42;
  background: #151515;
  color: #e2e8f0
}
.id-input:focus {
  border-color: var(--cosmos-primary)
}
.id-color-item {
  background: #151515;
  border-color: #343a42
}
.id-color-item:hover {
  border-color: var(--cosmos-primary)
}
.btn-preset {
  background: #151515;
  border-color: #343a42;
  color: #93c5fd
}
.btn-preset:hover {
  background: var(--cosmos-primary);
  color: #151515
}
.btn-upload-escudo {
  border-color: #343a42;
  background: #151515;
  color: #93c5fd
}
.btn-upload-escudo:hover {
  background: #2b3036;
  border-color: var(--cosmos-primary);
  color: #bfdbfe
}
.btn-remove-estampa {
  background: #262b31;
  border-color: #343a42;
  color: #9ca3af
}
* {
  scrollbar-width: thin;
  scrollbar-color: rgba(59,130,246,0.45) rgba(31,35,40,0.78)
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px
}
::-webkit-scrollbar-track {
  background: rgba(31,35,40,.78)
}
::-webkit-scrollbar-thumb {
  background: rgba(59,130,246,.44);
  border: 2px solid rgba(31,35,40,.78);
  border-radius: 999px
}
::-webkit-scrollbar-thumb:hover {
  background: rgba(59,130,246,.68)
}
.topbar {
  box-shadow: 0 10px 30px rgba(0,0,0,.34)
}
.brand-sub {
  opacity: .82
}
.panel {
  padding: 22px 18px
}
.panel-content h3 {
  margin-bottom: 22px;
  letter-spacing: .02em
}
.catalogo-filtros,
.preset-categorias {
  gap: 8px;
  margin-bottom: 16px
}
.catalogo-chip,
.preset-categoria-chip {
  min-height: 28px;
  padding: 7px 11px;
  font-size: 11px;
  letter-spacing: .02em
}
#presets-grid,
.modelos-grid {
  gap: 12px
}
.modelo-card {
  padding: 14px 10px 12px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12)
}
.modelo-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.18)
}
.modelo-card.active {
  box-shadow: 0 0 0 1px rgba(59,130,246,.34),0 14px 28px rgba(0,0,0,.2)
}
#presets-grid > div {
  border-radius: 12px!important;
  background: #262b31;
  box-shadow: 0 8px 20px rgba(0,0,0,.12)
}
#presets-grid > div:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(0,0,0,.18)
}
#presets-grid > div img {
  border-radius: 10px!important
}
.viewer-wrapper {
  border-left: 1px solid rgba(17,19,21,.08);
  border-right: 1px solid rgba(17,19,21,.08);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.7)
}
#viewer canvas {
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.22))
}
.preview-container {
  gap: 10px
}
.preview-card {
  border-radius: 14px;
  padding: 11px 7px 9px;
  box-shadow: 0 8px 20px rgba(0,0,0,.12)
}
.preview-card .preview-item {
  border-radius: 10px
}
.preview-info {
  border: 1px solid #2b3036
}
.botao-showroom {
  border-color: rgba(59,130,246,.36);
  color: #93c5fd
}
.botao-showroom:hover {
  background: rgba(59,130,246,.08);
  border-color: rgba(59,130,246,.72);
  color: #bfdbfe
}
.botao-comprar {
  min-height: 48px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 10px 24px rgba(59,130,246,.2);
  letter-spacing: .04em;
  text-transform: uppercase
}
.botao-comprar:hover {
  transform: translateY(-1px)
}
.color-card,
.gradient-card,
.id-card {
  border-radius: 14px
}
.layers-toggle {
  box-shadow: 0 12px 26px rgba(0,0,0,.22)
}
.layers-dock-panel {
  box-shadow: 0 22px 44px rgba(0,0,0,.28)
}
.icon-bar {
  width: 98px;
  padding: 22px 8px;
  gap: 8px;
  justify-content: flex-start
}
.icon {
  width: 74px;
  min-height: 66px;
  height: auto;
  margin-bottom: 0;
  flex-direction: column;
  gap: 6px;
  border: 1px solid rgba(255,255,255,.07);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: #b8c0cc;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transform: none
}
.icon i,
.icon svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0
}
.icon-label {
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: inherit;
  opacity: .74
}
.icon:hover {
  background: #262b31;
  color: #93c5fd;
  border-color: rgba(59,130,246,.28);
  transform: translateY(-1px)
}
.icon.active {
  background: var(--cosmos-primary);
  color: #151515;
  border-color: var(--cosmos-primary);
  box-shadow: 0 12px 24px rgba(59,130,246,.2)
}
.icon.icon-disabled {
  opacity: .45
}
.icon.active .icon-label {
  opacity: 1
}
@media (min-width:769px) {
  .sidebar.left {
    width: 428px
  }
  .icon-bar {
    width: 98px;
    padding-top: 22px
  }
  .icon {
    width: 74px;
    min-height: 66px;
    height: auto;
    margin-bottom: 0
  }
}
@media (max-width:768px) {
  .icon-bar {
    height: 70px;
    gap: 6px;
    padding: 6px 8px
  }
  .icon {
    width: 58px;
    min-height: 54px;
    height: auto;
    gap: 4px;
    border-radius: 12px
  }
  .icon i,
  .icon svg {
    width: 20px;
    height: 20px
  }
  .icon-label {
    font-size: 8px;
    letter-spacing: .06em
  }
}
.preview-container {
  margin: 0;
  padding: 4px 0 2px
}
.preview-card {
  background: #20252b;
  border-color: #343a42
}
.preview-card:hover {
  border-color: rgba(59,130,246,.42)
}
.preview-label {
  color: #aeb6c2;
  font-size: 10px
}
.preview-info {
  margin: 0;
  padding: 14px;
  background: #20252b;
  border: 1px solid #343a42;
  border-radius: 12px
}
.preview-info p {
  margin: 8px 0;
  font-size: 13px
}
.preview-info strong {
  color: #9ca3af
}
.preview-info span {
  color: #f8fafc
}
.technical-panel {
  margin: 0;
  border: 1px solid #343a42;
  border-radius: 12px;
  background: #20252b;
  color: #f8fafc
}
.technical-panel-toggle {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 42px 13px 14px;
  cursor: pointer;
  list-style: none;
  user-select: none
}
.technical-panel-toggle::-webkit-details-marker {
  display: none
}
.technical-panel-toggle::after {
  content: "+";
  position: absolute;
  right: 14px;
  top: 50%;
  width: 22px;
  height: 22px;
  border: 1px solid #343a42;
  border-radius: 50%;
  color: #93c5fd;
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  text-align: center;
  transform: translateY(-50%)
}
.technical-panel[open] .technical-panel-toggle::after {
  content: "-"
}
.technical-panel-toggle span {
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase
}
.technical-panel-toggle small {
  color: #8b92a0;
  font-size: 11px;
  font-weight: 600
}
.technical-panel-body {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 0 14px 14px
}
.technical-field {
  display: flex;
  flex-direction: column;
  gap: 6px
}
.technical-field > span,
.technical-grade-header span,
.technical-grade-label {
  color: #aeb6c2;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase
}
.technical-grade-grid input,
.technical-input,
.technical-textarea {
  width: 100%;
  border: 1px solid #343a42;
  border-radius: 8px;
  background: #151a20;
  color: #f8fafc;
  font-size: 13px
}
.technical-input {
  min-height: 38px;
  padding: 9px 10px
}
.technical-textarea {
  min-height: 82px;
  padding: 10px;
  resize: vertical
}
.technical-input::placeholder,
.technical-textarea::placeholder {
  color: #6b7280
}
.technical-grade {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-top: 2px
}
.technical-grade-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 10px
}
.technical-grade-header small {
  color: #7f8792;
  font-size: 10px;
  font-weight: 600;
  white-space: nowrap
}
.technical-grade-group {
  display: flex;
  flex-direction: column;
  gap: 7px
}
.technical-grade-grid {
  display: grid;
  grid-template-columns: repeat(4,minmax(0,1fr));
  gap: 6px
}
.technical-grade-grid label {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0
}
.technical-grade-grid label span {
  color: #8b92a0;
  font-size: 10px;
  font-weight: 800;
  text-align: center
}
.technical-grade-grid input {
  height: 32px;
  padding: 6px 4px;
  text-align: center
}
.technical-grade-summary {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(250,204,21,.16);
  border-radius: 8px;
  background: rgba(250,204,21,.06);
  color: #d7dee8;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35
}
.technical-panel-footer {
  display: flex;
  flex-direction: column;
  gap: 9px;
  padding-top: 2px
}
.technical-status {
  color: #9ca3af;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35
}
.technical-clear-button {
  min-height: 36px;
  padding: 9px 10px;
  border: 1px solid #343a42;
  border-radius: 9px;
  background: 0 0;
  color: #b8c0cc;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  cursor: pointer
}
.technical-clear-button:hover {
  border-color: rgba(250,204,21,.45);
  background: rgba(250,204,21,.06);
  color: #93c5fd
}
.commercial-highlight {
  padding: 13px 14px;
  border: 1px solid rgba(59,130,246,.24);
  border-radius: 14px;
  background: linear-gradient(180deg,rgba(59,130,246,.12),rgba(59,130,246,.04))
}
.price-label {
  display: block;
  margin-bottom: 6px;
  color: #aeb6c2;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1;
  text-transform: uppercase
}
.preview-price {
  margin: 0;
  color: #93c5fd;
  font-size: 20px;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: 0
}
.product-price {
  color: #93c5fd;
  font-size: 21px;
  font-weight: 800
}
.product-minimum {
  margin-top: 8px;
  color: #aeb6c2;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.35
}
.commerce-disclaimer {
  margin: 6px 0 0;
  color: #8b95a3;
  font-size: 10px;
  font-weight: 600;
  line-height: 1.3
}
.right-actions {
  display: flex;
  flex-direction: column;
  gap: 9px
}
.right-actions .botao-comprar {
  order: 1;
  min-height: 54px;
  padding: 16px 14px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: linear-gradient(135deg,var(--cosmos-primary-strong),var(--cosmos-primary));
  color: #151515;
  font-size: 15px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
  box-shadow: 0 14px 28px rgba(59,130,246,.22)
}
.right-actions .botao-comprar:hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
  box-shadow: 0 18px 34px rgba(59,130,246,.3)
}
.right-actions .botao-showroom {
  order: 2;
  margin: 0;
  padding: 12px;
  border-color: #343a42;
  background: 0 0;
  color: #b8c0cc;
  font-size: 12px;
  font-weight: 700
}
.right-actions .botao-showroom:hover {
  border-color: rgba(59,130,246,.52);
  background: rgba(59,130,246,.06);
  color: #93c5fd
}
.secondary-actions-note {
  order: 3;
  color: #7f8792;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.35;
  text-align: center
}
@media (max-width:768px) {
  .commercial-highlight {
    padding: 14px
  }
}
#menuToggle.project-menu-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(59,130,246,.34);
  border-radius: 12px;
  background: rgba(31,35,40,.88);
  color: #f8fafc;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: .02em;
  white-space: nowrap;
  box-shadow: 0 10px 22px rgba(0,0,0,.2),inset 0 1px 0 rgba(255,255,255,.06)
}
#menuToggle.project-menu-button:hover {
  background: rgba(59,130,246,.12);
  border-color: rgba(59,130,246,.66);
  color: #bfdbfe;
  transform: translateY(-1px)
}
.project-menu-icon {
  color: #93c5fd;
  font-size: 14px;
  line-height: 1
}
.menu-dropdown {
  top: 64px;
  min-width: 220px;
  padding: 6px;
  border: 1px solid rgba(59,130,246,.18);
  border-radius: 14px;
  background: #1f2328;
  box-shadow: 0 18px 42px rgba(0,0,0,.34)
}
.menu-dropdown button {
  border-radius: 10px;
  padding: 12px 13px;
  color: #e5e7eb;
  font-size: 13px;
  font-weight: 700
}
.menu-dropdown button:hover {
  background: rgba(59,130,246,.1);
  color: #93c5fd
}
@media (max-width:768px) {
  #menuToggle.project-menu-button {
    min-height: 36px;
    padding: 9px 11px;
    font-size: 12px
  }
  .menu-dropdown {
    position: fixed;
    top: 64px;
    right: 10px;
    left: auto;
    width: min(220px,calc(100vw - 20px));
    min-width: 0
  }
}
.viewer-wrapper {
  background-image: radial-gradient(circle at 50% 46%,rgba(255,255,255,.82) 0,rgba(255,255,255,.62) 42%,rgba(231,236,244,.5) 100%),url("assets/backgrounds/studio-demo.png");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat
}
#viewer {
  background: 0 0
}
#viewer canvas {
  background: 0 0!important
}
:root {
  --cosmos-card-radius: 14px;
  --cosmos-card-bg: #242930;
  --cosmos-card-bg-hover: #2A3037;
  --cosmos-card-border: #343A42;
  --cosmos-card-border-hover: rgba(59,130,246,0.34);
  --cosmos-card-shadow: 0 10px 24px rgba(0,0,0,0.16);
  --cosmos-card-shadow-hover: 0 14px 30px rgba(0,0,0,0.22)
}
#presets-grid > div,
.color-card,
.commercial-highlight,
.gradient-card,
.id-card,
.modelo-card,
.preview-card,
.preview-info {
  border-radius: var(--cosmos-card-radius)!important;
  border-color: var(--cosmos-card-border);
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.012)),var(--cosmos-card-bg);
  box-shadow: var(--cosmos-card-shadow);
  transition: transform 180ms ease,border-color 180ms ease,background 180ms ease,box-shadow 180ms ease,opacity 180ms ease
}
#presets-grid > div:hover,
.color-card:hover,
.gradient-card:hover,
.id-card:hover,
.modelo-card:hover,
.preview-card:hover {
  background: linear-gradient(180deg,rgba(255,255,255,.052),rgba(255,255,255,.018)),var(--cosmos-card-bg-hover);
  border-color: var(--cosmos-card-border-hover)!important;
  box-shadow: var(--cosmos-card-shadow-hover);
  transform: translateY(-2px)
}
.modelo-card {
  padding: 14px 11px 13px;
  border: 1px solid var(--cosmos-card-border)
}
.modelo-card-icon {
  width: 76px;
  height: 76px;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: #171a1e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04)
}
.modelo-card-thumb {
  border-radius: 11px
}
.modelo-card-info strong {
  color: #f1f5f9;
  font-size: 11.5px;
  font-weight: 750
}
.modelo-card-badge {
  background: rgba(59,130,246,.12);
  color: #93c5fd;
  border: 1px solid rgba(59,130,246,.18)
}
.modelo-card.active {
  border-color: rgba(59,130,246,.76)!important;
  background: linear-gradient(180deg,rgba(59,130,246,.1),rgba(255,255,255,.018)),#262b31;
  box-shadow: 0 0 0 1px rgba(59,130,246,.28),0 16px 32px rgba(0,0,0,.24)
}
.modelo-card.active .modelo-card-icon {
  border-color: rgba(59,130,246,.28);
  background: #151515
}
#presets-grid > div {
  padding: 7px!important;
  border: 1px solid var(--cosmos-card-border)!important;
  overflow: hidden
}
#presets-grid > div[style*="3b82f6"],
#presets-grid > div[style*="59,130,246"] {
  border-color: rgba(59,130,246,.76)!important;
  box-shadow: 0 0 0 1px rgba(59,130,246,.28),0 16px 32px rgba(0,0,0,.24)!important
}
#presets-grid > div img {
  display: block;
  width: 100%;
  border-radius: 12px!important;
  background: #171a1e
}
#presets-grid > div p,
#presets-grid > div span,
#presets-grid > div strong {
  color: #f1f5f9
}
.preview-card {
  padding: 12px 8px 10px;
  border: 1px solid var(--cosmos-card-border)
}
.preview-card .preview-item {
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 12px;
  background: #171a1e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04)
}
.preview-card .preview-item.active {
  border-color: rgba(59,130,246,.76);
  box-shadow: 0 0 0 1px rgba(59,130,246,.22),inset 0 1px 0 rgba(255,255,255,.05)
}
.color-card-label,
.preview-label {
  color: #b8c0cc
}
.commercial-highlight,
.preview-info {
  border: 1px solid var(--cosmos-card-border)
}
.commercial-highlight {
  border-color: rgba(59,130,246,.26);
  box-shadow: 0 10px 24px rgba(0,0,0,.14)
}
.color-card,
.gradient-card,
.id-card {
  border: 1px solid var(--cosmos-card-border)
}
.modelo-card {
  gap: 9px;
  padding: 14px 10px 13px
}
.modelo-card-icon {
  width: 100%;
  height: 102px;
  border: 1px solid rgba(255,255,255,.035);
  border-radius: 12px;
  background: linear-gradient(180deg,rgba(255,255,255,.035),rgba(255,255,255,.006));
  box-shadow: none;
  padding: 3px
}
.modelo-card-thumb {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 10px;
  filter: drop-shadow(0 10px 14px rgba(0,0,0,.2));
  transform: scale(1.08);
  transform-origin: center
}
.modelo-card[data-model-id=polo] .modelo-card-thumb {
  width: 86%!important;
  height: 86%!important;
  margin: auto;
  transform: scale(1)!important
}
.modelo-card[data-model-id=polo] .modelo-card-icon {
  align-items: center;
  justify-content: center;
  padding: 10px 12px
}
.modelo-card:hover .modelo-card-icon {
  border-color: rgba(59,130,246,.16);
  background: linear-gradient(180deg,rgba(255,255,255,.048),rgba(255,255,255,.010))
}
.modelo-card.active .modelo-card-icon {
  border-color: rgba(59,130,246,.24);
  background: linear-gradient(180deg,rgba(59,130,246,.08),rgba(255,255,255,.012));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04)
}
.modelo-card-info {
  min-height: 30px;
  justify-content: flex-start
}
#presets-grid,
.modelos-grid {
  gap: 14px
}
#presets-grid > div,
.modelo-card {
  position: relative;
  isolation: isolate;
  border-radius: 14px!important;
  border: 1px solid rgba(255,255,255,.075)!important;
  background: linear-gradient(180deg,rgba(255,255,255,.065),rgba(255,255,255,.016)),#20252b!important;
  box-shadow: 0 14px 30px rgba(0,0,0,.22),inset 0 1px 0 rgba(255,255,255,.055);
  transform: translateY(0);
  transition: transform 180ms ease,border-color 180ms ease,box-shadow 180ms ease,background 180ms ease
}
#presets-grid > div::before,
.modelo-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  border-radius: inherit;
  background: linear-gradient(135deg,rgba(59,130,246,.12),transparent 42%);
  opacity: 0;
  transition: opacity 180ms ease
}
.modelo-card {
  min-height: 172px;
  padding: 12px 10px 13px
}
.modelo-card-icon {
  height: 112px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.07);
  background: radial-gradient(circle at 50% 18%,rgba(255,255,255,.075),transparent 54%),#15191e;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.045)
}
.modelo-card-thumb {
  transform: scale(1.13);
  filter: drop-shadow(0 14px 18px rgba(0,0,0,.28))
}
.modelo-card-info {
  width: 100%;
  min-height: 34px;
  justify-content: center
}
.modelo-card-info strong {
  max-width: 100%;
  color: #f4f7fb;
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2
}
.modelo-card-badge {
  margin-top: 2px;
  border: 1px solid rgba(59,130,246,.18);
  background: rgba(59,130,246,.105);
  color: #93c5fd;
  font-size: 9.5px;
  letter-spacing: 0
}
#presets-grid > div {
  padding: 8px!important;
  min-height: 154px
}
#presets-grid > div img {
  aspect-ratio: 1.08/1!important;
  object-fit: contain!important;
  border-radius: 11px!important;
  background: radial-gradient(circle at 50% 18%,rgba(255,255,255,.075),transparent 58%),#15191e!important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
  transition: transform 180ms ease,filter 180ms ease
}
#presets-grid > div > div:last-child {
  margin-top: 8px!important;
  min-height: 30px;
  color: #f4f7fb;
  font-size: 12px!important;
  font-weight: 720;
  line-height: 1.2;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center
}
#presets-grid > div:hover,
.modelo-card:hover {
  border-color: rgba(59,130,246,.34)!important;
  background: linear-gradient(180deg,rgba(255,255,255,.088),rgba(255,255,255,.024)),#262c33!important;
  box-shadow: 0 18px 38px rgba(0,0,0,.3),inset 0 1px 0 rgba(255,255,255,.075);
  transform: translateY(-2px)
}
#presets-grid > div:hover::before,
#presets-grid > div[style*="3b82f6"]::before,
#presets-grid > div[style*="59,130,246"]::before,
.modelo-card.active::before,
.modelo-card:hover::before {
  opacity: 1
}
.modelo-card:hover .modelo-card-icon {
  border-color: rgba(59,130,246,.22);
  background: radial-gradient(circle at 50% 18%,rgba(59,130,246,.085),transparent 58%),#171b20
}
#presets-grid > div:hover img {
  transform: scale(1.035);
  filter: drop-shadow(0 12px 18px rgba(0,0,0,.28))
}
#presets-grid > div[style*="3b82f6"],
#presets-grid > div[style*="59,130,246"],
.modelo-card.active {
  border-color: rgba(59,130,246,.86)!important;
  background: linear-gradient(180deg,rgba(59,130,246,.13),rgba(255,255,255,.026)),#272d34!important;
  box-shadow: 0 0 0 1px rgba(59,130,246,.34),0 20px 42px rgba(0,0,0,.34)!important
}
.modelo-card.active .modelo-card-icon {
  border-color: rgba(59,130,246,.34);
  background: radial-gradient(circle at 50% 18%,rgba(59,130,246,.13),transparent 58%),#15191e
}
#presets-grid > div[style*="3b82f6"] > div:last-child,
#presets-grid > div[style*="59,130,246"] > div:last-child,
.modelo-card.active .modelo-card-info strong {
  color: #bfdbfe
}
.botao-comprar,
.botao-showroom,
.btn-buy,
.btn-preset,
.btn-remove-estampa,
.btn-save-project,
.btn-upload-escudo,
.catalogo-chip,
.color-card,
.cor,
.dir-pill,
.estampa-tipo-pill,
.gradient-card,
.icon,
.id-card,
.layer-item,
.menu-dropdown button,
.partes button,
.preset-categoria-chip,
.preview-card,
.project-menu-button,
.topbar-btn,
button,
input,
select,
textarea {
  transition: transform 150ms ease,border-color 150ms ease,background-color 150ms ease,color 150ms ease,box-shadow 150ms ease,filter 150ms ease,opacity 150ms ease
}
.botao-comprar:hover,
.botao-showroom:hover,
.btn-buy:hover,
.btn-preset:hover,
.btn-remove-estampa:hover,
.btn-save-project:hover,
.btn-upload-escudo:hover,
.catalogo-chip:hover,
.dir-pill:hover,
.estampa-tipo-pill:hover,
.menu-dropdown button:hover,
.partes button:hover,
.preset-categoria-chip:hover,
.project-menu-button:hover,
.topbar-btn:hover,
button:hover {
  transform: translateY(-1px)
}
.botao-comprar:active,
.botao-showroom:active,
.btn-buy:active,
.btn-preset:active,
.btn-remove-estampa:active,
.btn-save-project:active,
.btn-upload-escudo:active,
.catalogo-chip:active,
.dir-pill:active,
.estampa-tipo-pill:active,
.menu-dropdown button:active,
.partes button:active,
.preset-categoria-chip:active,
.project-menu-button:active,
.topbar-btn:active,
button:active {
  transform: translateY(0) scale(.985)
}
.icon:hover {
  transform: translateY(-1px);
  filter: brightness(1.08)
}
.icon:active {
  transform: translateY(0) scale(.98)
}
.catalogo-chip.active,
.dir-pill.active,
.estampa-tipo-pill.active,
.icon.active,
.partes button.active,
.preset-categoria-chip.active {
  box-shadow: 0 0 0 1px rgba(59,130,246,.26),0 8px 18px rgba(59,130,246,.12)
}
.color-card:hover,
.gradient-card:hover,
.id-card:hover,
.preview-card:hover {
  transform: translateY(-1px);
  filter: brightness(1.035)
}
.layer-item:hover {
  transform: translateX(1px)
}
input:focus,
select:focus,
textarea:focus {
  border-color: rgba(59,130,246,.72);
  box-shadow: 0 0 0 2px rgba(59,130,246,.13)
}
#presets-grid > div:focus-visible,
.catalogo-chip:focus-visible,
.dir-pill:focus-visible,
.estampa-tipo-pill:focus-visible,
.icon:focus-visible,
.modelo-card:focus-visible,
.partes button:focus-visible,
.preset-categoria-chip:focus-visible,
.project-menu-button:focus-visible,
.topbar-btn:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 2px solid rgba(59,130,246,.72);
  outline-offset: 2px
}
#presets-grid > div,
.color-card,
.gradient-card,
.id-card,
.modelo-card,
.preview-card {
  will-change: transform
}
.modelo-card.modelo-card--busy,
.modelo-card:disabled {
  cursor: wait!important;
  opacity: .66;
  pointer-events: none;
  transform: none!important;
  filter: none!important
}
@media (prefers-reduced-motion:reduce) {
  *,
  ::after,
  ::before {
    transition-duration: 0s!important;
    animation-duration: 0s!important;
    animation-iteration-count: 1!important;
    scroll-behavior: auto!important
  }
}
:root {
  --studio-topbar-height: 60px;
  --studio-left-width: clamp(300px, 24vw, 428px);
  --studio-right-width: clamp(250px, 18vw, 320px);
  --studio-iconbar-width: clamp(78px, 6vw, 98px);
  --studio-icon-width: clamp(58px, 4.6vw, 74px);
  --studio-icon-height: clamp(56px, 4.2vw, 66px);
  --studio-panel-padding-y: clamp(16px, 1.4vw, 22px);
  --studio-panel-padding-x: clamp(14px, 1.2vw, 18px)
}
body,
html {
  min-width: 0;
  min-height: 100%
}
body {
  min-height: 100svh
}
@media (min-width:769px) {
  .topbar {
    height: var(--studio-topbar-height);
    padding-inline: clamp(18px,2vw,30px)
  }
  .app {
    margin-top: var(--studio-topbar-height);
    height: calc(100svh - var(--studio-topbar-height));
    min-height: 0;
    max-width: 100%;
    overflow: hidden
  }
  .sidebar.left {
    width: var(--studio-left-width);
    flex: 0 0 var(--studio-left-width);
    min-width: 0;
    max-width: 428px;
    min-height: 0
  }
  .icon-bar {
    width: var(--studio-iconbar-width);
    flex: 0 0 var(--studio-iconbar-width);
    min-width: 0
  }
  .icon {
    width: var(--studio-icon-width);
    min-height: var(--studio-icon-height)
  }
  .panel,
  .panel-wrapper {
    min-width: 0;
    min-height: 0
  }
  .panel {
    padding: var(--studio-panel-padding-y) var(--studio-panel-padding-x)
  }
  .viewer-wrapper {
    flex: 1 1 auto;
    min-width: 0;
    min-height: 0;
    overflow: hidden
  }
  #viewer {
    min-width: 0;
    min-height: 0
  }
  .commercial-highlight,
  .preview-card,
  .preview-info,
  .technical-panel {
    min-width: 0
  }
  .preview-container {
    grid-template-columns: repeat(3,minmax(0,1fr))
  }
}
@media (min-width:769px) {
  :root {
    --studio-topbar-height: 60px;
    --studio-iconbar-width: clamp(72px, 5.2vw, 88px);
    --studio-icon-width: clamp(52px, 3.8vw, 62px);
    --studio-icon-height: clamp(50px, 3.6vw, 58px);
    --studio-panel-padding-y: clamp(12px, 1vw, 16px);
    --studio-panel-padding-x: clamp(12px, 1vw, 16px)
  }
  .topbar {
    min-height: var(--studio-topbar-height);
    padding-block: 0
  }
  .logo-topbar {
    height: clamp(108px,10.8vh,140px);
    max-height: calc(var(--studio-topbar-height) + 40px)
  }
  .brand-sub {
    bottom: 2px;
    padding-top: 2px;
    font-size: 9px
  }
  .topbar-left,
  .topbar-right {
    min-width: clamp(132px,12vw,180px)
  }
  .icon-bar {
    padding: clamp(12px,1.3vh,18px) 7px;
    gap: clamp(5px,.8vh,7px)
  }
  .icon {
    gap: 4px;
    border-radius: 13px
  }
  .icon i,
  .icon svg {
    width: clamp(19px,1.8vw,22px);
    height: clamp(19px,1.8vw,22px)
  }
  .icon-label {
    font-size: 8.5px
  }
  .panel-content h3 {
    margin-bottom: clamp(14px,1.4vh,18px);
    font-size: clamp(17px, 1.4vw, 20px)
  }
  .catalogo-filtros,
  .preset-categorias {
    margin-bottom: clamp(10px,1vh,13px);
    gap: 6px
  }
  #presets-grid,
  .modelos-grid {
    gap: clamp(9px,.9vw,12px)
  }
  .modelo-card {
    min-height: clamp(138px,18vh,158px);
    padding: 10px 8px 11px;
    gap: 7px
  }
  .modelo-card-icon {
    height: clamp(82px,12.8vh,96px)
  }
  .modelo-card-thumb {
    transform: scale(1.08)
  }
  #presets-grid > div {
    min-height: clamp(126px,16vh,144px);
    padding: 7px!important
  }
  #presets-grid > div > div:last-child {
    margin-top: 6px!important;
    min-height: 26px;
    font-size: 11px!important
  }
  .preview-container {
    gap: 7px;
    padding: 2px 0 0
  }
  .preview-card {
    padding: 8px 6px 7px
  }
  .preview-label {
    margin-top: 6px;
    font-size: 9px
  }
  .preview-info {
    padding: 11px 12px
  }
  .preview-info p {
    margin: 5px 0;
    font-size: 12px
  }
  .technical-panel-toggle {
    padding: 10px 38px 10px 12px
  }
  .technical-panel-body {
    gap: 9px;
    padding: 0 12px 12px
  }
  .technical-grade-grid {
    gap: 5px
  }
  .technical-panel-footer {
    gap: 7px
  }
  .commercial-highlight {
    padding: 11px 12px
  }
  .preview-price,
  .product-price {
    font-size: clamp(18px, 1.55vw, 20px)
  }
  .product-minimum {
    margin-top: 6px;
    font-size: 11px
  }
  .commerce-disclaimer {
    margin-top: 5px;
    font-size: 9px
  }
  .right-actions {
    gap: 7px
  }
  .right-actions .botao-comprar {
    min-height: 46px;
    padding: 13px 12px;
    font-size: 13px
  }
  .botao-showroom,
  .btn-save-project {
    padding: 10px 11px;
    font-size: 12px
  }
}
@media (min-width:769px) {
  :root {
    --studio-left-width: clamp(260px, 19vw, 348px);
    --studio-right-width: clamp(280px, 18vw, 340px);
    --studio-iconbar-width: clamp(58px, 4.4vw, 74px);
    --studio-icon-width: clamp(44px, 3.35vw, 54px);
    --studio-icon-height: clamp(44px, 3.25vw, 52px);
    --studio-panel-padding-y: clamp(10px, 0.85vw, 14px);
    --studio-panel-padding-x: clamp(10px, 0.9vw, 14px)
  }
  .sidebar.left {
    max-width: 348px
  }
  .icon-bar {
    padding: clamp(10px,1vh,14px) 5px;
    gap: clamp(4px,.55vh,6px)
  }
  .icon {
    border-radius: 11px;
    gap: 3px
  }
  .icon i,
  .icon svg {
    width: clamp(17px,1.35vw,20px);
    height: clamp(17px,1.35vw,20px)
  }
  .icon-label {
    font-size: clamp(7.2px, .62vw, 8.2px);
    letter-spacing: .05em
  }
  .panel-content h3 {
    margin-bottom: clamp(11px,1vh,15px);
    font-size: clamp(16px, 1.15vw, 18px)
  }
  .catalogo-chip,
  .preset-categoria-chip {
    min-height: 24px;
    padding: 5px 8px;
    font-size: 10px
  }
  #presets-grid,
  .modelos-grid {
    gap: clamp(7px,.72vw,10px)
  }
  .modelo-card {
    min-height: clamp(116px,15vh,142px);
    padding: 8px 7px 9px;
    gap: 6px;
    border-radius: 12px!important
  }
  .modelo-card-icon {
    height: clamp(68px,10.5vh,84px);
    border-radius: 10px
  }
  .modelo-card-thumb {
    transform: scale(1.04);
    filter: drop-shadow(0 9px 13px rgba(0,0,0,.24))
  }
  .modelo-card-info {
    min-height: 24px
  }
  .modelo-card-info strong {
    font-size: clamp(10.5px, .82vw, 11.5px)
  }
  .modelo-card-badge {
    font-size: 8.6px;
    padding: 2px 6px
  }
  #presets-grid > div {
    min-height: clamp(108px,13.5vh,130px);
    padding: 6px!important;
    border-radius: 12px!important
  }
  #presets-grid > div img {
    border-radius: 9px!important
  }
  #presets-grid > div > div:last-child {
    min-height: 22px;
    margin-top: 5px!important;
    font-size: 10.4px!important
  }
  .color-card,
  .gradient-card,
  .id-card {
    padding: clamp(10px,.9vw,12px)
  }
  .color-card-label {
    font-size: 9.5px
  }
  .gradient-stops-row,
  .id-color-row {
    gap: 6px
  }
  .id-color-item {
    padding: 5px 7px;
    gap: 6px;
    min-width: 0
  }
  .gradient-stop-item {
    gap: 6px;
    min-width: 0
  }
  .gradient-stop-item .color-swatch-input,
  .id-color-item .color-swatch-input {
    width: 34px;
    height: 34px;
    flex-shrink: 0
  }
  .gradient-stop-item > span,
  .id-color-item span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap
  }
  .dir-pill {
    padding: 6px 4px;
    font-size: 10px
  }
  .preview-container {
    gap: 5px
  }
  .preview-card {
    padding: 7px 5px 6px;
    border-radius: 12px
  }
  .preview-card .preview-item {
    border-radius: 9px
  }
  .preview-label {
    margin-top: 5px;
    font-size: 8.4px
  }
  .preview-info {
    padding: 9px 10px;
    border-radius: 11px
  }
  .preview-info p {
    margin: 4px 0;
    font-size: 11.2px
  }
  .technical-panel-toggle {
    padding: 9px 34px 9px 10px
  }
  .technical-panel-toggle span {
    font-size: 12px
  }
  .technical-panel-toggle small {
    font-size: 10px
  }
  .technical-panel-body {
    gap: 8px;
    padding: 0 10px 10px
  }
  .technical-field input,
  .technical-field textarea {
    font-size: 12px;
    min-height: 34px;
    padding: 8px 9px
  }
  .technical-field textarea {
    min-height: 68px
  }
  .technical-grade-grid input {
    height: 28px;
    font-size: 11px
  }
  .commercial-highlight {
    padding: 9px 10px;
    border-radius: 12px
  }
  .preview-price,
  .product-price {
    font-size: clamp(17px, 1.3vw, 19px)
  }
  .right-actions .botao-comprar {
    min-height: 42px;
    padding: 11px 10px;
    font-size: 12px;
    border-radius: 12px
  }
  .botao-showroom,
  .btn-save-project {
    padding: 9px 10px;
    font-size: 11.4px;
    border-radius: 11px
  }
}
@media (min-width:769px) {
  body {
    font-size: 13px;
    line-height: 1.32;
    -webkit-font-smoothing: antialiased;
    text-rendering: geometricPrecision
  }
  .brand-sub {
    font-size: 8px;
    font-weight: 650;
    letter-spacing: .075em;
    opacity: .72
  }
  #menuToggle.project-menu-button {
    min-height: 34px;
    padding: 8px 11px;
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: .01em
  }
  .menu-dropdown button {
    padding: 9px 11px;
    font-size: 12px;
    font-weight: 650
  }
  .panel-content h3 {
    color: #e8edf5;
    font-size: clamp(14.5px, 1vw, 16px);
    font-weight: 720;
    line-height: 1.15;
    letter-spacing: .01em
  }
  .catalogo-contador,
  .color-card-label,
  .commercial-highlight-label,
  .preview-label,
  .technical-field > span,
  .technical-grade-header span,
  .technical-grade-label {
    font-size: 8.6px;
    font-weight: 700;
    letter-spacing: .075em;
    line-height: 1.05;
    opacity: .82
  }
  .catalogo-chip,
  .preset-categoria-chip {
    min-height: 22px;
    padding: 4px 7px;
    border-radius: 999px;
    font-size: 9.4px;
    font-weight: 650;
    letter-spacing: 0
  }
  .icon-label {
    font-size: 7px;
    font-weight: 650;
    letter-spacing: .045em;
    opacity: .78
  }
  .icon.active .icon-label {
    opacity: .95
  }
  #presets-grid > div > div:last-child,
  .modelo-card-info strong {
    font-size: 10.2px!important;
    font-weight: 650;
    line-height: 1.16;
    letter-spacing: 0
  }
  .modelo-card-badge {
    font-size: 7.8px;
    font-weight: 650;
    letter-spacing: .015em
  }
  .preview-info p {
    font-size: 10.6px;
    line-height: 1.22
  }
  .preview-info strong {
    font-weight: 560
  }
  .preview-info span {
    font-weight: 650
  }
  .technical-panel-toggle {
    min-height: 34px
  }
  .technical-panel-toggle span {
    font-size: 10.8px;
    font-weight: 720;
    letter-spacing: .035em
  }
  .technical-panel-toggle small {
    font-size: 9.3px;
    font-weight: 520;
    line-height: 1.25;
    opacity: .78
  }
  .technical-field input,
  .technical-field textarea,
  .technical-grade-grid input,
  .technical-input,
  .technical-textarea,
  input[type=text] {
    font-size: 11.2px;
    line-height: 1.22
  }
  .technical-grade-grid label span,
  .technical-grade-header small,
  .technical-grade-summary,
  .technical-status {
    font-size: 9.4px;
    font-weight: 600;
    line-height: 1.25
  }
  .technical-clear-button {
    min-height: 31px;
    padding: 7px 9px;
    font-size: 9.6px;
    font-weight: 720;
    letter-spacing: .04em
  }
  .commercial-highlight {
    box-shadow: 0 8px 18px rgba(0,0,0,.13)
  }
  .commercial-highlight-label {
    margin-bottom: 4px
  }
  .preview-price,
  .product-price {
    font-size: clamp(15.5px, 1.15vw, 17.5px);
    font-weight: 760;
    line-height: 1.08
  }
  .product-minimum {
    margin-top: 5px;
    font-size: 10.4px;
    font-weight: 560;
    line-height: 1.28
  }
  .commerce-disclaimer {
    font-size: 8.5px;
    font-weight: 520;
    line-height: 1.22;
    opacity: .8
  }
  .right-actions .botao-comprar {
    min-height: 38px;
    padding: 9px 12px;
    font-size: 10.6px;
    font-weight: 760;
    letter-spacing: .025em
  }
  .botao-download,
  .botao-salvar,
  .botao-showroom,
  .btn-preset,
  .btn-remove-estampa,
  .btn-save-project,
  .btn-upload-escudo,
  .dir-pill,
  .partes button {
    font-size: 10.8px;
    font-weight: 650;
    line-height: 1.1;
    letter-spacing: .01em
  }
  .color-card,
  .commercial-highlight,
  .gradient-card,
  .id-card,
  .preview-info,
  .technical-panel {
    box-shadow: 0 8px 18px rgba(0,0,0,.12)
  }
}
@media (min-width:769px) {
  :root {
    --studio-topbar-height: 60px;
    --studio-left-width: clamp(248px, 18vw, 326px);
    --studio-right-width: clamp(268px, 16.8vw, 322px);
    --studio-iconbar-width: clamp(54px, 4vw, 68px);
    --studio-icon-width: clamp(40px, 3vw, 50px);
    --studio-icon-height: clamp(40px, 2.95vw, 48px);
    --studio-panel-padding-y: clamp(9px, 0.78vw, 12px);
    --studio-panel-padding-x: clamp(9px, 0.82vw, 12px)
  }
  .topbar {
    padding-inline: clamp(16px,1.55vw,24px)
  }
  .logo-topbar {
    height: clamp(96px,9.2vh,124px);
    max-height: calc(var(--studio-topbar-height) + 36px)
  }
  .brand-sub {
    font-size: 7.6px;
    padding-inline: 12px
  }
  .topbar-left,
  .topbar-right {
    min-width: clamp(118px,10.5vw,158px)
  }
  .sidebar.left {
    max-width: 326px
  }
  .icon-bar {
    padding: clamp(8px,.8vh,12px) 4px;
    gap: clamp(3px,.45vh,5px)
  }
  .icon {
    border-radius: 10px;
    gap: 2px
  }
  .icon i,
  .icon svg {
    width: clamp(16px,1.2vw,18px);
    height: clamp(16px,1.2vw,18px)
  }
  .icon-label {
    font-size: 6.8px;
    letter-spacing: .035em
  }
  .panel-content h3 {
    margin-bottom: clamp(9px,.78vh,12px);
    font-size: clamp(13.5px, .92vw, 15px)
  }
  .catalogo-filtros,
  .preset-categorias {
    margin-bottom: clamp(8px,.74vh,10px);
    gap: 5px
  }
  .catalogo-chip,
  .preset-categoria-chip {
    min-height: 20px;
    padding: 3px 6px;
    font-size: 8.8px
  }
  #presets-grid,
  .modelos-grid {
    gap: clamp(6px,.58vw,8px)
  }
  .modelo-card {
    min-height: clamp(104px,13.5vh,128px);
    padding: 7px 6px 8px;
    gap: 5px
  }
  .modelo-card-icon {
    height: clamp(60px,9.2vh,76px)
  }
  .modelo-card-thumb {
    transform: scale(1.02);
    filter: drop-shadow(0 7px 11px rgba(0,0,0,.22))
  }
  .modelo-card-info {
    min-height: 22px
  }
  .modelo-card-info strong {
    font-size: 9.8px!important;
    line-height: 1.12
  }
  .modelo-card-badge {
    font-size: 7.4px;
    padding: 2px 5px
  }
  #presets-grid > div {
    min-height: clamp(98px,12.2vh,118px);
    padding: 5px!important
  }
  #presets-grid > div > div:last-child {
    min-height: 20px;
    margin-top: 4px!important;
    font-size: 9.8px!important;
    line-height: 1.12
  }
  .color-card,
  .gradient-card,
  .id-card {
    padding: clamp(8px,.74vw,10px)
  }
  .color-card-label,
  .commercial-highlight-label,
  .preview-label,
  .technical-field > span,
  .technical-grade-header span,
  .technical-grade-label {
    font-size: 8px;
    letter-spacing: .065em
  }
  .preview-container {
    gap: 4px
  }
  .preview-card {
    padding: 6px 4px 5px
  }
  .preview-label {
    margin-top: 4px
  }
  .preview-info {
    padding: 8px 9px
  }
  .preview-info p {
    margin: 3px 0;
    font-size: 10px
  }
  .technical-panel-toggle {
    min-height: 31px;
    padding: 8px 31px 8px 9px
  }
  .technical-panel-toggle span {
    font-size: 10.2px
  }
  .technical-panel-toggle small {
    font-size: 8.8px
  }
  .technical-panel-body {
    gap: 7px;
    padding: 0 9px 9px
  }
  .technical-field input,
  .technical-field textarea {
    min-height: 31px;
    padding: 7px 8px;
    font-size: 10.7px
  }
  .technical-field textarea {
    min-height: 62px
  }
  .technical-grade-grid {
    gap: 4px
  }
  .technical-grade-grid input {
    height: 26px;
    font-size: 10.4px
  }
  .technical-grade-grid label span,
  .technical-grade-header small,
  .technical-grade-summary,
  .technical-status {
    font-size: 8.8px
  }
  .technical-clear-button {
    min-height: 29px;
    padding: 6px 8px;
    font-size: 9px
  }
  .commercial-highlight {
    padding: 8px 9px
  }
  .preview-price,
  .product-price {
    font-size: clamp(14.8px, 1.02vw, 16.4px)
  }
  .product-minimum {
    margin-top: 4px;
    font-size: 9.6px
  }
  .commerce-disclaimer {
    margin-top: 4px;
    font-size: 8px
  }
  .right-actions {
    gap: 6px
  }
  .right-actions .botao-comprar {
    min-height: 35px;
    padding: 8px 9px;
    font-size: 10px
  }
  .botao-download,
  .botao-salvar,
  .botao-showroom,
  .btn-preset,
  .btn-remove-estampa,
  .btn-save-project,
  .btn-upload-escudo,
  .dir-pill,
  .partes button {
    font-size: 10px;
    padding-block: 8px
  }
}
@media (min-width:769px) {
  :root {
    --studio-density: 0.90;
    --studio-topbar-height: 60px;
    --studio-left-width: clamp(
      calc(248px * var(--studio-density)),
      calc(18vw * var(--studio-density)),
      calc(326px * var(--studio-density))
    );
    --studio-right-width: clamp(
      calc(268px * var(--studio-density)),
      calc(16.8vw * var(--studio-density)),
      calc(322px * var(--studio-density))
    );
    --studio-iconbar-width: clamp(
      calc(54px * var(--studio-density)),
      calc(4vw * var(--studio-density)),
      calc(68px * var(--studio-density))
    );
    --studio-icon-width: clamp(
      calc(40px * var(--studio-density)),
      calc(3vw * var(--studio-density)),
      calc(50px * var(--studio-density))
    );
    --studio-icon-height: clamp(
      calc(40px * var(--studio-density)),
      calc(2.95vw * var(--studio-density)),
      calc(48px * var(--studio-density))
    );
    --studio-panel-padding-y: clamp(
      calc(9px * var(--studio-density)),
      calc(0.78vw * var(--studio-density)),
      calc(12px * var(--studio-density))
    );
    --studio-panel-padding-x: clamp(
      calc(9px * var(--studio-density)),
      calc(0.82vw * var(--studio-density)),
      calc(12px * var(--studio-density))
    );
    --studio-font-panel-title: calc(15px * var(--studio-density));
    --studio-font-body: calc(13px * var(--studio-density));
    --studio-font-label: calc(8px * var(--studio-density));
    --studio-font-small: calc(9.8px * var(--studio-density));
    --studio-font-button: calc(10.8px * var(--studio-density));
    --studio-font-price: calc(16.4px * var(--studio-density));
    --studio-radius-card: calc(12px * var(--studio-density));
    --studio-gap-tight: calc(6px * var(--studio-density));
    --studio-gap-normal: calc(8px * var(--studio-density));
    --studio-card-shadow: 0 calc(8px * var(--studio-density)) calc(18px * var(--studio-density)) rgba(0,0,0,0.12)
  }
  body {
    font-size: var(--studio-font-body)
  }
  .topbar {
    height: var(--studio-topbar-height);
    min-height: var(--studio-topbar-height);
    padding-inline: calc(24px * var(--studio-density))
  }
  .app {
    margin-top: var(--studio-topbar-height);
    height: calc(100svh - var(--studio-topbar-height))
  }
  .logo-topbar {
    height: calc(124px * var(--studio-density));
    max-height: calc(var(--studio-topbar-height) + (36px * var(--studio-density)))
  }
  .brand-sub {
    font-size: calc(7.6px * var(--studio-density));
    padding-inline: calc(12px * var(--studio-density))
  }
  .topbar-left,
  .topbar-right {
    min-width: calc(158px * var(--studio-density))
  }
  .sidebar.left {
    width: var(--studio-left-width);
    flex-basis: var(--studio-left-width);
    max-width: var(--studio-left-width)
  }
  .icon-bar {
    width: var(--studio-iconbar-width);
    flex-basis: var(--studio-iconbar-width);
    padding: calc(12px * var(--studio-density)) calc(4px * var(--studio-density));
    gap: calc(5px * var(--studio-density))
  }
  .icon {
    width: var(--studio-icon-width);
    min-height: var(--studio-icon-height);
    border-radius: calc(10px * var(--studio-density));
    gap: calc(2px * var(--studio-density))
  }
  .icon i,
  .icon svg {
    width: calc(18px * var(--studio-density));
    height: calc(18px * var(--studio-density))
  }
  .icon-label {
    font-size: calc(6.8px * var(--studio-density))
  }
  .panel {
    padding: var(--studio-panel-padding-y) var(--studio-panel-padding-x)
  }
  .panel-content h3 {
    margin-bottom: calc(12px * var(--studio-density));
    font-size: var(--studio-font-panel-title)
  }
  .catalogo-filtros,
  .preset-categorias {
    margin-bottom: calc(10px * var(--studio-density));
    gap: calc(5px * var(--studio-density))
  }
  .catalogo-chip,
  .preset-categoria-chip {
    min-height: calc(20px * var(--studio-density));
    padding: calc(3px * var(--studio-density)) calc(6px * var(--studio-density));
    font-size: calc(8.8px * var(--studio-density))
  }
  #presets-grid,
  .modelos-grid {
    gap: var(--studio-gap-normal)
  }
  .modelo-card {
    min-height: calc(128px * var(--studio-density));
    padding: calc(7px * var(--studio-density)) calc(6px * var(--studio-density)) calc(8px * var(--studio-density));
    gap: calc(5px * var(--studio-density));
    border-radius: var(--studio-radius-card)!important
  }
  .modelo-card-icon {
    height: calc(76px * var(--studio-density));
    border-radius: calc(10px * var(--studio-density))
  }
  .modelo-card-info {
    min-height: calc(22px * var(--studio-density))
  }
  #presets-grid > div > div:last-child,
  .modelo-card-info strong {
    font-size: var(--studio-font-small)!important
  }
  .modelo-card-badge {
    font-size: calc(7.4px * var(--studio-density));
    padding: calc(2px * var(--studio-density)) calc(5px * var(--studio-density))
  }
  #presets-grid > div {
    min-height: calc(118px * var(--studio-density));
    padding: calc(5px * var(--studio-density))!important;
    border-radius: var(--studio-radius-card)!important
  }
  #presets-grid > div > div:last-child {
    min-height: calc(20px * var(--studio-density));
    margin-top: calc(4px * var(--studio-density))!important
  }
  .color-card,
  .gradient-card,
  .id-card {
    padding: calc(10px * var(--studio-density))
  }
  .color-card-label,
  .commercial-highlight-label,
  .preview-label,
  .technical-field > span,
  .technical-grade-header span,
  .technical-grade-label {
    font-size: var(--studio-font-label)
  }
  .preview-container {
    gap: calc(4px * var(--studio-density))
  }
  .preview-card {
    padding: calc(6px * var(--studio-density)) calc(4px * var(--studio-density)) calc(5px * var(--studio-density));
    border-radius: var(--studio-radius-card)
  }
  .preview-label {
    margin-top: calc(4px * var(--studio-density))
  }
  .preview-info {
    padding: calc(8px * var(--studio-density)) calc(9px * var(--studio-density))
  }
  .preview-info p {
    margin: calc(3px * var(--studio-density)) 0;
    font-size: calc(10px * var(--studio-density))
  }
  .technical-panel-toggle {
    min-height: calc(31px * var(--studio-density));
    padding: calc(8px * var(--studio-density)) calc(31px * var(--studio-density)) calc(8px * var(--studio-density)) calc(9px * var(--studio-density))
  }
  .technical-panel-toggle span {
    font-size: calc(10.2px * var(--studio-density))
  }
  .technical-panel-toggle small {
    font-size: calc(8.8px * var(--studio-density))
  }
  .technical-panel-body {
    gap: calc(7px * var(--studio-density));
    padding: 0 calc(9px * var(--studio-density)) calc(9px * var(--studio-density))
  }
  .technical-field input,
  .technical-field textarea {
    min-height: calc(31px * var(--studio-density));
    padding: calc(7px * var(--studio-density)) calc(8px * var(--studio-density));
    font-size: calc(10.7px * var(--studio-density))
  }
  .technical-field textarea {
    min-height: calc(62px * var(--studio-density))
  }
  .technical-grade-grid {
    gap: calc(4px * var(--studio-density))
  }
  .technical-grade-grid input {
    height: calc(26px * var(--studio-density));
    font-size: calc(10.4px * var(--studio-density))
  }
  .technical-grade-grid label span,
  .technical-grade-header small,
  .technical-grade-summary,
  .technical-status {
    font-size: calc(8.8px * var(--studio-density))
  }
  .technical-clear-button {
    min-height: calc(29px * var(--studio-density));
    padding: calc(6px * var(--studio-density)) calc(8px * var(--studio-density));
    font-size: calc(9px * var(--studio-density))
  }
  .commercial-highlight {
    padding: calc(8px * var(--studio-density)) calc(9px * var(--studio-density))
  }
  .preview-price,
  .product-price {
    font-size: var(--studio-font-price)
  }
  .product-minimum {
    margin-top: calc(4px * var(--studio-density));
    font-size: calc(9.6px * var(--studio-density))
  }
  .commerce-disclaimer {
    margin-top: calc(4px * var(--studio-density));
    font-size: calc(8px * var(--studio-density))
  }
  .right-actions {
    gap: var(--studio-gap-tight)
  }
  .right-actions .botao-comprar {
    min-height: calc(35px * var(--studio-density));
    padding: calc(8px * var(--studio-density)) calc(9px * var(--studio-density));
    font-size: calc(10px * var(--studio-density))
  }
  .botao-download,
  .botao-salvar,
  .botao-showroom,
  .btn-preset,
  .btn-remove-estampa,
  .btn-save-project,
  .btn-upload-escudo,
  .dir-pill,
  .partes button {
    padding-block: calc(8px * var(--studio-density));
    font-size: var(--studio-font-button)
  }
  .color-card,
  .commercial-highlight,
  .gradient-card,
  .id-card,
  .preview-card,
  .preview-info,
  .technical-panel {
    box-shadow: var(--studio-card-shadow)
  }
}
@media (min-width:769px) {
  body,
  html {
    width: 100%;
    height: 100dvh;
    min-height: 100dvh;
    max-height: 100dvh;
    overflow: hidden
  }
  body {
    overscroll-behavior: none
  }
  .topbar {
    overflow: visible
  }
  .app {
    height: calc(100dvh - var(--studio-topbar-height));
    min-height: 0;
    max-height: calc(100dvh - var(--studio-topbar-height));
    overflow: hidden
  }
  .panel {
    max-height: 100%;
    overflow-y: auto;
    overscroll-behavior: contain
  }
  #viewer,
  .viewer-wrapper {
    height: 100%;
    min-height: 0;
    max-height: 100%;
    overflow: hidden
  }
  .layers-dock {
    top: calc(14px * var(--studio-density));
    left: calc(14px * var(--studio-density))
  }
  .layers-dock-controls {
    gap: calc(6px * var(--studio-density))
  }
  .layers-toggle {
    min-height: calc(92px * var(--studio-density));
    padding: calc(9px * var(--studio-density)) calc(6px * var(--studio-density));
    border-radius: calc(8px * var(--studio-density)) 0 0 calc(8px * var(--studio-density));
    font-size: calc(11px * var(--studio-density));
    font-weight: 700;
    box-shadow: 0 calc(8px * var(--studio-density)) calc(18px * var(--studio-density)) rgba(0,0,0,.16)
  }
  .layers-dock .history-controls {
    gap: calc(5px * var(--studio-density));
    margin-top: calc(6px * var(--studio-density))
  }
  .history-controls button,
  .layers-dock .history-controls button {
    width: calc(30px * var(--studio-density));
    height: calc(30px * var(--studio-density));
    border-radius: calc(8px * var(--studio-density));
    font-size: calc(14px * var(--studio-density))
  }
  .layers-dock-panel {
    width: calc(250px * var(--studio-density));
    max-height: min(calc(460px * var(--studio-density)),calc(100dvh - var(--studio-topbar-height) - (48px * var(--studio-density))));
    border-radius: 0 calc(8px * var(--studio-density)) calc(8px * var(--studio-density)) calc(8px * var(--studio-density))
  }
  .layers-dock-header {
    padding: calc(8px * var(--studio-density)) calc(10px * var(--studio-density));
    font-size: calc(12px * var(--studio-density))
  }
  .layers-dock-header button {
    width: calc(24px * var(--studio-density));
    height: calc(24px * var(--studio-density));
    border-radius: calc(5px * var(--studio-density));
    font-size: calc(17px * var(--studio-density))
  }
  #layersPanel {
    min-height: calc(96px * var(--studio-density));
    max-height: calc(min(calc(460px * var(--studio-density)),calc(100dvh - var(--studio-topbar-height) - (48px * var(--studio-density)))) - (40px * var(--studio-density)))
  }
  .layer-item {
    gap: calc(6px * var(--studio-density));
    padding: calc(7px * var(--studio-density)) calc(8px * var(--studio-density));
    font-size: calc(11px * var(--studio-density))
  }
  .layer-actions {
    gap: calc(2px * var(--studio-density))
  }
  .layer-actions button {
    width: calc(19px * var(--studio-density));
    height: calc(19px * var(--studio-density));
    border-radius: calc(4px * var(--studio-density));
    font-size: calc(10px * var(--studio-density))
  }
  #uploadModeloBtn {
    min-height: calc(32px * var(--studio-density));
    margin: calc(2px * var(--studio-density)) 0 calc(10px * var(--studio-density));
    padding: calc(8px * var(--studio-density)) calc(10px * var(--studio-density));
    border-radius: calc(9px * var(--studio-density));
    font-size: calc(10.5px * var(--studio-density));
    font-weight: 700;
    box-shadow: 0 calc(8px * var(--studio-density)) calc(16px * var(--studio-density)) rgba(0,0,0,.17),inset 0 1px 0 rgba(255,255,255,.06)
  }
}
@media (max-width:820px) {
  body,
  html {
    width: 100%;
    min-width: 0;
    min-height: 100%;
    overflow-x: hidden
  }
  body {
    overflow-y: auto;
    background: #101113
  }
  .topbar {
    height: 58px;
    padding: 0 10px;
    justify-content: space-between;
    overflow: hidden
  }
  .topbar-left {
    display: none
  }
  .topbar-center {
    flex: 1 1 auto;
    min-width: 0;
    max-width: none;
    justify-content: flex-start;
    padding-right: 96px
  }
  .topbar-right {
    position: fixed;
    top: 7px;
    right: 10px;
    left: auto;
    z-index: 5200;
    display: block!important;
    width: 86px;
    height: 42px;
    flex: 0 0 auto;
    min-width: 0;
    max-width: none;
    overflow: visible;
    transform: none
  }
  .topbar-right .menu-container {
    position: static;
    z-index: 5100
  }
  .logo-topbar {
    width: auto;
    max-width: min(220px,52vw);
    height: 96px;
    max-height: 96px;
    object-fit: contain
  }
  .brand-sub {
    display: none
  }
  .app {
    display: flex;
    flex-direction: column;
    margin-top: 58px;
    padding-bottom: calc(62px + env(safe-area-inset-bottom));
    min-height: auto;
    height: auto;
    overflow: visible
  }
  .viewer-wrapper {
    order: 1;
    width: 100%;
    height: clamp(280px,48svh,450px);
    min-height: 280px;
    flex: 0 0 auto;
    overflow: hidden
  }
  #viewer {
    width: 100%;
    height: 100%;
    min-height: 0
  }
  .sidebar.left {
    order: 2;
    width: 100%;
    min-width: 0;
    height: auto;
    display: flex;
    flex-direction: column;
    border-right: 0;
    border-top: 1px solid #2b3036;
    overflow: visible;
    padding-bottom: calc(72px + env(safe-area-inset-bottom))
  }
  .icon-bar {
    position: sticky;
    top: 58px;
    z-index: 200;
    width: 100%;
    height: auto;
    min-height: 56px;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 6px;
    padding: 7px 10px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-bottom: 1px solid #2b3036
  }
  .icon-bar::-webkit-scrollbar {
    display: none
  }
  .icon {
    flex: 0 0 auto;
    width: 54px;
    min-height: 44px;
    height: 44px;
    margin: 0;
    padding: 5px 4px;
    border-radius: 10px;
    gap: 3px;
    font-size: 0
  }
  .icon i,
  .icon svg {
    width: 18px;
    height: 18px
  }
  .icon-label {
    display: block;
    font-size: 7.5px;
    line-height: 1;
    letter-spacing: .035em;
    white-space: nowrap
  }
  .panel-wrapper {
    width: 100%;
    min-width: 0;
    height: auto;
    overflow: visible
  }
  .panel {
    width: 100%;
    height: auto;
    max-height: none;
    padding: 12px;
    overflow: visible
  }
  .panel-content {
    width: 100%;
    min-width: 0
  }
  .panel-content h3 {
    margin-bottom: 12px;
    font-size: 16px
  }
  #presets-grid,
  .modelos-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 8px
  }
  #cores.panel-content.active {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px
  }
  .estampas-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 8px
  }
  .estampas-grid img,
  .remover-estampa {
    width: 100%;
    height: auto;
    aspect-ratio: 1
  }
  .modelo-card {
    min-height: 110px
  }
  #presets-grid > div {
    min-height: 100px
  }
  .commercial-highlight,
  .preview-card,
  .preview-container,
  .preview-info {
    display: none!important
  }
  .right-actions {
    display: grid!important;
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 8px;
    width: 100%;
    box-sizing: border-box
  }
  .right-actions .botao-comprar,
  .right-actions .botao-showroom {
    position: relative;
    box-sizing: border-box;
    min-width: 0;
    min-height: 38px;
    padding: 9px 10px;
    border-radius: 10px;
    color: transparent!important;
    font-size: 0!important;
    line-height: 1;
    letter-spacing: 0;
    text-indent: -9999px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis
  }
  .right-actions .botao-comprar::after,
  .right-actions .botao-showroom::after {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 900;
    line-height: 1;
    text-indent: 0
  }
  .right-actions .botao-comprar::after {
    content: "Orçamento";
    color: #151515
  }
  .right-actions .botao-showroom::after {
    content: "Showroom";
    color: #b8c0cc;
    font-weight: 800
  }
  .right-actions .botao-showroom {
    border: 1px solid rgba(59,130,246,.26)
  }
  .secondary-actions-note {
    display: none
  }
  .layers-dock {
    top: 10px;
    left: 10px
  }
  .layers-toggle {
    min-height: 82px;
    padding: 8px 5px;
    font-size: 10px
  }
  .layers-dock .history-controls button {
    width: 28px;
    height: 28px;
    font-size: 12px
  }
}
@media (max-width:820px) {
  #menuToggle.project-menu-button {
    position: static!important;
    z-index: 2000!important;
    display: inline-flex!important;
    width: 86px;
    max-width: 86px;
    height: 34px;
    min-height: 34px;
    padding: 8px 10px;
    gap: 5px;
    border-radius: 10px;
    border: 1px solid rgba(59,130,246,.58);
    background: rgba(31,35,40,.92);
    font-size: 11px;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    overflow: hidden
  }
  #menuToggle.project-menu-button::before {
    content: "\2193";
    color: #93c5fd;
    font-size: 14px;
    font-weight: 900;
    line-height: 1
  }
  #menuToggle.project-menu-button::after {
    content: "Projeto";
    color: #f8fafc;
    font-size: 11px;
    font-weight: 800;
    line-height: 1
  }
  #menuToggle.project-menu-button .project-menu-icon {
    display: none
  }
  #menuToggle.project-menu-button span:not(.project-menu-icon) {
    display: none
  }
}
@media (max-width:520px) {
  .topbar-right {
    right: auto;
    left: min(calc(100vw - 92px),292px);
    width: 86px
  }
  #menuToggle.project-menu-button {
    width: 86px;
    padding: 8px 9px
  }
}
@media (max-width:820px) {
  .panel-wrapper {
    background: #151515
  }
  .panel {
    padding: 10px
  }
  .panel-content {
    display: none
  }
  .panel-content.active {
    display: block;
    max-height: calc(100svh - 58px - clamp(280px,48svh,450px) - 58px);
    min-height: 180px;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 14px
  }
  .panel-content h3 {
    margin: 0 0 9px;
    font-size: 14px;
    line-height: 1.1
  }
  .catalogo-filtros,
  .preset-categorias {
    display: flex;
    gap: 6px;
    margin-bottom: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none
  }
  .catalogo-filtros::-webkit-scrollbar,
  .preset-categorias::-webkit-scrollbar {
    display: none
  }
  .catalogo-chip,
  .preset-categoria-chip {
    flex: 0 0 auto;
    min-height: 24px;
    padding: 5px 8px;
    font-size: 10px;
    border-radius: 999px;
    white-space: nowrap
  }
  .catalogo-contador {
    margin: 0 0 8px;
    font-size: 10px
  }
  #presets-grid,
  .modelos-grid {
    grid-template-columns: repeat(3,minmax(0,1fr));
    gap: 6px;
    margin-top: 6px
  }
  #cores.panel-content.active {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 6px
  }
  .estampas-grid {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: 6px
  }
  .modelo-card {
    min-height: 96px;
    padding: 6px 5px 7px;
    gap: 4px;
    border-radius: 10px!important
  }
  .modelo-card-icon {
    height: 68px;
    border-radius: 9px
  }
  .modelo-card-thumb {
    transform: scale(1.02);
    filter: drop-shadow(0 7px 11px rgba(0,0,0,.22))
  }
  .modelo-card-info {
    min-height: 22px
  }
  .modelo-card-info strong {
    font-size: 10px;
    line-height: 1.12
  }
  .modelo-card-badge {
    font-size: 7.5px;
    padding: 2px 5px
  }
  #presets-grid > div {
    min-height: 112px;
    padding: 6px!important;
    border-radius: 11px!important
  }
  #presets-grid > div img {
    aspect-ratio: 1.05/1!important;
    border-radius: 9px!important
  }
  #presets-grid > div > div:last-child {
    min-height: 20px;
    margin-top: 5px!important;
    font-size: 10px!important;
    line-height: 1.12
  }
  #uploadModeloBtn {
    min-height: 32px;
    margin: 0 0 9px;
    padding: 8px 10px;
    border-radius: 9px;
    font-size: 10.5px
  }
  .color-card,
  .gradient-card,
  .id-card {
    padding: 10px;
    margin-bottom: 9px
  }
  .color-card-label {
    margin-bottom: 7px;
    font-size: 9px
  }
}
.auth-status {
  display: flex;
  align-items: center;
  gap: 8px
}
.auth-user-label {
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,.6);
  white-space: nowrap;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis
}
.auth-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 14px;
  border: 1px solid rgba(59,130,246,.4);
  border-radius: 10px;
  background: rgba(31,35,40,.88);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s ease,border-color .15s ease
}
.auth-btn:hover {
  background: rgba(59,130,246,.3);
  border-color: rgba(59,130,246,.65)
}
.auth-btn:disabled {
  opacity: .6;
  cursor: not-allowed
}
.auth-btn-secondary {
  border-color: rgba(255,255,255,.18);
  color: rgba(255,255,255,.65)
}
.auth-btn-secondary:hover {
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.32);
  color: #f8fafc
}
#authStatus[hidden],
.auth-status-legacy,
.legacy-auth-actions {
  display: none!important
}
.user-profile-shell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  z-index: 5300;
  pointer-events: auto;
  isolation: isolate
}
.user-profile-button {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 46px!important;
  min-width: 46px!important;
  max-width: 46px!important;
  height: 46px!important;
  min-height: 46px!important;
  max-height: 46px!important;
  border-radius: 999px!important;
  border: 1px solid rgba(59,130,246,.75)!important;
  background: radial-gradient(circle at 30% 20%,rgba(59,130,246,.18),rgba(15,18,22,.98))!important;
  box-shadow: 0 0 18px rgba(59,130,246,.22)!important;
  display: flex!important;
  align-items: center;
  justify-content: center;
  gap: 0;
  cursor: pointer;
  padding: 0!important;
  color: #f5f5f5;
  line-height: 1;
  overflow: visible;
  pointer-events: auto
}
.user-profile-button:hover,
.user-profile-button[aria-expanded=true] {
  border-color: #3b82f6;
  box-shadow: 0 0 24px rgba(59,130,246,.34)
}
.user-profile-avatar {
  width: 34px;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg,#2a2f38,#111418);
  color: #3b82f6;
  font-weight: 800;
  font-size: 14px
}
.user-profile-avatar-initial {
  color: inherit;
  font: inherit;
  line-height: 1
}
.user-profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover
}
.user-profile-chevron {
  position: absolute;
  right: 2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 999px;
  border: 1px solid rgba(230,185,35,.58);
  background: #15181d;
  color: #f4c430;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  line-height: 1
}
.user-profile-dropdown {
  position: absolute;
  top: calc(100% + 14px);
  right: 0;
  width: 360px;
  max-width: calc(100vw - 24px);
  padding: 18px;
  border-radius: 18px;
  background: linear-gradient(180deg,rgba(20,24,29,.98),rgba(9,12,16,.98));
  border: 1px solid rgba(230,185,35,.45);
  box-shadow: 0 22px 50px rgba(0,0,0,.55),0 0 0 1px rgba(255,255,255,.035) inset;
  z-index: 5400;
  pointer-events: auto
}
.topbar-left .user-profile-dropdown {
  left: 0;
  right: auto
}
.user-profile-dropdown.hidden {
  display: none!important
}
.user-profile-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 22px;
  width: 14px;
  height: 14px;
  background: rgba(20,24,29,.98);
  border-left: 1px solid rgba(230,185,35,.45);
  border-top: 1px solid rgba(230,185,35,.45);
  transform: rotate(45deg)
}
.topbar-left .user-profile-dropdown::before {
  left: 22px;
  right: auto
}
.user-profile-dropdown-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px
}
.user-profile-status-icon {
  width: 38px;
  height: 38px;
  min-width: 38px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 25%,rgba(244,196,48,.22),rgba(10,13,18,.95));
  border: 1.5px solid rgba(244,196,48,.55);
  box-shadow: 0 0 14px rgba(244,196,48,.18),inset 0 1px 0 rgba(255,255,255,.06);
  color: #f4c430;
  font-size: 17px;
  font-weight: 800
}
.user-profile-status-icon svg {
  width: 18px;
  height: 18px;
  stroke: #f4c430;
  stroke-width: 1.75
}
.user-profile-dropdown-header strong {
  display: block;
  color: #fff;
  font-size: 18px;
  line-height: 1.2
}
.user-profile-dropdown-header span {
  display: block;
  color: rgba(255,255,255,.68);
  font-size: 13px;
  margin-top: 4px
}
.user-profile-menu-item {
  width: 100%;
  min-height: 36px;
  border-radius: 9px;
  border: 1px solid rgba(255,255,255,.06);
  background: rgba(255,255,255,.025);
  color: #e4e0d8;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 0 10px;
  cursor: pointer;
  text-align: left;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .01em;
  transition: background .16s,border-color .16s,transform .14s
}
.user-profile-menu-item:hover {
  background: rgba(244,196,48,.07);
  border-color: rgba(244,196,48,.22);
  transform: translateX(3px)
}
.user-profile-menu-item span {
  width: 24px;
  height: 24px;
  min-width: 24px;
  border-radius: 7px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.055);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,.7);
  font-size: 12px;
  transition: background .16s,border-color .16s,color .16s
}
.user-profile-menu-item:hover span {
  background: rgba(244,196,48,.14);
  border-color: rgba(244,196,48,.3);
  color: #f4c430
}
.user-profile-menu-item span svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  flex-shrink: 0
}
.user-profile-menu-item strong {
  font-weight: 600
}
.user-profile-hint[hidden],
.user-profile-menu-item[hidden] {
  display: none!important
}
.user-profile-hint {
  color: rgba(255,255,255,.35);
  font-size: 10.5px;
  line-height: 1.5;
  letter-spacing: .01em
}
.user-profile-divider {
  height: 1px;
  background: linear-gradient(90deg,transparent 0,rgba(244,196,48,.18) 30%,rgba(244,196,48,.18) 70%,transparent 100%)
}
.user-profile-menu-item.danger {
  color: #f87171
}
.user-profile-menu-item.danger span {
  color: #f87171;
  background: rgba(248,113,113,.07);
  border-color: rgba(248,113,113,.14)
}
.user-profile-menu-item.danger:hover {
  background: rgba(248,113,113,.07);
  border-color: rgba(248,113,113,.22)
}
.user-profile-menu-item.danger:hover span {
  background: rgba(248,113,113,.14);
  border-color: rgba(248,113,113,.3)
}
@media (max-width:820px) {
  .topbar {
    overflow: visible
  }
  .topbar-center {
    padding-right: 154px;
    padding-left: 56px
  }
  .icon-profile {
    position: fixed;
    top: 9px;
    left: 10px;
    z-index: 5300;
    width: 42px;
    height: 42px;
    font-size: 15px
  }
  .icon-profile svg {
    width: 17px;
    height: 17px
  }
  .icon-bar-sep {
    display: none
  }
  .profile-side-panel {
    position: fixed;
    top: 0;
    left: 0;
    width: min(300px,100vw);
    height: 100dvh;
    border-radius: 0 18px 18px 0;
    z-index: 5350
  }
  .topbar-right {
    right: 10px;
    left: auto;
    width: 142px;
    display: flex!important;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    overflow: visible;
    z-index: 5200;
    pointer-events: none
  }
  .topbar-right .menu-container {
    flex: 0 0 auto;
    pointer-events: auto;
    z-index: 5100
  }
  #menuToggle.project-menu-button {
    width: 78px;
    max-width: 78px
  }
  #menuToggle.project-menu-button::after {
    content: "Proj."
  }
  .topbar-right .botao-showroom {
    pointer-events: auto
  }
}
@media (max-width:520px) {
  .topbar-center {
    padding-right: 0
  }
  .topbar-right {
    right: 8px;
    left: auto;
    width: 136px
  }
  #menuToggle.project-menu-button {
    width: 74px;
    max-width: 74px;
    padding-inline: 8px
  }
  .topbar-brand-sep,
  .topbar-brand-tagline {
    display: none
  }
  .topbar-step-label,
  .topbar-step-sep {
    display: none
  }
  .topbar-right .botao-showroom {
    font-size: 0;
    padding: 6px 8px
  }
  .topbar-right .botao-showroom::after {
    content: "Show.";
    font-size: 11px;
    font-weight: 700;
    color: #818cf8
  }
}
.login-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center
}
.login-modal-overlay[hidden] {
  display: none
}
.login-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer
}
.login-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 380px;
  margin: 16px;
  padding: 32px 28px 28px;
  background: var(--cosmos-panel,#1f2328);
  border: 1px solid var(--cosmos-card-border,#343a42);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55)
}
.login-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: 0 0;
  color: var(--cosmos-muted,#9ca3af);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s ease,background .15s ease
}
.login-modal-close:hover {
  color: #f8fafc;
  background: rgba(255,255,255,.1)
}
.login-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc
}
.login-modal-subtitle {
  margin: 0 0 24px;
  font-size: 13px;
  color: var(--cosmos-muted,#9ca3af);
  line-height: 1.5
}
.login-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}
.login-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em
}
.login-form .login-input {
  height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--cosmos-card-border,#343a42);
  border-radius: 8px;
  background: var(--cosmos-panel-soft,#262b31);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
  transition: border-color .15s ease;
  text-transform: none;
  letter-spacing: normal
}
.login-input:focus {
  border-color: rgba(59,130,246,.7)
}
.login-submit {
  width: 100%;
  height: 42px;
  font-size: 14px;
  margin-top: 4px;
  background: linear-gradient(135deg,#2563eb,#2563eb);
  border-color: transparent
}
.login-submit:hover:not(:disabled) {
  background: linear-gradient(135deg,#2563eb,#3b82f6);
  border-color: transparent
}
.login-error {
  margin: 2px 0 0;
  font-size: 12px;
  color: #f87171;
  line-height: 1.5
}
.login-error[hidden] {
  display: none
}
@media (max-width:600px) {
  .auth-user-label {
    display: none
  }
  .auth-btn {
    min-height: 30px;
    padding: 5px 10px;
    font-size: 11px
  }
  .login-modal-panel {
    padding: 24px 18px 20px
  }
}
.cloud-save-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  padding: 8px 14px;
  background: var(--cosmos-panel-soft);
  color: var(--cosmos-muted);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 6px;
  font-size: 13px;
  cursor: pointer;
  text-align: left;
  transition: background .15s,color .15s
}
.cloud-save-btn:not(:disabled):hover {
  background: var(--cosmos-panel);
  color: #e2e8f0
}
.cloud-save-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}
.cloud-save-status {
  margin: 2px 0 6px 2px;
  font-size: 11px;
  color: var(--cosmos-muted);
  line-height: 1.4
}
.cloud-save-status.cloud-syncing {
  color: #60a5fa
}
.cloud-save-status.cloud-synced {
  color: #4ade80
}
.cloud-save-status.cloud-error {
  color: #f87171
}
.auth-btn-projects {
  background: 0 0;
  border-color: #2563eb;
  color: #93c5fd
}
.auth-btn-projects:hover {
  background: rgba(59,130,246,.12);
  color: #bfdbfe
}
.cloud-projects-overlay {
  position: fixed;
  inset: 0;
  z-index: 4500;
  display: flex;
  align-items: center;
  justify-content: center
}
.cloud-projects-overlay[hidden] {
  display: none
}
.cloud-projects-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
  cursor: pointer
}
.cloud-projects-panel {
  position: relative;
  z-index: 1;
  background: var(--cosmos-panel);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 12px;
  width: min(580px,calc(100vw - 24px));
  max-height: min(80vh,640px);
  display: flex;
  flex-direction: column;
  box-shadow: 0 24px 64px rgba(0,0,0,.6)
}
.cloud-projects-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--cosmos-card-border);
  flex-shrink: 0
}
.cloud-projects-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0
}
.cloud-projects-header-actions {
  display: flex;
  align-items: center;
  gap: 8px
}
.cloud-projects-action-btn {
  background: var(--cosmos-panel-soft);
  color: var(--cosmos-muted);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s,color .15s
}
.cloud-projects-action-btn:hover:not(:disabled) {
  background: var(--cosmos-panel);
  color: #e2e8f0
}
.cloud-projects-action-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}
.cloud-projects-close-btn {
  background: 0 0;
  border: none;
  color: var(--cosmos-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s
}
.cloud-projects-close-btn:hover {
  color: #e2e8f0
}
.cloud-projects-state {
  padding: 20px;
  font-size: 13px;
  color: var(--cosmos-muted);
  text-align: center;
  margin: 0
}
.cloud-projects-state.cloud-projects-error {
  color: #f87171
}
.cloud-projects-list {
  overflow-y: auto;
  padding: 8px 12px 12px;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px
}
.cloud-project-item {
  background: var(--cosmos-panel-soft);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px
}
.cloud-project-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px
}
.cloud-project-name {
  font-size: 14px;
  font-weight: 500;
  color: #e2e8f0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis
}
.cloud-project-meta {
  font-size: 11px;
  color: var(--cosmos-muted);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center
}
.cloud-project-status {
  display: inline-block;
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 10px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .04em
}
.cloud-project-status-draft {
  background: rgba(100,116,139,.3);
  color: #94a3b8
}
.cloud-project-status-shared {
  background: rgba(59,130,246,.2);
  color: #93c5fd
}
.cloud-project-status-approved {
  background: rgba(34,197,94,.2);
  color: #4ade80
}
.cloud-project-status-rejected {
  background: rgba(239,68,68,.2);
  color: #f87171
}
.cloud-project-status-archived {
  background: rgba(100,116,139,.2);
  color: #64748b
}
.cloud-project-open-btn {
  flex-shrink: 0;
  background: var(--cosmos-panel);
  border: 1px solid var(--cosmos-card-border);
  color: #93c5fd;
  border-radius: 6px;
  padding: 6px 12px;
  font-size: 12px;
  cursor: pointer;
  transition: background .15s,color .15s;
  white-space: nowrap
}
.cloud-project-open-btn:hover:not(:disabled) {
  background: rgba(59,130,246,.15);
  color: #bfdbfe;
  border-color: #2563eb
}
.cloud-project-open-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}
@media (max-width:600px) {
  .cloud-projects-panel {
    max-height: 90vh
  }
  .cloud-project-item {
    flex-direction: column;
    gap: 8px
  }
  .cloud-project-open-btn {
    align-self: flex-end
  }
  .auth-btn-projects {
    display: none
  }
}
.auth-btn-share {
  background: 0 0;
  border-color: #93c5fd;
  color: #bfdbfe
}
.auth-btn-share:hover {
  background: rgba(167,139,250,.12);
  color: #ddd6fe
}
.share-project-overlay {
  position: fixed;
  inset: 0;
  z-index: 4800;
  display: flex;
  align-items: center;
  justify-content: center
}
.share-project-overlay[hidden] {
  display: none
}
.share-project-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.65);
  backdrop-filter: blur(2px);
  cursor: pointer
}
.share-project-panel {
  position: relative;
  z-index: 1;
  background: var(--cosmos-panel);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 12px;
  width: min(460px,calc(100vw - 24px));
  display: flex;
  flex-direction: column;
  gap: 0;
  box-shadow: 0 24px 64px rgba(0,0,0,.6);
  overflow: hidden
}
.share-project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 14px;
  border-bottom: 1px solid var(--cosmos-card-border)
}
.share-project-title {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: #e2e8f0
}
.share-project-close-btn {
  background: 0 0;
  border: none;
  color: var(--cosmos-muted);
  font-size: 16px;
  cursor: pointer;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
  transition: color .15s
}
.share-project-close-btn:hover {
  color: #e2e8f0
}
.share-project-state {
  margin: 0;
  padding: 16px 20px 0;
  font-size: 13px;
  color: var(--cosmos-muted);
  line-height: 1.5
}
.share-project-state[hidden] {
  display: none
}
.share-project-state.share-project-error {
  color: #f87171
}
.share-project-state.share-project-success {
  color: #4ade80
}
.share-url-box {
  display: flex;
  gap: 8px;
  align-items: center;
  padding: 12px 20px 0
}
.share-url-box[hidden] {
  display: none
}
.share-url-input {
  flex: 1;
  min-width: 0;
  background: var(--cosmos-panel-soft);
  border: 1px solid var(--cosmos-card-border);
  border-radius: 6px;
  padding: 8px 10px;
  font-size: 12px;
  color: #cbd5e1;
  font-family: monospace;
  cursor: text
}
.share-url-input:focus {
  outline: 0;
  border-color: #93c5fd
}
.share-copy-btn {
  flex-shrink: 0;
  background: rgba(167,139,250,.15);
  border: 1px solid #7c3aed;
  color: #bfdbfe;
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 12px;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s,color .15s
}
.share-copy-btn:hover {
  background: rgba(167,139,250,.25);
  color: #ddd6fe
}
.share-project-footer {
  padding: 14px 20px 18px
}
.share-generate-btn {
  display: block;
  width: 100%;
  padding: 10px 14px;
  background: linear-gradient(135deg,#6d28d9,#7c3aed);
  border: none;
  border-radius: 8px;
  color: #ede9fe;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: opacity .15s
}
.share-generate-btn:hover:not(:disabled) {
  opacity: .88
}
.share-generate-btn:disabled {
  opacity: .5;
  cursor: not-allowed
}
@media (max-width:600px) {
  .share-url-box {
    flex-direction: column
  }
  .share-copy-btn {
    width: 100%
  }
  .auth-btn-share {
    display: none
  }
}
.contato-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 5100;
  display: flex;
  align-items: center;
  justify-content: center
}
.contato-modal-overlay[hidden] {
  display: none
}
.contato-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2,6,23,.78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  cursor: pointer
}
.contato-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  margin: 16px;
  padding: 32px 28px 28px;
  background: var(--cosmos-panel,#1f2328);
  border: 1px solid var(--cosmos-card-border,#343a42);
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(0,0,0,.55)
}
.contato-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  width: 28px;
  height: 28px;
  border: none;
  background: 0 0;
  color: var(--cosmos-muted,#9ca3af);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: color .15s,background .15s
}
.contato-modal-close:hover {
  color: #f8fafc;
  background: rgba(255,255,255,.1)
}
.contato-modal-close:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px
}
.contato-modal-title {
  margin: 0 0 6px;
  font-size: 18px;
  font-weight: 700;
  color: #f8fafc
}
.contato-modal-subtitle {
  margin: 0 0 20px;
  font-size: 13px;
  color: var(--cosmos-muted,#9ca3af);
  line-height: 1.5
}
.contato-grade-aviso {
  margin-bottom: 20px;
  padding: 12px 14px;
  background: rgba(251,191,36,.08);
  border: 1px solid rgba(251,191,36,.35);
  border-radius: 10px
}
.contato-grade-aviso[hidden] {
  display: none
}
.contato-grade-aviso-texto {
  margin: 0 0 12px;
  font-size: 13px;
  color: #fcd34d;
  line-height: 1.5
}
.contato-grade-aviso-acoes {
  display: flex;
  gap: 8px;
  flex-wrap: wrap
}
.contato-form {
  display: flex;
  flex-direction: column;
  gap: 14px
}
.contato-form[hidden] {
  display: none
}
.contato-label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: rgba(255,255,255,.6);
  text-transform: uppercase;
  letter-spacing: .05em
}
.contato-input {
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--cosmos-card-border,#343a42);
  border-radius: 8px;
  background: var(--cosmos-panel-soft,#262b31);
  color: #f8fafc;
  font-size: 14px;
  font-weight: 400;
  outline: 0;
  transition: border-color .15s;
  text-transform: none;
  letter-spacing: normal
}
.contato-input:focus {
  border-color: rgba(59,130,246,.7)
}
.contato-input:focus-visible {
  outline: 0
}
.contato-erro {
  margin: 0;
  font-size: 12px;
  color: #f87171;
  line-height: 1.5
}
.contato-erro[hidden] {
  display: none
}
.contato-acoes {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 4px
}
.contato-btn {
  height: 38px;
  padding: 0 18px;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s,color .15s,border-color .15s
}
.contato-btn:focus-visible {
  outline: 2px solid #3B82F6;
  outline-offset: 2px
}
.contato-btn--primary {
  background: #2563eb;
  color: #f8fafc
}
.contato-btn--primary:hover {
  background: #3b82f6
}
.contato-btn--ghost {
  background: 0 0;
  color: var(--cosmos-muted,#9ca3af)
}
.contato-btn--ghost:hover {
  color: #f8fafc;
  background: rgba(255,255,255,.06)
}
.contato-btn--outline {
  background: 0 0;
  color: #fcd34d;
  border-color: rgba(251,191,36,.4)
}
.contato-btn--outline:hover {
  background: rgba(251,191,36,.08)
}
@media (max-width:600px) {
  .contato-modal-panel {
    padding: 24px 18px 20px
  }
  .contato-acoes {
    flex-direction: column-reverse
  }
  .contato-btn {
    width: 100%;
    justify-content: center;
    display: flex;
    align-items: center
  }
}
@media (prefers-reduced-motion:reduce) {
  .contato-btn,
  .contato-input,
  .contato-modal-close {
    transition: none
  }
}
body.modo-cliente .botao-comprar {
  display: none!important
}
body:not(.modo-cliente) .botao-comprar {
  display: none
}
body.modo-cliente .secondary-actions-note {
  display: none!important
}
body.modo-cliente .menu-container {
  display: none!important
}
body.modo-cliente .topbar-stepper {
  display: none
}
body.modo-cliente .botao-showroom {
  display: none
}
@media (max-width:820px) {
  body.modo-cliente .sidebar.left {
    padding-bottom: 8px
  }
  body.modo-cliente .app {
    padding-bottom: 8px
  }
}
body.modo-cliente .app {
  position: fixed;
  top: 60px;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  min-height: 0;
  overflow: hidden
}
@media (max-width:768px) {
  body.modo-cliente .app {
    flex-direction: column
  }
  body.modo-cliente .viewer-wrapper {
    flex: 1 1 0%;
    width: 100%;
    min-height: 0;
    height: auto;
    order: 1;
    overflow: hidden
  }
  body.modo-cliente .sidebar.left {
    width: 100%;
    max-height: 0;
    height: auto;
    overflow: hidden;
    transition: max-height .22s cubic-bezier(.4, 0, .2, 1);
    order: 2
  }
  body.modo-cliente.sidebar-aberta .sidebar.left {
    max-height: 55vh;
    overflow-y: auto
  }
  body.modo-cliente .icon-bar {
    top: 0
  }
}
@media (min-width:769px) {
  body.modo-cliente .app {
    flex-direction: row
  }
  body.modo-cliente .viewer-wrapper {
    flex: 1 1 0%;
    width: auto;
    min-width: 0;
    height: 100%;
    order: 0;
    overflow: hidden
  }
  body.modo-cliente .sidebar.left {
    width: 0;
    height: 100%;
    overflow: hidden;
    transition: width .22s cubic-bezier(.4, 0, .2, 1);
    order: 0
  }
  body.modo-cliente.sidebar-aberta .sidebar.left {
    width: 420px;
    overflow: visible
  }
}
.btn-editar-cliente {
  display: none;
  position: absolute;
  bottom: 20px;
  left: 20px;
  z-index: 50;
  align-items: center;
  gap: 6px;
  padding: 10px 18px;
  background: rgba(15,23,42,.82);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,.25);
  transition: background .18s ease
}
.btn-editar-cliente:hover {
  background: rgba(15,23,42,.95)
}
body.modo-cliente .btn-editar-cliente {
  display: flex
}