/* ============================================================
   tryzen — o Workspace (admin/workspace.js, migration 0140)
   ------------------------------------------------------------
   Os tokens, os botoes, os campos e a regra de cor sao os do app e do
   Tryzen Coach (css/tokens.css, docs/cores.md):
     verde    esta certo: concluido, em dia
     amarelo  precisa de voce: atrasado, em risco, bloqueado
     cinza    o resto: etiqueta, avatar, coluna, o que ja foi
     vermelho so o que apaga de vez
   Nada de hover (regra do dono, a mesma do treinador.css): o retorno
   do toque e o :active e o anel do :focus-visible.
   ============================================================ */

.ws { --ws-gap: 12px; --ws-raio: 14px; --ws-fio: var(--contorno, var(--border-soft)); padding-bottom: 48px; }
.ws .c-certo { color: var(--certo-texto); }
.ws button, .ws-veu button { font-family: inherit; }
/* A cor propria do botao (principal, apagar, link) vence a heranca do Workspace. */
:where(.ws, .ws-veu) button { color: inherit; }
.ws :focus-visible, .ws-veu :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* os campos compactos: o .field__input do app e grande, de formulario de uma pergunta so */
.ws .field__input, .ws-veu .field__input {
  font-size: 15px; line-height: 1.35; padding: 9px 12px; border: 1px solid var(--contorno-forte, var(--border-soft)); border-radius: 10px;
  background: var(--preenche-suave, var(--bg)); width: 100%; min-width: 0; min-height: 40px;
}
.ws .field__input:focus, .ws-veu .field__input:focus { outline: 0; border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.ws-veu .field { padding: 0; border: 0; display: grid; gap: 6px; }
.ws-veu .field__label { margin: 0; font-size: var(--fs-mono-sm, 11px); }

.ws-link { background: none; border: 0; padding: 4px 2px; font-size: var(--fs-sm); color: var(--text-2); text-decoration: underline;
  text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, var(--text) 25%, transparent); cursor: pointer; }
.ws-link:active { opacity: .7; }
.ws-bloco__cab .ws-link, .ws-meta__acoes .ws-link, .ws-pessoa__acoes .ws-link { font-size: var(--fs-xs); }
.ws-link.is-perigo, .ws-menu .is-perigo { color: var(--danger); }
.ws-icone { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text-2); cursor: pointer; flex: none; }
.ws-icone--p { width: 28px; height: 28px; border-radius: 8px; }
.ws-icone:active { background: var(--preenche-forte, var(--surface-2)); }

/* ---------- carregando, vazio, aviso ---------- */
.ws-carregando { display: flex; gap: 6px; justify-content: center; padding: 48px 0; }
.ws-carregando span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); animation: ws-pulso 1s infinite ease-in-out; }
.ws-carregando span:nth-child(2) { animation-delay: .15s; }
.ws-carregando span:nth-child(3) { animation-delay: .3s; }
@keyframes ws-pulso { 0%, 80%, 100% { opacity: .25; transform: scale(.8); } 40% { opacity: 1; transform: none; } }

.ws-vazio { padding: 40px 24px; text-align: center; border: 1px dashed var(--ws-fio); border-radius: var(--r-card); margin-top: 16px; }
.ws-vazio--criar { text-align: left; max-width: 640px; margin: 24px auto 0; border-style: solid; background: var(--cartao, var(--surface)); padding: 32px; }
.ws-vazio__t { font-size: 18px; font-weight: 600; letter-spacing: -.01em; margin: 0 0 6px; line-height: 1.35; }
.ws-vazio--criar .ws-vazio__t { font-size: 24px; margin-top: 8px; }

.ws-linha-form { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ws-linha-form .field__input { flex: 1; min-width: 200px; }

.ws-aviso { display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%; margin: 12px 0 0; padding: 12px 16px;
  border: 1px solid var(--contorno, var(--ws-fio)); border-radius: var(--ws-raio); background: var(--cartao, var(--bg)); color: var(--text); text-align: left;
  cursor: pointer; font-size: var(--fs-sm); }
.ws-aviso > span:first-child { display: inline-flex; align-items: center; gap: 10px; }
.ws-aviso > span:first-child::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--urg-2, var(--acao)); }
.ws-aviso__ir { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; flex: none; }
.ws-aviso:active { background: var(--preenche, var(--surface)); }

.ws-convites-meus { display: grid; gap: 8px; margin: 16px 0; }
.ws-convite-meu { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 16px 18px; border-radius: var(--r-card);
  border: 1px solid var(--contorno, var(--ws-fio)); background: var(--cartao, var(--surface)); }
.ws-convite-meu__t { margin: 0 0 2px; }

/* ---------- o cabecalho ---------- */
.ws-cab { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; margin: 8px 0 20px; }
.ws-cab__nome { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ws-cab__titulo { margin: 0; font-size: 20px; font-weight: 600; letter-spacing: -.015em; }
.ws-papel { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 12px; font-weight: 500;
  letter-spacing: .01em; color: var(--text-2); white-space: nowrap; }
.ws-papel::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--text-3); }
.ws-papel--proprietario::before, .ws-papel--administrador::before { background: var(--urg-ok, var(--certo)); }

.ws-busca { display: flex; align-items: center; gap: 6px; padding: 0 4px 0 12px; border: 1px solid var(--contorno-forte, var(--ws-fio)); border-radius: var(--r-pill);
  background: var(--preenche-suave, var(--bg)); min-width: 0; }
.ws-busca:focus-within { border-color: color-mix(in srgb, var(--text) 45%, transparent); }
.ws-busca__ic { display: inline-flex; color: var(--text-3); }
.ws .ws-busca .field__input { border: 0; background: transparent; padding: 9px 8px 9px 2px; }
.ws-busca-g { position: relative; flex: 1 1 320px; max-width: 460px; }
.ws-busca-g__res { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; right: 0; max-height: 60vh; overflow-y: auto;
  background: var(--elevado, var(--bg)); border: 1px solid var(--ws-fio); border-radius: var(--ws-raio); box-shadow: var(--sombra-solta, 0 16px 40px rgba(0, 0, 0, .14)); padding: 6px; }
