/* Pre-producao: guia de fluxo, captura viva e animacoes leves.
   So acabamento e movimento: o layout e o comportamento sao os do tema. */
@keyframes ppx-entra { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes ppx-respira { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .45); } 70% { box-shadow: 0 0 0 7px rgba(255, 106, 43, 0); } }
@keyframes ppx-seta { 0%, 100% { transform: translateX(0); opacity: .45; } 50% { transform: translateX(4px); opacity: .9; } }
@keyframes ppx-chama { 0% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .6); } 100% { box-shadow: 0 0 0 14px rgba(255, 106, 43, 0); } }
@keyframes ppx-brilho { 0%, 70% { transform: translateX(-140%) skewX(-18deg); } 100% { transform: translateX(340%) skewX(-18deg); } }
@keyframes ppx-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-2px); } }

.preproducao > * { animation: ppx-entra .45s cubic-bezier(.2, .8, .2, 1) both; }
.preproducao > *:nth-child(2) { animation-delay: .05s; } .preproducao > *:nth-child(3) { animation-delay: .1s; }
.preproducao > *:nth-child(4) { animation-delay: .15s; } .preproducao > *:nth-child(5) { animation-delay: .2s; } .preproducao > *:nth-child(6) { animation-delay: .25s; }

/* ---- guia de fluxo ---- */
.pre-fluxo { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; padding: 12px 14px; border-radius: 18px; flex-wrap: wrap;
  border: 1px solid rgba(255, 255, 255, .07); background: linear-gradient(165deg, rgba(255, 255, 255, .04), rgba(255, 255, 255, .01)); }
.pre-fluxo-passo { flex: 1; min-width: 200px; display: flex; align-items: center; gap: 11px; padding: 6px 8px; border-radius: 12px; transition: background .25s;
  animation: ppx-entra .4s calc(.1s + var(--i) * 80ms) both; }
