:root {
  --pink: #c9447a;
  --pink-hover: #a63a63;
  --pink-soft: #fde7ee;
  --paper: #fff9fa;
  --white: #fff;
  --ink: #3b2a2f;
  --muted: #8a727b;
  --line: #efdee4;
  --blue: #bcd4df;
  --sage: #94a892;
  --radius: 22px;
  --shadow: 0 10px 40px #79434d08;
  font-family: "DM Sans", sans-serif;
  color: var(--ink);
  background: var(--paper);
  font-synthesis: none;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  overflow-x: clip; /* nada pode alargar a página no celular (ela "balança" de lado ao rolar) */
}
button,
input,
select {
  font: inherit;
}
button,
a,
input {
  touch-action: manipulation;
}
button {
  cursor: pointer;
}
button:disabled {
  opacity: 0.48;
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid #85abc1;
  outline-offset: 4px;
}
button {
  color: inherit;
}
img {
  display: block;
  max-width: 100%;
}
button svg,
a svg {
  pointer-events: none;
}
[hidden] {
  display: none !important;
}
.icon {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vertical-align: middle;
}
.icon-definitions {
  width: 0;
  height: 0;
  position: absolute;
  overflow: hidden;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  top: -60px;
  left: 15px;
  background: #fff;
  padding: 14px;
  z-index: 200;
}
.skip-link:focus {
  top: 15px;
}
.site-header {
  height: 93px;
  padding: 0 max(28px, calc((100vw - 1460px) / 2));
  display: flex;
  align-items: center;
  gap: 36px;
  background: #ffffffd9;
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-shrink: 0;
}
.brand img {
  width: 145px;
  height: auto;
}
.brand-divider {
  height: 26px;
  width: 1px;
  background: #e4d5db;
}
.brand-studio {
  font-family: "Fraunces", serif;
  font-size: 29px;
  color: var(--pink);
  font-style: italic;
}
.main-nav {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: auto;
}
.nav-button {
  border: 0;
  background: none;
  padding: 13px 15px;
  color: #806571;
  font-size: 13px;
  border-radius: 30px;
  white-space: nowrap;
}
.nav-button.active {
  background: var(--pink-soft);
  color: var(--pink-hover);
  font-weight: 600;
}
.count-dot {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff1f5;
  min-width: 19px;
  height: 19px;
  padding: 0 4px;
  border-radius: 50%;
  font-size: 10px;
  margin-left: 3px;
}
.header-actions {
  display: flex;
  align-items: center;
  gap: 23px;
}
.petal-balance {
  border: 1px solid #ecd8c8;
  border-radius: 28px;
  background: #fff9ec;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: #8d7053;
  padding: 10px 13px;
}
.petal-balance .icon {
  width: 17px;
  height: 17px;
}
.shop-link {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  white-space: nowrap;
}
.shop-link .icon {
  width: 16px;
}
.casa-link {
  color: #62755f;
}
@media (max-width: 1280px) {
  .header-actions .casa-link {
    display: none;
  }
}
/* Veio da Casa Lírio (?returnTo=casalirio): "Voltar à Casa" sempre à vista, inclusive no celular. */
body.retorno-casa .header-actions .casa-link:not([hidden]) {
  display: flex;
}
@media (max-width: 1280px) {
  /* Sem espaço para os dois: "Ir para a loja" cede o lugar ao "Voltar à Casa". */
  body.retorno-casa .header-actions .shop-link:not(.casa-link) {
    display: none;
  }
}
@media (max-width: 680px) {
  /* No celular o topo não tem espaço: o atalho da Casa entra no lugar do saldo de Pétalas (que aparece nos desafios). */
  body.retorno-casa .header-actions .petal-balance {
    display: none;
  }
  body.retorno-casa .header-actions .casa-link:not([hidden]) {
    border: 1px solid #cfdccb;
    border-radius: 50%;
    background: #f3f8f1;
    width: 38px;
    height: 38px;
    justify-content: center;
    padding: 0;
  }
  body.retorno-casa .casa-rotulo {
    display: none;
  }
}
main {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0 30px;
}
.page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  padding: 37px 0 30px;
}
.eyebrow {
  font-size: 10px;
  letter-spacing: 2.1px;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 12px;
  display: block;
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1,
h2,
h3 {
  font-family: "Fraunces", Georgia, serif;
  font-weight: 400;
}
h1 {
  font-size: 43px;
  letter-spacing: -1.7px;
  line-height: 1.12;
  margin-bottom: 12px;
}
h1 em {
  color: var(--pink);
  font-weight: 400;
}
h2 {
  font-size: 24px;
  line-height: 1.15;
  letter-spacing: -0.6px;
  margin-bottom: 0;
}
h3 {
  font-size: 23px;
}
.intro-copy {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 0;
  line-height: 1.65;
}
.quiet-link {
  border: 0;
  background: none;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--pink-hover);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.6;
}
.quiet-link .icon {
  width: 16px;
  height: 16px;
}
.help-trigger {
  margin-bottom: 5px;
  color: var(--muted);
}
.workspace {
  display: grid;
  grid-template-columns: 280px minmax(290px, 1fr) 285px;
  align-items: start;
  gap: 23px;
}
.library-panel,
.composition-panel {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 23px 20px;
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 23px;
}
.panel-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
}
.panel-heading h2 {
  font-size: 23px;
}
.tiny-flower {
  color: var(--pink);
  font-size: 28px;
  font-weight: 400;
}
.library-tabs {
  display: flex;
  gap: 3px;
  padding: 4px;
  background: #faf4f6;
  border-radius: 12px;
  margin-bottom: 18px;
}
.library-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  flex: 1;
  padding: 9px 4px;
  border: 0;
  border-radius: 8px;
  background: none;
  font-size: 11px;
  color: var(--muted);
}
.library-tab .icon {
  width: 15px;
  height: 15px;
}
.library-tab.active {
  background: #fff;
  color: var(--pink);
  box-shadow: 0 2px 8px #71404d0a;
}
.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 19px;
}
.category-tab {
  background: #fff;
  border: 1px solid #efdee4;
  padding: 7px 9px;
  border-radius: 18px;
  font-size: 10px;
  color: #8e7380;
}
.category-tab.active {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.catalog-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  margin: 0 0 13px;
}
.catalog-label span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}
.product-card {
  min-width: 0;
  text-align: left;
  background: white;
  border: 1px solid #f0e5e9;
  border-radius: 14px;
  padding: 6px;
  position: relative;
  transition:
    border-color 0.18s,
    transform 0.18s,
    box-shadow 0.18s;
}
/* Só em aparelho com mouse: no toque o :hover "gruda" e o card fica pulando. */
@media (hover: hover) {
  .product-card:hover {
    transform: translateY(-2px);
    border-color: #e3c0ce;
  }
}
.product-card.selected {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}
.product-photo {
  height: 118px;
  width: 100%;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.product-card-name {
  display: block;
  font-size: 10px;
  line-height: 1.35;
  margin: 8px 2px 3px;
  min-height: 27px;
}
.product-card-price {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin: 0 2px 4px;
}
.product-card .selected-tick {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 19px;
  height: 19px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  color: white;
}
.selected-tick .icon {
  width: 12px;
  height: 12px;
}
.library-footnote {
  font-size: 10px;
  line-height: 1.6;
  text-align: center;
  color: #9b858e;
  margin: 18px 0 0;
}
.canvas-panel {
  min-width: 0;
}
.canvas-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 0 0 13px;
  padding: 0 4px;
}
.view-switch {
  display: flex;
  background: #f1e7eb;
  border-radius: 30px;
  padding: 3px;
  gap: 2px;
}
.view-switch button {
  border: 0;
  background: none;
  border-radius: 22px;
  font-size: 11px;
  padding: 8px 19px;
  color: var(--muted);
}
.view-switch button.active {
  background: #fff;
  color: var(--ink);
  box-shadow: 0 1px 5px #55333c09;
}
.icon-button {
  width: 35px;
  height: 35px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: white;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #967482;
  flex-shrink: 0;
}
.icon-button .icon {
  width: 17px;
  height: 17px;
}
.stage-wrapper {
  position: relative;
  width: 100%;
  max-width: 490px;
  aspect-ratio: 5/7;
  margin: auto;
  border-radius: 170px 170px 20px 20px;
  overflow: hidden;
  isolation: isolate;
  border: 1px solid #ebdbd8;
  box-shadow: 0 5px 24px #9975790d;
  background: #fff2eb;
}
/* Fundo do cenário: a imagem vem do banco (studio_avatar_opcoes), aplicada inline pelo app.js (sceneStyle). */
.scene-background {
  position: absolute;
  inset: 0;
  background-color: #f5ebe9;
  background-size: cover;
  background-position: 50% 62%;
  background-repeat: no-repeat;
  z-index: -2;
}
.stage-grain {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, #fff4 0%, #fff0 42%, #fff2 100%);
  pointer-events: none;
}
.avatar-stage {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.scene-tag {
  position: absolute;
  left: 50%;
  top: 26px;
  transform: translateX(-50%);
  padding: 7px 13px;
  border-radius: 25px;
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  background: #ffffffb8;
  color: #8b746e;
  font-size: 10px;
  z-index: 1;
  backdrop-filter: blur(6px);
}
.dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--sage);
}
.stage-signature {
  position: absolute;
  bottom: 13px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 14px;
  color: #967c73;
  pointer-events: none;
}
.scene-shortcuts {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 17px;
}
.scene-shortcut {
  border: 1px solid transparent;
  display: flex;
  align-items: center;
  gap: 7px;
  background: none;
  border-radius: 20px;
  color: var(--muted);
  padding: 7px 10px;
  font-size: 11px;
}
.scene-shortcut.active {
  border-color: #e6c7d3;
  background: #fff;
  color: var(--pink);
}
.scene-shortcut .icon {
  width: 15px;
  height: 15px;
}
.stage-caption {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 7px;
  font-size: 10px;
  color: #a18a93;
  text-align: center;
}
.stage-caption .icon {
  width: 14px;
  height: 14px;
}
.draft-badge {
  font-size: 9px;
  background: #f9f2f4;
  border-radius: 20px;
  padding: 6px 8px;
  color: #9b828d;
  white-space: nowrap;
}
.draft-badge.saved {
  background: #edf4ea;
  color: #6d8567;
}
.field-label {
  display: block;
  font-size: 11px;
  color: #8a727b;
  margin-bottom: 8px;
}
.text-input {
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px 13px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  width: 100%;
  outline: none;
}
.text-input::placeholder {
  color: #b29ca5;
}
.look-title {
  background: #fffbfc;
  margin-bottom: 25px;
}
.selection-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  padding-bottom: 13px;
  border-bottom: 1px solid #f1e6eb;
}
.selection-heading span:last-child {
  font-size: 10px;
  color: var(--muted);
}
.selected-products {
  margin-bottom: 12px;
}
.selected-product {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-bottom: 1px solid #f4eaf0;
  min-width: 0;
}
.selected-product-image {
  width: 47px;
  height: 53px;
  object-fit: contain;
  border-radius: 8px;
  background: #fff;
  flex-shrink: 0;
}
.selected-product-info {
  min-width: 0;
  flex: 1;
}
.selected-product-category {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #b099a4;
  margin-bottom: 4px;
  display: block;
}
.selected-product-name {
  font-size: 11px;
  line-height: 1.4;
  display: block;
}
.selected-product-price {
  display: block;
  font-size: 10px;
  color: var(--muted);
  margin-top: 4px;
}
.remove-item {
  background: none;
  border: 0;
  padding: 8px;
  color: #ac949f;
  flex-shrink: 0;
}
.remove-item .icon {
  width: 14px;
  height: 14px;
}
.accessory-empty {
  border: 1px dashed #e9cbd7;
  border-radius: 11px;
  padding: 13px 10px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: #a47b8e;
  margin-top: 14px;
  background: #fffafb;
  width: 100%;
  text-align: left;
}
.accessory-empty .icon {
  width: 17px;
  height: 17px;
}
.compatibility-note {
  color: #a18993;
  font-size: 10px;
  line-height: 1.65;
  margin: 13px 0 20px;
}
.main-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.button {
  min-height: 45px;
  padding: 12px 17px;
  border-radius: 11px;
  border: 1px solid var(--line);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  line-height: 1.35;
  background: #fff;
  color: var(--pink-hover);
  font-weight: 500;
  transition:
    background 0.16s,
    transform 0.16s;
}
.button .icon {
  width: 17px;
  height: 17px;
}
@media (hover: hover) {
  .button:hover:not(:disabled) {
    transform: translateY(-1px);
  }
}
.button-primary {
  background: var(--pink);
  color: #fff;
  border-color: var(--pink);
}
.button-primary:hover:not(:disabled) {
  background: var(--pink-hover);
  border-color: var(--pink-hover);
}
.button-outline {
  background: #fff;
  border-color: #e4becd;
  color: var(--pink-hover);
}
.button-casa {
  background: #f4f7ee;
  border-color: #d3ddc8;
  color: #62755f;
}
.button-casa:hover:not(:disabled) {
  background: #edf2e5;
}
.button-small {
  padding: 8px 13px;
  min-height: 37px;
  font-size: 11px;
  white-space: nowrap;
}
.main-actions > .quiet-link {
  padding: 7px 0;
}
.inspiration-card {
  margin-top: 25px;
  padding: 17px 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, #f5f8f2, #f9f9f0);
  color: #6a7a63;
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
}
.inspiration-card > .icon {
  margin-top: 2px;
  color: #8ca17b;
}
.inspiration-card p {
  margin-bottom: 0;
  font-size: 10px;
  line-height: 1.65;
}
.inspiration-card strong {
  display: block;
  font-weight: 500;
  margin-bottom: 4px;
  font-size: 11px;
}
.inspiration-card span {
  display: block;
  color: #8b957f;
}
.inspiration-card .quiet-link {
  grid-column: 2;
  justify-content: flex-start;
  color: #728763;
  font-size: 10px;
}
.studio-promise {
  text-align: center;
  color: #a88795;
  padding: 38px 0 30px;
  font-family: "Fraunces", serif;
  font-style: italic;
  font-size: 22px;
}
.promise-dot {
  margin: 0 12px;
  color: #d8bbc7;
}
.studio-promise p {
  font-family: "DM Sans", sans-serif;
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1px;
  color: #ac95a0;
  margin: 9px 0 0;
}
.site-footer {
  border-top: 1px solid var(--line);
  padding: 25px 30px;
  max-width: 1480px;
  margin: auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.site-footer > div {
  display: flex;
  gap: 21px;
  align-items: center;
}
.site-footer img {
  width: 90px;
  height: auto;
  opacity: 0.7;
}
.site-footer span,
.site-footer a,
.footer-button {
  font-size: 10px;
  color: #a08793;
}
.footer-button {
  border: 0;
  background: none;
  padding: 0;
}
.option-section {
  margin: 22px 0;
}
.option-label {
  display: block;
  font-size: 12px;
  margin-bottom: 12px;
}
.skin-options {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.skin-swatch {
  width: 35px;
  height: 35px;
  border-radius: 50%;
  border: 3px solid white;
  box-shadow: 0 0 0 1px #eadfe3;
  background: var(--skin);
}
.skin-swatch.active {
  box-shadow: 0 0 0 2px var(--pink);
}
.avatar-choice-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.avatar-choice {
  background: #fffbfc;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px 8px;
  color: #8b707d;
  font-size: 11px;
  min-height: 53px;
  line-height: 1.45;
}
.avatar-choice.active {
  background: #fff1f6;
  border-color: var(--pink);
  color: var(--pink-hover);
}
.avatar-choice .choice-subtitle {
  display: block;
  color: #b091a0;
  font-size: 9px;
  margin-top: 2px;
}
.section-caption {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
}
.scene-options {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.scene-option {
  border: 1px solid var(--line);
  border-radius: 13px;
  overflow: hidden;
  text-align: left;
  background: white;
  padding: 0;
  color: var(--ink);
}
.scene-option.active {
  border-color: var(--pink);
  box-shadow: 0 0 0 1px var(--pink);
}
.scene-option-image {
  height: 110px;
  background-size: cover;
  background-position: 50% 58%;
  display: block;
  background-repeat: no-repeat;
}
.scene-option-label {
  padding: 11px 12px;
  font-size: 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.scene-option-label .icon {
  width: 15px;
  height: 15px;
  color: var(--pink);
}
.bag-stage {
  position: absolute;
  inset: 14% 7% 12%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bag-stage > img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px #82505d12);
  mix-blend-mode: multiply;
}
.bag-stage > img.cutout {
  mix-blend-mode: normal;
}
.bag-stage-accessories {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.bag-stage-accessories img {
  position: absolute;
  left: 62%;
  top: 50%;
  width: 22%;
  height: 28%;
  object-fit: contain;
  mix-blend-mode: multiply;
  transform: rotate(5deg);
}
.bag-stage-accessories img:nth-child(2) {
  left: 73%;
  top: 46%;
  transform: rotate(-8deg);
}
.bag-stage-accessories img:nth-child(3) {
  left: 60%;
  top: 64%;
  transform: rotate(12deg);
}
.bag-stage-note {
  position: absolute;
  bottom: -11%;
  font-size: 11px;
  color: #987d78;
  text-align: center;
  background: #ffffffb8;
  padding: 8px 12px;
  border-radius: 20px;
  width: max-content;
  max-width: 100%;
}
.app-status {
  border: 1px solid #e8cba1;
  background: #fff8ed;
  color: #8c663d;
  padding: 13px 17px;
  font-size: 12px;
  line-height: 1.6;
  border-radius: 12px;
  margin-top: 20px;
}
.app-status.error {
  background: #fff0f2;
  border-color: #e2b2bf;
  color: #944d62;
}
.secondary-view {
  min-height: 580px;
  padding: 8px 0 0;
}
.section-intro {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 10px 0 27px;
}
.section-intro h2 {
  font-size: 35px;
  margin-bottom: 12px;
}
.section-intro p:not(.eyebrow) {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}
.profile-strip {
  padding: 17px 20px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}
.profile-strip > div {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #937783;
}
.profile-strip form {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 390px;
}
.profile-note {
  font-size: 11px;
  color: #a18794;
  line-height: 1.6;
  margin: 12px 0 25px;
}
.closet-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}
.look-card {
  border: 1px solid var(--line);
  border-radius: 19px;
  background: #fff;
  overflow: hidden;
}
.look-card-preview {
  position: relative;
  aspect-ratio: 5/6;
  overflow: hidden;
  background: #f8eee8;
}
.look-card-preview .scene-background {
  z-index: 0;
}
.look-card-preview svg {
  position: absolute;
  width: 100%;
  height: 100%;
  inset: 0;
  z-index: 1;
}
.look-card-body {
  padding: 17px;
}
.look-card h3 {
  font-size: 19px;
  line-height: 1.4;
  margin: 0 0 5px;
  overflow-wrap: anywhere;
}
.look-card-date {
  font-size: 10px;
  color: var(--muted);
}
.look-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  flex-wrap: wrap;
}
.look-card-actions .button {
  min-height: 33px;
  font-size: 10px;
  padding: 7px 10px;
  border-radius: 8px;
}
.look-card-actions .icon-button {
  width: 30px;
  height: 30px;
  margin-left: auto;
}
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 55px 20px;
  background: #fff;
  border: 1px dashed #e6c7d3;
  border-radius: 20px;
}
.empty-state > .icon {
  width: 34px;
  height: 34px;
  color: #ca99af;
  margin-bottom: 15px;
}
.empty-state h3 {
  margin-bottom: 10px;
}
.empty-state p {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.7;
  margin-bottom: 21px;
}
.petal-total {
  display: grid;
  grid-template-columns: 32px auto;
  align-items: center;
  gap: 3px 10px;
  background: #fff6e9;
  border: 1px solid #efe0c9;
  border-radius: 20px;
  padding: 20px 28px;
  color: #9c775a;
}
.petal-total > .icon {
  width: 30px;
  height: 30px;
  grid-row: span 2;
}
.petal-total strong {
  font-family: "Fraunces", serif;
  font-size: 30px;
  font-weight: 400;
}
.petal-total span {
  font-size: 10px;
}
.missions-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 23px;
}
.mission-card {
  border: 1px solid var(--line);
  border-radius: 23px;
  background: #fff;
  padding: 30px;
  position: relative;
  overflow: hidden;
}
.mission-card > svg {
  width: 40px;
  height: 40px;
  color: #bc8da2;
  margin-bottom: 28px;
}
.mission-card h3 {
  font-size: 26px;
  margin-bottom: 13px;
}
.mission-card p {
  font-size: 13px;
  line-height: 1.8;
  color: var(--muted);
  max-width: 370px;
  min-height: 46px;
}
.mission-reward {
  position: absolute;
  top: 27px;
  right: 25px;
  background: #fff5e4;
  padding: 8px 13px;
  border-radius: 20px;
  color: #9c775a;
  font-size: 12px;
}
.mission-actions {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-top: 24px;
  flex-wrap: wrap;
}
.mission-status {
  font-size: 11px;
  color: #8ba27a;
}
.mission-explainer {
  padding: 32px 0;
  max-width: 650px;
}
.mission-explainer h3 {
  margin-bottom: 10px;
}
.mission-explainer p {
  font-size: 12px;
  line-height: 1.8;
  color: var(--muted);
}
.public-view {
  display: grid;
  grid-template-columns: minmax(300px, 500px) minmax(280px, 420px);
  gap: 75px;
  justify-content: center;
  align-items: center;
  padding: 40px 15px 20px;
}
.public-view .stage-wrapper {
  border-radius: 150px 150px 22px 22px;
}
.public-details h1 {
  font-size: 40px;
  overflow-wrap: anywhere;
  line-height: 1.2;
}
.public-creator {
  font-size: 12px;
  color: #a0798a;
}
.public-description {
  font-size: 14px;
  line-height: 1.8;
  color: var(--muted);
  margin: 25px 0;
}
.public-details .button {
  width: 100%;
  margin-top: 8px;
}
.public-cta-caption {
  display: block;
  font-size: 11px;
  text-align: center;
  color: #ac8394;
  margin-top: 12px;
}
.public-details .selected-product-image {
  width: 65px;
  height: 70px;
}
.public-details .selected-product-name {
  font-size: 14px;
}
.public-details .selected-product-price {
  font-size: 12px;
}
.product-shop-link {
  color: var(--pink);
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.product-shop-link .icon {
  width: 15px;
  height: 15px;
}
.dialog {
  border: 1px solid #ead9e1;
  border-radius: 26px;
  padding: 27px;
  max-width: calc(100vw - 30px);
  max-height: calc(100dvh - 32px);
  color: var(--ink);
  background: #fffafc;
  box-shadow: 0 30px 120px #52334140;
}
.dialog::backdrop {
  background: #3e29395e;
  backdrop-filter: blur(7px);
}
.dialog-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 23px;
}
.dialog-heading h2 {
  font-size: 27px;
}
.dialog-heading .eyebrow {
  font-size: 9px;
  letter-spacing: 1.5px;
  margin-bottom: 10px;
}
.share-dialog {
  width: 860px;
}
.share-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
  align-items: start;
}
.share-preview {
  position: relative;
  background: #f8ebed;
  border-radius: 17px;
  overflow: hidden;
  min-height: 300px;
  box-shadow: 0 4px 19px #71445315;
}
.share-preview > img {
  width: 100%;
  height: auto;
}
.preparing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 17px;
  text-align: center;
  padding: 35px;
  color: #ad798d;
  font-size: 12px;
  position: absolute;
  inset: 0;
  background: #fff3f6;
}
.spinner {
  width: 24px;
  height: 24px;
  border: 2px solid #ecd0dc;
  border-top-color: var(--pink);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.format-switch {
  display: flex;
  gap: 6px;
  margin: 14px 0 20px;
}
.format-switch button {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 8px 13px;
  font-size: 11px;
  color: #9c7c8c;
}
.format-switch button.active {
  background: var(--pink-soft);
  color: var(--pink);
  border-color: #e2b4c9;
}
.share-steps {
  padding: 0;
  list-style: none;
  margin: 0 0 18px;
  display: flex;
  flex-direction: column;
  gap: 15px;
}
.share-steps li {
  display: flex;
  gap: 12px;
}
.share-steps li > span {
  width: 25px;
  height: 25px;
  flex-shrink: 0;
  border-radius: 50%;
  background: #f7e5ed;
  display: grid;
  place-items: center;
  color: #b2708e;
  font-family: "Fraunces", serif;
  font-size: 12px;
}
.share-steps strong {
  font-size: 12px;
  font-weight: 500;
}
.share-steps p {
  font-size: 11px;
  line-height: 1.6;
  color: var(--muted);
  margin: 4px 0 0;
}
.link-field {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 13px;
}
.link-field input {
  font-size: 11px;
  background: white;
  min-width: 0;
}
.link-field .icon-button {
  background: #fde8f0;
  border-color: #f3d6e3;
}
.share-controls > .button {
  display: flex;
  width: 100%;
  margin: 9px 0;
}
.share-controls > .quiet-link {
  display: flex;
  margin-top: 15px;
}
.share-note {
  font-size: 10px;
  line-height: 1.7;
  color: #a18a94;
  margin: 17px 0 0;
}
.info-dialog {
  width: 560px;
}
.info-dialog p,
.info-dialog li {
  font-size: 13px;
  line-height: 1.85;
  color: #876d7a;
}
.info-dialog ol {
  padding-left: 20px;
}
.info-dialog li {
  margin-bottom: 10px;
}
.info-dialog strong {
  color: #785162;
}
.pieces-dialog {
  width: 600px;
}
.pieces-dialog .selected-product-image {
  width: 76px;
  height: 88px;
}
.pieces-dialog .selected-product-name {
  font-size: 15px;
}
.pieces-dialog .selected-product-price {
  font-size: 12px;
}
.dialog-footnote {
  font-size: 11px;
  color: #9d8791;
  line-height: 1.7;
  margin: 20px 0 0;
}
.toast-region {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
  max-width: calc(100vw - 32px);
  width: max-content;
}
.toast {
  padding: 13px 21px;
  border-radius: 13px;
  background: #fff;
  color: #93657a;
  border: 1px solid #edcfdd;
  box-shadow: 0 7px 30px #72435620;
  font-size: 12px;
  line-height: 1.5;
  display: flex;
  gap: 9px;
  align-items: center;
  animation: toast-in 0.2s ease-out;
}
.toast.error {
  border-color: #d598aa;
  color: #a34d67;
}
.toast > .icon {
  width: 17px;
  height: 17px;
}
.noscript-note {
  background: white;
  padding: 30px;
  text-align: center;
  font-size: 14px;
}
.loading-placeholder {
  grid-column: 1/-1;
  text-align: center;
  padding: 50px 10px;
  font-size: 12px;
  color: var(--muted);
}
@keyframes toast-in {
  from {
    transform: translateY(6px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
@media (min-width: 1500px) {
  .stage-wrapper {
    max-width: 490px;
  }
  .workspace {
    grid-template-columns: 300px minmax(380px, 1fr) 310px;
    gap: 30px;
  }
  .product-photo {
    height: 127px;
  }
  .library-panel,
  .composition-panel {
    padding: 26px 24px;
  }
}
@media (max-width: 1180px) {
  .site-header {
    gap: 20px;
    padding: 0 24px;
  }
  .brand {
    gap: 11px;
  }
  .brand img {
    width: 117px;
  }
  .brand-studio {
    font-size: 25px;
  }
  .main-nav {
    gap: 0;
  }
  .nav-button {
    padding: 11px;
  }
  .header-actions {
    gap: 14px;
  }
  .petal-word {
    display: none;
  }
  .shop-link {
    font-size: 11px;
  }
  .workspace {
    grid-template-columns: 240px minmax(270px, 1fr) 244px;
    gap: 17px;
  }
  main {
    padding: 0 23px;
  }
  .library-panel,
  .composition-panel {
    padding: 20px 15px;
  }
  .product-photo {
    height: 103px;
  }
  .panel-heading h2 {
    font-size: 21px;
  }
  .main-actions > .button {
    font-size: 11px;
    padding: 11px 9px;
  }
  .composition-panel .panel-heading {
    gap: 3px;
  }
  .draft-badge {
    font-size: 8px;
    padding: 5px;
  }
  .closet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .public-view {
    gap: 45px;
  }
}
@media (max-width: 970px) {
  .site-header {
    height: auto;
    min-height: 82px;
    flex-wrap: wrap;
    gap: 0;
    padding: 16px 22px 10px;
  }
  .brand {
    order: 0;
  }
  .header-actions {
    order: 1;
    margin-left: auto;
  }
  .main-nav {
    order: 2;
    width: 100%;
    justify-content: center;
    margin-top: 13px;
  }
  .nav-button {
    padding: 9px 20px;
  }
  .workspace {
    grid-template-columns: 250px minmax(290px, 1fr);
    gap: 20px;
  }
  .composition-panel {
    grid-column: 1/-1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 30px;
    align-items: start;
  }
  .composition-panel .panel-heading {
    grid-column: 1;
  }
  .composition-panel > .field-label,
  .composition-panel > .look-title,
  .selection-heading,
  .composition-panel > .selected-products,
  .composition-panel > .compatibility-note {
    grid-column: 1;
  }
  .composition-panel .main-actions {
    grid-column: 2;
    grid-row: 1 / span 4;
    padding-top: 4px;
  }
  .composition-panel .inspiration-card {
    grid-column: 2;
    grid-row: 5 / span 3;
    margin-top: 0;
  }
  .page-intro {
    padding-top: 30px;
  }
  .product-photo {
    height: 117px;
  }
  .closet-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }
  .public-view {
    grid-template-columns: minmax(260px, 1fr) minmax(250px, 1fr);
    gap: 30px;
    padding-left: 0;
    padding-right: 0;
  }
  .public-details h1 {
    font-size: 33px;
  }
}
@media (max-width: 680px) {
  main {
    padding: 0 16px;
  }
  .site-header {
    padding: 15px 16px 10px;
  }
  .brand img {
    width: 112px;
  }
  .brand-divider {
    height: 21px;
  }
  .brand-studio {
    font-size: 25px;
  }
  .header-actions {
    gap: 8px;
  }
  .petal-balance {
    padding: 8px 11px;
    font-size: 11px;
  }
  .shop-link {
    display: none;
  }
  .main-nav {
    margin-top: 14px;
    gap: 8px;
  }
  .nav-button {
    font-size: 12px;
    padding: 9px 14px;
  }
  .page-intro {
    padding: 26px 1px 23px;
    align-items: flex-start;
  }
  .eyebrow {
    font-size: 8px;
    letter-spacing: 1.6px;
  }
  .page-intro h1 {
    font-size: 34px;
    margin-bottom: 10px;
    letter-spacing: -1.2px;
  }
  .intro-copy {
    font-size: 12px;
    max-width: 270px;
  }
  .help-trigger {
    font-size: 0;
    margin-top: 25px;
  }
  .help-trigger .icon {
    width: 20px;
    height: 20px;
  }
  .workspace {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }
  .canvas-panel {
    order: 0;
    width: 100%;
  }
  .stage-wrapper {
    max-width: 370px;
    border-radius: 145px 145px 19px 19px;
  }
  .canvas-toolbar {
    max-width: 370px;
    margin: 0 auto 11px;
  }
  .view-switch button {
    padding: 8px 17px;
  }
  .scene-tag {
    top: 23px;
    font-size: 9px;
  }
  .scene-shortcuts {
    margin-top: 12px;
    gap: 4px;
  }
  .scene-shortcut {
    font-size: 10px;
    padding: 6px 9px;
  }
  .stage-caption {
    margin-top: 6px;
    font-size: 10px;
  }
  .library-panel {
    order: 1;
    width: 100%;
    padding: 20px 16px;
  }
  .library-panel .panel-heading {
    margin-bottom: 17px;
  }
  .library-panel .panel-heading h2 {
    font-size: 23px;
  }
  .library-tabs {
    margin-bottom: 16px;
    max-width: none;
  }
  .library-tab {
    padding: 10px 4px;
    font-size: 12px;
  }
  .category-tabs {
    gap: 7px;
    margin-bottom: 16px;
  }
  .category-tab {
    font-size: 11px;
    padding: 8px 13px;
  }
  .product-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }
  .product-photo {
    height: 112px;
  }
  .product-card-name {
    font-size: 10px;
  }
  .product-card-price {
    font-size: 10px;
  }
  .composition-panel {
    order: 2;
    display: block;
    width: 100%;
    padding: 22px 20px;
  }
  .composition-panel .main-actions {
    padding-top: 0;
  }
  .composition-panel .inspiration-card {
    margin-top: 22px;
  }
  .main-actions > .button {
    font-size: 12px;
  }
  .composition-panel .selected-product-image {
    width: 53px;
    height: 58px;
  }
  .selected-product-name {
    font-size: 12px;
  }
  .selected-product-price {
    font-size: 11px;
  }
  .scene-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
  }
  .scene-option-image {
    height: 125px;
    background-size: 300% 100%;
  }
  .scene-option-label {
    font-size: 11px;
    padding: 10px 8px;
  }
  .scene-option-label .icon {
    width: 12px;
    height: 12px;
  }
  .skin-swatch {
    width: 40px;
    height: 40px;
  }
  .avatar-choice-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .avatar-choice {
    padding: 13px 8px;
    font-size: 12px;
  }
  .studio-promise {
    padding: 29px 0 24px;
    font-size: 20px;
  }
  .studio-promise p {
    font-size: 9px;
  }
  .site-footer {
    padding: 22px 16px;
    gap: 18px;
  }
  .site-footer > div:first-child {
    flex-direction: column;
    gap: 9px;
  }
  .site-footer > div:last-child {
    gap: 17px;
  }
  .site-footer span,
  .site-footer a,
  .footer-button {
    font-size: 10px;
  }
  .section-intro {
    align-items: flex-start;
    flex-direction: column;
    padding-top: 7px;
  }
  .section-intro h2 {
    font-size: 31px;
  }
  .section-intro p:not(.eyebrow) {
    font-size: 12px;
  }
  .profile-strip {
    flex-direction: column;
    align-items: stretch;
    padding: 17px 14px;
  }
  .profile-strip form {
    max-width: 100%;
  }
  .profile-strip > div {
    font-size: 11px;
  }
  .profile-strip input {
    font-size: 16px;
  }
  .profile-note {
    font-size: 10px;
  }
  .closet-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
  }
  .look-card-body {
    padding: 12px;
  }
  .look-card h3 {
    font-size: 17px;
  }
  .look-card-actions {
    gap: 6px;
  }
  .look-card-actions .button {
    font-size: 10px;
    padding: 7px 8px;
  }
  .look-card-actions .icon-button {
    margin-left: 0;
  }
  .missions-grid {
    grid-template-columns: 1fr;
    gap: 17px;
  }
  .mission-card {
    padding: 25px;
  }
  .mission-card p {
    font-size: 12px;
  }
  .petal-total {
    padding: 15px 20px;
  }
  .public-view {
    grid-template-columns: 1fr;
    gap: 27px;
    padding-top: 26px;
  }
  .public-preview .stage-wrapper {
    max-width: 350px;
  }
  .public-details {
    padding: 0 4px;
  }
  .public-details h1 {
    font-size: 35px;
  }
  .public-description {
    font-size: 13px;
    margin: 20px 0;
  }
  .public-details .button {
    min-height: 49px;
  }
  .dialog {
    padding: 21px 17px;
    border-radius: 22px;
    max-height: calc(100dvh - 24px);
  }
  .dialog-heading h2 {
    font-size: 23px;
  }
  .dialog-heading .eyebrow {
    font-size: 8px;
  }
  .share-layout {
    grid-template-columns: 1fr;
    gap: 21px;
  }
  .share-preview {
    width: 210px;
    margin: auto;
    min-height: 250px;
    border-radius: 13px;
  }
  .share-controls > .section-caption {
    text-align: center;
  }
  .format-switch {
    justify-content: center;
  }
  .share-steps {
    gap: 13px;
  }
  .share-note {
    font-size: 10px;
  }
  .text-input {
    font-size: 16px;
  }
  .link-field input {
    font-size: 12px;
  }
  .share-controls > .button {
    min-height: 47px;
    font-size: 13px;
  }
  .info-dialog p,
  .info-dialog li {
    font-size: 12px;
  }
  .pieces-dialog .selected-product-image {
    width: 60px;
    height: 70px;
  }
  .pieces-dialog .selected-product-name {
    font-size: 13px;
  }
  .product-shop-link {
    font-size: 10px;
  }
  .toast-region {
    bottom: 20px;
  }
  .toast {
    font-size: 11px;
    padding: 11px 15px;
  }
  .secondary-view {
    min-height: 450px;
  }
  .app-status {
    font-size: 11px;
    padding: 12px;
  }
}
@media (max-width: 370px) {
  .brand img {
    width: 99px;
  }
  .brand {
    gap: 9px;
  }
  .brand-studio {
    font-size: 23px;
  }
  .petal-balance {
    padding: 7px 9px;
  }
  .product-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .product-photo {
    height: 129px;
  }
  .page-intro h1 {
    font-size: 31px;
  }
  .intro-copy {
    max-width: 245px;
  }
  .scene-shortcut {
    padding: 6px;
    font-size: 9px;
  }
  .scene-shortcut .icon {
    width: 13px;
  }
  .scene-options {
    grid-template-columns: 1fr;
  }
  .scene-option-image {
    height: 115px;
    background-size: 300% 200%;
  }
  .scene-option-label {
    font-size: 12px;
  }
  .scene-option {
    display: grid;
    grid-template-columns: 42% 58%;
  }
  .nav-button {
    padding: 9px 12px;
  }
  .closet-grid {
    gap: 9px;
  }
  .look-card-actions .button {
    flex: 1;
  }
  .public-details h1 {
    font-size: 30px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Selectors and bag detail use the same SVG composition as the full avatar. */
.bag-detail-stage {
  width: 100%;
  height: 100%;
  overflow: visible;
}
/* Montar a bolsa: só o dedo em cima da peça deixa de rolar a página (no iOS/SVG quem segura é o preventDefault do touchstart). */
.bag-detail-stage [data-layer="accessory"][data-ponto] {
  cursor: grab;
  touch-action: none;
}
.bag-detail-stage [data-layer="accessory"].arrastando {
  cursor: grabbing;
  opacity: 0.85;
}
.choice-avatar {
  display: block;
  width: 100%;
  height: 108px;
  margin: 0 auto 8px;
  pointer-events: none;
}
.choice-hair {
  height: 91px;
}
/* Expressão (2.5): miniatura do rosto, 3 por linha; cor do cabelo (2.6): bolinhas como as do tom. */
.choice-grid-3 {
  grid-template-columns: repeat(3, 1fr);
}
.choice-expression {
  height: 74px;
}
.hair-swatch.natural {
  box-shadow: 0 0 0 1px #eadfe3, inset 0 0 0 2px #ffffffb3;
}
.hair-swatch.natural.active {
  box-shadow: 0 0 0 2px var(--pink), inset 0 0 0 2px #ffffffb3;
}
.hair-swatch:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.avatar-choice:has(.choice-avatar) {
  padding: 8px 7px 12px;
}
.avatar-note {
  font-size: 10px;
  line-height: 1.65;
  color: #806774;
  margin: 15px 0 0;
}
.dialog-actions {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  margin-top: 24px;
}
.bag-stage-accessories img.accessory-chain {
  left: 19%;
  top: 50%;
  width: 62%;
  height: 22%;
  transform: rotate(0deg);
}
.bag-stage-accessories img.cutout {
  mix-blend-mode: normal;
}
.product-card-name {
  font-size: 11px;
}
.product-card-price,
.compatibility-note,
.library-footnote,
.profile-note,
.share-note,
.selected-product-price,
.field-label {
  color: #806774;
}
.selected-product-category {
  color: #896b79;
}
.product-shop-link {
  min-height: 38px;
}
.option-label {
  color: #755b68;
}
.main-nav button[aria-current="page"] {
  font-weight: 600;
}
.mission-status > .icon {
  width: 17px;
  height: 17px;
  margin-right: 3px;
}
.text-input:focus {
  border-color: #85abc1;
  box-shadow: 0 0 0 2px #85abc121;
}
#main:focus {
  outline: none;
}
.share-preview > img:not([src]) {
  visibility: hidden;
}
.product-card:focus-visible {
  z-index: 1;
}
@media (max-width: 680px) {
  .choice-avatar {
    height: 138px;
  }
  .choice-hair {
    height: 102px;
  }
  .choice-expression {
    height: 88px;
  }
  .dialog-actions .button {
    flex: 1;
  }
  .product-card-name {
    font-size: 11px;
  }
  .stage-wrapper {
    scroll-margin-top: 18px;
  }
}

/* ── Integração com a loja (11/10/2026) ─────────────────────────────────── */
.account-button {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 13px;
  white-space: nowrap;
}
.account-button .icon {
  width: 15px;
  height: 15px;
  color: var(--pink);
}
.account-button.logged {
  background: var(--pink-soft);
  border-color: #e2b4c9;
  color: var(--pink-hover);
}
.account-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px 16px;
  margin: 0 0 14px;
  padding: 14px 18px;
  border: 1px dashed #e2b4c9;
  border-radius: 16px;
  background: #fff7fa;
  font-size: 13px;
}
.account-strip > span {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 220px;
}
.account-strip .icon {
  width: 16px;
  height: 16px;
  color: var(--pink);
}
.account-dialog {
  width: 440px;
}
/* Desafio do dia: destaque no topo da lista de desafios. */
.mission-card.is-daily {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px var(--pink-soft);
}