.ws-busca-g__i { display: grid; gap: 2px; width: 100%; text-align: left; padding: 10px 12px; border: 0; border-radius: 10px; background: none; cursor: pointer; }
.ws-busca-g__i:active, .ws-busca-g__i:focus-visible { background: var(--preenche, var(--surface)); }
.ws-busca-g__t.is-feito { color: var(--text-3); text-decoration: line-through; }
.ws-busca-g__nada { padding: 10px 12px; margin: 0; }

/* ---------- os numeros da visao ---------- */
.ws-tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--ws-gap); }
.ws-tiles--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 16px; }
.ws-tile { display: grid; gap: 4px; align-content: start; text-align: left; padding: 16px 18px; min-height: 112px; border: 1px solid var(--ws-fio);
  border-radius: var(--r-card); background: var(--cartao, var(--surface)); cursor: pointer; transition: transform .12s var(--ease); }
.ws-tile--fixo { cursor: default; }
.ws-tile:active:not(.ws-tile--fixo) { transform: scale(.985); }
.ws-tile__r { font-size: var(--fs-sm); color: var(--text-2); }
.ws-tile__v { font-size: var(--fs-stat, 34px); font-weight: 700; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.ws-tile__v small { font-size: .5em; font-weight: 600; color: var(--text-3); margin-left: 2px; }
.ws-tile__s { font-size: var(--fs-xs); color: var(--text-3); }
.ws-tile__r { display: inline-flex; align-items: center; gap: 8px; }
.ws-tile.is-alerta .ws-tile__r::after { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--urg-1, var(--acao)); }

.ws-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--ws-gap); margin-top: var(--ws-gap); }
.ws-bloco { padding: 16px 18px 12px; border: 1px solid var(--ws-fio); border-radius: var(--r-card); background: var(--cartao, var(--bg)); min-width: 0; }
.ws-bloco__cab { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 8px; }
.ws-bloco__t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.ws-bloco__t--av { display: inline-flex; align-items: center; gap: 8px; }
.ws-bloco__nada { margin: 4px 0 8px; }
.ws-rotulo { font-size: 12px; font-weight: 500; color: var(--text-3); margin: 12px 0 4px; }

.ws-linhas { display: grid; gap: 2px; }
.ws-linha { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 8px; margin: 0 -8px; width: calc(100% + 16px); border: 0;
  border-radius: 10px; background: none; text-align: left; cursor: pointer; min-height: 44px; }
.ws-linha:active { background: var(--preenche, var(--surface)); }
.ws-linha--fixa { cursor: default; }
.ws-linha--fixa:active { background: none; }
.ws-linha__t { flex: 1; min-width: 0; font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; }
.ws-linha__sub { display: block; margin-top: 1px; }
.ws-linha__ic { display: inline-flex; color: var(--text-3); flex: none; }
.ws-linha--bloq .ws-linha__ic { color: var(--urg-2, var(--acao-preso)); }

.ws-proj { display: grid; gap: 6px; width: calc(100% + 16px); margin: 0 -8px; padding: 10px 8px; border: 0; border-radius: 10px; background: none;
  text-align: left; cursor: pointer; }
.ws-proj:active { background: var(--preenche, var(--surface)); }
.ws-proj__topo { display: flex; align-items: center; gap: 10px; }
.ws-cor { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); flex: none; }
.ws-qaba.is-on .ws-cor { background: var(--urg-ok, var(--certo)); }

.ws-barra { display: block; height: 4px; border-radius: 4px; background: color-mix(in srgb, var(--text) 10%, transparent); overflow: hidden; }
.ws-barra > span { display: block; height: 100%; border-radius: inherit; background: var(--text-2); transition: width .4s var(--ease); }
.ws-barra--concluida > span, .ws-barra--no_prazo > span { background: var(--certo); }
.ws-barra--em_risco > span { background: var(--acao); }
.ws-barra--atrasada > span { background: var(--urg-1, var(--acao)); }

.ws-sit { display: inline-flex; align-items: center; gap: 6px; padding: 0; font-size: 12px; font-weight: 500; white-space: nowrap;
  color: var(--text-2); flex: none; }
.ws-sit::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); }
.ws-sit--concluida::before { background: var(--urg-ok, var(--certo)); }
.ws-sit--em_risco::before { background: var(--urg-2, var(--acao)); }
.ws-sit--atrasada::before { background: var(--urg-1, var(--acao)); }

/* ---------- a linha do tempo ---------- */
.ws-tempo { display: grid; }
.ws-ev { display: grid; grid-template-columns: auto 1fr auto; gap: 10px; align-items: start; width: 100%; padding: 9px 0; border: 0;
  border-top: 1px solid var(--ws-fio); background: none; text-align: left; }
.ws-ev:first-child { border-top: 0; }
button.ws-ev { cursor: pointer; }
button.ws-ev:active { background: var(--preenche, var(--surface)); }
.ws-ev__f { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; }
.ws-ev__f b { color: var(--text); font-weight: 600; }
.ws-ev__q { display: inline-block; margin-left: 4px; padding: 0 7px; border-radius: var(--r-pill); background: var(--preenche, var(--surface)); font-size: 11px; color: var(--text-3); }
.ws-ev__h { font-size: var(--fs-xs); color: var(--text-3); font-variant-numeric: tabular-nums; padding-top: 3px; white-space: nowrap; }
.ws-tempo--compacto .ws-ev { grid-template-columns: auto 1fr auto; }
.ws-dia { margin-top: 20px; }
.ws-dia__t { font-size: 13px; font-weight: 600; color: var(--text-2); margin: 0 0 4px; text-transform: capitalize; }
.ws-dia .ws-tempo { padding: 4px 18px; border: 1px solid var(--ws-fio); border-radius: var(--r-card); background: var(--cartao, transparent); }
.ws-dia .ws-ev { border-top-color: var(--contorno-dentro, var(--ws-fio)); }

