/* =====================================================================
   ATELIÊ — identidade visual aprovada
   Rosa suave, rosa antigo, creme, branco, vinho e nanquim.
   Renda, pespontos, requadros de mangá, retícula e anotações à mão.
   ===================================================================== */
:root {
  --creme: #FBF6EF;
  --papel: #FFFDF9;
  --rosa-suave: #F3D9DC;
  --blush: #EBC3C8;
  --rosa: #C98A93;
  --vinho: #6E2A3A;
  --vinho-escuro: #4A1826;
  --tinta: #2B2024;
  --texto2: #6B5458;
  --apagado: #8A6A70;
  --linha: #EBDCD5;
  --borda: #D9C2C6;
  --ok: #4F6B45;
  --f-titulo: 'Shippori Mincho B1', 'Hiragino Mincho ProN', Georgia, serif;
  --f-texto: 'Zen Kaku Gothic New', -apple-system, 'Helvetica Neue', sans-serif;
  --f-nota: 'Klee One', 'Bradley Hand', cursive;
  --seguro-baixo: env(safe-area-inset-bottom, 0px);
  --seguro-topo: env(safe-area-inset-top, 0px);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: rgba(201, 138, 147, .25); }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: #EFE4DD;
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: 16px;
  line-height: 1.45;
}
a { color: var(--vinho); }
a:hover { color: var(--vinho-escuro); }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2.5px solid var(--vinho); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
[hidden] { display: none !important; }

/* ---------- moldura da página (coluna de celular) ---------- */
#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  min-height: 100dvh;
  position: relative;
  background-color: var(--creme);
  background-image:
    repeating-linear-gradient(0deg, rgba(110, 42, 58, .03) 0 1px, transparent 1px 5px),
    repeating-linear-gradient(90deg, rgba(110, 42, 58, .025) 0 1px, transparent 1px 5px);
  box-shadow: 0 0 0 1px rgba(110, 42, 58, .06);
}
.tela { padding-bottom: calc(96px + var(--seguro-baixo)); min-height: 100dvh; }
.tela.sem-barra { padding-bottom: calc(32px + var(--seguro-baixo)); }
.carregando { min-height: 60vh; display: flex; align-items: center; justify-content: center; }

/* ---------- texturas e acabamentos ---------- */
.papel-rosa {
  background-color: var(--rosa-suave);
  background-image:
    repeating-linear-gradient(45deg, rgba(110, 42, 58, .04) 0 1px, transparent 1px 6px),
    repeating-linear-gradient(-45deg, rgba(110, 42, 58, .04) 0 1px, transparent 1px 6px);
}
.reticula { background-image: radial-gradient(rgba(43, 32, 36, .22) 1px, transparent 1.4px); background-size: 6px 6px; }
.reticula-rosa { background-color: var(--rosa-suave); background-image: radial-gradient(rgba(110, 42, 58, .28) 1.2px, transparent 1.6px); background-size: 8px 8px; }
.velocidade { background: repeating-conic-gradient(from 0deg at 50% 55%, rgba(43, 32, 36, .15) 0 1.2deg, transparent 1.2deg 7deg), var(--papel); }
.etamine { background-color: var(--papel); background-image: radial-gradient(rgba(110, 42, 58, .16) 1px, transparent 1.3px); background-size: 5px 5px; }
.milimetrado {
  background-color: var(--papel);
  background-image: linear-gradient(rgba(201, 138, 147, .22) 1px, transparent 1px), linear-gradient(90deg, rgba(201, 138, 147, .22) 1px, transparent 1px);
  background-size: 12px 12px;
}
.pautado { background-color: var(--papel); background-image: repeating-linear-gradient(0deg, transparent 0 31px, rgba(201, 138, 147, .25) 31px 32px); }
.caderno {
  background-color: var(--papel);
  background-image:
    linear-gradient(90deg, transparent 30px, rgba(201, 138, 147, .55) 30px 31.5px, transparent 31.5px),
    repeating-linear-gradient(0deg, transparent 0 27px, rgba(201, 138, 147, .22) 27px 28px);
}
.renda {
  height: 14px;
  background:
    radial-gradient(circle at 9px 5px, var(--creme) 1.8px, transparent 2.2px) 0 0 / 18px 14px repeat-x,
    radial-gradient(circle at 9px 0, var(--blush) 9px, transparent 9.5px) 0 0 / 18px 14px repeat-x;
}
.renda.invertida { transform: scaleY(-1); background-color: var(--rosa-suave); }
.fita { display: flex; align-items: center; gap: 8px; }
.fita::before, .fita::after { content: ''; flex: 1; border-top: 1.5px solid var(--rosa); }
.nota { font-family: var(--f-nota); color: var(--vinho); font-size: 15px; }