/* "Levar este look": peças do look → sacola da loja. */
.levar-dialog {
  width: 480px;
}
.levar-itens {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  margin-bottom: 12px;
}
.levar-item {
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 12px;
  align-items: start;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
}
.levar-item img {
  width: 64px;
  height: 70px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--paper);
}
.levar-item.is-unavailable {
  opacity: 0.6;
}
.levar-item-info {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.levar-item-info strong {
  font-size: 0.95rem;
  color: var(--ink);
}
.levar-preco,
.levar-prazo,
.levar-cores-rotulo {
  font-size: 0.82rem;
  color: var(--muted);
}
.levar-preco {
  color: var(--ink);
  font-weight: 600;
}
.levar-cores {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}
.levar-cores .levar-cores-rotulo {
  flex-basis: 100%;
}
.levar-cor {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 32px;
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--ink);
  font-size: 0.8rem;
  cursor: pointer;
}
.levar-cor i {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--cor);
  box-shadow: inset 0 0 0 1px #0000001f;
}
.levar-cor.active {
  border-color: var(--pink);
  background: var(--pink-soft);
  font-weight: 600;
}
.levar-resumo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 10px 2px;
  border-top: 1px solid var(--line);
  color: var(--ink);
}
.levar-frete {
  margin: 0 0 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eef4ec;
  color: var(--ink);
  font-size: 0.85rem;
}
.levar-acoes {
  margin-top: 6px;
}