/* ---------- avatar e etiqueta (cinza: nao dizem estado) ---------- */
.ws-av { display: inline-grid; place-items: center; flex: none; border-radius: 50%; background: var(--preenche-forte, var(--surface-2)); color: var(--text-2);
  font-weight: 600; letter-spacing: .02em; box-shadow: 0 0 0 2px var(--bg); }
.ws-av--p { width: 24px; height: 24px; font-size: 10px; }
.ws-av--g { width: 44px; height: 44px; font-size: 15px; }
.ws-av--vazio { background: transparent; border: 1px dashed var(--text-3); color: var(--text-3); box-shadow: none; }
.ws-etq { display: inline-flex; align-items: center; gap: 4px; padding: 2px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; line-height: 1.5;
  background: var(--preenche, var(--surface-2)); color: var(--text-2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-etq button { border: 0; background: none; padding: 0 0 0 2px; cursor: pointer; color: var(--text-3); font-size: 13px; line-height: 1; }

.ws-prazo { display: inline-flex; align-items: center; gap: 4px; padding: 2px 6px; border-radius: 6px; font-size: 11px; font-weight: 600; color: var(--text-2);
  font-variant-numeric: tabular-nums; white-space: nowrap; }
.ws-prazo.is-atrasado { color: var(--text); }
.ws-prazo.is-atrasado svg { color: var(--urg-1, var(--acao)); }
.ws-prazo.is-hoje, .ws-prazo.is-perto { color: var(--text); }
.ws-prazo.is-hoje svg, .ws-prazo.is-perto svg { color: var(--urg-2, var(--acao)); }
.ws-prazo.is-feito { color: var(--text-3); text-decoration: line-through; }
.ws-prio { fill: var(--text-3); flex: none; }
.ws-prio--alta { fill: var(--urg-2, var(--acao-preso)); }
.ws-prio--urgente { fill: var(--urg-1, var(--acao-preso)); }

/* ---------- os quadros ---------- */
.ws-quadros-abas { display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 2px 2px 10px; margin: 0 -2px; scrollbar-width: none; }
.ws-quadros-abas::-webkit-scrollbar { display: none; }
.ws-qaba { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--preenche, var(--bg)); color: var(--text-2); font-size: var(--fs-sm); white-space: nowrap; cursor: pointer; flex: none; }
.ws-qaba.is-on { background: var(--preenche-forte, var(--surface)); color: var(--text); font-weight: 600; }
.ws-qaba__n { font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ws-qaba--novo { color: var(--text-2); background: none; border: 1px dashed var(--contorno-forte, var(--ws-fio)); }
.ws-qaba:active { transform: scale(.98); }

.ws-barra-q { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin: 6px 0 14px; }
.ws-barra-q__esq, .ws-barra-q__dir { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ws-busca--p { width: 220px; }
.ws-sel { position: relative; display: inline-flex; align-items: center; }
.ws-sel select { appearance: none; -webkit-appearance: none; border: 1px solid transparent; border-radius: var(--r-pill); background: var(--preenche, var(--bg));
  padding: 7px 30px 7px 12px; font: inherit; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; max-width: 220px; text-overflow: ellipsis; }
.ws-sel::after { content: ''; position: absolute; right: 12px; top: 50%; width: 6px; height: 6px; margin-top: -5px; border: solid var(--text-3);
  border-width: 0 1.6px 1.6px 0; transform: rotate(45deg); pointer-events: none; }
.ws-sel.is-on select { background: var(--preenche-forte, var(--surface)); color: var(--text); font-weight: 600; }
.ws-sel--titulo select { font-size: 20px; font-weight: 600; border: 0; padding-left: 0; color: var(--text); background: none; }
.ws-sel--mini select { padding: 2px 24px 2px 8px; font-size: 12px; }
.ws-sel--mini::after { right: 9px; }
.ws-sel--campo, .ws-sel--campo select { width: 100%; max-width: none; }
.ws-sel--campo select { border-radius: 10px; padding: 8px 30px 8px 10px; color: var(--text); border-color: var(--contorno-forte, var(--ws-fio)); background: var(--preenche-suave, var(--bg)); }
.ws-data { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--text-3); }
.ws .ws-data .field__input { width: auto; padding: 6px 10px; border-radius: var(--r-pill); font-size: var(--fs-sm); }

.ws-vistas { display: inline-flex; padding: 3px; border-radius: var(--r-pill); background: var(--preenche, var(--surface)); }
.ws-vistas button { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border: 0; border-radius: var(--r-pill); background: none;
  font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.ws-vistas button.is-on { background: var(--elevado, var(--bg)); color: var(--text); font-weight: 600; box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.ws-vistas button.is-on svg { color: var(--accent-texto); }

.ws-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--preenche, var(--bg)); font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.ws-chip span { font-size: 11px; color: var(--text-3); }
.ws-chip.is-on { background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; }
.ws-chip.is-on span { color: color-mix(in srgb, var(--on-accent) 70%, transparent); }

.ws-menu-w { position: relative; }
/* fixo e posicionado pelo JS (ativarWorkspace): dentro do quadro, que rola, um menu absoluto seria cortado */
.ws-menu { position: fixed; z-index: 90; min-width: 220px; padding: 6px; background: var(--elevado, var(--bg));
  border: 1px solid var(--ws-fio); border-radius: var(--ws-raio); box-shadow: var(--sombra-solta, 0 16px 40px rgba(0, 0, 0, .16)); display: grid; animation: ws-surge .14s var(--ease); }
.ws-menu button { text-align: left; padding: 10px 12px; border: 0; border-radius: 9px; background: none; font-size: var(--fs-sm); cursor: pointer; }
.ws-menu button:active, .ws-menu button:focus-visible { background: var(--preenche, var(--surface)); }
@keyframes ws-surge { from { opacity: 0; transform: translateY(-4px); } }

/* ---------- o kanban ---------- */
.ws-kanban { display: flex; gap: var(--ws-gap); align-items: flex-start; overflow-x: auto; padding: 2px 2px 16px; margin: 0 -2px;
  scroll-padding: 0 16px; overscroll-behavior-x: contain; -webkit-overflow-scrolling: touch; }
.ws-col { flex: 0 0 292px; display: flex; flex-direction: column; max-height: calc(100dvh - 250px); min-height: 120px; padding: 10px 8px 8px;
  border-radius: 18px; background: var(--preenche-suave, var(--surface)); }
.ws-col__cab { display: flex; align-items: center; gap: 8px; padding: 2px 6px 8px; }
.ws-col__ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--text-3); opacity: .55; flex: none; }
.ws-col.is-concluida .ws-col__ponto { background: var(--urg-ok, var(--certo)); opacity: 1; }
.ws-col__t { margin: 0; font-size: 14px; font-weight: 600; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-col__n { font-size: 12px; color: var(--text-3); font-variant-numeric: tabular-nums; padding: 1px 7px; border-radius: 6px; background: var(--preenche, var(--bg)); }
.ws-col__lista { display: flex; flex-direction: column; gap: 8px; overflow-y: auto; min-height: 40px; padding: 2px 2px 4px; flex: 1;
  overscroll-behavior: contain; }
.ws-col__vazia { margin: 0; padding: 14px 8px; text-align: center; font-size: var(--fs-xs); color: var(--text-3); border: 1px dashed var(--ws-fio); border-radius: 12px; }
.ws-col__novo { display: flex; gap: 4px; align-items: center; margin-top: 6px; padding: 2px; }
.ws .ws-col__novo .field__input { background: transparent; border-color: transparent; padding: 8px 8px; font-size: 14px; }
.ws .ws-col__novo .field__input:focus { background: var(--elevado, var(--bg)); border-color: var(--contorno-forte, var(--ws-fio)); }
.ws-col--nova { background: transparent; border: 1px dashed var(--ws-fio); gap: 8px; min-height: 0; padding: 10px; }

.ws-card { position: relative; display: grid; gap: 8px; padding: 11px 12px; border: 1px solid var(--ws-fio); border-radius: 12px; background: var(--elevado, var(--bg));
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04); cursor: grab; text-align: left; touch-action: manipulation;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; transition: transform .12s var(--ease), box-shadow .12s var(--ease); }
.ws-card:active { transform: scale(.99); }
.ws-card.is-feito .ws-card__t { color: var(--text-3); }
.ws-card.is-bloq { border-color: var(--contorno-forte, var(--ws-fio)); }
.ws-card__t { margin: 0; font-size: 14px; line-height: 1.4; font-weight: 500; overflow-wrap: anywhere; }
.ws-card__etqs { display: flex; flex-wrap: wrap; gap: 4px; }
.ws-card__bloq { display: flex; align-items: center; gap: 5px; margin: 0; font-size: 12px; color: var(--text-2); }
.ws-card__bloq svg { flex: none; color: var(--urg-2, var(--acao-preso)); }
.ws-card__pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.ws-card__inds { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; min-width: 0; }
.ws-card__avs { display: flex; flex-direction: row-reverse; }
.ws-card__avs .ws-av + .ws-av { margin-right: -6px; }
.ws-ind { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ws-ind.is-ok { color: var(--text-2); }
.ws-ind.is-ok svg { color: var(--urg-ok, var(--certo)); }

.ws-card--fantasma { position: fixed; z-index: 300; left: 0; top: 0; margin: 0; pointer-events: none; cursor: grabbing;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .22); opacity: .97; will-change: transform; }
.ws-card--vaga { border: 1.5px dashed color-mix(in srgb, var(--text) 25%, transparent); background: color-mix(in srgb, var(--bg) 50%, transparent);
  box-shadow: none; }
.ws-card.is-saindo { display: none; }
.ws-arrastando, .ws-arrastando * { cursor: grabbing !important; -webkit-user-select: none; user-select: none; }
/* o encaixe da rolagem puxaria de volta a cada passo da rolagem automatica */
.ws-arrastando .ws-kanban { scroll-snap-type: none; }
.ws-dica { margin: 4px 0 0; }

/* ---------- a tabela ---------- */
.ws-tabela-w { overflow-x: auto; border: 1px solid var(--ws-fio); border-radius: var(--r-card); background: var(--cartao, transparent); }
.ws-tabela { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); min-width: 760px; }
.ws-tabela th { position: sticky; top: 0; background: color-mix(in srgb, var(--text) 3%, var(--bg)); text-align: left; font-weight: 500; color: var(--text-3); font-size: 12px;
  border-bottom: 1px solid var(--ws-fio); padding: 0; }