/* ---------- tipografia ---------- */
.titulo { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 32px; line-height: 1.1; }
.titulo.menor { font-size: 26px; }
.secao-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 600; font-size: 20px; }
.rotulo { font-size: 12px; font-weight: 700; color: var(--vinho); letter-spacing: .08em; text-transform: uppercase; }
.sutil { font-size: 13px; color: var(--texto2); }
.pequeno { font-size: 12px; color: var(--texto2); }
.numero { font-family: var(--f-titulo); font-weight: 800; color: var(--vinho); }

/* ---------- cabeçalhos ---------- */
.cabecalho { padding: calc(20px + var(--seguro-topo)) 20px 12px; display: flex; flex-direction: column; gap: 12px; }
.cabecalho.rosa { background: var(--rosa-suave); padding-bottom: 18px; position: relative; overflow: hidden; }
.cabecalho-linha { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.barra-topo { padding: calc(10px + var(--seguro-topo)) 10px 4px; display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.voltar { min-height: 44px; display: inline-flex; align-items: center; gap: 4px; text-decoration: none; font-weight: 700; font-size: 15px; padding: 0 6px; background: none; border: 0; color: var(--vinho); }
.conteudo { padding: 14px 20px 24px; display: flex; flex-direction: column; gap: 22px; }
.secao { display: flex; flex-direction: column; gap: 10px; }
.secao-cabeca { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.secao-cabeca a, .link-forte { font-size: 13px; font-weight: 700; text-decoration: none; }

/* ---------- botões ---------- */
.btn {
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 24px;
  background: var(--vinho); color: var(--papel); font-weight: 700; font-size: 16px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-decoration: none;
  box-shadow: 0 0 0 3px var(--papel), 0 0 0 4.5px var(--rosa);
}
.btn:hover { color: var(--papel); background: var(--vinho-escuro); }
.btn[disabled] { opacity: .55; cursor: default; }
.btn.largo { width: 100%; }
.btn-tracejado {
  min-height: 46px; padding: 0 18px; border: 1.5px dashed var(--vinho); border-radius: 23px;
  background: transparent; color: var(--vinho); font-weight: 700; font-size: 15px;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; text-decoration: none;
}
.btn-tracejado.largo { width: 100%; }
.btn-perigo { min-height: 46px; padding: 0 18px; border: 1.5px solid var(--vinho); border-radius: 23px; background: var(--papel); color: var(--vinho); font-weight: 700; font-size: 15px; }
.btn-icone {
  width: 44px; height: 44px; border-radius: 22px; flex-shrink: 0;
  border: 1.5px dashed var(--vinho); background: var(--papel);
  display: inline-flex; align-items: center; justify-content: center; color: var(--vinho); position: relative; text-decoration: none;
}
.btn-icone.cheio { border: 0; background: var(--vinho); color: var(--papel); }
.btn-icone.liso { border: 0; background: transparent; }
.btn-texto { min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--vinho); font-weight: 700; font-size: 15px; }
.selo-numero { position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: var(--vinho); color: var(--papel); font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.acoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- chips e etiquetas ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chips.quebra { flex-wrap: wrap; overflow: visible; }
.chip {
  flex-shrink: 0; min-height: 40px; padding: 0 16px; border-radius: 20px;
  background: var(--papel); color: var(--vinho); border: 1.5px dashed var(--rosa);
  font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
}
.chip[aria-pressed="true"], .chip.ativo { background: var(--vinho); color: var(--papel); border: 1.5px solid var(--vinho); }
.segmentado { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); background: var(--rosa-suave); border-radius: 22px; padding: 4px; }
.segmentado > * { min-height: 38px; border: 0; border-radius: 18px; background: transparent; font-weight: 700; font-size: 13px; color: var(--vinho); display: flex; align-items: center; justify-content: center; text-decoration: none; }
.segmentado > [aria-pressed="true"], .segmentado > .ativo { background: var(--papel); box-shadow: 0 0 0 1.5px var(--vinho); }
.etiqueta { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.etiqueta.planejando, .etiqueta.repor, .etiqueta.suave { background: var(--rosa-suave); color: var(--vinho); }
.etiqueta.em_producao { background: var(--rosa); color: var(--tinta); }
.etiqueta.concluido, .etiqueta.forte { background: var(--vinho); color: var(--papel); }
.etiqueta.pausado, .etiqueta.contorno { border: 1px solid var(--borda); color: var(--texto2); background: var(--papel); }
.etiqueta.disponivel { border: 1.5px solid var(--vinho); color: var(--vinho); background: var(--papel); }

/* ---------- cartões ---------- */
.cartao { background: var(--papel); border: 1.5px dashed var(--rosa); border-radius: 14px; padding: 12px; }
.cartao.liso { border: 1px solid var(--linha); }
.cartao.tinta { border: 1.5px solid var(--tinta); }
.lista { display: flex; flex-direction: column; gap: 10px; }
.item {
  display: flex; gap: 12px; align-items: center; text-decoration: none; color: var(--tinta);
  background: var(--papel); border: 1px solid var(--linha); border-radius: 12px; padding: 10px 12px; min-height: 64px;
}
.item.tracejado { border: 1.5px dashed var(--rosa); border-radius: 14px; }
.item:hover { color: var(--tinta); border-color: var(--rosa); }
.item-corpo { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.item-nome { font-weight: 700; font-size: 15px; overflow-wrap: anywhere; }
.item-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; text-align: right; }
.grade2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.grade3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.atalho { text-decoration: none; color: var(--tinta); background: var(--papel); border: 1.5px dashed var(--rosa); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 92px; }
.atalho:hover { color: var(--tinta); }
.atalho b { font-size: 15px; }
.resumo { background: var(--papel); border: 1.5px dashed var(--rosa); border-radius: 12px; padding: 10px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; }
.resumo .numero { font-size: 26px; line-height: 1.1; }
.resumo.forte { background: var(--vinho); border-color: var(--vinho); }
.resumo.forte .numero { color: var(--papel); }
.resumo.forte .pequeno { color: var(--rosa-suave); }

/* gaveta em forma de etiqueta de roupa */
.gaveta { position: relative; text-decoration: none; color: var(--tinta); background: var(--papel); border: 1.5px dashed var(--rosa); border-radius: 6px 14px 14px 6px; padding: 12px 10px 12px 32px; display: flex; flex-direction: column; gap: 6px; min-height: 88px; }
.gaveta::before { content: ''; position: absolute; left: 10px; top: 14px; width: 12px; height: 12px; border-radius: 6px; box-shadow: inset 0 0 0 1.5px var(--rosa); }
.gaveta.grande { grid-column: span 2; border: 1.5px solid var(--tinta); flex-direction: row; align-items: center; padding: 14px 14px 14px 40px; }
.gaveta.grande::before { left: 12px; top: 50%; margin-top: -7px; width: 14px; height: 14px; background: var(--creme); box-shadow: inset 0 0 0 1.5px var(--tinta); }
.gaveta:hover { color: var(--tinta); }

/* ---------- requadro de mangá ---------- */
.requadro { border: 2.5px solid var(--tinta); background: var(--papel); padding: 6px; position: relative; }
.quadro { border: 2px solid var(--tinta); }
.balao { position: absolute; background: var(--papel); border: 2px solid var(--tinta); border-radius: 50%; padding: 5px 12px; font-family: var(--f-nota); font-size: 13px; color: var(--vinho); white-space: nowrap; }
.legenda-quadro { background: var(--papel); border: 1.5px solid var(--tinta); padding: 2px 6px; font-size: 11px; }
.capa { width: 100%; height: 100%; object-fit: cover; }

/* ---------- amostras ---------- */
.amostra-picotada { flex-shrink: 0; width: 60px; height: 74px; background: var(--rosa-suave); clip-path: polygon(0 0, 100% 0, 100% 88%, 88% 100%, 75% 88%, 62% 100%, 50% 88%, 38% 100%, 25% 88%, 12% 100%, 0 88%); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.amostra-picotada img { width: 100%; height: 100%; object-fit: cover; }
.meada { position: relative; flex-shrink: 0; width: 30px; height: 44px; border-radius: 11px; background: var(--rosa); }
.meada::after { content: ''; position: absolute; left: -3px; right: -3px; top: 16px; height: 11px; background: var(--papel); border: 1px solid var(--tinta); border-radius: 2px; }
.meada.vazia { background: transparent; border: 1.5px dashed var(--vinho); }
.meada.vazia::after { display: none; }
.meada.clara { box-shadow: inset 0 0 0 1px var(--borda); }
.meada.grande { width: 78px; height: 118px; border-radius: 28px; }
.meada.grande::after { display: none; }
.meada-codigo { position: absolute; left: -6px; right: -6px; top: 42px; height: 32px; background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 3px; display: flex; align-items: center; justify-content: center; font-family: var(--f-titulo); font-weight: 800; font-size: 14px; z-index: 1; overflow: hidden; }
.meada.mini { width: 26px; height: 38px; border-radius: 10px; }
.meada.mini::after { top: 13px; height: 10px; }

/* ---------- progresso costurado ---------- */
.progresso { display: flex; gap: 3px; }
.progresso .feito { height: 8px; background: var(--vinho); border-radius: 4px; }
.progresso .falta { height: 8px; border: 1.5px dashed var(--rosa); border-radius: 4px; }

/* ---------- formulários ---------- */
.formulario { display: flex; flex-direction: column; gap: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.campo > label, .campo > .rotulo-campo, fieldset > legend { font-size: 12px; font-weight: 700; color: var(--vinho); letter-spacing: .08em; text-transform: uppercase; padding: 0; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
fieldset > legend { margin-bottom: 8px; }
.entrada, .campo input:not([type=checkbox]):not([type=radio]):not([type=file]), .campo select, .campo textarea {
  min-height: 46px; width: 100%; border: 0; border-bottom: 1.5px dashed var(--vinho); border-radius: 0;
  background: transparent; font-size: 17px; font-weight: 500; color: var(--tinta); padding: 4px 2px; outline: none;
  -webkit-appearance: none; appearance: none;
}
.campo select { background-image: linear-gradient(45deg, transparent 50%, var(--vinho) 50%), linear-gradient(135deg, var(--vinho) 50%, transparent 50%); background-position: calc(100% - 14px) 50%, calc(100% - 9px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 28px; }
.campo textarea { min-height: 96px; line-height: 32px; font-family: var(--f-nota); color: var(--vinho); resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-bottom-style: solid; border-bottom-width: 2px; }
::placeholder { color: var(--apagado); opacity: 1; }
.linha-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ficha { position: relative; border-radius: 18px 18px 14px 14px; padding: 30px 18px 22px; display: flex; flex-direction: column; gap: 18px; outline: 1.5px dashed var(--rosa); outline-offset: -8px; }
.ficha::before { content: ''; position: absolute; left: 50%; top: 10px; width: 14px; height: 14px; margin-left: -7px; border-radius: 7px; background: var(--rosa-suave); box-shadow: inset 0 0 0 2px var(--vinho); }
.ficha-cabeca { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--tinta); padding-bottom: 8px; gap: 8px; }
.foto-campo { min-height: 120px; border: 2px dashed var(--rosa); border-radius: 12px; background: transparent; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--vinho); font-weight: 700; font-size: 15px; position: relative; overflow: hidden; padding: 10px; text-align: center; }
.foto-campo img { max-height: 220px; width: auto; border-radius: 8px; }
.foto-campo input { position: absolute; inset: 0; opacity: 0; cursor: pointer; font-size: 0; }
.opcao { min-height: 48px; display: flex; align-items: center; gap: 10px; padding: 0 12px; border-radius: 12px; font-weight: 700; font-size: 15px; border: 1.5px dashed var(--borda); background: transparent; text-align: left; width: 100%; }
.opcao input { width: 22px; height: 22px; accent-color: var(--vinho); flex-shrink: 0; }
.opcao:has(input:checked) { background: var(--rosa-suave); border: 1.5px solid var(--rosa); }
.aviso { background: var(--rosa-suave); border-radius: 12px; padding: 10px 12px; font-size: 14px; color: var(--vinho); }
.erro-campo { color: var(--vinho); font-weight: 700; font-size: 13px; }

/* contador de meadas */
.contadores { background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 14px; }
.contador { display: flex; align-items: center; gap: 12px; padding: 10px 12px; }
.contador + .contador { border-top: 1px dashed var(--rosa); }
.contador-nome { flex: 1; font-weight: 700; font-size: 16px; }
.contador-valor { width: 34px; text-align: center; font-family: var(--f-titulo); font-weight: 800; font-size: 24px; }
.passo { width: 44px; height: 44px; border-radius: 22px; font-size: 22px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; line-height: 1; }
.passo.menos { border: 1.5px dashed var(--vinho); background: transparent; color: var(--vinho); }
.passo.mais { border: 0; background: var(--vinho); color: var(--papel); }

/* busca */
.busca { display: flex; align-items: center; gap: 10px; min-height: 48px; background: var(--papel); border-radius: 24px; padding: 0 16px; border: 1.5px dashed var(--rosa); }
.busca.tinta { border: 1.5px solid var(--tinta); }
.busca input { flex: 1; border: 0; background: transparent; font-size: 16px; outline: none; min-width: 0; -webkit-appearance: none; }

/* ---------- barra de navegação ---------- */
.barra-nav {
  position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 520px; z-index: 20;
  background: var(--papel); border-top: 1.5px dashed var(--rosa);
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); align-items: center;
  padding: 8px 6px calc(8px + var(--seguro-baixo));
}
.barra-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 48px; justify-content: center; text-decoration: none; color: var(--apagado); font-size: 11px; }
.barra-nav a[aria-current="page"] { color: var(--vinho); font-weight: 700; }
.barra-nav .mais-central { justify-self: center; width: 54px; height: 54px; border-radius: 27px; background: var(--vinho); color: var(--papel); box-shadow: 0 0 0 4px var(--papel), 0 0 0 5.5px var(--rosa); margin-top: -22px; border: 0; display: flex; align-items: center; justify-content: center; }

/* ---------- folha (painel que sobe de baixo) ---------- */
#camada:empty { display: none; }
.fundo-folha { position: fixed; inset: 0; background: rgba(43, 32, 36, .38); z-index: 50; display: flex; align-items: flex-end; justify-content: center; animation: aparecer .15s ease-out; }
.folha { width: 100%; max-width: 520px; max-height: 92dvh; overflow-y: auto; background: var(--creme); border-radius: 22px 22px 0 0; padding: 10px 20px calc(24px + var(--seguro-baixo)); display: flex; flex-direction: column; gap: 16px; animation: subir .2s ease-out; }
.folha::before { content: ''; align-self: center; width: 44px; height: 5px; border-radius: 3px; background: var(--borda); }
.folha-titulo { margin: 0; font-family: var(--f-titulo); font-weight: 800; font-size: 22px; }
.menu-folha { display: flex; flex-direction: column; gap: 8px; }
.menu-folha a, .menu-folha button { min-height: 56px; display: flex; align-items: center; gap: 12px; padding: 0 14px; border-radius: 14px; background: var(--papel); border: 1.5px dashed var(--rosa); text-decoration: none; color: var(--tinta); font-weight: 700; font-size: 16px; width: 100%; text-align: left; }
@keyframes subir { from { transform: translateY(40px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes aparecer { from { opacity: 0; } to { opacity: 1; } }

/* aviso rápido */
.recado { position: fixed; left: 50%; bottom: calc(96px + var(--seguro-baixo)); transform: translateX(-50%); z-index: 60; background: var(--tinta); color: var(--papel); border-radius: 22px; padding: 10px 18px; font-size: 14px; font-weight: 700; max-width: calc(100% - 32px); box-shadow: 0 0 0 3px var(--papel); animation: aparecer .15s; }
.recado.erro { background: var(--vinho); }

/* estados vazios */
.vazio { text-align: center; padding: 28px 16px; border: 2px dashed var(--rosa); border-radius: 16px; background: var(--papel); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.vazio .nota { font-size: 17px; }

/* etapas */
.etapas { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px dashed var(--rosa); display: flex; flex-direction: column; gap: 2px; }
.etapa { margin-left: -25px; display: flex; align-items: center; gap: 6px; }
.etapa-marca { flex: 1; min-height: 44px; display: flex; align-items: center; gap: 12px; border: 0; background: transparent; padding: 0; text-align: left; font-size: 15px; }
.etapa-bolinha { width: 20px; height: 20px; flex-shrink: 0; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; background: var(--creme); border: 2px solid var(--rosa); box-shadow: 0 0 0 3px var(--creme); }
.etapa.feita .etapa-bolinha { background: var(--vinho); border-color: var(--vinho); color: var(--papel); }
.etapa.feita .etapa-texto { color: var(--texto2); text-decoration: line-through; text-decoration-color: var(--rosa); }
.etapa:not(.feita) .etapa-texto { font-weight: 700; }

/* galeria */
.galeria { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.galeria-item { aspect-ratio: 3 / 4; border: 2px solid var(--tinta); background: var(--papel); position: relative; overflow: hidden; padding: 0; }
.galeria-item img { width: 100%; height: 100%; object-fit: cover; }
.galeria-add { aspect-ratio: 3 / 4; border: 2px dashed var(--rosa); background: transparent; display: flex; align-items: center; justify-content: center; position: relative; color: var(--vinho); }
.galeria-add input { position: absolute; inset: 0; opacity: 0; font-size: 0; }

/* biblioteca */
.envelope { text-decoration: none; color: var(--tinta); display: flex; flex-direction: column; background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 4px; overflow: hidden; }
.envelope:hover { color: var(--tinta); }
.envelope-capa { height: 118px; position: relative; border-bottom: 1.5px dashed var(--vinho); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.envelope-capa img { width: 100%; height: 100%; object-fit: cover; }
.envelope-tipo { position: absolute; left: 6px; top: 6px; font-size: 10px; font-weight: 700; padding: 2px 6px; border-radius: 8px; background: var(--papel); border: 1px solid var(--rosa); color: var(--vinho); }
.envelope-corpo { padding: 10px; display: flex; flex-direction: column; gap: 3px; }

/* cartela de cores */
.cartela { background-color: var(--papel); background-image: repeating-linear-gradient(90deg, transparent 0 23px, rgba(201, 138, 147, .12) 23px 24px); border: 1.5px solid var(--tinta); border-radius: 6px; padding: 12px; display: flex; flex-direction: column; gap: 10px; }
.cartela-cabeca { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--tinta); padding-bottom: 6px; gap: 8px; }
.cartela-grade { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px 6px; }
.cartela-cor { display: flex; flex-direction: column; align-items: center; gap: 4px; text-decoration: none; color: var(--tinta); min-height: 44px; }
.cartela-cor b { font-size: 12px; overflow-wrap: anywhere; text-align: center; }
.mini-estado { font-size: 10px; color: var(--texto2); }
.mini-estado.repor { font-weight: 700; color: var(--vinho); background: var(--rosa-suave); padding: 0 5px; border-radius: 6px; }
.mini-estado.acabou { font-weight: 700; color: var(--papel); background: var(--vinho); padding: 0 5px; border-radius: 6px; }

/* tabela de medidas */
.medidas { background: var(--papel); border: 1.5px solid var(--tinta); display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.medida { padding: 10px; border-right: 1px dashed var(--rosa); border-bottom: 1px dashed var(--rosa); min-width: 0; }
.medida:nth-child(3n) { border-right: 0; }
.medida b { display: block; font-size: 17px; }

/* login */
.porta { min-height: 100dvh; display: flex; flex-direction: column; justify-content: center; padding: 32px 22px calc(32px + var(--seguro-baixo)); gap: 22px; }

/* chips e segmentos feitos com rádio (formulários) */
label.chip, .segmentado > label { position: relative; cursor: pointer; }
label.chip input, .segmentado > label input { position: absolute; opacity: 0; pointer-events: none; width: 1px; height: 1px; }
label.chip:has(input:checked) { background: var(--vinho); color: var(--papel); border: 1.5px solid var(--vinho); }
.segmentado > label:has(input:checked) { background: var(--papel); box-shadow: 0 0 0 1.5px var(--vinho); }
label.chip:has(input:focus-visible), .segmentado > label:has(input:focus-visible) { outline: 2.5px solid var(--vinho); outline-offset: 2px; }
.detalhes-lista { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 12px; padding: 12px 14px; }
.detalhes-lista dt { font-size: 12px; font-weight: 700; color: var(--vinho); text-transform: uppercase; letter-spacing: .06em; padding-top: 2px; }
.detalhes-lista dd { margin: 0; font-size: 15px; overflow-wrap: anywhere; }
.estoque-rapido { display: flex; align-items: center; gap: 12px; background: var(--papel); border: 1.5px solid var(--tinta); border-radius: 14px; padding: 10px 12px; }