/* Motivo do pedido de conta (depois de N alterações, ou ao resgatar Pétalas). */
.account-gate {
  margin: 0 0 14px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--pink-soft);
  color: var(--ink);
  font-size: 0.92rem;
  line-height: 1.45;
}
.account-tabs {
  display: flex;
  gap: 6px;
  margin: 4px 0 18px;
}
.account-tabs button {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  padding: 10px 12px;
  font-size: 13px;
  color: #9c7c8c;
}
.account-tabs button.active {
  background: var(--pink-soft);
  color: var(--pink-hover);
  border-color: #e2b4c9;
  font-weight: 600;
}
.account-form {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.account-form .text-input {
  margin-bottom: 6px;
}
.account-form .button {
  margin-top: 6px;
  justify-content: center;
}
.field-hint {
  margin: -6px 0 4px;
  font-size: 11px;
  color: var(--muted);
}
.form-error {
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fdecef;
  color: #9b2c4c;
  font-size: 12.5px;
  line-height: 1.5;
}
.form-error a,
.account-note a {
  color: var(--pink-hover);
  text-decoration: underline;
}
.account-note {
  margin: 6px 0 0;
  font-size: 11.5px;
  line-height: 1.55;
  color: var(--muted);
}
/* v27: instalar o app */
.install-button {
  border: 1px solid var(--line);
  border-radius: 28px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink);
  padding: 10px 13px;
  white-space: nowrap;
}
.install-button .icon {
  width: 15px;
  height: 15px;
  color: var(--pink);
}
@media (display-mode: standalone) {
  .install-button,
  .install-link {
    display: none !important;
  }
}
@media (max-width: 680px) {
  .install-button {
    display: none; /* no celular o topo não tem espaço: fica no diálogo da conta e no convite depois de entrar */
  }
}
.account-install {
  margin: 14px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  text-align: center;
}
.install-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 14px;
}
.install-hero img {
  flex: none;
  border-radius: 16px;
  box-shadow: 0 6px 18px #c9447a26;
}
.install-hero p {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink);
}
.install-sub {
  margin: 6px 0 4px;
  font-size: 13px;
  color: var(--ink);
}
.install-steps {
  margin: 0 0 10px;
  padding-left: 20px;
  font-size: 13px;
  line-height: 1.6;
  color: var(--ink);
}
.install-steps li + li {
  margin-top: 4px;
}
.install-agora {
  width: 100%;
  justify-content: center;
}
.install-aviso {
  margin: 0 0 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff4dc;
  color: #6d5320;
  font-size: 12.5px;
  line-height: 1.5;
}
.install-ok {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  padding: 12px;
  border-radius: 12px;
  background: #eaf4e4;
  color: #3d5a2c;
  font-size: 13px;
}
.install-ok .icon {
  width: 18px;
  height: 18px;
}
.install-outro {
  margin: 8px 0 0;
  font-size: 12.5px;
  color: var(--muted);
}
.install-outro summary {
  cursor: pointer;
  color: var(--pink-hover);
  font-weight: 600;
}
.install-outro .install-steps {
  margin-top: 8px;
}
.install-link {
  gap: 6px;
  color: var(--pink-hover);
  font-weight: 600;
  text-decoration: underline;
}
.install-link .icon {
  width: 16px;
  height: 16px;
}