.ws-tabela th button { width: 100%; text-align: left; padding: 10px 14px; border: 0; background: none; cursor: pointer; color: inherit; }
.ws-tabela td { padding: 10px 14px; border-bottom: 1px solid var(--contorno-dentro, var(--ws-fio)); vertical-align: middle; }
.ws-tabela tbody tr { cursor: pointer; }
.ws-tabela tbody tr:active { background: var(--preenche, var(--surface)); }
.ws-tabela tbody tr:last-child td { border-bottom: 0; }
.ws-tabela tr.is-feito .ws-tabela__t { color: var(--text-3); text-decoration: line-through; }
.ws-tabela__t { font-weight: 500; max-width: 340px; }
.ws-tabela__t .ws-linha__ic { margin-right: 6px; vertical-align: -2px; color: var(--urg-2, var(--acao-preso)); }
.ws-tabela__resp { display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; }
.ws-tabela__prog { display: grid; grid-template-columns: 60px auto; align-items: center; gap: 8px; }
.ws-tabela__nada { text-align: center; color: var(--text-3); padding: 28px; }
.ws-status { display: inline-flex; align-items: center; gap: 6px; padding: 0; color: var(--text-2); font-size: 12.5px; white-space: nowrap; }
.ws-status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--text-3); opacity: .7; }
.ws-status.is-ok::before { background: var(--urg-ok, var(--certo)); opacity: 1; }

