/* Abil Forge Studio — modo da aba Assistente (só a equipe vê). Usa só os tokens --os-* do Lab (claro e escuro). */
.st, .st-ativa-faixa, .st-boot { --st-ouro: var(--os-gold); --st-ouro-2: #f1cf7a; --st-azul: var(--os-blue); --st-grad: linear-gradient(120deg, var(--st-ouro), var(--st-ouro-2) 45%, var(--st-azul)); }

/* ── botão "Ativar Studio" ── */
.st-ativa-faixa { max-width: 820px; margin: 0 auto 14px; display: flex; flex-direction: column; gap: 8px; }
.st-ativar { position: relative; display: flex; align-items: center; gap: 14px; width: 100%; padding: 14px 18px; border-radius: 18px; border: 0; text-align: left;
  background: var(--os-panel); color: var(--os-ink); isolation: isolate; overflow: hidden; cursor: pointer;
  box-shadow: 0 10px 34px color-mix(in srgb, var(--st-ouro) 16%, transparent); transition: transform .25s cubic-bezier(.2,.8,.2,1), box-shadow .25s; }
.st-ativar::before { content: ''; position: absolute; inset: -2px; z-index: -2; border-radius: inherit; background: conic-gradient(from var(--st-ang, 0deg), var(--st-ouro), var(--st-azul), #7756fd, var(--st-ouro-2), var(--st-ouro)); animation: st-gira 6s linear infinite; }
.st-ativar::after { content: ''; position: absolute; inset: 1.5px; z-index: -1; border-radius: 16.5px; background: var(--os-panel); }
.st-ativar:hover { transform: translateY(-2px); box-shadow: 0 18px 44px color-mix(in srgb, var(--st-ouro) 26%, transparent); }
.st-ativar:active { transform: scale(.985); }
.st-ativar-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.st-ativar-txt b { font-size: 15.5px; font-weight: 600; background: var(--st-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-ativar-txt small { font-size: 12.5px; color: var(--os-muted); }
.st-ativar-seta { color: var(--st-ouro); transition: transform .25s; } .st-ativar:hover .st-ativar-seta { transform: translateX(4px); }
@property --st-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes st-gira { to { --st-ang: 360deg; } }

/* orbes (marca do Studio) */
.st-ativar-orb, .st-orb-mini, .st-orb-grande { position: relative; flex: none; border-radius: 50%; background: var(--st-grad); display: grid; place-items: center; }
.st-ativar-orb { width: 38px; height: 38px; box-shadow: 0 0 0 6px color-mix(in srgb, var(--st-ouro) 12%, transparent); animation: st-respira 2.8s ease-in-out infinite; }
.st-ativar-orb span, .st-orb-mini span, .st-orb-grande span { width: 38%; height: 38%; border-radius: 50%; background: #fff; box-shadow: 0 0 14px #fff; opacity: .95; }
.st-orb-mini { width: 30px; height: 30px; animation: st-respira 3.2s ease-in-out infinite; }
.st-orb-grande { width: 58px; height: 58px; margin: 0 auto 14px; box-shadow: 0 0 0 10px color-mix(in srgb, var(--st-ouro) 10%, transparent), 0 18px 40px color-mix(in srgb, var(--st-ouro) 30%, transparent); animation: st-respira 3.2s ease-in-out infinite; }
@keyframes st-respira { 0%, 100% { transform: scale(1); filter: saturate(1); } 50% { transform: scale(1.06); filter: saturate(1.3); } }

/* ── animação de ativação ── */
.st-boot { max-width: 520px; margin: 30px auto 18px; padding: 30px 26px 24px; border-radius: 24px; text-align: center; background: var(--os-panel); border: 1px solid var(--os-line);
  box-shadow: 0 24px 70px color-mix(in srgb, var(--st-ouro) 18%, transparent); animation: st-surge .5s cubic-bezier(.18,.82,.25,1) both; }
@keyframes st-surge { from { opacity: 0; transform: translateY(14px) scale(.97); } to { opacity: 1; transform: none; } }
.st-boot-orb { position: relative; width: 96px; height: 96px; margin: 0 auto 18px; display: grid; place-items: center; }
.st-boot-orb i { position: absolute; inset: 0; border-radius: 50%; border: 2px solid transparent; border-top-color: var(--st-ouro); border-right-color: color-mix(in srgb, var(--st-ouro) 40%, transparent); animation: st-anel 1.4s linear infinite; }
.st-boot-orb i:nth-child(2) { inset: 12px; border-top-color: var(--st-azul); border-right-color: color-mix(in srgb, var(--st-azul) 35%, transparent); animation-duration: 1.9s; animation-direction: reverse; }
.st-boot-orb i:nth-child(3) { inset: 24px; border-top-color: #7756fd; animation-duration: 1.1s; }
.st-boot-orb span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: var(--st-grad); box-shadow: 0 0 26px color-mix(in srgb, var(--st-ouro) 70%, transparent); animation: st-respira 1.6s ease-in-out infinite; }
.st-boot-orb span .i { width: 17px; height: 17px; }
@keyframes st-anel { to { transform: rotate(360deg); } }
.st-boot-tit { display: block; font-size: 18px; font-weight: 600; letter-spacing: -0.02em; margin-bottom: 14px; }
.st-boot-passos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; text-align: left; }
.st-boot-passos li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--os-muted); padding: 8px 12px; border-radius: 12px; opacity: .45; transition: opacity .3s, background .3s, color .3s; }
.st-boot-passos li.atual { opacity: 1; color: var(--os-ink); background: color-mix(in srgb, var(--st-ouro) 9%, transparent); }
.st-boot-passos li.feito { opacity: 1; color: var(--os-ink); }
.st-boot-ic { width: 22px; height: 22px; border-radius: 50%; flex: none; display: grid; place-items: center; border: 1.5px solid var(--os-line-strong); }
.st-boot-passos li.feito .st-boot-ic { border-color: transparent; background: var(--os-green); color: #fff; animation: st-pop .35s cubic-bezier(.2,1.6,.4,1) both; }
.st-boot-passos li.feito .st-boot-ic .i { width: 13px; height: 13px; stroke-width: 3; }
.st-boot-passos li.atual .st-boot-ic { border-color: transparent; }
.st-boot-passos .giro { width: 16px; height: 16px; }
@keyframes st-pop { from { transform: scale(.3); } to { transform: scale(1); } }

/* ── tela do Studio ── */
.chat.st { grid-template-rows: auto 1fr auto; max-width: 880px; }
.chat.st .chat-rolo > * { flex: none; } /* sem isso o cartão do desenho (overflow:hidden) encolhe até sumir dentro da coluna com rolagem */
.st-topo { position: relative; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 10px 12px; margin-bottom: 8px; border-radius: 16px; background: var(--os-panel); border: 1px solid var(--os-line); overflow: hidden; }
.st-topo::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--st-grad); opacity: .85; }
.st-entrando .st-topo::before { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: -40%; background: linear-gradient(90deg, transparent, color-mix(in srgb, var(--st-ouro-2) 45%, transparent), transparent); animation: st-varre 1s ease-out .1s both; }
@keyframes st-varre { to { left: 110%; } }
.st-entrando .chat-rolo > * { animation: st-surge .55s cubic-bezier(.18,.82,.25,1) both; }
.st-entrando .chat-rolo > *:nth-child(2) { animation-delay: .08s; } .st-entrando .chat-rolo > *:nth-child(3) { animation-delay: .16s; }
.st-marca { display: flex; align-items: center; gap: 10px; }
.st-marca b { display: block; font-size: 15px; font-weight: 650; background: var(--st-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.st-marca small { display: block; font-size: 11.5px; color: var(--os-muted); }
.st-topo-meio { display: flex; gap: 8px; align-items: center; flex: 1; min-width: 200px; }
.st-topo-meio select { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--os-line-strong); background: var(--os-panel); color: var(--os-ink); flex: 1; min-width: 0; max-width: 320px; }
.st-topo-dir { display: flex; gap: 8px; align-items: center; }
.st-selo { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 600; color: var(--os-green); padding: 5px 9px; border-radius: 99px; background: var(--os-green-soft); }
.st-selo .i { width: 13px; height: 13px; }
.st-btn { display: inline-flex; align-items: center; gap: 6px; font: inherit; font-size: 13px; font-weight: 550; padding: 7px 12px; border-radius: 10px; border: 1px solid var(--os-line-strong); background: var(--os-panel); color: var(--os-ink); cursor: pointer; transition: background .2s, transform .15s, border-color .2s; white-space: nowrap; }
.st-btn:hover:not(:disabled) { border-color: color-mix(in srgb, var(--st-ouro) 55%, var(--os-line-strong)); }
.st-btn:active:not(:disabled) { transform: scale(.97); }
.st-btn:disabled { opacity: .45; cursor: default; }
.st-btn .i { width: 15px; height: 15px; }
.st-btn.st-pri { border-color: transparent; color: #1b1405; background: var(--st-grad); box-shadow: 0 8px 22px color-mix(in srgb, var(--st-ouro) 30%, transparent); }
.st-sair { color: var(--os-muted); }
.st-av { color: #fff !important; background: var(--st-grad) !important; }
.st-bolha-eu { background: linear-gradient(135deg, var(--os-blue), #3b5bff) !important; }
.st-pensando { border-color: color-mix(in srgb, var(--st-ouro) 35%, var(--os-line)); }
.st-pensando .digitando i { background: var(--st-ouro); }
.st-compositor:focus-within { box-shadow: 0 0 0 3px color-mix(in srgb, var(--st-ouro) 22%, transparent), 0 16px 42px rgba(0,0,0,.1); }
.st-compositor .enviar { background: var(--st-grad); color: #1b1405; }
.st-erro { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--os-amber-soft); }
.st-erro .i { color: var(--os-amber); flex: none; }

/* boas-vindas + raio-X */
.st-boas { padding: 16px 0 6px; }
.st-boas-cab { text-align: center; margin-bottom: 18px; }
.st-boas-cab h2 { font-size: clamp(24px, 3vw, 32px); font-weight: 480; letter-spacing: -0.045em; }
.st-boas-cab p { color: var(--os-muted); margin: 6px 0 0; }
.st-raio { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; margin-bottom: 18px; }
.st-tile { padding: 12px; border-radius: 14px; background: var(--os-panel); border: 1px solid var(--os-line); display: flex; flex-direction: column; gap: 2px; }
.st-tile b { font-size: 24px; font-weight: 550; letter-spacing: -0.04em; line-height: 1.1; }
.st-tile span { font-size: 11.5px; color: var(--os-muted); }
.st-tile.verde b { color: var(--os-green); } .st-tile.ouro b { color: var(--st-ouro); } .st-tile.azul b { color: var(--os-blue); } .st-tile.roxo b { color: #7756fd; } .st-tile.rosa b { color: #d14b85; }
.st-bloco-tit { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--os-muted); margin: 6px 2px 8px; }
.st-sugs { margin-bottom: 4px; } .st-sugs .sugestao .i { color: var(--st-ouro); }

/* cartões de workflow */
.st-wfs { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 8px; margin-bottom: 8px; }
.st-wf-card { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: var(--os-panel); border: 1px solid var(--os-line); min-width: 0; transition: transform .2s cubic-bezier(.2,.8,.2,1), box-shadow .2s, border-color .2s; }
.st-wf-card:hover { transform: translateY(-2px); border-color: var(--os-line-strong); box-shadow: 0 12px 28px rgba(16, 21, 33, .07); }
.st-wf-ic { width: 32px; height: 32px; border-radius: 10px; flex: none; display: grid; place-items: center; color: var(--st-ouro); background: color-mix(in srgb, var(--st-ouro) 12%, transparent); }
.st-wf-card.pub .st-wf-ic { color: var(--os-green); background: var(--os-green-soft); }
.st-wf-ic .i { width: 16px; height: 16px; } .st-wf-ic.grande { width: 38px; height: 38px; border-radius: 12px; }
.st-wf-info { flex: 1; min-width: 0; }
.st-wf-info b { display: block; font-size: 13.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-wf-info small { display: block; font-size: 11.5px; color: var(--os-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-status { flex: none; font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 99px; }
.st-status.pub { color: var(--os-green); background: var(--os-green-soft); }
.st-status.rasc { color: var(--st-ouro); background: color-mix(in srgb, var(--st-ouro) 13%, transparent); }
.st-mais { font: inherit; font-size: 12.5px; font-weight: 550; color: var(--os-blue); background: none; border: 0; padding: 4px 2px 10px; cursor: pointer; }

/* chips, funis, campos */
.st-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.st-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 12.5px; font-weight: 550; padding: 4px 10px; border-radius: 99px; color: #7756fd; background: color-mix(in srgb, #7756fd 10%, transparent); border: 1px solid color-mix(in srgb, #7756fd 18%, transparent); }
.st-tag .i { width: 12px; height: 12px; }
.st-tag.novo { color: var(--os-green); background: var(--os-green-soft); border-color: color-mix(in srgb, var(--os-green) 22%, transparent); }
.st-funil { padding: 10px 12px; border-radius: 14px; background: var(--os-panel); border: 1px solid var(--os-line); margin-bottom: 6px; }
.st-funil > b { display: flex; align-items: center; gap: 6px; font-size: 13.5px; margin-bottom: 8px; } .st-funil > b .i { width: 15px; height: 15px; color: var(--os-blue); }
.st-etapas { display: flex; flex-wrap: wrap; gap: 4px; }
.st-etapas span { position: relative; font-size: 12px; padding: 5px 14px 5px 10px; background: var(--os-blue-soft); color: var(--os-blue); clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%, 6px 50%); }
.st-etapas span:first-child { clip-path: polygon(0 0, calc(100% - 8px) 0, 100% 50%, calc(100% - 8px) 100%, 0 100%); }
.st-campos { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px; }
.st-campos > div { padding: 8px 10px; border-radius: 12px; background: var(--os-panel); border: 1px solid var(--os-line); display: flex; flex-direction: column; min-width: 0; }
.st-campos span { font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--os-muted); }
.st-campos b { font-size: 13px; font-weight: 600; } .st-campos small { font-size: 11.5px; color: var(--os-muted); }

/* perguntas da IA */
.st-perg { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--st-ouro) 8%, var(--os-panel)); border: 1px solid color-mix(in srgb, var(--st-ouro) 25%, transparent); font-size: 13.5px; }
.st-perg > span { display: block; font-size: 12px; color: var(--os-muted); margin-top: 4px; }
.st-opcoes { margin-top: 8px; }
.st-opcoes button { border-color: color-mix(in srgb, var(--st-ouro) 40%, var(--os-line)) !important; }

/* ── desenho proposto ── */
.st-desenho { border-radius: 20px; background: var(--os-panel); border: 1px solid var(--os-line); box-shadow: 0 16px 48px rgba(16, 21, 33, .06); overflow: hidden; animation: st-surge .45s cubic-bezier(.18,.82,.25,1) both; }
.st-desenho-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; padding: 14px 16px; border-bottom: 1px solid var(--os-line); background: linear-gradient(180deg, color-mix(in srgb, var(--st-ouro) 7%, transparent), transparent); }
.st-kicker { display: block; font-size: 11px; font-weight: 650; letter-spacing: .07em; text-transform: uppercase; color: var(--st-ouro); }
.st-desenho-cab b { font-size: 15px; font-weight: 600; }
.st-secoes { display: flex; flex-wrap: wrap; gap: 6px; }
.st-secao { display: inline-flex; align-items: center; gap: 5px; font: inherit; font-size: 12.5px; font-weight: 550; padding: 5px 11px; border-radius: 99px; border: 1px solid var(--os-line-strong); background: var(--os-panel); color: var(--os-ink); cursor: pointer; transition: all .2s; }
.st-secao span { color: var(--os-muted); font-weight: 500; }
.st-secao.marc { border-color: var(--st-ouro); background: color-mix(in srgb, var(--st-ouro) 12%, transparent); }
.st-secao.ok { border-color: transparent; color: var(--os-green); background: var(--os-green-soft); cursor: default; }
.st-secao .i { width: 13px; height: 13px; stroke-width: 3; }
.st-desenho-corpo { padding: 14px 16px; display: flex; flex-direction: column; gap: 12px; }
.st-sub { font-size: 11.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--os-muted); }
.st-desenho > .st-erro { margin: 12px 16px 0; }

/* fluxo (workflow) */
.st-fluxo { border: 1px solid var(--os-line); border-radius: 16px; padding: 14px; background: var(--os-bg); }
.st-fluxo-cab { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.st-fluxo-cab b { display: block; font-size: 14.5px; font-weight: 600; } .st-fluxo-cab small { font-size: 11.5px; color: var(--os-muted); }
.st-gatilho { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; border-radius: 12px; background: var(--os-panel); border: 1px solid color-mix(in srgb, var(--st-ouro) 35%, var(--os-line)); }
.st-gat-ic { width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center; color: #fff; background: var(--st-grad); }
.st-gat-ic .i { width: 15px; height: 15px; }
.st-gatilho small { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--st-ouro); }
.st-gatilho b { font-size: 13.5px; font-weight: 600; }
.st-conds { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.st-conds span { font-size: 11.5px; padding: 2px 8px; border-radius: 7px; background: var(--os-bg); border: 1px solid var(--os-line); color: var(--os-muted); }
.st-conds b { color: var(--os-ink); font-weight: 600; }
.st-linha { list-style: none; margin: 0; padding: 0 0 0 14px; position: relative; }
.st-linha::before { content: ''; position: absolute; left: 13px; top: 0; bottom: 14px; width: 2px; background: linear-gradient(var(--os-line-strong), var(--os-line)); }
.st-passo { position: relative; padding: 10px 0 0 22px; }
.st-passo::before { content: ''; position: absolute; left: -5px; top: 22px; width: 10px; height: 10px; border-radius: 50%; background: var(--os-panel); border: 2px solid var(--os-line-strong); }
.st-passo.t-msg::before { border-color: #25a366; } .st-passo.t-espera::before { border-color: var(--os-muted); } .st-passo.t-ramo::before { border-color: var(--os-blue); } .st-passo.t-acao::before { border-color: #7756fd; }
.st-passo-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; }
.st-passo-cab b { font-weight: 600; }
.st-passo-ic { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; background: var(--os-panel); border: 1px solid var(--os-line); color: var(--os-muted); }
.st-passo-ic .i { width: 14px; height: 14px; }
.st-passo.t-msg .st-passo-ic { color: #25a366; } .st-passo.t-ramo .st-passo-ic { color: var(--os-blue); } .st-passo.t-acao .st-passo-ic { color: #7756fd; }
.st-passo > .st-chips, .st-passo > .st-wpp, .st-passo > .st-desc, .st-passo > .st-email, .st-passo > .st-ramos, .st-passo > .st-url, .st-passo > .st-nota { margin: 8px 0 0 34px; }
.st-canal { font-size: 11px; font-weight: 600; padding: 2px 8px; border-radius: 99px; color: var(--os-muted); background: var(--os-panel); border: 1px solid var(--os-line); }
.st-canal.oficial { color: #1f8f57; background: color-mix(in srgb, #25a366 10%, transparent); border-color: transparent; }
.st-canal.mkt { color: #d14b85; background: color-mix(in srgb, #d14b85 10%, transparent); border-color: transparent; }
.st-espera { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--os-muted); padding: 4px 10px; border-radius: 99px; background: var(--os-panel); border: 1px dashed var(--os-line-strong); }
.st-espera b { color: var(--os-ink); font-weight: 600; } .st-espera .i { width: 14px; height: 14px; }
.st-desc { font-size: 12.5px; color: var(--os-muted); margin: 0; }
.st-email { font-size: 12.5px; color: var(--os-muted); padding: 8px 10px; border-radius: 10px; background: var(--os-panel); border: 1px solid var(--os-line); }
.st-url { display: block; font-size: 12px; word-break: break-all; }
.st-nota { display: block; font-size: 11.5px; color: var(--os-muted); }
.st-ramos { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 8px; }
.st-ramo { padding: 8px 10px 10px; border-radius: 12px; background: var(--os-panel); border: 1px solid var(--os-line); min-width: 0; }
.st-ramo-tit { font-size: 11.5px; font-weight: 650; color: var(--os-blue); margin-bottom: 2px; }
.st-ramo .st-linha { padding-left: 6px; } .st-ramo .st-linha::before { left: 5px; }

/* prévia de WhatsApp */
.st-wpp { max-width: 380px; padding: 10px; border-radius: 14px; background: #e9e1d6; background-image: radial-gradient(color-mix(in srgb, #000 5%, transparent) 1px, transparent 1px); background-size: 14px 14px; }
:root[data-theme="dark"] .st-wpp { background-color: #0b141a; }
.st-wpp-bolha { position: relative; padding: 7px 10px 18px; border-radius: 10px 10px 10px 2px; background: #fff; color: #111b21; font-size: 13px; line-height: 1.45; box-shadow: 0 1px 1px rgba(0,0,0,.12); overflow-wrap: anywhere; }
:root[data-theme="dark"] .st-wpp-bolha { background: #202c33; color: #e9edef; }
.st-wpp-hora { position: absolute; right: 8px; bottom: 3px; font-size: 10.5px; color: #667781; }
.st-wpp.oficial .st-wpp-hora { color: #53bdeb; }
.st-wpp-botoes { display: flex; flex-direction: column; gap: 4px; margin-top: 4px; }
.st-wpp-botoes span { text-align: center; font-size: 13px; font-weight: 550; color: #027eb5; padding: 7px; border-radius: 8px; background: #fff; box-shadow: 0 1px 1px rgba(0,0,0,.1); }
:root[data-theme="dark"] .st-wpp-botoes span { background: #202c33; color: #53bdeb; }
.st-var { display: inline-block; font-size: 11.5px; font-weight: 600; padding: 0 6px; border-radius: 6px; color: #7756fd; background: color-mix(in srgb, #7756fd 12%, transparent); }
.st-tpls { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 10px; }
.st-tpl { padding: 10px; border-radius: 14px; border: 1px solid var(--os-line); background: var(--os-bg); display: flex; flex-direction: column; gap: 6px; }
.st-tpl-cab { display: flex; justify-content: space-between; align-items: center; gap: 6px; } .st-tpl-cab b { font-size: 12.5px; font-family: ui-monospace, monospace; }
.st-tpl-h { font-size: 12.5px; font-weight: 600; }

/* ações + plano */
.st-acoes { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px 16px; border-top: 1px solid var(--os-line); background: var(--os-bg); }
.st-tudo-ok { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; color: var(--os-green); margin-right: 4px; } .st-tudo-ok .i { width: 16px; height: 16px; }
.st-confirma { margin: 0 16px 14px; padding: 12px 14px; border-radius: 14px; background: var(--os-amber-soft); border: 1px solid color-mix(in srgb, var(--os-amber) 30%, transparent); font-size: 13px; display: flex; flex-direction: column; gap: 8px; animation: st-surge .3s ease both; }
.st-confirma > div { display: flex; gap: 8px; flex-wrap: wrap; }
.st-confirma input { font: inherit; font-size: 13px; padding: 7px 10px; border-radius: 10px; border: 1px solid var(--os-line-strong); background: var(--os-panel); color: var(--os-ink); flex: 1; min-width: 200px; }
.st-plano { margin: 0 16px 16px; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--os-line); background: var(--os-bg); animation: st-surge .35s ease both; }
.st-plano.aplicado { border-color: color-mix(in srgb, var(--os-green) 35%, var(--os-line)); background: color-mix(in srgb, var(--os-green) 5%, var(--os-bg)); }
.st-plano-cab { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13.5px; font-weight: 600; }
.st-plano-cab .i { width: 16px; height: 16px; } .st-plano.aplicado .st-plano-cab .i { color: var(--os-green); }
.st-plano-cab span { font-weight: 500; color: var(--os-muted); font-size: 12.5px; }
.st-plano ul { list-style: none; margin: 8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4px; max-height: 260px; overflow: auto; }
.st-plano li { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.st-plano li small { width: 100%; padding-left: 4px; color: var(--os-muted); } .st-plano li .st-falha { color: var(--os-red); }
.st-pill { font-size: 10.5px; font-weight: 650; padding: 2px 7px; border-radius: 99px; color: var(--os-muted); background: var(--os-panel); border: 1px solid var(--os-line); }
.st-pill.planned { color: var(--os-blue); background: var(--os-blue-soft); border-color: transparent; }
.st-pill.created, .st-pill.updated { color: var(--os-green); background: var(--os-green-soft); border-color: transparent; }
.st-pill.failed { color: var(--os-red); background: color-mix(in srgb, var(--os-red) 10%, transparent); border-color: transparent; }

@media (max-width: 720px) {
  .st-raio { grid-template-columns: repeat(3, 1fr); }
  .st-topo-dir .st-selo { display: none; }
  .st-wfs { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .st-ativar::before, .st-ativar-orb, .st-orb-mini, .st-orb-grande, .st-boot-orb i, .st-boot-orb span { animation: none !important; }
  .st-boot, .st-desenho, .st-entrando .chat-rolo > *, .st-entrando .st-topo::before { animation: none !important; }
}
.st-provisorio { color: var(--os-amber); }

/* ── edição de automação existente ── */
.st-wf-editar { flex: none; font: inherit; font-size: 11px; font-weight: 600; padding: 3px 8px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--st-ouro) 45%, var(--os-line)); background: var(--os-panel); color: var(--st-ouro); cursor: pointer; opacity: .75; transition: opacity .2s, background .2s; }
.st-wf-card:hover .st-wf-editar, .st-wf-editar:focus-visible { opacity: 1; }
.st-wf-editar:hover:not(:disabled) { background: color-mix(in srgb, var(--st-ouro) 12%, transparent); }
.st-aviso-pub { display: flex; gap: 8px; align-items: flex-start; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; font-size: 13px; background: var(--os-amber-soft); border: 1px solid color-mix(in srgb, var(--os-amber) 30%, transparent); }
.st-aviso-pub .i { color: var(--os-amber); flex: none; width: 16px; height: 16px; margin-top: 1px; }
.st-nfluxo { list-style: none; margin: 12px 16px 0; padding: 10px 12px; border-radius: 12px; background: var(--os-bg); border: 1px solid var(--os-line); max-height: 320px; overflow: auto; display: flex; flex-direction: column; gap: 3px; }
.st-nf { display: flex; gap: 8px; align-items: baseline; font-size: 12.5px; padding-left: calc(var(--d) * 18px); min-width: 0; }
.st-nf code { flex: none; font-size: 11px; color: var(--os-muted); }
.st-nf b { flex: none; font-weight: 600; } .st-nf span { color: var(--os-muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.st-nf.divide b { color: var(--os-blue); } .st-nf.ramo b { color: var(--st-ouro); font-weight: 650; }
.st-mud { border: 1px solid var(--os-line); border-radius: 14px; padding: 10px 12px; background: var(--os-bg); animation: st-surge .35s ease both; }
.st-mud-tit { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; margin-bottom: 8px; }
.st-mud-tit span { width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center; font-size: 11.5px; color: #1b1405; background: var(--st-grad); flex: none; }
.st-antes-depois { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.st-seta { align-self: center; font-size: 18px; color: var(--st-ouro); }
.st-lado { padding: 8px 10px; border-radius: 12px; background: var(--os-panel); border: 1px solid var(--os-line); min-width: 0; font-size: 12.5px; }
.st-lado:first-child { opacity: .8; } .st-lado:last-child { border-color: color-mix(in srgb, var(--os-green) 40%, var(--os-line)); }
.st-lado small { display: block; font-size: 10.5px; font-weight: 650; letter-spacing: .05em; text-transform: uppercase; color: var(--os-muted); margin-bottom: 6px; }
.st-lado p { margin: 0; overflow-wrap: anywhere; }
.st-lado.vazio { display: grid; place-items: center; color: var(--os-muted); font-style: italic; border-style: dashed; }
.st-lado .st-wpp { max-width: none; }
@media (max-width: 640px) { .st-antes-depois { grid-template-columns: 1fr; } .st-seta { transform: rotate(90deg); justify-self: center; } }