/* v27: esqueci minha senha, nova senha, manter conectada */
.account-form-title {
  margin: 0;
  font-family: "Fraunces", serif;
  font-size: 1.15rem;
  color: var(--ink);
}
.account-forgot {
  align-self: flex-end;
  margin: -4px 0 2px;
  font-size: 12px;
  color: var(--pink-hover);
  text-decoration: underline;
}
.account-back {
  align-self: center;
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
  text-decoration: underline;
}
.form-error .quiet-link {
  display: inline;
  color: var(--pink-hover);
  font-size: inherit;
  font-weight: 600;
  text-decoration: underline;
}
.account-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--ink);
  cursor: pointer;
}
.account-remember input {
  width: 18px;
  height: 18px;
  accent-color: var(--pink);
}
.account-ok {
  margin: 2px 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #eaf4e4;
  color: #3d5a2c;
  font-size: 12.5px;
  line-height: 1.5;
}
.product-card.is-unavailable {
  cursor: not-allowed;
}
.product-card.is-unavailable .product-photo {
  opacity: 0.45;
  filter: grayscale(0.4);
}
.product-card.is-unavailable:hover {
  transform: none;
  box-shadow: none;
}
.soldout-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  padding: 3px 8px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid var(--line);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  color: #8a5a6d;
}
.product-card-price s,
.selected-product-price s {
  color: var(--muted);
  font-weight: 400;
  margin-right: 3px;
}
.selected-product.is-unavailable .selected-product-image {
  opacity: 0.55;
}
.selected-product-price .availability {
  font-style: normal;
  color: #9b2c4c;
}
@media (max-width: 680px) {
  .account-button {
    padding: 8px 10px;
    font-size: 11px;
  }
  .account-button span {
    max-width: 92px;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .account-dialog {
    width: 100%;
  }
}
@media (max-width: 370px) {
  .account-button span {
    display: none;
  }
}

/* ── Celular: "tela de jogo + gaveta" (variante 2, 11/10/2026) ───────────────────────────────────────────
   Só no editor e até 680 px (body.modo-jogo, ligado pelo app.js). O look ocupa a tela; as ferramentas ficam
   numa gaveta que sobe de baixo (abas por ícone) e recolhe pela alça. Computador e demais telas: sem mudança. */
.gaveta-barra,
.stage-fabs,
.closet-shortcut {
  display: none;
}
body.modo-jogo {
  --barra: 64px;
  --gaveta: min(46dvh, 430px);
  overflow: hidden;
}
body.modo-jogo.gaveta-fechada {
  --gaveta: calc(var(--barra) + env(safe-area-inset-bottom));
}
body.modo-jogo .page-intro,
body.modo-jogo .studio-promise,
body.modo-jogo .site-footer,
body.modo-jogo .main-nav {
  display: none;
}
body.modo-jogo .site-header {
  min-height: 0;
  flex-wrap: nowrap;
  padding: 10px 14px;
}
body.modo-jogo .closet-shortcut {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--pink);
  border-radius: 30px;
  padding: 6px 8px;
}
body.modo-jogo .closet-shortcut .icon {
  width: 16px;
  height: 16px;
}
body.modo-jogo .closet-shortcut .count-dot {
  margin-left: 1px;
}
body.modo-jogo .workspace {
  display: block;
}
/* Palco: do topo até a borda da gaveta (passa um pouco por baixo do arredondado) */
body.modo-jogo .canvas-panel {
  position: fixed;
  left: 0;
  right: 0;
  top: var(--topo, 58px);
  bottom: calc(var(--gaveta) - 22px);
  z-index: 1;
  transition: bottom 0.25s ease;
}
body.modo-jogo .stage-wrapper {
  position: absolute;
  inset: 0;
  max-width: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}