/* ---------- metas ---------- */
.ws-metas { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: var(--ws-gap); }
.ws-meta { display: grid; gap: 8px; align-content: start; padding: 18px; border: 1px solid var(--ws-fio); border-radius: 18px; background: var(--cartao, var(--bg)); }
.ws-meta__topo { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.ws-meta__t { margin: 0 0 2px; font-weight: 600; font-size: 15px; line-height: 1.35; }
.ws-meta__num { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.ws-meta__num b { font-size: 26px; letter-spacing: -.02em; }
.ws-meta__pct { margin-left: auto; font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.ws-meta__origem, .ws-meta__desc { margin: 0; }
.ws-meta__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 4px; }
.ws-meta__hist { border-top: 1px solid var(--contorno-dentro, var(--ws-fio)); margin-top: 4px; padding-top: 4px; }

/* ---------- equipe ---------- */
.ws-equipe { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: var(--ws-gap); }
.ws-pessoa { display: grid; gap: 12px; align-content: start; padding: 18px; border: 1px solid var(--ws-fio); border-radius: var(--r-card); background: var(--cartao, var(--bg)); }
.ws-pessoa__topo { display: flex; align-items: center; gap: 12px; }
.ws-pessoa__nome { flex: 1; min-width: 0; }
.ws-pessoa__nome p { margin: 0; overflow: hidden; text-overflow: ellipsis; }
.ws-pessoa__t { font-weight: 600; font-size: 16px; }
.ws-pessoa__nums { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.ws-pessoa__nums button { display: grid; gap: 1px; padding: 10px; border: 0; border-radius: 12px; background: var(--preenche, var(--surface)); text-align: left; cursor: pointer; }
.ws-pessoa__nums button:active { transform: scale(.98); }
.ws-pessoa__nums b { font-size: 20px; font-variant-numeric: tabular-nums; }
.ws-pessoa__nums span { font-size: 11px; color: var(--text-3); }
.ws-pessoa__nums span::first-letter, .ws-tile__s::first-letter { text-transform: uppercase; }
.ws-pessoa__nums .is-alerta span { display: inline-flex; align-items: center; gap: 5px; }
.ws-pessoa__nums .is-alerta span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--urg-1, var(--acao)); }
.ws-pessoa__q { margin: 0; }
.ws-pessoa__metas { display: grid; gap: 6px; }
.ws-pessoa__meta { display: grid; grid-template-columns: minmax(0, 1fr) 80px 36px; gap: 8px; align-items: center; }
.ws-pessoa__meta .xs:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ws-pessoa__pe { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; border-top: 1px solid var(--contorno-dentro, var(--ws-fio)); padding-top: 10px; }
.ws-pessoa__acoes { display: flex; gap: 8px; }
.ws-papeis__l { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px 24px; margin: 4px 0 6px; }
.ws-papeis__l div { display: grid; gap: 4px; }
.ws-papeis__l dd { margin: 0; }

/* ============================================================
   A camada: a gaveta do cartao e os dialogos (o .tut do Coach)
   ============================================================ */
.ws-sem-rolar, .ws-sem-rolar body { overflow: hidden; }
.ws-veu { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: var(--veu, color-mix(in srgb, #000 58%, transparent)); -webkit-backdrop-filter: blur(8px) saturate(1.1); backdrop-filter: blur(8px) saturate(1.1);
  animation: ws-veu .2s var(--ease, ease-out); }
@keyframes ws-veu { from { opacity: 0; } }
.ws-caixa { position: relative; width: min(480px, 100%); padding: 28px 28px 24px; border-radius: 24px; background: var(--modal, var(--bg)); color: var(--text);
  border: 1px solid var(--contorno, color-mix(in srgb, var(--text) 12%, transparent)); box-shadow: 0 24px 64px rgba(0, 0, 0, .28);
  max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain; animation: ws-caixa .22s var(--ease, ease-out); }
@keyframes ws-caixa { from { opacity: 0; transform: translateY(8px) scale(.985); } }
.ws-caixa__fechar { position: absolute; top: 14px; right: 14px; }
.ws-dlg__t { margin: 0 40px 0 0; font-size: var(--fs-h3, 22px); line-height: 1.25; font-weight: 600; letter-spacing: -.01em; }
.ws-dlg__s { margin: 8px 0 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-2); }
.ws-dlg__f { display: grid; gap: 14px; margin-top: 20px; }
.ws-dlg__f--meta { gap: 12px; }
.ws-dlg__par { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.ws-dlg__par:empty { display: none; }
.ws-dlg__erro { margin: 0; }
.ws-dlg__acoes { display: grid; grid-template-columns: 1fr 1.6fr; gap: 8px; margin-top: 10px; }
.ws-dlg__acoes .btn { min-height: 50px; font-size: var(--fs-body, 16px); }
.ws-veu .ws-caixa > .ws-dlg__acoes { margin-top: 24px; }

/* a gaveta: do lado no computador, a tela toda no celular */
.ws-veu--gaveta { place-items: stretch end; padding: 0; overflow: hidden; }
.ws-caixa--gaveta { width: min(600px, 100%); height: 100dvh; max-height: none; border-radius: 0; border-width: 0 0 0 1px; padding: 0 28px 28px;
  animation: ws-gaveta .26s var(--ease, ease-out); }
@keyframes ws-gaveta { from { transform: translateX(32px); opacity: 0; } }
.ws-caixa--gaveta .ws-caixa__fechar { position: static; }
.ws-gav__cab { position: sticky; top: 0; z-index: 2; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 0 10px;
  margin: 0 -28px; padding-inline: 28px; background: var(--modal, var(--bg)); border-bottom: 1px solid var(--contorno-dentro, var(--ws-fio)); }
.ws-gav__onde { margin: 0; display: flex; align-items: center; gap: 6px; min-width: 0; flex-wrap: wrap; }
.ws-gav__titulo { display: flex; gap: 10px; align-items: flex-start; margin-top: 18px; }
.ws-gav__t { flex: 1; resize: none; border: 0; background: none; padding: 2px 0; font: inherit; font-size: 22px; font-weight: 600; line-height: 1.3;
  letter-spacing: -.01em; color: var(--text); overflow: hidden; field-sizing: content; min-height: 1.3em; }
.ws-gav__t:focus { outline: 0; box-shadow: 0 2px 0 color-mix(in srgb, var(--text) 30%, transparent); }
.ws-gav__feito { margin: 6px 0 0 44px; }
.ws-feito { display: grid; place-items: center; width: 34px; height: 34px; margin-top: 1px; border: 1.5px solid var(--contorno-forte, var(--border)); border-radius: 50%;
  background: none; color: var(--text-3); cursor: pointer; flex: none; }
.ws-feito.is-on { background: var(--certo); border-color: var(--certo); color: var(--on-accent); }
.ws-feito:active { transform: scale(.94); }

.ws-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 20px 0 0; padding: 16px; border-radius: var(--r-lg);
  border: 1px solid var(--contorno-dentro, transparent); background: var(--preenche-suave, var(--surface)); }
.ws-campos > div { display: grid; gap: 6px; min-width: 0; }
.ws-campos dt { font-size: 12px; color: var(--text-3); }
.ws-campos dd { margin: 0; min-width: 0; }
.ws-campos__largo { grid-column: 1 / -1; }
.ws-veu .ws-campo { background: var(--modal, var(--bg)); }
.ws-etqs-ed { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.ws-etqs-ed__f { flex: 1; min-width: 120px; }
.ws-veu .ws-etqs-ed__f .field__input { padding: 5px 10px; font-size: 13px; background: var(--bg); }
.ws-parts { display: flex; flex-wrap: wrap; gap: 6px; }
.ws-part { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px 3px 3px; border: 1px solid transparent; border-radius: var(--r-pill);
  background: var(--preenche, var(--bg)); font-size: 13px; color: var(--text-2); cursor: pointer; }
.ws-part.is-on { background: var(--preenche-forte, var(--surface)); color: var(--text); font-weight: 600; }
.ws-part:not(.is-on) .ws-av { opacity: .55; }

.ws-gav__sec { margin-top: 22px; display: grid; gap: 8px; }
.ws-gav__st { margin: 0; font-size: 14px; font-weight: 600; display: flex; gap: 8px; }
.ws-gav__st .c-3 { font-weight: 500; }
.ws-gav__desc { resize: vertical; min-height: 96px; font-family: inherit; }
.ws-gav__salvar { display: flex; gap: 12px; align-items: center; }
.ws-gav__salvar[hidden] { display: none; }
.ws-gav__pe { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--contorno-dentro, var(--ws-fio)); }
.ws-bloq { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); cursor: pointer; }
.ws-bloq span { display: inline-flex; align-items: center; gap: 5px; }
.ws-bloq input, .ws-item input[type="checkbox"] {
  /* o base.css tira a aparencia de todo input: o quadradinho e desenhado aqui */
  width: 20px; height: 20px; flex: none; margin: 0; border: 1.5px solid var(--border); border-radius: 6px; background: var(--bg) center / 14px no-repeat;
  cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease); }
