/* ------------------------------------------------------------ Workspaces: o sistema de cada cliente */
/* A lista em cartões, o painel de um cliente e a janela de criar em quatro passos, com a prévia viva ao lado.
   Cartão em relevo e sombra, sem linha; etiqueta de situação com fundo sólido; campo em foco com contorno fino. */
.janela.j-workspaces:not(.cheia) { max-width: 1240px; }
.ws { position: relative; flex: 1; min-height: 0; display: flex; flex-direction: column; container: ws / inline-size; --ws-verde: #1f9d57; --ws-azul: #2f6fed; --ws-cinza: #6b7280; --ws-vermelho: #d43b2c; }
.ws-rolo { flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden; overscroll-behavior: contain; display: flex; flex-direction: column; gap: 14px; padding: 4px 20px 22px; }
.ws-rolo.troca > * { animation: ws-surge .22s var(--ease-out) both; }
@keyframes ws-surge { from { opacity: 0; transform: translateY(6px); } }
@keyframes ws-gira { to { transform: rotate(360deg); } }
@keyframes ws-pulsa { from { opacity: .4; } to { opacity: .9; } }
.ws .no-claro { display: none; }
:root[data-tema="claro"] .ws .no-escuro { display: none; }
:root[data-tema="claro"] .ws .no-claro { display: block; }

/* o topo da lista */
.ws-topo { flex: none; display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ws-topo h2 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-conta { flex: none; padding: 2px 8px; border-radius: 5px; font-size: 13px; font-weight: 500; color: var(--tinta-2); background: rgba(var(--f), .08); }
.ws-bolha { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; font-size: 12px; font-weight: 600; color: #fff; background: var(--laranja); }
.ws-desligada { flex: none; padding: 9px 12px; border-radius: 7px; font-size: 13.5px; color: var(--tinta-2); background: rgba(var(--f), .06); }

/* a etiqueta da situação: fundo sólido, palavra simples */
.ws-selo { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 8px; border-radius: 5px; font-size: 12px; font-weight: 600; color: #fff; white-space: nowrap; background: var(--ws-cinza); }
.ws-selo.no-ar { background: var(--ws-verde); }
.ws-selo.publicando { background: var(--ws-azul); }
.ws-selo.erro { background: var(--ws-vermelho); }
.ws-gira { flex: none; width: 10px; height: 10px; border-radius: 50%; border: 1.6px solid rgba(255, 255, 255, .38); border-top-color: #fff; animation: ws-gira .7s linear infinite; }
.ws-gira.grande { width: 22px; height: 22px; border-width: 2px; border-color: rgba(var(--f), .16); border-top-color: var(--tinta-2); }
.ws-nova { flex: none; padding: 2px 6px; border-radius: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--laranja); }
.ws-ruim { margin-left: 8px; padding: 2px 6px; border-radius: 4px; font-style: normal; font-size: 11.5px; font-weight: 600; color: #fff; background: var(--ws-vermelho); }
/* a memória: a barra corre por transform, e não pela largura */
.ws-barra { display: block; height: 4px; border-radius: 2px; overflow: hidden; background: rgba(var(--f), .12); }
.ws-barra i { display: block; width: 100%; height: 100%; border-radius: 2px; background: var(--ws-verde); transform: translateX(calc(var(--p, 0%) - 100%)); transition: transform .5s var(--ease-out); }
.ws-barra.alta i { background: var(--ws-vermelho); }

/* os cartões */
.ws-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(256px, 1fr)); gap: 12px; }
.ws-cartao { display: flex; flex-direction: column; gap: 3px; min-width: 0; padding: 10px 12px 12px; border-radius: 10px; text-align: left; background: rgba(var(--f), .055); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .7); transition: transform .16s var(--ease-out), background-color .16s ease; }
.ws-cartao:active { transform: scale(.985); }
.ws-grade.entra .ws-cartao { animation: ws-surge .28s var(--ease-out) both; animation-delay: calc(var(--n, 0) * 40ms); }
.ws-cartao-logo { display: grid; place-items: center; height: 76px; margin-bottom: 7px; border-radius: 7px; overflow: hidden; background: var(--poco); }
.ws-logo { max-width: 64%; max-height: 34px; width: auto; height: auto; object-fit: contain; }
.ws-logo.logo-texto { max-width: 88%; font-size: 19px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; }
.ws-cartao-topo { display: flex; align-items: center; gap: 8px; min-height: 24px; }
.ws-cartao-topo b { flex: 1; min-width: 0; font-size: 15px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-cartao-end { font-size: 13px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-cartao-pe { display: flex; align-items: center; gap: 8px; min-height: 20px; margin: 8px 0 5px; font-size: 12.5px; color: var(--tinta-2); white-space: nowrap; }
.ws-cartao-erro { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; margin-top: 8px; font-size: 12.5px; line-height: 1.38; color: var(--erro); }
.ws-osso { height: 176px; box-shadow: none; animation: ws-pulsa 1s ease-in-out infinite alternate; }
.ws-vazio { flex: 1; display: grid; place-content: center; justify-items: center; gap: 12px; padding: 40px 0; font-size: 15px; color: var(--tinta-2); text-align: center; }
.ws-vazio b { font-weight: 500; }
.ws-vazio-icone img { display: block; width: 64px; height: 64px; }

/* o "atualizar todos" andando, feito ou parado */
.ws-serie { flex: none; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; padding: 12px 14px; border-radius: 10px; background: rgba(var(--f), .055); box-shadow: 0 10px 22px -16px rgba(0, 0, 0, .7); }
.ws-serie-txt { display: flex; align-items: center; gap: 10px; min-height: 28px; font-size: 14.5px; }
.ws-serie-txt b { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-serie-txt .num { color: var(--tinta-2); font-size: 13px; }
.ws-serie p { font-size: 13.5px; line-height: 1.4; overflow-wrap: anywhere; }
.ws-serie.parou p:not(.fraco) { color: var(--erro); }
.ws-serie .ws-barra i { background: var(--ws-azul); }

/* o painel de um cliente */
.ws-p-topo { flex: none; display: flex; align-items: center; gap: 12px; min-height: 48px; }
.ws-p-logo { flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 10px; overflow: hidden; background: var(--poco); }
.ws-p-logo img { width: 100%; height: 100%; object-fit: cover; }
.ws-p-letras { display: grid; place-items: center; width: 100%; height: 100%; font-size: 16px; font-weight: 600; color: #fff; background: var(--ws-cor); }
.ws-p-titulo { flex: 1; min-width: 0; display: grid; gap: 1px; justify-items: start; }
.ws-p-titulo h2 { max-width: 100%; font-size: 20px; font-weight: 600; letter-spacing: -.01em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-p-end { display: inline-flex; align-items: center; gap: 5px; max-width: 100%; font-size: 13.5px; color: var(--tinta-2); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-p-end .ico { flex: none; opacity: .7; }
.ws-p-acoes { flex: none; display: flex; flex-wrap: wrap; gap: 8px; }
.ws-p-corpo { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 12px; align-items: start; }
.ws-p-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; min-width: 0; }
.ws-bloco { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; min-width: 0; padding: 12px 16px 16px; border-radius: 10px; background: rgba(var(--f), .055); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .04), 0 8px 18px -14px rgba(0, 0, 0, .7); }
.ws-bloco h3 { display: flex; align-items: center; min-height: 28px; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--tinta-3); }
.ws-bloco h3 .botao { text-transform: none; letter-spacing: 0; }
.ws-saude { font-size: 16px; font-weight: 500; line-height: 1.35; overflow-wrap: anywhere; }
.ws-saude.erro { font-size: 14.5px; font-weight: 400; color: var(--erro); }
.ws-pares { display: grid; grid-template-columns: minmax(0, 1fr); gap: 9px; margin: 0; }
.ws-par { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-items: center; font-size: 14px; }
.ws-par dt { color: var(--tinta-2); }
.ws-par dd { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.ws-par .ws-barra { grid-column: 1 / -1; }
.ws-acesso-linha { display: flex; align-items: center; gap: 8px; }
.ws-acesso code { flex: 1; min-width: 0; padding: 8px 10px; border-radius: 6px; font: 13px/1.3 ui-monospace, "Cascadia Mono", Consolas, monospace; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--poco); user-select: all; -webkit-user-select: all; }
.ws-acesso .botao { flex: none; height: 34px; }
.ws-nada { font-size: 13.5px; color: var(--tinta-3); }
.ws-hist { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; }
.ws-hist-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 3px 10px; align-items: center; padding: 8px 10px; border-radius: 7px; background: rgba(var(--f), .045); }
.ws-hist-txt { display: grid; min-width: 0; }
.ws-hist-txt b { font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-hist-txt small { font-size: 12.5px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-hist-motivo { grid-column: 1 / -1; font-size: 13px; line-height: 1.4; color: var(--erro); overflow-wrap: anywhere; }
.ws-res { display: inline-flex; align-items: center; height: 20px; padding: 0 7px; border-radius: 4px; font-size: 11.5px; font-weight: 600; color: #fff; white-space: nowrap; background: var(--ws-cinza); }
.ws-res.feito { background: var(--ws-verde); }
.ws-res.andando { background: var(--ws-azul); }
.ws-res.falhou, .ws-res.recusado { background: var(--ws-vermelho); }
.ws-gente { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
.ws-gente li { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; }
.ws-gente b { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-gente small { margin-left: auto; font-size: 12.5px; color: var(--tinta-3); }
.ws-rosto { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 11px; font-weight: 600; color: #fff; background: var(--ws-cor, var(--ws-cinza)); }
.ws-apps-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 9px 10px; }
.ws-apps-lista li { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 13.5px; }
.ws-apps-lista img { flex: none; width: 24px; height: 24px; }
.ws-apps-lista span { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-extra { font-size: 13px; color: var(--tinta-2); }
.ws-marca { display: flex; align-items: center; gap: 10px; font-size: 13.5px; }
.ws-marca code { font: inherit; color: var(--tinta-2); }
.ws-marca-cor { flex: none; width: 22px; height: 22px; border-radius: 6px; background: var(--ws-cor); }
.ws-marca-fonte { margin-left: auto; color: var(--tinta-2); }
.ws-pecas { display: grid; grid-template-columns: repeat(auto-fill, minmax(92px, 1fr)); gap: 8px; }
.ws-pecas figure { display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; margin: 0; min-width: 0; }
.ws-pecas figure > span { display: grid; place-items: center; height: 56px; padding: 9px; border-radius: 7px; background: var(--poco); }
.ws-pecas figure.escuro > span { background: #161b24; }
.ws-pecas figure.claro > span { background: #f1f2f5; }
.ws-pecas img { width: auto; height: 38px; max-width: 100%; object-fit: contain; }
/* o emblema é uma forma de uma cor só (o sistema pinta por cima): aqui ele aparece em silhueta clara */
.ws-pecas figure.silhueta img, .ws-slot-bt.silhueta img { filter: brightness(0) invert(1); }
.ws-pecas figcaption { font-size: 12px; color: var(--tinta-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* o campo de texto da casa: em foco, um contorno fino */
.ws-campo { width: 100%; min-width: 0; height: 36px; padding: 0 11px; border: 0; border-radius: 6px; font-size: 14.5px; color: var(--tinta); background: rgba(var(--f), .075); transition: background-color .16s ease, box-shadow .16s ease; }
.ws-campo::placeholder { color: var(--tinta-3); }
.ws-campo:focus { outline: none; background: rgba(var(--f), .11); box-shadow: inset 0 0 0 1px rgba(var(--f), .26); }
.ws-campo:disabled { opacity: .6; }
.ws-campo[aria-invalid="true"] { box-shadow: inset 0 0 0 1px var(--erro); }

/* a folha de confirmar uma ação */
.folha.ws-folha { width: min(430px, 100%); }
.ws-folha .f-topo { align-items: flex-start; gap: 12px; padding-top: 14px; }
.ws-folha .f-topo > span { padding-top: 6px; font-size: 16px; font-weight: 600; line-height: 1.3; letter-spacing: 0; text-transform: none; color: var(--tinta); overflow-wrap: anywhere; }
.ws-folha .f-topo .redondo { flex: none; }
.ws-folha .f-corpo { grid-template-columns: minmax(0, 1fr); gap: 10px; padding-top: 6px; }
.ws-folha-linha { font-size: 14px; line-height: 1.45; color: var(--tinta-2); }
.ws-codigo { display: flex; align-items: center; justify-content: space-between; gap: 14px; font-size: 14.5px; }
.ws-campo-codigo { width: 150px; text-align: center; letter-spacing: .18em; }
.ws-campo-codigo::placeholder { letter-spacing: normal; }
.ws-fila { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; max-height: 200px; overflow-y: auto; overscroll-behavior: contain; }
.ws-fila li { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 34px; padding: 0 10px; border-radius: 6px; font-size: 14px; background: rgba(var(--f), .05); }
.ws-fila b { min-width: 0; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-fila .num { flex: none; font-size: 13px; color: var(--tinta-3); }
.botao.ws-perigo { color: #fff; font-weight: 600; background: var(--ws-vermelho); }

/* criar em quatro passos, com a prévia ao lado */
.ws-veu-criar { padding: 16px; }
.folha.ws-criar { display: grid; grid-template-rows: auto minmax(0, 1fr) auto; width: min(1060px, 100%); height: min(660px, 100%); }
.ws-criar-topo { display: flex; align-items: center; gap: 14px; padding: 12px 12px 10px 20px; }
.ws-criar-titulo { flex: 0 1 auto; min-width: 0; font-size: 15.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-passos { flex: 1; display: flex; justify-content: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.ws-passo { display: inline-flex; align-items: center; gap: 7px; height: 30px; padding: 0 10px 0 6px; border-radius: 7px; font-size: 13.5px; font-weight: 500; color: var(--tinta-3); transition: transform .14s var(--ease-out), background-color .16s ease, color .16s ease; }
.ws-passo i { display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-style: normal; font-size: 12px; font-weight: 600; color: var(--tinta-2); background: rgba(var(--f), .12); transition: background-color .2s ease, color .2s ease; }
.ws-passo.on { color: var(--tinta); }
.ws-passo.on i { color: #fff; background: var(--laranja); }
.ws-passo.feito { color: var(--tinta-2); }
.ws-passo.feito i { color: var(--tinta); background: rgba(var(--f), .22); }
.ws-passo:disabled { cursor: default; }
.ws-passo.feito:active { transform: scale(.97); }
.ws-criar-meio { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 396px); min-height: 0; }
.ws-criar-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; align-content: start; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 8px 22px 18px 20px; }
.ws-criar-form.entra > * { animation: ws-surge .2s var(--ease-out) both; }
.ws-linha { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 5px 14px; align-items: center; min-height: 36px; font-size: 14.5px; }
.ws-linha > span:first-child { color: var(--tinta-2); }
.ws-linha:has(.ws-pessoas) { align-items: start; }
.ws-linha:has(.ws-pessoas) > span:first-child { padding-top: 8px; }
.ws-estado { grid-column: 2; min-height: 18px; font-size: 12.5px; line-height: 1.35; }
.ws-estado .ok { display: inline-flex; align-items: center; gap: 4px; color: var(--ws-verde); font-weight: 500; }
.ws-estado .erro { color: var(--erro); }
.ws-pessoas { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.ws-pessoas-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 1fr); gap: 5px; }
.ws-pessoas-lista:empty { display: none; }
.ws-pessoa { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 4px 0 11px; border-radius: 6px; background: rgba(var(--f), .05); }
.ws-pessoa b { flex: 1; min-width: 0; font-size: 14.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-pessoa-trato { flex: none; height: 28px; padding: 0 9px; border-radius: 6px; font-size: 12.5px; color: var(--tinta-2); background: rgba(var(--f), .09); transition: transform .14s var(--ease-out), background-color .16s ease; }
.ws-pessoa-tira { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; color: var(--tinta-3); transition: transform .14s var(--ease-out), background-color .16s ease; }
.ws-pessoa-trato:active, .ws-pessoa-tira:active { transform: scale(.94); }
.ws-pessoa-nova { display: flex; gap: 6px; }
.ws-pessoa-nova .botao { flex: none; width: 36px; height: 36px; padding: 0; }
/* a marca: as quatro peças, a cor e a fonte */
.ws-slots { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.ws-slot { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; min-width: 0; }
.ws-slot-bt { display: grid; place-items: center; width: 100%; height: 84px; padding: 14px; border-radius: 8px; color: var(--tinta-3); background: rgba(var(--f), .075); transition: transform .14s var(--ease-out), opacity .16s ease; }
.ws-slot-bt.escuro { color: rgba(255, 255, 255, .5); background: #161b24; }
.ws-slot-bt.claro { color: rgba(0, 0, 0, .42); background: #f1f2f5; }
.ws-slot-bt img { width: auto; height: auto; max-width: 100%; max-height: 56px; object-fit: contain; }
.ws-slot-bt:active { transform: scale(.97); }
.ws-slot.enviando .ws-slot-bt { opacity: .45; }
.ws-slot-nome { font-size: 12.5px; color: var(--tinta-2); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-slot-tira { position: absolute; top: 5px; right: 5px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; color: #fff; background: rgba(0, 0, 0, .58); transition: transform .14s var(--ease-out); }
.ws-slot-tira:active { transform: scale(.9); }
.ws-cor { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; min-width: 0; }
.ws-tintas { display: flex; flex-wrap: wrap; gap: 7px; }
.ws-tinta { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; color: #fff; background: var(--ws-cor); transition: transform .14s var(--ease-out); }
.ws-tinta .ico { opacity: 0; transform: scale(.8); transition: opacity .14s ease, transform .14s var(--ease-out); }
.ws-tinta[aria-checked="true"] .ico { opacity: 1; transform: none; }
.ws-tinta:active { transform: scale(.92); }
.ws-campo-hex { width: 104px; }
.ws-fonte { display: flex; align-items: center; gap: 8px; min-width: 0; }
.ws-fonte .ws-campo { flex: 1; }
/* os apps: uma chave por app */
.ws-apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ws-app.chave { display: flex; gap: 10px; min-height: 44px; padding: 0 12px 0 10px; border-radius: 7px; font-size: 14.5px; background: rgba(var(--f), .05); }
.ws-app img, .ws-app-traco { flex: none; width: 26px; height: 26px; }
.ws-app-traco { padding: 2px; color: var(--tinta-2); }
.ws-app > span { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-extras { margin-top: 8px; }
.ws-criar-fim { gap: 8px; padding-top: 10px; }
.ws-criar-fim .f-erro { flex: 0 1 auto; min-width: 0; margin: 0; }

/* a prévia: a tela de entrada (escura) e a barra do sistema (clara), com a marca do cliente */
.ws-previa { --ws-cor: #2563eb; --ws-cor-rgb: 37, 99, 235; display: grid; grid-template-rows: minmax(0, 1.3fr) minmax(0, 1fr); gap: 12px; min-height: 0; padding: 8px 20px 18px 2px; font-family: var(--ws-fonte, var(--fonte)), var(--fonte), system-ui, sans-serif; }
.ws-tela { position: relative; display: flex; flex-direction: column; min-height: 0; border-radius: 10px; overflow: hidden; box-shadow: 0 0 0 .5px rgba(0, 0, 0, .4), 0 16px 34px -20px rgba(0, 0, 0, .8); }
.ws-entrada { color: #f5f3ef; background: radial-gradient(120% 90% at 50% 0%, rgba(var(--ws-cor-rgb), .58), rgba(var(--ws-cor-rgb), 0) 64%), linear-gradient(180deg, #171c26, #0b0e14); }
.ws-aba { flex: none; display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; font-size: 11.5px; font-weight: 500; color: rgba(255, 255, 255, .84); background: rgba(0, 0, 0, .36); }
.ws-aba > span:last-child { min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-aba-icone { flex: none; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 4px; overflow: hidden; background: var(--ws-cor); }
.ws-aba-icone:has(img) { background: none; }
.ws-aba-icone img { width: 100%; height: 100%; object-fit: cover; }
.ws-aba-icone i { font-style: normal; font-size: 9px; font-weight: 700; line-height: 1; color: #fff; }
.ws-e-corpo { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px; padding: 6px 12px 22px; }
.ws-e-hora { margin-bottom: 7px; font-size: 30px; font-weight: 300; letter-spacing: -.04em; line-height: 1; }
.ws-e-ava { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 12px; font-weight: 600; color: #fff; background: var(--ws-cor); transition: background-color .2s ease; }
.ws-e-nome { max-width: 90%; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-e-bolinhas { display: flex; gap: 6px; margin: 3px 0 9px; }
.ws-e-bolinhas i { width: 6px; height: 6px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .6); }
.ws-e-bolinhas i.cheia { background: #f5f3ef; }
.ws-e-logo { display: grid; place-items: center; max-width: 62%; height: 20px; }
.ws-e-logo img { width: auto; height: 20px; max-width: 100%; object-fit: contain; }
.ws-e-logo .logo-texto { max-width: 100%; font-size: 15px; overflow: hidden; text-overflow: ellipsis; }
.ws-e-rodape { position: absolute; left: 0; right: 0; bottom: 6px; font-size: 9px; text-align: center; color: rgba(245, 243, 239, .5); }
.ws-mesa { color: #1d1d1f; background: radial-gradient(110% 100% at 82% 0%, rgba(var(--ws-cor-rgb), .34), rgba(var(--ws-cor-rgb), 0) 62%), linear-gradient(180deg, #eef0f4, #dde1e9); }
.ws-m-barra { flex: none; display: flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; font-size: 11px; background: rgba(255, 255, 255, .58); }
.ws-m-barra b { min-width: 0; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-m-emblema { flex: none; width: 13px; height: 13px; background: currentColor; -webkit-mask: var(--ws-emblema) center / contain no-repeat; mask: var(--ws-emblema) center / contain no-repeat; }
.ws-m-emblema[hidden] { display: none; }
.ws-m-janela { display: grid; gap: 8px; justify-items: start; width: 58%; margin: auto; padding: 12px 12px 10px; border-radius: 8px; background: #fff; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, .45); }
.ws-m-logo { display: grid; align-items: center; max-width: 100%; height: 18px; }
.ws-m-logo img { width: auto; height: 18px; max-width: 100%; object-fit: contain; }
.ws-m-logo .logo-texto { max-width: 100%; font-size: 14px; color: #1d1d1f; overflow: hidden; text-overflow: ellipsis; }
.ws-m-linhas { display: grid; gap: 4px; width: 100%; }
.ws-m-linhas i { height: 5px; border-radius: 3px; background: rgba(0, 0, 0, .09); }
.ws-m-linhas i:last-child { width: 62%; }
.ws-m-acoes { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 2px; }
.ws-m-chave { position: relative; width: 22px; height: 13px; border-radius: 7px; background: var(--ws-cor); transition: background-color .2s ease; }
.ws-m-chave::after { content: ""; position: absolute; top: 2px; right: 2px; width: 9px; height: 9px; border-radius: 50%; background: #fff; }
.ws-m-botao { width: 54px; height: 16px; border-radius: 4px; background: var(--ws-cor); transition: background-color .2s ease; }
.ws-m-dock { flex: none; align-self: center; display: flex; gap: 4px; max-width: 92%; margin-bottom: 7px; padding: 4px 5px; border-radius: 8px; overflow: hidden; background: rgba(255, 255, 255, .62); }
.ws-m-dock img { flex: 0 1 18px; min-width: 0; width: 18px; height: auto; aspect-ratio: 1; }

@media (hover: hover) and (pointer: fine) {
  .ws-cartao:hover { background: rgba(var(--f), .09); }
  .ws-p-end:hover { color: var(--tinta); }
  .ws-passo.feito:hover { background: rgba(var(--f), .08); }
  .ws-pessoa-trato:hover { background: rgba(var(--f), .15); }
  .ws-pessoa-tira:hover { background: rgba(var(--f), .1); }
  .ws-tinta:hover { transform: scale(1.08); }
  .ws-tinta:active { transform: scale(.92); }
}

/* a janela estreita: uma coluna só, e a prévia sai de lado */
@container ws (max-width: 860px) {
  .ws-p-corpo { grid-template-columns: minmax(0, 1fr); }
  .ws-criar-meio { display: block; overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .ws-criar-form { overflow: visible; }
  .ws-previa { display: none; grid-template-rows: 236px 184px; padding: 2px 20px 18px; }
  .ws-criar[data-passo="3"] .ws-previa { display: grid; }
  .ws-passo span { display: none; }
  .ws-passo.on span { display: inline; }
  .ws-passo { padding: 0 8px 0 6px; }
}
@container ws (max-width: 560px) {
  .ws-linha { grid-template-columns: minmax(0, 1fr); gap: 5px; }
  .ws-linha:has(.ws-pessoas) > span:first-child { padding-top: 0; }
  .ws-estado { grid-column: 1; }
  .ws-slots { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ws-apps { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 860px) {
  .ws-rolo { padding: 4px 14px calc(18px + env(safe-area-inset-bottom)); }
  .ws-grade { grid-template-columns: minmax(0, 1fr); }
  .ws-topo .botao, .ws-p-acoes .botao { height: 40px; }
  .ws-p-acoes .botao { flex: 1 1 auto; }
  .ws-campo { height: 42px; font-size: 16px; }
  .ws-veu-criar { padding: 0; }
  .ws .folha { max-height: 100%; }
  .folha.ws-criar { width: 100%; height: 100%; border-radius: 0; }
  .ws-criar-topo { flex-wrap: wrap; gap: 6px 10px; padding: 12px 10px 8px 16px; }
  .ws-criar-titulo { flex: 1; order: 1; }
  .ws-criar-topo .redondo { order: 2; width: 36px; height: 36px; }
  .ws-passos { order: 3; flex-basis: 100%; justify-content: flex-start; }
  .ws-passo { height: 36px; min-width: 36px; }
  .ws-criar-form { padding: 6px 16px 16px; }
  .ws-pessoa { height: 44px; }
  .ws-pessoa-trato, .ws-pessoa-tira { height: 36px; min-width: 36px; }
  .ws-pessoa-nova .botao { width: 42px; height: 42px; }
  .ws-slot-tira { top: 3px; right: 3px; width: 36px; height: 36px; }
  .ws-tinta { width: 36px; height: 36px; }
  .ws-app.chave { min-height: 48px; }
  .ws-criar-fim .botao, .ws-folha .f-fim .botao, .ws-fonte .botao, .ws-acesso .botao, .ws-bloco h3 .botao, .ws-serie .botao { height: 40px; }
  .ws-criar-fim .f-erro { flex-basis: 100%; }
  .ws-folha .f-topo .redondo { width: 36px; height: 36px; }
  .ws-volta { width: 38px; height: 38px; }
  .ws-acesso-linha { flex-wrap: wrap; }
  .ws-acesso code { flex-basis: 100%; }
  .ws-acesso .botao { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .ws-rolo.troca > *, .ws-grade.entra .ws-cartao, .ws-criar-form.entra > * { animation: none; }
  .ws-barra i, .ws-tinta .ico { transition: none; }
  .ws-gira { animation-duration: 1.6s; }
}