body.modo-jogo .avatar-stage {
  top: 46px;
  bottom: auto;
  height: calc(100% - 70px); /* SVG com viewBox: height auto seguiria a largura e cortaria o look */
}
body.modo-jogo .bag-stage {
  inset: 60px 9% 40px;
}
body.modo-jogo .bag-stage-note {
  bottom: -26px;
}
body.modo-jogo .canvas-toolbar {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  z-index: 3;
  max-width: none;
  margin: 0;
  padding: 0;
  pointer-events: none;
}
body.modo-jogo .canvas-toolbar > * {
  pointer-events: auto;
}
body.modo-jogo .view-switch {
  background: #ffffffd9;
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 10px #6b3b4a14;
}
body.modo-jogo .canvas-toolbar .icon-button {
  width: 42px;
  height: 42px;
  background: #ffffffeb;
  box-shadow: 0 4px 14px #6b3b4a1f;
}
body.modo-jogo .scene-shortcuts,
body.modo-jogo .stage-caption,
body.modo-jogo .stage-signature,
body.modo-jogo .scene-tag {
  display: none;
}
body.modo-jogo .stage-fabs {
  display: flex;
  flex-direction: column;
  align-items: flex-end; /* a pílula do salvar (com conta) é mais larga: todos ficam colados à direita */
  gap: 10px;
  position: absolute;
  right: 12px;
  top: 62px;
  z-index: 3;
}
.fab {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid #f0dfe5;
  background: #ffffffeb;
  color: var(--pink);
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px #6b3b4a1f;
}
.fab .icon {
  width: 19px;
  height: 19px;
}
.fab.is-saved {
  background: var(--pink);
  border-color: var(--pink);
  color: #fff;
}
.fab-casa {
  width: auto;
  padding: 0 10px;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  gap: 5px;
  background: #f4f7ee;
  border-color: #d3ddc8;
  color: #62755f;
  font-size: 10px;
}
.fab-casa:disabled {
  opacity: .6;
}
/* Com conta, o salvar vira pílula com a situação — o look se salva sozinho (app.js, "Salvar sozinho") */
.fab.fab-rotulo {
  width: auto;
  padding: 0 12px 0 10px;
  border-radius: 24px;
  display: flex;
  justify-content: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
}
.fab.fab-rotulo .icon {
  width: 17px;
  height: 17px;
}
.fab.is-salvando .icon {
  animation: fab-salvando 1.1s ease-in-out infinite;
}
.fab.is-erro {
  color: #b4234a;
  border-color: #f2c4cf;
}
@keyframes fab-salvando {
  50% {
    opacity: .35;
  }
}
@media (prefers-reduced-motion: reduce) {
  .fab.is-salvando .icon {
    animation: none;
  }
}
/* Gaveta: barra (alça + abas) e, abaixo dela, o painel da aba */
body.modo-jogo .gaveta-barra {
  display: block;
  position: fixed;
  left: 0;
  right: 0;
  bottom: calc(var(--gaveta) - var(--barra));
  height: var(--barra);
  z-index: 7;
  background: #fffcfd;
  border-radius: 24px 24px 0 0;
  box-shadow: 0 -10px 34px #6b3b4a24;
  transition: bottom 0.25s ease;
}
body.modo-jogo.gaveta-fechada .gaveta-barra {
  bottom: 0;
  height: var(--gaveta);
  padding-bottom: env(safe-area-inset-bottom);
}
.gaveta-alca {
  display: block;
  width: 100%;
  height: 18px;
  border: 0;
  background: none;
  padding: 7px 0 0;
}
.gaveta-alca span {
  display: block;
  width: 42px;
  height: 5px;
  border-radius: 5px;
  background: #e3cfd7;
  margin: 0 auto;
}
.gaveta-abas {
  display: flex;
  height: calc(var(--barra) - 18px);
  padding: 0 4px;
  border-bottom: 1px solid var(--line);
}
.gaveta-abas button {
  position: relative;
  flex: 1;
  min-width: 0;
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 0 2px 5px;
  white-space: nowrap;
}
.gaveta-abas .icon {
  width: 21px;
  height: 21px;
  color: #c6a9b5;
}
.gaveta-abas button[aria-pressed="true"] {
  color: var(--pink);
  font-weight: 600;
}
.gaveta-abas button[aria-pressed="true"] .icon {
  color: var(--pink);
}
.gaveta-abas button[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 24%;
  right: 24%;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
}
.gaveta-conta {
  position: absolute;
  top: -1px;
  left: calc(50% + 5px);
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--pink);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  line-height: 17px;
  text-align: center;
}
body.modo-jogo .library-panel,
body.modo-jogo .composition-panel {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: calc(var(--gaveta) - var(--barra));
  z-index: 6;
  overflow-y: auto;
  overscroll-behavior: contain;
  margin: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fffcfd;
  padding: 12px 14px calc(16px + env(safe-area-inset-bottom));
}
body.modo-jogo .composition-panel,
body.modo-jogo[data-aba="look"] .library-panel,
body.modo-jogo.gaveta-fechada .library-panel,
body.modo-jogo.gaveta-fechada .composition-panel {
  display: none;
}
body.modo-jogo[data-aba="look"]:not(.gaveta-fechada) .composition-panel {
  display: block;
}
body.modo-jogo .library-panel .panel-heading,
body.modo-jogo .library-tabs,
body.modo-jogo .library-footnote,
body.modo-jogo[data-aba="bolsa"] .category-tabs,
body.modo-jogo[data-aba="detalhes"] .category-tab[data-role="bag"] {
  display: none;
}
body.modo-jogo .category-tabs {
  margin-bottom: 10px;
}
body.modo-jogo .catalog-label {
  margin-bottom: 8px;
}
body.modo-jogo .product-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
body.modo-jogo .product-photo {
  height: 92px;
}
body.modo-jogo .composition-panel .panel-heading {
  margin-bottom: 12px;
}
body.modo-jogo .composition-panel .inspiration-card {
  display: none;
}
body.modo-jogo .toast-region {
  bottom: calc(var(--gaveta) + 12px);
}
@media (prefers-reduced-motion: reduce) {
  body.modo-jogo .canvas-panel,
  body.modo-jogo .gaveta-barra {
    transition: none;
  }
}
/* Arrasto da gaveta: a barra não rola nada, o gesto é todo dela (Chrome/Android; no iOS quem segura é o preventDefault). */
body.modo-jogo .gaveta-barra {
  touch-action: none;
}
/* Puxar a gaveta para baixo não pode recarregar a página ("puxar para atualizar" fica na janela, não no body). */
html:has(body.modo-jogo) {
  overscroll-behavior-y: none;
}
/* Durante o arrasto a gaveta segue o dedo; ao soltar a transição volta e anima o encaixe. */
body.modo-jogo.gaveta-arrastando .canvas-panel,
body.modo-jogo.gaveta-arrastando .gaveta-barra {
  transition: none;
}
body.modo-jogo .app-status {
  position: fixed;
  top: calc(var(--topo, 58px) + 8px);
  left: 12px;
  right: 12px;
  z-index: 9;
}
/* Topo numa linha só: a marca encolhe antes de alargar a página (o celular "balança" de lado). */
body.modo-jogo .brand {
  flex-shrink: 1;
  min-width: 0;
  gap: 9px;
  overflow: hidden;
}
body.modo-jogo .brand img {
  width: 84px;
}
body.modo-jogo .brand-divider {
  height: 18px;
}
body.modo-jogo .brand-studio {
  font-size: 19px;
}
body.modo-jogo .header-actions {
  flex-shrink: 0;
  gap: 6px;
  margin-left: auto;
}
body.modo-jogo .closet-shortcut {
  padding: 5px 7px;
}