.ws-bloq input:checked, .ws-item input[type="checkbox"]:checked { background-color: var(--certo); border-color: var(--certo);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.ws-bloq input:checked { background-color: var(--acao); border-color: var(--acao);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234A3B1C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.ws-bloq input:disabled, .ws-item input[type="checkbox"]:disabled { cursor: default; opacity: .6; }

.ws-item { display: flex; align-items: center; gap: 10px; min-height: 36px; }
.ws-item__t { flex: 1; min-width: 0; text-align: left; font-size: var(--fs-sm); border: 0; background: none; padding: 0; overflow-wrap: anywhere; }
button.ws-item__t { cursor: pointer; }
.ws-item__t.is-feito { color: var(--text-3); text-decoration: line-through; }
.ws-veu .ws-item-novo .field__input { padding: 7px 10px; font-size: 14px; border-style: dashed; }
.ws-anexo-f { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 6px; }
.ws-arquivo { display: inline-flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; width: fit-content; }
.ws-arquivo input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.ws-arquivo span { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px dashed var(--ws-fio); border-radius: var(--r-pill); }
.ws-arquivo:focus-within span { outline: 2px solid var(--accent); outline-offset: 2px; }
.ws-com { display: grid; grid-template-columns: auto 1fr; gap: 10px; }
.ws-com__c p { margin: 0; }
.ws-com__t { margin-top: 2px !important; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.5; }
.ws-com-f { display: grid; gap: 8px; justify-items: end; }
.ws-veu .ws-com-f textarea { resize: vertical; font-family: inherit; }

/* o recado: sobe de baixo e some sozinho */
.ws-recado { position: fixed; z-index: 400; left: 50%; bottom: calc(24px + var(--safe-bottom, 0px)); transform: translateX(-50%); max-width: min(92vw, 520px);
  padding: 12px 18px; border-radius: var(--r-pill); background: var(--text); color: var(--bg); font-size: var(--fs-sm); font-weight: 500;
  box-shadow: 0 12px 32px rgba(0, 0, 0, .24); animation: ws-recado .22s var(--ease, ease-out); }
.ws-recado--erro { display: inline-flex; align-items: center; gap: 10px; border-radius: 16px; }
.ws-recado--erro::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--urg-1, var(--acao)); }
@keyframes ws-recado { from { opacity: 0; transform: translate(-50%, 8px); } }

/* ============================================================
   Os briefings e as automacoes (0141), no desenho do treinador:
   cartao neutro com UMA linha fina, o assunto num circulo neutro com a
   cor so no traco (vermelho agora, amarelo pede olhar, verde deu
   certo), e o urgente ganha a linha vermelha fina em cima.
   ============================================================ */