.pre-fluxo-passo:hover { background: rgba(255, 255, 255, .03); }
.pre-fluxo-ic { position: relative; display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; color: #ffb38a;
  background: rgba(255, 106, 43, .12); border: 1px solid rgba(255, 122, 61, .25); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pre-fluxo-passo:hover .pre-fluxo-ic { transform: rotate(-8deg) scale(1.08); }
.pre-fluxo-ic svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pre-fluxo-ic em { position: absolute; top: -6px; right: -6px; display: grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; font-style: normal; font-size: 9.5px; font-weight: 800;
  color: #fff; background: #ff6a2b; box-shadow: 0 0 0 2px #10131a; }
.pre-fluxo-passo.tem .pre-fluxo-ic em { animation: ppx-respira 2.2s ease-out infinite; }
.pre-fluxo-passo strong { display: block; font-size: 13px; font-weight: 700; }
.pre-fluxo-passo small { display: block; font-size: 11.5px; opacity: .55; }
.pre-fluxo-passo > div { flex: 1; min-width: 0; }
.pre-fluxo-conta { flex: none; display: flex; flex-direction: column; align-items: flex-end; font-size: 18px; font-weight: 800; line-height: 1; color: #ffb38a; }
.pre-fluxo-conta span { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .55; color: #fff; margin-top: 2px; }
.pre-fluxo-seta { display: grid; place-items: center; flex: none; color: rgba(255, 255, 255, .4); }
.pre-fluxo-seta svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; animation: ppx-seta 1.8s ease-in-out infinite; }

/* ---- captura da ideia ---- */
.pre-captura { position: relative; align-items: center; transition: border-color .25s, box-shadow .3s, transform .25s !important; }
.pre-captura:focus-within { border-color: rgba(255, 122, 61, .55) !important; box-shadow: 0 0 0 4px rgba(255, 106, 43, .1), 0 16px 34px -20px rgba(255, 90, 31, .6) !important; }
.pre-captura.chamou { animation: ppx-chama .7s ease-out; }
.pre-captura-ic { display: grid; place-items: center; width: 34px; height: 34px; flex: none; margin-left: 6px; border-radius: 11px; color: #fde047; background: rgba(250, 204, 21, .1);
  animation: ppx-flutua 3s ease-in-out infinite; }
.pre-captura-ic svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pre-captura:focus-within .pre-captura-ic { color: #fff; background: #ff6a2b; animation: none; }
.pre-captura button[type="submit"], #pre-nova { position: relative; overflow: hidden; transition: transform .2s, box-shadow .2s !important; }
.pre-captura button[type="submit"]::after, #pre-nova::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .3), transparent); animation: ppx-brilho 5s ease-in-out infinite; }
.pre-captura button[type="submit"]:hover, #pre-nova:hover { transform: translateY(-2px); }
.pre-captura button[type="submit"]:active, #pre-nova:active { transform: scale(.96); }

/* ---- datas sugeridas ---- */
.pre-chip { transition: transform .2s cubic-bezier(.3, 1.5, .5, 1), border-color .2s, background .2s !important; animation: ppx-entra .35s both; }
.pre-chip:nth-child(2) { animation-delay: .03s; } .pre-chip:nth-child(3) { animation-delay: .06s; } .pre-chip:nth-child(4) { animation-delay: .09s; }
.pre-chip:nth-child(5) { animation-delay: .12s; } .pre-chip:nth-child(6) { animation-delay: .15s; } .pre-chip:nth-child(n+7) { animation-delay: .18s; }
.pre-chip:hover { transform: translateY(-2px); border-color: rgba(255, 122, 61, .55) !important; background: rgba(255, 106, 43, .08) !important; }

/* ---- pilhas (ideias e rascunhos) ---- */
.pre-pilha { transition: border-color .3s, box-shadow .3s, transform .3s cubic-bezier(.2, .8, .2, 1) !important; }
.pre-pilha:hover { border-color: rgba(255, 255, 255, .14) !important; transform: translateY(-2px); box-shadow: 0 20px 44px -28px #000 !important; }
.pre-numero { transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.pre-pilha:hover .pre-numero { transform: scale(1.12) rotate(-6deg); }
.pre-cartao { animation: ppx-entra .35s both; transition: transform .2s cubic-bezier(.2, .8, .2, 1), border-color .2s, box-shadow .2s !important; cursor: grab; }
.pre-cartao:hover { transform: translateY(-2px); border-color: rgba(255, 122, 61, .4) !important; box-shadow: 0 12px 26px -16px #000; }
.pre-cartao:active { cursor: grabbing; transform: scale(.98) rotate(-1deg); }

/* ---- calendario do mes ---- */
.pre-mes .dia { transition: background .2s, box-shadow .25s; }
.pre-mes .dia:not(.fora):hover { background: rgba(255, 255, 255, .03); box-shadow: inset 0 0 0 1px rgba(255, 122, 61, .25); }
.pre-mes .dia.hoje { box-shadow: inset 0 0 0 1.5px rgba(255, 122, 61, .6); }
.pre-mes .pastilha { transition: transform .2s cubic-bezier(.2, .8, .2, 1), filter .2s; animation: ppx-entra .3s both; }
.pre-mes .pastilha:hover { transform: translateY(-1px) scale(1.02); filter: brightness(1.12); }
/* soltando algo num dia: o dia acende */
.pre-mes .dia.sobre, .pre-mes .dia.alvo, .pre-mes .dia.arrastando { background: rgba(255, 106, 43, .1) !important; box-shadow: inset 0 0 0 2px #ff7a3d !important; }

@media (max-width: 900px) { .pre-fluxo-seta { display: none; } .pre-fluxo-passo { min-width: 100%; } }
@media (prefers-reduced-motion: reduce) { .preproducao *, .preproducao > * { animation: none !important; } }

/* ---- guia de fluxo: minimalista ----
   Nada sai da caixa (sem overflow cortando): o icone so troca de cor em
   sequencia, devagar, e o hover e um leve realce. */
@keyframes ppf-acende { 0%, 100% { background: rgba(255, 106, 43, .1); border-color: rgba(255, 122, 61, .22); color: #ffb38a; }
  12%, 22% { background: rgba(255, 106, 43, .22); border-color: rgba(255, 122, 61, .6); color: #fff; } }
@keyframes ppf-ponto { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }
.pre-fluxo { overflow: visible; padding: 14px 16px !important; }
.pre-fluxo-passo { position: relative; overflow: visible; border: 1px solid transparent; padding: 8px 10px; animation: ppx-entra .4s calc(.1s + var(--i) * 80ms) both;
  transition: background .3s ease, border-color .3s ease; }
.pre-fluxo-passo:hover { background: rgba(255, 255, 255, .025); border-color: rgba(255, 255, 255, .07); }
.pre-fluxo-ic { animation: ppf-acende 7.5s calc(var(--i) * 2.5s) ease-in-out infinite; transition: none; }
.pre-fluxo-passo:hover .pre-fluxo-ic { transform: none; }
.pre-fluxo-ic em { animation: none !important; }
.pre-fluxo-passo.tem .pre-fluxo-ic em { box-shadow: 0 0 0 2px #10131a, 0 0 8px rgba(255, 106, 43, .7); }
.pre-fluxo-seta svg { animation: ppf-ponto 2.5s ease-in-out infinite; }
.pre-fluxo-seta:nth-of-type(2) svg { animation-delay: 1.25s; }
.pre-fluxo-conta { transition: color .3s; }
.pre-fluxo-passo:not(.tem) .pre-fluxo-conta { color: rgba(255, 255, 255, .35); }

/* ---- guia de fluxo: movimento visivel, sem sair da caixa ---- */
@keyframes ppf2-acende { 0%, 100% { background: rgba(255, 106, 43, .1); color: #ffb38a; box-shadow: 0 0 0 0 rgba(255, 106, 43, 0); }
  10%, 26% { background: #ff6a2b; color: #fff; box-shadow: 0 0 0 4px rgba(255, 106, 43, .18), 0 6px 16px -6px rgba(255, 106, 43, .8); } }
@keyframes ppf2-barra { 0% { transform: scaleX(0); opacity: 1; } 30% { transform: scaleX(1); opacity: 1; } 40%, 100% { transform: scaleX(1); opacity: 0; } }
@keyframes ppf2-texto { 0%, 100% { color: inherit; } 10%, 26% { color: #fff; } }
.pre-fluxo-passo .pre-fluxo-ic { animation: ppf2-acende 7.5s calc(var(--i) * 2.5s) ease-in-out infinite !important; }
.pre-fluxo-passo strong { animation: ppf2-texto 7.5s calc(var(--i) * 2.5s) ease-in-out infinite; }
/* uma linha fina corre por baixo do passo que esta "aceso" */
.pre-fluxo-passo::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; transform-origin: left; transform: scaleX(0);
  background: linear-gradient(90deg, #ff7a3d, rgba(255, 122, 61, 0)); animation: ppf2-barra 7.5s calc(var(--i) * 2.5s) ease-in-out infinite; }
.pre-fluxo-passo::before { display: none !important; }
.pre-fluxo::after { display: none !important; }
@media (prefers-reduced-motion: reduce) { .pre-fluxo-passo .pre-fluxo-ic, .pre-fluxo-passo strong, .pre-fluxo-passo::after { animation: none !important; } }

/* ---- captura e datas: clean ---- */
.pre-captura { gap: 8px !important; padding: 6px 6px 6px 8px !important; border-radius: 16px !important; border: 1px solid rgba(255, 255, 255, .08) !important;
  background: rgba(255, 255, 255, .025) !important; box-shadow: none !important; }
.pre-captura-ic { width: 32px !important; height: 32px !important; margin-left: 2px !important; border-radius: 10px !important; color: rgba(255, 255, 255, .5) !important;
  background: rgba(255, 255, 255, .05) !important; animation: none !important; transition: background .25s, color .25s; }
.pre-captura:focus-within .pre-captura-ic { color: #fff !important; background: #ff6a2b !important; }
.pre-captura #pre-texto { flex: 1; height: 40px !important; border: 0 !important; background: none !important; box-shadow: none !important; font-size: 14.5px !important; padding: 0 4px !important; }
.pre-captura #pre-texto:focus { outline: none; }
.pre-captura #pre-texto::placeholder { color: rgba(255, 255, 255, .35); }
.pre-kbd { flex: none; display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: 6px; font: inherit; font-size: 11px; font-weight: 700;
  color: rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-bottom-width: 2px; transition: opacity .2s; }
.pre-captura:focus-within .pre-kbd { opacity: 0; }
.pre-captura .sel-botao, .pre-captura select { height: 38px !important; border-radius: 11px !important; border: 1px solid rgba(255, 255, 255, .08) !important; background: rgba(255, 255, 255, .03) !important; }
.pre-captura button[type="submit"] { height: 38px !important; padding: 0 18px !important; border-radius: 11px !important; box-shadow: none !important; }
.pre-captura button[type="submit"]::after { display: none; }

/* datas sugeridas: uma linha so, rolando de lado */
.pre-sugestoes { display: flex !important; flex-wrap: nowrap !important; align-items: center; gap: 6px !important; overflow-x: auto; margin: 10px 0 18px !important; padding: 2px 2px 6px;
  scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 92%, transparent); mask-image: linear-gradient(90deg, #000 92%, transparent); }
.pre-sugestoes::-webkit-scrollbar { display: none; }
.pre-sugestoes-rotulo { flex: none; margin-right: 4px; font-size: 11px !important; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .35) !important; }
.pre-chip { flex: none; display: inline-flex !important; align-items: center; gap: 6px; height: 30px !important; padding: 0 12px !important; border-radius: 999px !important; white-space: nowrap;
  font-size: 12px !important; font-weight: 600 !important; border: 1px solid rgba(255, 255, 255, .07) !important; background: rgba(255, 255, 255, .03) !important; }
.pre-chip small, .pre-chip em, .pre-chip span { opacity: .45; font-weight: 500; }
.pre-chip:hover { transform: none !important; border-color: rgba(255, 122, 61, .4) !important; background: rgba(255, 106, 43, .08) !important; color: #fff; }

/* ---- Ideias e Rascunhos: duas colunas claras, com seta entre elas ---- */
@keyframes ppc-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.pre-colunas { position: relative; gap: 28px !important; }
.pre-colunas::before { content: ""; position: absolute; left: 50%; top: 50%; width: 28px; height: 28px; margin: -14px 0 0 -14px; z-index: 2; border-radius: 50%;
  background: #12161e url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff9a6b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12h14M13 6l6 6-6 6'/%3E%3C/svg%3E") center / 14px no-repeat;
  border: 1px solid rgba(255, 122, 61, .3); }
.pre-pilha { padding: 18px !important; border-radius: 18px !important; border: 1px solid rgba(255, 255, 255, .07) !important; background: rgba(255, 255, 255, .02) !important; box-shadow: none !important; }
.pre-pilha:hover { transform: none !important; box-shadow: none !important; border-color: rgba(255, 255, 255, .11) !important; }
.pre-passo { gap: 12px !important; padding-bottom: 14px; margin-bottom: 12px; border-bottom: 1px solid rgba(255, 255, 255, .05); }
.pre-numero { width: 26px !important; height: 26px !important; font-size: 12px !important; }
.pre-passo h3 { font-size: 15px !important; font-weight: 700 !important; display: flex; align-items: center; gap: 8px; }
.pre-passo .contador { padding: 1px 8px; border-radius: 999px; font-size: 11px; background: rgba(255, 255, 255, .07); }
.pre-passo .ajuda { font-size: 12px !important; opacity: .5; }
.pre-lista { display: grid; gap: 8px; }
.pre-vazio { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 26px 12px; text-align: center; border-radius: 14px; border: 1px dashed rgba(255, 255, 255, .08); }
.pre-vazio-ic { display: grid; place-items: center; width: 40px; height: 40px; margin-bottom: 6px; border-radius: 13px; color: #ff9a6b; background: rgba(255, 106, 43, .1); animation: ppc-flutua 3.5s ease-in-out infinite; }
.pre-vazio-ic svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pre-vazio strong { font-size: 13.5px; font-weight: 700; }
.pre-vazio small { font-size: 12px; opacity: .5; }
.pre-cartao { padding: 12px 14px !important; border-radius: 13px !important; border: 1px solid rgba(255, 255, 255, .07) !important; background: rgba(255, 255, 255, .025) !important; cursor: default !important; }
.pre-cartao:active { transform: none !important; }
.pre-cartao strong { font-size: 13.5px; font-weight: 700; }
.pre-acoes { display: flex; align-items: center; gap: 6px; margin-top: 10px; }
.pre-acao-principal { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; margin-left: auto; border-radius: 9px; cursor: pointer; font: inherit; font-size: 12.5px; font-weight: 700;
  color: #fff; filter: none; border: 1px solid #ff7a3d; background: #ff6a2b; box-shadow: 0 6px 14px -8px #ff5a1f; transition: transform .2s, box-shadow .2s; order: 5; }
.pre-acao-principal svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.pre-acao-principal:hover { transform: translateY(-1px); box-shadow: 0 10px 20px -8px #ff5a1f; }
.pre-acoes .discreto { height: 32px; padding: 0 10px; border-radius: 9px; font-size: 12px; }
.pre-acoes .pre-apagar { order: 6; }
@media (max-width: 900px) { .pre-colunas::before { display: none; } }

/* ---- colunas vivas (movimento leve, nada sai da borda) ---- */
@keyframes ppv-borda { to { background-position: 100% 0, 0 100%, 0 0, 100% 100%; } }
@keyframes ppv-linha { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
@keyframes ppv-seta { 0%, 100% { background-position: 45% center; box-shadow: 0 0 0 0 rgba(255, 122, 61, .4); } 50% { background-position: 60% center; box-shadow: 0 0 0 6px rgba(255, 122, 61, 0); } }
@keyframes ppv-num { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .45); } 60% { box-shadow: 0 0 0 6px rgba(255, 106, 43, 0); } }
@keyframes ppv-ic { 0%, 100% { transform: translateY(0) rotate(0); background: rgba(255, 106, 43, .1); } 50% { transform: translateY(-4px) rotate(-6deg); background: rgba(255, 106, 43, .2); } }
@keyframes ppv-texto { 0%, 100% { opacity: .45; } 50% { opacity: .75; } }

/* luz fina correndo no topo de cada coluna */
.pre-pilha { position: relative; overflow: hidden; }
.pre-pilha::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 1px; pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(255, 140, 80, .8), transparent); animation: ppv-linha 5s ease-in-out infinite; }
.pre-pilha + .pre-pilha::after { animation-delay: 2.5s; }
/* numero do passo respirando, um depois do outro */
.pre-numero { animation: ppv-num 2.8s ease-out infinite; }
.pre-pilha + .pre-pilha .pre-numero { animation-delay: 1.4s; }
/* seta entre as colunas empurrando */
.pre-colunas::before { animation: ppv-seta 2s ease-in-out infinite; }
/* vazio: borda tracejada andando e icone balancando */
.pre-vazio { border: 0 !important;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, .12) 50%, transparent 0) repeat-x,
    linear-gradient(90deg, rgba(255, 255, 255, .12) 50%, transparent 0) repeat-x,
    linear-gradient(0deg, rgba(255, 255, 255, .12) 50%, transparent 0) repeat-y,
    linear-gradient(0deg, rgba(255, 255, 255, .12) 50%, transparent 0) repeat-y;
  background-size: 10px 1px, 10px 1px, 1px 10px, 1px 10px;
  background-position: 0 0, 100% 100%, 0 100%, 100% 0;
  animation: ppv-borda 12s linear infinite; }
.pre-vazio-ic { animation: ppv-ic 3.2s ease-in-out infinite !important; }
.pre-pilha + .pre-pilha .pre-vazio-ic { animation-delay: 1.6s !important; }
.pre-vazio small { animation: ppv-texto 3.2s ease-in-out infinite; }
/* cartoes entram em cascata e o botao principal tem um brilho */
.pre-lista .pre-cartao:nth-child(2) { animation-delay: .05s; } .pre-lista .pre-cartao:nth-child(3) { animation-delay: .1s; } .pre-lista .pre-cartao:nth-child(n+4) { animation-delay: .15s; }
.pre-cartao:hover { transform: translateY(-2px) !important; border-color: rgba(255, 122, 61, .35) !important; }
.pre-acao-principal { position: relative; overflow: hidden; }
.pre-acao-principal::after { content: ""; position: absolute; inset: 0 auto 0 0; width: 35%; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .35), transparent); animation: ppx-brilho 4.5s ease-in-out infinite; }
@media (prefers-reduced-motion: reduce) { .pre-pilha::after, .pre-numero, .pre-colunas::before, .pre-vazio, .pre-vazio-ic, .pre-vazio small, .pre-acao-principal::after { animation: none !important; } }

/* =========================================================
   Ideias e Rascunhos v3: premium, detalhes finos
   ========================================================= */
@keyframes ppp-f1 { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-5px) rotate(-3deg); } }
@keyframes ppp-f2 { 0%, 100% { transform: translateY(0) rotate(3deg); } 50% { transform: translateY(-3px) rotate(4.5deg); } }
@keyframes ppp-f3 { 0%, 100% { transform: translateY(0) rotate(7deg); } 50% { transform: translateY(-1px) rotate(8deg); } }
@keyframes ppp-linha { 0%, 100% { opacity: .35; } 50% { opacity: .7; } }

/* coluna: vidro, borda fina com luz no topo */
.pre-pilha { padding: 0 !important; border-radius: 20px !important; border: 1px solid rgba(255, 255, 255, .06) !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, .035), rgba(255, 255, 255, .008) 40%) !important; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .05) !important; }
.pre-pilha::before { content: ""; position: absolute; top: 0; left: 20px; right: 20px; height: 1px; background: linear-gradient(90deg, transparent, rgba(255, 140, 80, .45), transparent); }
.pre-passo { padding: 18px 20px 16px !important; margin: 0 !important; border-bottom: 1px solid rgba(255, 255, 255, .045) !important; align-items: center !important; }
.pre-numero { width: 34px !important; height: 34px !important; border-radius: 11px !important; font-size: 13px !important; font-weight: 800 !important;
  color: #ffb38a !important; background: rgba(255, 106, 43, .1) !important; border: 1px solid rgba(255, 122, 61, .3) !important; box-shadow: none !important; }
.pre-passo-rotulo { display: block; font-size: 10px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 154, 107, .75); }
.pre-passo h3 { margin: 1px 0 2px !important; font-size: 16px !important; letter-spacing: -.01em; }
.pre-passo .contador { font-size: 10.5px !important; font-weight: 700; color: rgba(255, 255, 255, .55); background: rgba(255, 255, 255, .05) !important; border: 1px solid rgba(255, 255, 255, .07); }
.pre-passo .ajuda { font-size: 12px !important; opacity: .45 !important; }
.pre-lista { padding: 14px 16px 18px; }

/* vazio: sem tracejado; uma pilha de cartoes-fantasma flutuando */
.pre-vazio { border: 0 !important; background: none !important; animation: none !important; padding: 22px 12px 12px !important; gap: 3px !important; }
.pre-vazio-pilha { position: relative; width: 132px; height: 92px; margin-bottom: 16px; }
.pv-fantasma { position: absolute; left: 14px; top: 8px; width: 104px; height: 70px; border-radius: 12px;
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02)); border: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 14px 28px -18px #000; }
.pv-fantasma.f3 { opacity: .35; animation: ppp-f3 5s ease-in-out infinite; }
.pv-fantasma.f2 { opacity: .6; animation: ppp-f2 5s .3s ease-in-out infinite; }
.pv-fantasma.f1 { display: flex; flex-direction: column; justify-content: flex-end; gap: 5px; padding: 10px; box-sizing: border-box;
  background: linear-gradient(180deg, #1a1f2a, #141820); border-color: rgba(255, 122, 61, .22); animation: ppp-f1 5s .6s ease-in-out infinite; }
.pv-fantasma.f1 b { display: block; height: 4px; width: 70%; border-radius: 4px; background: rgba(255, 255, 255, .12); animation: ppp-linha 2.6s ease-in-out infinite; }
.pv-fantasma.f1 b.curta { width: 44%; animation-delay: .4s; }
.pre-vazio-ic { position: absolute !important; top: 9px; left: 10px; width: 26px !important; height: 26px !important; margin: 0 !important; border-radius: 8px !important;
  display: grid !important; place-items: center; color: #ffb38a !important; background: rgba(255, 106, 43, .14) !important; animation: none !important; font-style: normal; }
.pre-vazio-ic svg { width: 14px !important; height: 14px !important; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pre-vazio strong { font-size: 14px !important; font-weight: 700 !important; letter-spacing: -.005em; }
.pre-vazio small { font-size: 12px !important; opacity: .45 !important; animation: none !important; max-width: 280px; line-height: 1.5; }

/* seta entre colunas: fina, discreta */
.pre-colunas::before { width: 30px !important; height: 30px !important; margin: -15px 0 0 -15px !important; background-color: #10131a !important; border-color: rgba(255, 255, 255, .1) !important;
  box-shadow: 0 0 0 4px #0b0d12; }
.pre-pilha::after { height: 1px !important; background: linear-gradient(90deg, transparent, rgba(255, 170, 120, .9), transparent) !important; }

/* vazio: so o icone, com um halo respirando */
@keyframes ppi-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes ppi-halo { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 106, 43, .28), inset 0 1px 0 rgba(255, 255, 255, .08); } 60% { box-shadow: 0 0 0 10px rgba(255, 106, 43, 0), inset 0 1px 0 rgba(255, 255, 255, .08); } }
.pre-vazio { padding: 28px 12px 18px !important; gap: 4px !important; }
.pre-vazio-ic2 { display: grid; place-items: center; width: 48px; height: 48px; margin-bottom: 12px; border-radius: 15px; color: #ffb38a;
  background: linear-gradient(160deg, rgba(255, 122, 61, .2), rgba(255, 90, 31, .06)); border: 1px solid rgba(255, 122, 61, .3);
  animation: ppi-flutua 3.6s ease-in-out infinite, ppi-halo 3.6s ease-out infinite; }
.pre-pilha + .pre-pilha .pre-vazio-ic2 { animation-delay: 1.8s; }
.pre-vazio-ic2 svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ---- cartao de ideia/rascunho: estilo "em andamento" ---- */
@property --pcv-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes pcv-gira { to { --pcv-ang: 360deg; } }
@keyframes pcv-pulso { 0% { box-shadow: 0 0 0 2.5px #11151c, 0 0 0 2.5px color-mix(in srgb, var(--pc) 60%, transparent); } 100% { box-shadow: 0 0 0 2.5px #11151c, 0 0 0 10px transparent; } }
@keyframes pcv-pula { 0%, 60%, 100% { transform: translateY(0); opacity: .4; } 30% { transform: translateY(-3px); opacity: 1; } }
@keyframes pcv-barra { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.pre-cartao.pcv { --pc: #fbbf24; position: relative; overflow: hidden; display: flex !important; flex-direction: column; gap: 10px; padding: 14px 14px 16px !important; border-radius: 16px !important;
  border: 1px solid color-mix(in srgb, var(--pc) 22%, rgba(255, 255, 255, .06)) !important;
  background: linear-gradient(135deg, color-mix(in srgb, var(--pc) 8%, transparent), rgba(17, 21, 28, .9) 55%) !important; }
.pre-cartao.pcv.rascunho { --pc: #a78bfa; }
/* barrinha de progresso correndo na base, como a da producao */
.pre-cartao.pcv::before { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: rgba(255, 255, 255, .05); }
.pre-cartao.pcv::after { content: ""; position: absolute; left: 0; bottom: 0; width: 35%; height: 2px; background: linear-gradient(90deg, transparent, var(--pc), transparent); animation: pcv-barra 2.4s ease-in-out infinite; }
.pcv-topo { display: flex; align-items: center; gap: 12px; min-width: 0; }
.pcv-foto { position: relative; width: 42px; height: 42px; flex: none; }
.pcv-foto::before { content: ""; position: absolute; inset: -3px; border-radius: 50%;
  background: conic-gradient(from var(--pcv-ang), var(--pc), color-mix(in srgb, var(--pc) 12%, transparent) 40%, var(--pc) 70%, color-mix(in srgb, var(--pc) 12%, transparent)); animation: pcv-gira 2.6s linear infinite; }
.pcv-rosto { position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; border-radius: 50% !important; overflow: hidden; box-shadow: 0 0 0 2px #11151c; }
.pcv-rosto img { width: 100%; height: 100%; object-fit: cover; }
.pcv-ponto { position: absolute; right: -1px; bottom: -1px; width: 11px; height: 11px; border-radius: 50%; background: var(--pc); animation: pcv-pulso 1.6s ease-out infinite; }
.pcv-meio { flex: 1; min-width: 0; display: grid; gap: 2px; }
.pcv-meio strong { font-size: 14.5px !important; font-weight: 700; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pcv-estado { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: color-mix(in srgb, var(--pc) 80%, #fff); }
.pcv-estado > b { font-weight: 700; }
.pcv-estado i { display: inline-flex; gap: 3px; margin-left: 3px; }
.pcv-estado i b { width: 3.5px; height: 3.5px; border-radius: 50%; background: var(--pc); animation: pcv-pula 1.2s ease-in-out infinite; }
.pcv-estado i b:nth-child(2) { animation-delay: .15s; } .pcv-estado i b:nth-child(3) { animation-delay: .3s; }
.pcv-meio small { font-size: 11.5px; color: rgba(255, 255, 255, .45); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pre-cartao.pcv .pre-plano { display: flex; flex-wrap: wrap; gap: 5px; margin: 0; }
.pre-cartao.pcv .pre-tag { padding: 2px 9px; border-radius: 999px; font-size: 10.5px; font-weight: 700; color: rgba(255, 255, 255, .75); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); }
.pre-cartao.pcv .pre-desc { margin: 0; font-size: 12.5px; color: rgba(255, 255, 255, .6); }
.pre-cartao.pcv .pre-acoes { margin: 2px 0 0 !important; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .05); }
.pre-cartao.pcv .pre-acao-principal { background: var(--pc) !important; border-color: var(--pc) !important; color: #111 !important; box-shadow: 0 6px 14px -8px var(--pc) !important; }
.pre-cartao.pcv:hover { transform: translateY(-2px) !important; border-color: color-mix(in srgb, var(--pc) 45%, transparent) !important; box-shadow: 0 16px 30px -20px var(--pc) !important; }
@media (prefers-reduced-motion: reduce) { .pre-cartao.pcv *, .pre-cartao.pcv::after { animation: none !important; } }

/* ---- janela de planejar/escrever ---- */
@keyframes ppj-entra { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes ppj-sai { to { opacity: 0; transform: translateY(8px) scale(.97); } }
dialog.ppj { width: min(620px, calc(100vw - 32px)); max-width: none; max-height: calc(100vh - 40px); margin: auto; padding: 0; border-radius: 22px; overflow: hidden; color: var(--texto, #f3f4f6);
  border: 1px solid rgba(255, 255, 255, .09); background: radial-gradient(80% 40% at 0% 0%, rgba(255, 106, 43, .09), transparent 60%), #10131a;
  box-shadow: 0 40px 120px -30px rgba(0, 0, 0, .95); animation: ppj-entra .32s cubic-bezier(.2, .8, .2, 1) both; }
dialog.ppj.saindo { animation: ppj-sai .16s ease-in both; }
dialog.ppj::backdrop { background: rgba(5, 7, 10, .72); backdrop-filter: blur(6px); }
.ppj form { display: flex; flex-direction: column; max-height: calc(100vh - 40px); margin: 0; }
.ppj-topo { display: flex; align-items: center; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid rgba(255, 255, 255, .055); }
.ppj-topo-ic { display: grid; place-items: center; width: 42px; height: 42px; flex: none; border-radius: 13px; color: #fde047; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .25); }
.ppj-topo-ic svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; }
.ppj-topo > div { flex: 1; min-width: 0; }
.ppj-topo small { font-size: 10.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #ff9a6b; }
.ppj-titulo { display: block; width: 100%; margin-top: 2px; padding: 2px 0 4px; border: 0 !important; border-bottom: 1.5px solid transparent !important; border-radius: 0 !important;
  background: none !important; box-shadow: none !important; color: #fff; font: inherit; font-size: 20px; font-weight: 800; letter-spacing: -.02em; transition: border-color .25s; }
.ppj-titulo:hover { border-bottom-color: rgba(255, 255, 255, .12) !important; }
.ppj-titulo:focus { outline: none; border-bottom-color: #ff7a3d !important; }
.ppj-x { display: grid; place-items: center; width: 34px; height: 34px; flex: none; padding: 0; border-radius: 50%; cursor: pointer; color: inherit; background: rgba(255, 255, 255, .05);
  border: 1px solid rgba(255, 255, 255, .09); box-shadow: none; filter: none; transition: transform .3s; }
.ppj-x svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; }
.ppj-x:hover { transform: rotate(90deg); }
.ppj-corpo { flex: 1; overflow-y: auto; padding: 18px 22px 6px; display: flex; flex-direction: column; gap: 18px; scrollbar-width: thin; scrollbar-color: rgba(255, 255, 255, .14) transparent; }
.ppj-bloco { display: flex; flex-direction: column; gap: 8px; animation: ppx-entra .35s both; }
.ppj-bloco:nth-child(2) { animation-delay: .05s; } .ppj-bloco:nth-child(3) { animation-delay: .1s; } .ppj-bloco:nth-child(4) { animation-delay: .15s; } .ppj-bloco:nth-child(5) { animation-delay: .2s; }
.ppj-rotulo { display: flex; align-items: center; justify-content: space-between; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: rgba(255, 255, 255, .45); }
.ppj-rotulo em { font-style: normal; font-weight: 600; letter-spacing: 0; text-transform: none; opacity: .7; }
.ppj-formatos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ppj-fmt input { position: absolute; opacity: 0; pointer-events: none; }
.ppj-fmt span { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 6px; border-radius: 13px; cursor: pointer; font-size: 12.5px; font-weight: 700;
  color: rgba(255, 255, 255, .6); border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s, color .2s, transform .2s; }
.ppj-fmt span svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform .35s cubic-bezier(.3, 1.6, .5, 1); }
.ppj-fmt:hover span { border-color: rgba(255, 255, 255, .18); transform: translateY(-1px); }
.ppj-fmt input:checked + span { color: #fff; border-color: rgba(255, 122, 61, .6); background: rgba(255, 106, 43, .1); box-shadow: 0 0 0 3px rgba(255, 106, 43, .1); }
.ppj-fmt input:checked + span svg { color: #ffb38a; transform: scale(1.12); }
.ppj-fmt input:focus-visible + span { outline: 2px solid #ff7a3d; outline-offset: 2px; }
.ppj-objetivos { display: flex; flex-wrap: wrap; gap: 6px; }
.ppj-obj { height: 30px; padding: 0 12px; border-radius: 999px; cursor: pointer; font: inherit; font-size: 12px; font-weight: 600; color: rgba(255, 255, 255, .7); filter: none; box-shadow: none;
  border: 1px solid rgba(255, 255, 255, .08); background: rgba(255, 255, 255, .02); transition: border-color .2s, background .2s, color .2s; }
.ppj-obj:hover { border-color: rgba(255, 255, 255, .2); }
.ppj-obj.ativo { color: #fff; border-color: rgba(255, 122, 61, .6); background: rgba(255, 106, 43, .14); }
.ppj-campo { width: 100%; box-sizing: border-box; padding: 11px 13px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .08) !important; background: rgba(255, 255, 255, .025) !important;
  color: inherit; font: inherit; font-size: 13.5px; line-height: 1.5; box-shadow: none !important; transition: border-color .2s, box-shadow .25s, background .2s; }
textarea.ppj-campo { resize: vertical; min-height: 70px; }
.ppj-campo::placeholder { color: rgba(255, 255, 255, .3); }
.ppj-campo:focus { outline: none; border-color: rgba(255, 122, 61, .55) !important; background: rgba(255, 106, 43, .035) !important; box-shadow: 0 0 0 4px rgba(255, 106, 43, .1) !important; }
.ppj-dois { display: grid !important; grid-template-columns: 1fr 1fr; gap: 10px; }
.ppj-dois label { display: flex; flex-direction: column; gap: 8px; }
.ppj-pe { display: flex; align-items: center; gap: 10px; padding: 14px 22px; border-top: 1px solid rgba(255, 255, 255, .055); background: rgba(0, 0, 0, .18); }
.ppj-pe small { margin-right: auto; font-size: 11px; opacity: .4; }
.ppj-pe kbd { padding: 0 5px; border-radius: 5px; font-size: 10px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .12); }
.ppj-pe button { height: 40px; padding: 0 18px; border-radius: 11px; cursor: pointer; font: inherit; font-size: 13.5px; font-weight: 700; filter: none; transition: transform .2s, background .2s; }
.ppj-cancelar { color: inherit; background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); box-shadow: none; }
.ppj-salvar { color: #fff; border: 1px solid #ff7a3d; background: linear-gradient(180deg, #ff8247, #ff5a1f); box-shadow: 0 10px 22px -12px #ff5a1f; }
.ppj-salvar:hover { transform: translateY(-1px); }
@media (max-width: 560px) { .ppj-formatos { grid-template-columns: repeat(2, 1fr); } .ppj-dois { grid-template-columns: 1fr; } }