/* ── Compartilhar (14/10/2026): prévia da arte + atalhos (Instagram, WhatsApp, Facebook, copiar, salvar, mais).
   No celular a janela sobe de baixo (folha); no computador, prévia ao lado dos atalhos. */
.share-dialog { width: 760px; }
.share-layout { grid-template-columns: 250px minmax(0, 1fr); gap: 28px; }
.share-media { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.share-media .share-preview { width: 100%; }
.share-media .format-switch { margin: 12px 0 0; justify-content: center; }
.share-targets { display: flex; justify-content: space-between; gap: 4px; margin: 2px 0 4px; }
.share-target { flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 7px; min-width: 0; border: 0; background: none; padding: 4px 0; color: var(--ink); font-size: 11px; line-height: 1.25; text-align: center; text-decoration: none; cursor: pointer; }
.share-target-icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: var(--pink-soft); color: var(--pink); box-shadow: 0 3px 10px #8a4d6526; transition: transform 0.15s ease, box-shadow 0.15s ease; }
.share-target-icon .icon { width: 23px; height: 23px; }
.share-target-icon.is-instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 62%, #285aeb 92%); color: #fff; }
.share-target-icon.is-whatsapp { background: #25d366; color: #fff; }
.share-target-icon.is-facebook { background: #1877f2; color: #fff; }
.share-target:hover .share-target-icon, .share-target:focus-visible .share-target-icon { transform: translateY(-2px); box-shadow: 0 6px 14px #8a4d6533; }
.share-target:disabled { opacity: 0.45; cursor: wait; }
.share-target:disabled .share-target-icon { transform: none; box-shadow: none; }
.share-status { min-height: 18px; margin: 6px 0 12px; font-size: 11.5px; line-height: 1.5; color: #7d5a6b; text-align: center; }
.share-status.error { color: #b3261e; }
.share-url { width: 100%; font-size: 12px; background: #fff; color: var(--muted); }
.share-howto { margin: 14px 0 0; border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; background: #fff; }
.share-howto summary { cursor: pointer; font-size: 12px; font-weight: 500; color: var(--ink); }
.share-howto .share-steps { margin: 14px 0 4px; }
.share-controls > .quiet-link { margin-top: 14px; }
.sheet-handle { display: none; }
@keyframes sheet-up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@media (max-width: 680px) {
  .share-dialog[open] { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 24px 24px 0 0; border-bottom: 0; max-height: 94dvh; padding: 10px 18px calc(18px + env(safe-area-inset-bottom)); animation: sheet-up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); }
  .sheet-handle { display: block; width: 40px; height: 4px; border-radius: 2px; background: #e3c9d4; margin: 0 auto 12px; }
  .share-dialog .dialog-heading { margin-bottom: 12px; }
  .share-dialog .dialog-heading .eyebrow { display: none; }
  .share-dialog .dialog-heading h2 { font-size: 21px; }
  .share-layout { grid-template-columns: 1fr; gap: 14px; }
  .share-media .share-preview { width: min(150px, 40vw); min-height: 180px; margin: 0 auto; }
  .share-media .format-switch { margin-top: 10px; }
  .share-targets { gap: 2px; }
  .share-target { font-size: 10.5px; }
  .share-target-icon { width: 46px; height: 46px; }
  .share-target-icon .icon { width: 22px; height: 22px; }
}
@media (prefers-reduced-motion: reduce) { .share-dialog[open] { animation: none; } .share-target-icon { transition: none; } }