.ws-brief { margin: 0 0 20px; }
.ws-brief__lista { display: grid; gap: 8px; }
.ws-brf { position: relative; display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 14px 16px;
  border: 1px solid var(--ws-fio); border-radius: var(--r-card); background: var(--cartao, var(--bg)); }
.ws-brf.ws-brf--u1::before { content: ''; position: absolute; top: -1px; left: 18px; right: 18px; height: 2px; border-radius: 0 0 2px 2px; background: var(--urg-1, var(--danger)); }
.ws-brf__ic { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--preenche-suave, var(--surface)); color: var(--text-2); }
.ws-brf--u1 .ws-brf__ic, .ws-brf__ic.ws-brf--u1 { color: var(--urg-1, var(--danger)); }
.ws-brf--u2 .ws-brf__ic, .ws-brf__ic.ws-brf--u2 { color: var(--urg-2, var(--acao-preso)); }
.ws-brf--ok .ws-brf__ic, .ws-brf__ic.ws-brf--ok { color: var(--urg-ok, var(--certo-texto)); }
.ws-brf__t { margin: 0; font-size: 15px; font-weight: 600; letter-spacing: -.005em; }
.ws-brf__s { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.45; color: var(--text-2); }
.ws-brf__acoes { display: flex; align-items: center; gap: 6px; }
.ws-brf__acoes .btn { margin: 0; white-space: nowrap; }
.ws-brief__nada { margin: 2px 0 0; }
.ws-brief__mais { margin-top: 8px; }

/* o modal do briefing: muito ar, o desenho no meio, uma acao em destaque */
.ws-bmodal { display: grid; padding-top: 8px; }
.ws-bmodal .ws-brf__ic--g { width: 56px; height: 56px; margin: 0 auto 22px; }
.ws-bmodal .ws-brf__ic--g svg { width: 26px; height: 26px; }
.ws-bmodal .ws-dlg__t { margin-right: 0; }
.ws-bmodal .ws-dlg__s { font-size: 15px; }

/* as preferencias: uma linha por escolha, o nome e o que ela faz */
.ws-auto__sobre { margin: 0 0 6px; max-width: 680px; }
.ws-prefs { display: grid; gap: 10px; margin-top: 6px; }
.ws-prefs__grupo { display: grid; gap: 0; margin: 0; padding: 0; border: 0; }
.ws-prefs__grupo legend { padding: 0; }
.ws-prefs__linha { max-width: 420px; }
.ws-pref { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; cursor: pointer; }
.ws-pref > span { display: grid; gap: 2px; min-width: 0; }
.ws-pref b { font-size: 15px; font-weight: 600; }
.ws-pref small { font-size: 13px; line-height: 1.45; color: var(--text-3); }
.ws-pref input[type="checkbox"] {
  width: 20px; height: 20px; flex: none; margin: 1px 0 0; border: 1.5px solid var(--contorno-forte, var(--border)); border-radius: 6px;
  background: var(--bg) center / 14px no-repeat; cursor: pointer; transition: background-color .12s var(--ease), border-color .12s var(--ease); }
