/* Assistente de cadastro do Inova Agenda: o mesmo visual no painel e no app do celular. */
.as {
  --as-cor: #0e6b4f; --as-cor2: #13a273; --as-clara: #e7f5ef; --as-fundo: transparent; --as-cartao: #fff; --as-texto: #0f1d17;
  --as-texto2: #5d6d66; --as-borda: #e3ebe7; --as-aviso: #b45d00; --as-aviso-f: #fff3e2; --as-erro: #c0392b; --as-erro-f: #fdecea;
  --as-raio: 20px; --as-sombra: 0 1px 2px rgba(15, 29, 23, .05), 0 8px 24px rgba(15, 29, 23, .06);
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--as-texto);
  max-width: 920px; margin: 0 auto; padding: 4px 0 24px; font-size: 15px; line-height: 1.45;
}
@media (prefers-color-scheme: dark) {
  .as, .as-folha { --as-cartao: #16211c; --as-texto: #e8f1ec; --as-texto2: #93a69c; --as-borda: #26362e; --as-clara: #123528; --as-aviso-f: #3a2a12; --as-erro-f: #3b1916; --as-sombra: none; }
}
.as *, .as-folha * { box-sizing: border-box; }
.as :where(button), .as-folha :where(button, input, select, textarea) { font: inherit; color: inherit; }

/* ---------- topo com o progresso ---------- */
.as-hero { position: relative; overflow: hidden; border-radius: 26px; padding: 22px; color: #fff; display: flex; gap: 18px; align-items: center;
  background: radial-gradient(120% 140% at 100% 0%, #1fc48c 0%, transparent 55%), linear-gradient(135deg, var(--as-cor) 0%, #0a4f3a 100%); box-shadow: 0 12px 30px rgba(14, 107, 79, .25); }
.as-hero::after { content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.as-anel { flex: none; width: 92px; height: 92px; position: relative; }
.as-anel svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.as-anel circle { fill: none; stroke-width: 9; }
.as-anel .f { stroke: rgba(255, 255, 255, .22); }
.as-anel .p { stroke: #fff; stroke-linecap: round; transition: stroke-dashoffset .8s cubic-bezier(.2, .8, .2, 1); }
.as-anel b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 22px; font-weight: 800; letter-spacing: -.02em; }
.as-anel.cheio b svg { width: 42%; height: 42%; transform: none; }
.as.app .as-anel b { font-size: 19px; }
.as-hero h2 { margin: 0 0 4px; font-size: 21px; letter-spacing: -.02em; line-height: 1.2; }
.as-hero p { margin: 0; opacity: .92; font-size: 14px; }
.as-hero .as-bt { margin-top: 12px; background: #fff; color: var(--as-cor); }
.as-hero.pronto { background: radial-gradient(120% 140% at 100% 0%, #ffd166 0%, transparent 50%), linear-gradient(135deg, #0e6b4f, #0a4f3a); }

/* ---------- etapas ---------- */
.as-tit { display: flex; align-items: baseline; justify-content: space-between; margin: 22px 4px 10px; }
.as-tit h3 { margin: 0; font-size: 16px; letter-spacing: -.01em; }
.as-tit span { font-size: 13px; color: var(--as-texto2); }
.as-etapas { display: grid; gap: 10px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 760px) { .as-etapas { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.as-etapa { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--as-raio); background: var(--as-cartao); border: 1px solid var(--as-borda);
  box-shadow: var(--as-sombra); cursor: pointer; text-align: left; width: 100%; transition: transform .12s, border-color .2s; }
.as-etapa:active { transform: scale(.985); }
.as-etapa:hover { border-color: color-mix(in srgb, var(--as-cor) 40%, var(--as-borda)); }
.as-etapa.agora { border: 2px solid var(--as-cor); padding: 13px 15px; }
.as-ic { flex: none; width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--as-clara); color: var(--as-cor); }
.as-ic svg { width: 24px; height: 24px; }
.as-etapa.feita .as-ic { background: var(--as-cor); color: #fff; }
.as-meio { flex: 1; min-width: 0; }
.as-meio b { display: block; font-size: 15px; }
.as-meio small { display: block; color: var(--as-texto2); font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.as-chip { flex: none; font-size: 11.5px; font-weight: 700; padding: 4px 9px; border-radius: 999px; background: var(--as-aviso-f); color: var(--as-aviso); }
.as-chip.ok { background: var(--as-clara); color: var(--as-cor); }
.as-chip.op { background: transparent; color: var(--as-texto2); border: 1px solid var(--as-borda); }
.as-falta { display: block; margin-top: 3px; font-size: 12.5px; color: var(--as-aviso); font-weight: 600; }

/* ---------- atalhos de gestão ---------- */
.as-atalhos { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; }
.as-atalho { border: 1px solid var(--as-borda); background: var(--as-cartao); border-radius: 18px; padding: 14px; text-align: left; cursor: pointer; box-shadow: var(--as-sombra); }
.as-atalho .as-ic { width: 38px; height: 38px; border-radius: 12px; margin-bottom: 10px; }
.as-atalho .as-ic svg { width: 20px; height: 20px; }
.as-atalho b { display: block; font-size: 14px; }
.as-atalho small { color: var(--as-texto2); font-size: 12.5px; }

/* ---------- link pronto ---------- */
.as-link { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 10px 10px 14px; border-radius: 16px; background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .25); }
.as-link code { flex: 1 1 100%; min-width: 0; padding: 2px 2px 4px; background: transparent; color: #fff; border: 0; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: inherit; font-weight: 700; }
.as-link button { flex: 1; border: 0; border-radius: 10px; padding: 8px 12px; font-weight: 700; background: #fff; color: var(--as-cor); cursor: pointer; }

/* ---------- botões ---------- */
.as-bt { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 14px; padding: 12px 18px; min-height: 48px; font-weight: 700;
  background: var(--as-cor); color: #fff; cursor: pointer; text-decoration: none; transition: filter .15s, transform .1s; }
.as-bt:active { transform: scale(.98); }
.as-bt:hover { filter: brightness(1.05); }
.as-bt:disabled { opacity: .55; cursor: default; }
.as-bt.sec { background: var(--as-cartao); color: var(--as-texto); border: 1px solid var(--as-borda); }
.as-bt.leve { background: var(--as-clara); color: var(--as-cor); }
.as-bt.perigo { background: var(--as-erro-f); color: var(--as-erro); }
.as-bt.cheio { width: 100%; }
.as-bt.mini { min-height: 36px; padding: 7px 12px; font-size: 13.5px; border-radius: 11px; }
.as-bt svg { width: 18px; height: 18px; }

/* ---------- folha (editor da etapa) ---------- */
.as-fundo { position: fixed; inset: 0; z-index: 1000; background: rgba(8, 20, 15, .45); backdrop-filter: blur(3px); display: flex; align-items: flex-end; justify-content: center; animation: as-in .18s ease-out; }
@media (min-width: 760px) { .as-fundo { align-items: center; padding: 24px; } }
@keyframes as-in { from { opacity: 0; } }
@keyframes as-sobe { from { transform: translateY(30px); opacity: .4; } }
.as-folha { --as-cor: #0e6b4f; --as-cor2: #13a273; --as-clara: #e7f5ef; --as-cartao: #fff; --as-texto: #0f1d17; --as-texto2: #5d6d66; --as-borda: #e3ebe7;
  --as-aviso: #b45d00; --as-aviso-f: #fff3e2; --as-erro: #c0392b; --as-erro-f: #fdecea;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; color: var(--as-texto); font-size: 15px; line-height: 1.45;
  width: 100%; max-width: 640px; max-height: 94vh; display: flex; flex-direction: column; background: var(--as-cartao); border-radius: 26px 26px 0 0; animation: as-sobe .22s cubic-bezier(.2, .8, .2, 1); overflow: hidden; }
@media (min-width: 760px) { .as-folha { border-radius: 26px; max-height: 88vh; } }
.as-folha-topo { padding: 16px 18px 10px; border-bottom: 1px solid var(--as-borda); display: flex; align-items: center; gap: 12px; }
.as-folha-topo .as-passo { font-size: 12px; font-weight: 700; color: var(--as-cor); text-transform: uppercase; letter-spacing: .06em; }
.as-folha-topo h3 { margin: 2px 0 0; font-size: 19px; letter-spacing: -.02em; }
.as-fechar { margin-left: auto; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--as-clara); color: var(--as-cor); display: grid; place-items: center; cursor: pointer; flex: none; }
.as-fechar svg { width: 20px; height: 20px; }
.as-pontos { display: flex; gap: 5px; padding: 0 18px 12px; border-bottom: 1px solid var(--as-borda); }
.as-pontos i { flex: 1; height: 4px; border-radius: 4px; background: var(--as-borda); }
.as-pontos i.ok { background: var(--as-cor2); }
.as-pontos i.agora { background: var(--as-cor); }
.as-corpo { padding: 16px 18px; overflow-y: auto; -webkit-overflow-scrolling: touch; flex: 1; }
.as-rodape { padding: 12px 18px calc(12px + env(safe-area-inset-bottom, 0px)); border-top: 1px solid var(--as-borda); display: flex; gap: 10px; background: var(--as-cartao); }
.as-rodape .as-bt { flex: 1; }
.as-rodape .as-bt.sec { flex: 0 0 auto; }
.as-dica { font-size: 13.5px; color: var(--as-texto2); margin: 0 0 14px; }
.as-erro-msg { background: var(--as-erro-f); color: var(--as-erro); padding: 10px 12px; border-radius: 12px; font-size: 14px; margin-bottom: 12px; }

/* campos */
.as-campo { display: block; margin-bottom: 14px; }
.as-campo > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.as-campo > span em { font-style: normal; font-weight: 500; color: var(--as-texto2); }
.as-campo input, .as-campo select, .as-campo textarea { width: 100%; padding: 13px 14px; border-radius: 14px; border: 1.5px solid var(--as-borda); background: var(--as-cartao); font-size: 16px; outline: none; transition: border-color .15s, box-shadow .15s; }
.as-campo textarea { min-height: 84px; resize: vertical; }
.as-campo input:focus, .as-campo select:focus, .as-campo textarea:focus { border-color: var(--as-cor); box-shadow: 0 0 0 4px var(--as-clara); }
.as-duas { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.as-prefixo { display: flex; align-items: stretch; border: 1.5px solid var(--as-borda); border-radius: 14px; overflow: hidden; }
.as-prefixo:focus-within { border-color: var(--as-cor); box-shadow: 0 0 0 4px var(--as-clara); }
.as-prefixo span { padding: 13px 0 13px 12px; color: var(--as-texto2); font-size: 15px; white-space: nowrap; }
.as-prefixo input { border: 0 !important; box-shadow: none !important; padding-left: 2px !important; min-width: 0; }
.as-prefixo span.fim { padding: 13px 12px 13px 0; }

/* segmentos */
.as-segs { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-bottom: 16px; }
.as-seg { border: 1.5px solid var(--as-borda); background: var(--as-cartao); border-radius: 16px; padding: 12px 8px 10px; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; font-size: 12.5px; font-weight: 600; text-align: center; line-height: 1.2; min-height: 92px; }
.as-seg svg { width: 26px; height: 26px; color: var(--as-cor); }
.as-seg.on { border-color: var(--as-cor); background: var(--as-clara); box-shadow: inset 0 0 0 1px var(--as-cor); }

/* dias e chips */
.as-dias { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; margin-bottom: 14px; }
.as-dia { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--as-borda); background: var(--as-cartao); font-weight: 800; cursor: pointer; display: grid; place-items: center; font-size: 14px; }
.as-dia small { display: block; font-size: 10px; font-weight: 600; opacity: .7; }
.as-dia.on { background: var(--as-cor); border-color: var(--as-cor); color: #fff; }
.as-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.as-chipbt { border: 1.5px solid var(--as-borda); background: var(--as-cartao); border-radius: 999px; padding: 8px 14px; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.as-chipbt.on { border-color: var(--as-cor); background: var(--as-clara); color: var(--as-cor); }

/* listas de cadastro */
.as-lista { border: 1px solid var(--as-borda); border-radius: 18px; overflow: hidden; margin-bottom: 14px; }
.as-linha { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-bottom: 1px solid var(--as-borda); background: var(--as-cartao); }
.as-linha:last-child { border-bottom: 0; }
.as-linha .as-meio small { white-space: normal; }
.as-linha.off { opacity: .55; }
.as-av { flex: none; width: 42px; height: 42px; border-radius: 13px; background: var(--as-clara); color: var(--as-cor); display: grid; place-items: center; font-weight: 800; overflow: hidden; }
.as-av img { width: 100%; height: 100%; object-fit: cover; }
.as-mini-bt { flex: none; width: 38px; height: 38px; border-radius: 12px; border: 1px solid var(--as-borda); background: var(--as-cartao); display: grid; place-items: center; cursor: pointer; color: var(--as-texto2); }
.as-mini-bt svg { width: 18px; height: 18px; }
.as-vazio { text-align: center; color: var(--as-texto2); padding: 18px 10px; font-size: 14px; }
.as-check { display: flex; gap: 12px; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--as-borda); cursor: pointer; }
.as-check:last-child { border-bottom: 0; }
.as-check input[type=checkbox] { width: 22px; height: 22px; accent-color: var(--as-cor); flex: none; }
.as-check .as-meio { cursor: pointer; }
.as-check .as-num { width: 76px; padding: 8px; border-radius: 10px; border: 1.5px solid var(--as-borda); font-size: 14px; text-align: right; background: var(--as-cartao); }
.as-check .as-num.min { width: 62px; }
.as-sub { font-size: 12px; color: var(--as-texto2); }
.as-cab { cursor: default; padding-top: 8px; padding-bottom: 8px; background: var(--as-clara); font-size: 12px; font-weight: 700; color: var(--as-cor); }
.as-cab span:first-child { flex: 1; }
.as-cab span.c1 { width: 62px; text-align: center; }
.as-cab span.c2 { width: 76px; text-align: center; }

/* opções grandes (quem responde, QR/código) */
.as-opcoes { display: grid; gap: 10px; margin-bottom: 14px; }
.as-opcao { display: flex; gap: 12px; align-items: flex-start; border: 1.5px solid var(--as-borda); border-radius: 18px; padding: 14px; cursor: pointer; background: var(--as-cartao); text-align: left; width: 100%; }
.as-opcao.on { border-color: var(--as-cor); background: var(--as-clara); box-shadow: inset 0 0 0 1px var(--as-cor); }
.as-opcao b { display: block; }
.as-opcao small { color: var(--as-texto2); font-size: 13px; }
.as-opcao .as-tag { display: inline-block; margin-left: 6px; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--as-cor); color: #fff; vertical-align: 2px; }
.as-abas { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; border-radius: 14px; background: var(--as-clara); margin-bottom: 16px; }
.as-abas button { border: 0; border-radius: 11px; padding: 10px; font-weight: 700; background: transparent; color: var(--as-cor); cursor: pointer; }
.as-abas button.on { background: var(--as-cartao); color: var(--as-texto); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }

/* WhatsApp */
.as-qr { display: grid; place-items: center; padding: 14px; border-radius: 20px; background: #fff; border: 1px solid var(--as-borda); margin: 0 auto 14px; width: 260px; max-width: 100%; aspect-ratio: 1; }
.as-qr img { width: 100%; height: 100%; image-rendering: pixelated; }
.as-codigo { text-align: center; font-size: 34px; font-weight: 800; letter-spacing: .12em; padding: 18px; border-radius: 20px; background: var(--as-clara); color: var(--as-cor); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.as-passos { margin: 0 0 14px; padding-left: 0; list-style: none; counter-reset: p; }
.as-passos li { counter-increment: p; display: flex; gap: 10px; align-items: flex-start; margin-bottom: 9px; font-size: 14px; }
.as-passos li::before { content: counter(p); flex: none; width: 24px; height: 24px; border-radius: 50%; background: var(--as-cor); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; }
.as-conectado { text-align: center; padding: 22px 10px; }
.as-conectado .as-ic { width: 72px; height: 72px; border-radius: 24px; margin: 0 auto 12px; background: var(--as-cor); color: #fff; }
.as-conectado .as-ic svg { width: 38px; height: 38px; }
.as-espera { display: flex; align-items: center; justify-content: center; gap: 8px; color: var(--as-texto2); font-size: 13.5px; margin-bottom: 12px; }
.as-espera i { width: 9px; height: 9px; border-radius: 50%; background: var(--as-cor2); animation: as-pulsa 1.2s infinite; }
@keyframes as-pulsa { 50% { opacity: .25; transform: scale(.7); } }

/* página */
.as-cores { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.as-cor { width: 38px; height: 38px; border-radius: 50%; border: 3px solid var(--as-cartao); box-shadow: 0 0 0 1.5px var(--as-borda); cursor: pointer; }
.as-cor.on { box-shadow: 0 0 0 3px var(--as-texto); }
.as-previa { border-radius: 22px; overflow: hidden; border: 1px solid var(--as-borda); margin-bottom: 14px; }
.as-previa .capa { padding: 22px 16px 16px; color: #fff; display: flex; gap: 12px; align-items: center; }
.as-previa .logo { width: 54px; height: 54px; border-radius: 16px; background: rgba(255, 255, 255, .2); display: grid; place-items: center; font-weight: 800; font-size: 20px; overflow: hidden; flex: none; }
.as-previa .logo img { width: 100%; height: 100%; object-fit: cover; }
.as-previa .capa b { font-size: 18px; display: block; }
.as-previa .capa small { opacity: .9; }
.as-prefixo input:first-child { padding-left: 14px !important; }
.as-previa .as-pv-bt { display: block; margin: 12px 16px 16px; text-align: center; padding: 12px; border-radius: 14px; color: #fff; font-weight: 700; }
.as-foto { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.as-foto .as-av { width: 58px; height: 58px; border-radius: 16px; }

/* celular: o assistente ocupa a largura toda */
.as.app { padding: 0; }
.as.app .as-hero { border-radius: 22px; padding: 18px; }
.as.app .as-anel { width: 78px; height: 78px; }
.as.app .as-hero h2 { font-size: 18px; }
.as-confete { position: fixed; inset: 0; pointer-events: none; z-index: 1100; overflow: hidden; }
.as-confete i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: as-cai 1.6s ease-in forwards; }
@keyframes as-cai { to { transform: translateY(105vh) rotate(540deg); opacity: .8; } }
