@media(min-width:821px) {
  .sidebar.left:has(#modelos.active),
  .sidebar.left:has(#presets.active) {
    --studio-left-width: clamp(410px,34vw,500px);
    width: var(--studio-left-width);
    flex-basis: var(--studio-left-width);
    max-width: var(--studio-left-width)
  }
}
#modelos.catalog-panel,
#presets.catalog-panel {
  box-sizing: border-box;
  padding: 16px;
  border: 1px solid #26374a;
  border-radius: 17px;
  color: #f3f7ff;
  background: radial-gradient(ellipse at 100% 0,#112239 0,transparent 34%),#101923
}
.catalog-panel *,
.catalog-panel ::after,
.catalog-panel ::before {
  box-sizing: border-box
}
.catalog-panel .catalog-panel-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 12px 0 22px;
  margin-bottom: 18px;
  border-bottom: 1px solid #2b3c50
}
.catalog-panel .catalog-panel-hero::before {
  content: '';
  position: absolute;
  z-index: -1;
  inset: -18px -16px 0;
  opacity: .42;
  background: linear-gradient(90deg,#101923 20%,#10192355),url('/assets/home/magic-fabric-hero-v1.jpg') right center/auto 100% no-repeat;
  pointer-events: none
}
.catalog-panel .catalog-panel-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #69baff;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px
}
.catalog-panel .catalog-panel-hero h3 {
  margin: 0 0 8px;
  color: #f3f7ff;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -.6px
}
.catalog-panel .catalog-panel-hero p {
  margin: 0;
  color: #b5d0f1;
  font-size: 12px;
  line-height: 1.6
}
.catalog-panel .catalog-panel-filters {
  padding: 13px;
  border: 1px solid #2b3c50;
  border-radius: 12px;
  background: linear-gradient(145deg,#1b293b88,#101923);
  margin-bottom: 16px
}
.catalog-panel .catalog-filter-label {
  display: block;
  margin: 0 0 9px;
  color: #9bb5d2;
  font-size: 10px;
  font-weight: 650
}
.catalog-panel .catalog-filter-label:not(:first-child) {
  margin-top: 13px
}
#modelos .catalogo-filtros,
#presets .preset-catalogo-filtros,
#presets .preset-categorias {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0
}
#modelos .catalogo-chip,
#presets .preset-categoria-chip {
  min-height: 32px;
  padding: 7px 11px;
  border: 1px solid #35475e;
  border-radius: 8px;
  background: #111d2b;
  color: #b5d0f1;
  font-family: inherit;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.2;
  cursor: pointer;
  box-shadow: none
}
#modelos .catalogo-chip.active,
#presets .preset-categoria-chip.active {
  border-color: #278cff;
  background: linear-gradient(135deg,#087dff,#0848d3);
  color: #fff;
  box-shadow: 0 3px 12px #004dff20
}
.catalog-panel .catalog-panel-grid-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 19px 0 12px
}
.catalog-panel .catalog-panel-grid-heading h4 {
  margin: 0;
  color: #e7efff;
  font-size: 12px;
  font-weight: 650
}
#modelos #catalogo-contador {
  margin: 0;
  padding: 5px 8px;
  border: 1px solid #2b3c50;
  border-radius: 7px;
  background: #172638;
  color: #9bb5d2;
  font-size: 10px;
  white-space: nowrap
}
#modelos #modelos-grid,
#presets #presets-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 11px
}
#modelos .modelo-card,
#presets .preset-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  min-width: 0;
  width: 100%;
  height: auto;
  min-height: 0;
  margin: 0;
  padding: 8px!important;
  gap: 0;
  border-radius: 12px!important;
  background: linear-gradient(150deg,#202e40,#131d2b);
  color: #e7efff;
  box-shadow: 0 4px 12px #0002;
  overflow: hidden;
  transform: none
}
#modelos .modelo-card {
  border: 2px solid #2b3c50
}
#modelos .modelo-card:hover,
#presets .preset-card:hover {
  background: linear-gradient(150deg,#283a51,#152439);
  transform: none
}
#modelos .modelo-card.active,
#presets .preset-card.active {
  border: 2px solid #228eff;
  background: linear-gradient(150deg,#173e70,#15243a);
  box-shadow: 0 0 0 1px #18baff22,0 5px 18px #006bff22!important
}
#modelos .modelo-card.active::after,
#presets .preset-card.active::after {
  content: '✓';
  position: absolute;
  right: 8px;
  top: 8px;
  display: grid;
  place-items: center;
  width: 21px;
  height: 21px;
  border: 1px solid #79d2ff;
  border-radius: 50%;
  background: #087dff;
  color: #fff;
  font: 700 12px/1 system-ui,sans-serif;
  box-shadow: 0 2px 6px #0005
}
#modelos .modelo-card-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 132px;
  min-height: 132px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  background: radial-gradient(ellipse at 50% 35%,#33455b,#0c1520 85%)
}
#modelos .modelo-card-thumb {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 132px;
  object-fit: contain;
  transform: none;
  filter: drop-shadow(0 8px 8px #0005)
}
#modelos .modelo-card-icon svg {
  width: 42px;
  height: 42px;
  color: #69baff
}
#modelos .modelo-card-info {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
  min-height: 0;
  padding: 11px 2px 3px;
  text-align: left
}
#modelos .modelo-card-info strong {
  color: #e7efff;
  font-size: 11px!important;
  line-height: 1.4;
  font-weight: 650;
  white-space: normal
}
#modelos .modelo-card-badge {
  max-width: 100%;
  padding: 4px 6px;
  border: 1px solid #385069;
  border-radius: 5px;
  background: #13283e;
  color: #9bcfff;
  font-size: 8px;
  line-height: 1.3;
  white-space: normal
}
#presets .preset-card img {
  width: 100%;
  height: 120px;
  aspect-ratio: auto!important;
  object-fit: contain;
  background: radial-gradient(ellipse at 50% 35%,#33455b,#0c1520 85%)!important;
  border-radius: 8px!important
}
#presets .preset-card > div:last-child {
  margin-top: 0!important;
  padding: 11px 2px 4px;
  min-height: 0;
  color: #e7efff;
  font-size: 11px!important;
  line-height: 1.4;
  font-weight: 600;
  text-align: left
}
#presets #uploadModeloBtn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 42px;
  padding: 10px;
  margin: 0 0 17px;
  border: 1px dashed #3879b4;
  border-radius: 10px;
  background: linear-gradient(135deg,#112b49,#111d2b);
  color: #9bcfff;
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none
}
#presets #uploadModeloBtn svg {
  width: 17px;
  height: 17px
}
#presets .preset-card:focus-visible,
.catalog-panel button:focus-visible {
  outline: 2px solid #29bdff;
  outline-offset: 2px
}
.catalog-panel .catalog-panel-note {
  margin: 15px 2px 2px;
  color: #8fa9c7;
  font-size: 10px;
  line-height: 1.6
}
#modelos .modelos-empty,
#presets #presets-grid > p {
  grid-column: 1/-1;
  padding: 20px 12px;
  border: 1px dashed #35475e;
  border-radius: 10px;
  color: #9bb5d2;
  font-size: 12px;
  line-height: 1.6
}
@media(max-width:820px) {
  #modelos.catalog-panel,
  #presets.catalog-panel {
    padding: 12px
  }
  .catalog-panel .catalog-panel-hero h3 {
    font-size: 25px
  }
  #modelos .catalogo-chip,
  #presets .preset-categoria-chip {
    min-height: 36px
  }
  #modelos .modelo-card-icon {
    height: 120px;
    min-height: 120px
  }
  #modelos .modelo-card-thumb {
    max-height: 120px
  }
}
@media(prefers-reduced-motion:reduce) {
  #modelos .modelo-card,
  #presets .preset-card {
    transition: none!important
  }
}
#presets .preset-catalogo-filtros:not(.visible),
#presets .preset-categorias:not(.visible) {
  display: none
}
#presets .catalog-filter-label:has(+ .preset-catalogo-filtros:not(.visible)),
#presets .catalog-filter-label:has(+ .preset-categorias:not(.visible)) {
  display: none
}
#presets .catalog-panel-filters:not(:has(.visible)) {
  display: none
}