.ws-pref input[type="checkbox"]:checked { background-color: var(--accent); border-color: var(--accent);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7'/%3E%3C/svg%3E"); }
.ws-pref input[type="checkbox"]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

/* as automacoes: uma linha por regra, o desenho verde enquanto ela anda */
.ws-recs { display: grid; }
.ws-rec { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--contorno-dentro, var(--ws-fio)); }
.ws-rec:first-child { border-top: 0; }
.ws-rec__ic { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--preenche-suave, var(--surface)); color: var(--urg-ok, var(--certo-texto)); }
.ws-rec__ic svg { width: 18px; height: 18px; }
.ws-rec.is-pausada .ws-rec__ic { color: var(--text-3); }
.ws-rec.is-pausada .ws-rec__t { color: var(--text-3); }
.ws-rec__t { margin: 0 0 2px; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.ws-rec__txt p { margin: 0; }
.ws-rec__acoes { display: flex; gap: 12px; }
.ws-av--auto { background: var(--preenche-forte, var(--surface-2)); color: var(--urg-ok, var(--certo-texto)); }

/* ---------- celular ---------- */
/* os alvos de toque (refino, 16/10/2026): no dedo nada fica abaixo de ~36px,
   sem mudar o desenho: o link ganha altura, o X ganha caixa, o quadradinho cresce */
@media (max-width: 899px) {
  .ws-link { display: inline-flex; align-items: center; min-height: 40px; padding: 0 6px; }
  .ws-icone--p { width: 36px; height: 36px; }
  .ws-icone { width: 40px; height: 40px; }
  .ws-vistas button { min-height: 38px; }
  .ws-sel--mini select { min-height: 34px; }
  .ws-etq button { display: inline-grid; place-items: center; min-width: 24px; min-height: 24px; margin: -4px -6px -4px 0; }
  .ws-item input[type="checkbox"], .ws-bloq input, .ws-pref input[type="checkbox"] { width: 24px; height: 24px; }
  .ws-item { min-height: 44px; }
  button.ws-item__t { min-height: 36px; }
  /* o seletor de campo (responsavel, prioridade, meta) ocupa a linha: a regra da barra de filtros (170px) vencia pela ordem */
  .ws-sel.ws-sel--campo select { max-width: none; }
  .ws-rec__acoes .ws-link, .ws-meta__acoes .ws-link, .ws-pessoa__acoes .ws-link, .ws-bloco__cab .ws-link { min-height: 40px; }
}
@media (max-width: 899px) {
  .ws-brf { grid-template-columns: 36px minmax(0, 1fr); gap: 4px 12px; align-items: start; padding: 14px; }
  .ws-brf__ic { width: 36px; height: 36px; }
  .ws-brf__ic svg { width: 18px; height: 18px; }
  .ws-brf__acoes { grid-column: 2; justify-content: space-between; margin-top: 8px; }
  .ws-brf__acoes .ws-icone { order: 2; }
  .ws-rec { grid-template-columns: 36px minmax(0, 1fr); }
  .ws-rec__acoes { grid-column: 2; }
  .ws-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .ws-tiles--3 { grid-template-columns: 1fr 1fr; }
  .ws-tile { min-height: 96px; padding: 14px; }
  .ws-tile__v { font-size: 28px; }
  .ws-grade { grid-template-columns: 1fr; }
  .ws-busca-g { max-width: none; flex-basis: 100%; }
  .ws[data-galho="quadros"] .ws-busca-g { display: none; }   /* no quadro, o filtro ja e a busca */
  .ws-cab { margin: 0 0 12px; }
  /* a barra de filtros vira UMA fileira que rola de lado: o quadro comeca logo embaixo */
  .ws-barra-q { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px 12px; padding: 2px 16px; scrollbar-width: none; justify-content: flex-start; }
  .ws-barra-q::-webkit-scrollbar { display: none; }
  .ws-barra-q__esq, .ws-barra-q__dir { flex-wrap: nowrap; flex: none; }
  .ws-barra-q__esq .ws-busca { flex: 0 0 170px; width: 170px; }
  .ws-sel select { max-width: 170px; }
  .ws-vistas button span { display: none; }
  .ws-vistas button { padding: 7px 10px; }
  .ws-menu { left: 12px !important; right: 12px; top: auto !important; bottom: calc(12px + var(--safe-bottom, 0px)); min-width: 0; z-index: 150;
    padding: 8px; border-radius: 20px; animation-name: ws-sobe; }
  .ws-menu button { padding: 14px 16px; font-size: 16px; }
  /* o kanban: uma coluna quase da largura da tela, e a proxima aparecendo na borda */
  .ws-kanban { scroll-snap-type: x proximity; margin: 0 -16px; padding: 2px 16px 16px; gap: 10px; }
  .ws-col { flex-basis: min(84vw, 320px); scroll-snap-align: start; max-height: calc(100dvh - 220px); }
  .ws-card { padding: 13px 14px; }
  .ws-card__t { font-size: 15px; }
  .ws-equipe, .ws-metas { grid-template-columns: 1fr; }
  .ws-caixa--gaveta { width: 100%; padding: 0 18px 32px; border-width: 0; animation-name: ws-sobe; }
  .ws-gav__cab { margin: 0 -18px; padding-inline: 18px; }
  @keyframes ws-sobe { from { transform: translateY(24px); opacity: 0; } }
  .ws-campos { grid-template-columns: 1fr; padding: 14px; }
  .ws-anexo-f { grid-template-columns: 1fr; }
  .ws-veu:not(.ws-veu--gaveta) { place-items: end center; padding: 0; }
  .ws-veu:not(.ws-veu--gaveta) .ws-caixa { width: 100%; border-radius: 24px 24px 0 0; padding: 24px 20px calc(20px + var(--safe-bottom, 0px));
    animation-name: ws-sobe; }
  .ws-dlg__acoes { grid-template-columns: 1fr; }
  .ws-dlg__acoes .btn--primary { order: -1; }
}

@media (prefers-reduced-motion: reduce) {
  .ws-veu, .ws-caixa, .ws-menu, .ws-recado, .ws-carregando span { animation: none; }
  .ws-barra > span, .ws-card, .ws-tile { transition: none; }
}

/* o seletor aberto ganhava o aro verde (o :focus-visible geral do Workspace) e parecia um botao ligado:
   no select o foco e um aro neutro, como o campo de escrever (16/10/2026, print do dono) */
.ws select:focus-visible, .ws-veu select:focus-visible { outline: 2px solid color-mix(in srgb, var(--text) 32%, transparent); outline-offset: 1px; }

/* ---------- a lista do seletor, desenhada pelo app (16/10/2026) ----------
   O ponteiro nao chega no <select> (vai pro rotulo, que abre esta lista):
   assim a lista do sistema nunca abre pelo toque. O teclado continua nele. */
.ws-sel { cursor: pointer; }
.ws-sel select { pointer-events: none; }
.ws-lista { position: fixed; z-index: 160; display: grid; gap: 2px; max-height: min(60vh, 420px); overflow-y: auto; padding: 6px;
  border: 1px solid var(--contorno, var(--ws-fio)); border-radius: var(--ws-raio); background: var(--elevado, var(--bg));
  box-shadow: var(--sombra-solta, 0 16px 40px rgba(0, 0, 0, .16)); animation: ws-surge .14s var(--ease); overscroll-behavior: contain; }
.ws-lista__i { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 40px; padding: 0 12px; border: 0;
  border-radius: 10px; background: none; color: var(--text); font: inherit; font-size: var(--fs-sm); text-align: left; cursor: pointer; }
.ws-lista__i:active, .ws-lista__i:focus-visible { background: var(--preenche, var(--surface)); outline: none; }
@media (hover: hover) { .ws-lista__i:hover { background: var(--preenche, var(--surface)); } }
.ws-lista__i.is-on { font-weight: 600; background: var(--preenche-forte, var(--surface)); }
.ws-lista__i.is-on svg { color: var(--accent-texto); flex: none; }
.ws-lista__i:disabled { opacity: .45; cursor: default; }
.ws-lista-veu { position: fixed; inset: 0; z-index: 159; background: var(--veu, rgba(0, 0, 0, .4));
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: ws-veu .18s var(--ease, ease-out); }
/* no celular ela sobe do pe da tela, larga, com alvos de dedo */
@media (max-width: 899px) {
  .ws-lista { left: 12px; right: 12px; bottom: calc(12px + var(--safe-bottom, 0px)); top: auto; padding: 8px; border-radius: 20px; animation-name: ws-sobe; }
  .ws-lista__i { min-height: 50px; padding: 0 16px; font-size: 16px; border-radius: 14px; }
}
@media (prefers-reduced-motion: reduce) { .ws-lista, .ws-lista-veu { animation: none; } }
