/* Gerenciador S3 — identidade visual da Agência S3
   Paleta oficial: #271271 (roxo profundo), #aa7bfb (lilás), #c3fd5e (verde-limão),
   #e7273d (vermelho), #000000. Tipografia: Sora. */
:root {
  --roxo: #271271;
  --roxo-medio: #4a2bb5;
  --lilas: #aa7bfb;
  --lilas-texto: #6a3fd6;
  --lilas-claro: #ede6fe;
  --limao: #c3fd5e;
  --vermelho: #e7273d;

  --texto: #1a1330;
  --texto-suave: #5d5672;
  --texto-fraco: #6b6480;
  --fundo: #f5f4f8;
  --superficie: #ffffff;
  --borda: #e8e3f3;
  --borda-campo: #dcd5ec;
  --linha: #f0ecf7;

  --sucesso: #1f7a4d;
  --sucesso-fundo: #e6f4ec;
  --erro: #b3192b;
  --erro-fundo: #fdecee;
  --aviso: #8a5a00;
  --aviso-fundo: #fff4dc;
  --info-fundo: #ede6fe;

  --fonte: 'Sora', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --raio: 16px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 15px; line-height: 1.5; color: var(--texto); background: var(--fundo); }
h1, h2 { line-height: 1.2; margin: 0 0 .35em; color: var(--roxo); }
h1 { font-size: 2rem; font-weight: 800; }
h2 { font-size: 1.1rem; font-weight: 700; }
a { color: var(--roxo); }
a:hover { color: var(--roxo-medio); }
small { font-size: .85em; }
.suave { color: var(--texto-suave); margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Botões */
.botao { display: inline-flex; align-items: center; justify-content: center; gap: .4rem; height: 46px; padding: 0 22px; border: 1px solid var(--borda-campo); border-radius: 10px; background: var(--superficie); color: var(--roxo); font: inherit; font-size: 14px; font-weight: 700; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s; }
.botao:hover { border-color: #c9bfe3; background: #faf8ff; color: var(--roxo); }
.botao--primario { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.botao--primario:hover { background: var(--roxo-medio); border-color: var(--roxo-medio); color: #fff; }
.botao--fantasma { background: transparent; border-color: transparent; color: var(--texto-suave); }
.botao--perigo { color: var(--erro); border-color: #f3c9cf; }
.botao--perigo:hover { background: var(--erro-fundo); border-color: #eeb3bc; color: var(--erro); }
.botao--pequeno { height: 34px; padding: 0 14px; font-size: 12px; font-weight: 600; border-radius: 8px; }
.botao--grande { height: 50px; font-size: 15px; }
.botao--cheio { width: 100%; }
:focus-visible { outline: 3px solid rgba(170, 123, 251, .55); outline-offset: 2px; }

/* Formulários */
.formulario { display: grid; gap: 16px; }
.campo { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; min-width: 0; }
.campo > span, .campo > legend { font-weight: 600; font-size: 13px; color: var(--roxo); padding: 0; }
.campo > legend { margin-bottom: 8px; }
.campo > span small { font-weight: 400; color: var(--texto-fraco); }
input[type="text"], input[type="email"], input[type="password"], input[type="search"], input[type="tel"] { width: 100%; height: 48px; padding: 0 16px; border: 1px solid var(--borda-campo); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; color: var(--texto); }
input::placeholder { color: #9a93ad; }
input:focus { outline: none; border-color: var(--lilas); box-shadow: 0 0 0 3px rgba(170, 123, 251, .22); }
.opcao { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--borda-campo); border-radius: 12px; cursor: pointer; margin-bottom: 8px; background: #fff; }
.opcao:has(input:checked) { border-color: var(--lilas); background: #f6f1ff; }
.opcao input { margin-top: 4px; accent-color: var(--roxo); }
.opcao span { display: grid; }
.opcao small { color: var(--texto-fraco); }
.formulario__acoes { display: flex; gap: 8px; flex-wrap: wrap; }

/* Campo de senha com "olhinho" */
.senha { position: relative; display: block; }
.senha input { padding-right: 52px; }
.senha__olho { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--texto-fraco); cursor: pointer; }
.senha__olho:hover { color: var(--roxo); background: #f6f1ff; }

/* Alertas */
.alerta { padding: 12px 16px; border-radius: 12px; margin-bottom: 16px; font-size: 14px; }
.alerta--sucesso { background: var(--sucesso-fundo); color: var(--sucesso); }
.alerta--erro { background: var(--erro-fundo); color: var(--erro); }
.alerta--aviso { background: var(--aviso-fundo); color: var(--aviso); }
.alerta--info { background: var(--info-fundo); color: var(--roxo); }

/* Avatares */
.avatar { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; font-weight: 800; font-size: 14px; }
.avatar--lilas { background: var(--lilas); color: #000; }
.avatar--roxo { background: var(--roxo); color: #fff; }
.avatar--claro { background: var(--lilas-claro); color: var(--roxo-medio); }
.avatar--pendente { border: 1px dashed var(--lilas); color: var(--lilas-texto); }
.avatar--cinza { background: #f1eff5; color: var(--texto-fraco); }

/* ---------- Telas de acesso (login, recuperação) ---------- */
.acesso { position: relative; min-height: 100vh; margin: 0; display: flex; align-items: center; justify-content: center; padding: 48px 20px; background: var(--roxo); overflow-x: hidden; }
.acesso::before, .acesso::after { content: ""; position: fixed; border-radius: 50%; filter: blur(40px); pointer-events: none; }
.acesso::before { width: 620px; height: 620px; left: -160px; top: -200px; background: radial-gradient(circle, rgba(170,123,251,.75) 0%, rgba(120,70,240,.35) 40%, rgba(39,18,113,0) 70%); }
.acesso::after { width: 520px; height: 520px; right: -120px; bottom: -180px; background: radial-gradient(circle, rgba(170,123,251,.5) 0%, rgba(39,18,113,0) 70%); }
.acesso__cartao { position: relative; z-index: 1; width: 100%; max-width: 420px; padding: 44px 40px 36px; border-radius: 24px; background: #fff; border: 1px solid #e4dcfa; box-shadow: 0 24px 60px rgba(10, 4, 40, .35); display: flex; flex-direction: column; gap: 24px; }
.acesso__marca { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.acesso__marca img { width: 180px; height: auto; }
.acesso__marca p { margin: 0; font-size: 18px; font-weight: 700; color: var(--roxo); }
.acesso__titulo { font-size: 1.25rem; margin: 0; }
.acesso__texto { color: var(--texto-suave); margin: -12px 0 0; font-size: 14px; }
.acesso__link { text-align: center; margin: 0; font-size: 13px; font-weight: 600; }
.acesso .alerta { margin: 0; }

/* ---------- Área logada: menu lateral + conteúdo ---------- */
.estrutura { display: flex; min-height: 100vh; }
.lateral { position: sticky; top: 0; align-self: flex-start; flex: none; width: 80px; height: 100vh; padding: 20px 16px; background: var(--roxo); color: #fff; overflow: hidden; display: flex; flex-direction: column; gap: 28px; transition: width .2s ease; z-index: 10; }
.lateral::before { content: ""; position: absolute; width: 360px; height: 360px; left: -180px; bottom: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(170,123,251,.6) 0%, rgba(39,18,113,0) 70%); filter: blur(30px); pointer-events: none; }
.lateral > * { position: relative; }
.menu-aberto .lateral { width: 248px; }

.lateral__topo { display: flex; align-items: center; gap: 14px; }
.lateral__hamburguer { display: grid; place-items: center; flex: none; width: 48px; height: 48px; padding: 0; border-radius: 12px; border: 1px solid rgba(170,123,251,.45); background: rgba(255,255,255,.06); color: #fff; cursor: pointer; }
.lateral__hamburguer:hover { background: rgba(255,255,255,.12); }
.lateral__logo { display: none; }
.lateral__logo img { display: block; width: 140px; height: auto; }
.lateral__simbolo { display: block; width: 40px; margin-left: 4px; }
.lateral__simbolo img { display: block; width: 40px; height: auto; }
.menu-aberto .lateral__logo { display: block; }
.menu-aberto .lateral__simbolo { display: none; }

.lateral__nav { display: flex; flex-direction: column; gap: 6px; }
.lateral__item { display: flex; align-items: center; gap: 12px; width: 48px; height: 48px; padding: 0 14px; border-radius: 12px; color: #dcd2fb; text-decoration: none; font-size: 14px; font-weight: 500; white-space: nowrap; overflow: hidden; }
.lateral__item svg { flex: none; }
.lateral__item:hover { background: rgba(255,255,255,.08); color: #fff; }
.lateral__item--ativo, .lateral__item--ativo:hover { background: var(--limao); color: #000; font-weight: 700; }
.menu-aberto .lateral__item { width: 100%; }

.lateral__rotulo { display: none; }
.menu-aberto .lateral__rotulo { display: flex; flex-direction: column; min-width: 0; }

.lateral__conta { margin-top: auto; display: flex; flex-direction: column; gap: 8px; padding-left: 6px; }
.lateral__usuario { display: flex; align-items: center; gap: 12px; color: #fff; text-decoration: none; font-size: 13px; font-weight: 600; line-height: 1.3; min-width: 0; }
.lateral__usuario small { font-size: 12px; font-weight: 400; color: #c9bdf5; }
.lateral__usuario .lateral__rotulo { overflow: hidden; text-overflow: ellipsis; }
.lateral__conta form { margin: 0; }
.lateral__sair { display: grid; place-items: center; width: 36px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: #dcd2fb; cursor: pointer; }
.lateral__sair:hover { color: #fff; background: rgba(255,255,255,.08); }
.menu-aberto .lateral__conta { flex-direction: row; align-items: center; gap: 8px; padding: 10px 10px 10px 5px; border-radius: 14px; background: rgba(255,255,255,.08); border: 1px solid rgba(170,123,251,.4); }
.menu-aberto .lateral__usuario { flex: 1; }
.menu-aberto .lateral__sair { width: 44px; }

.conteudo { flex: 1; min-width: 0; padding: 40px 48px 64px; }
.conteudo > * { max-width: 1160px; }
.conteudo--solto { max-width: 1160px; margin: 0 auto; }

/* Cabeçalho de página */
.cabecalho { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 24px; }
.cabecalho h1 { margin-bottom: 8px; }
.cabecalho__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.migalha { margin: 0 0 6px; font-size: 13px; }
.migalha a { color: var(--texto-fraco); }
.busca { display: flex; align-items: center; gap: 8px; height: 46px; padding: 0 14px; border-radius: 10px; border: 1px solid var(--borda-campo); background: #fff; color: var(--texto-fraco); }
.busca:focus-within { border-color: var(--lilas); box-shadow: 0 0 0 3px rgba(170,123,251,.22); }
.busca input { width: 220px; height: auto; padding: 0; border: 0; background: transparent; font-size: 13px; }
.busca input:focus { box-shadow: none; }

/* Cartões */
.cartao { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 24px; margin-bottom: 20px; }
.cartao--estreito { max-width: 560px; }
.cartao--tabela { padding: 0; overflow-x: auto; }
.vazio { text-align: center; padding: 48px 24px; }

.contadores { display: flex; flex-wrap: wrap; gap: 16px; margin-bottom: 20px; }
.contador { flex: 1 1 200px; padding: 20px 22px; border-radius: var(--raio); background: #fff; border: 1px solid var(--borda); }
.contador p { margin: 0; font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-fraco); }
.contador strong { display: block; margin-top: 6px; font-size: 28px; font-weight: 800; }
.contador__valor--roxo { color: var(--roxo); }
.contador__valor--lilas { color: var(--lilas-texto); }
.contador__valor--cinza { color: var(--texto-fraco); }

/* Tabela */
.tabela { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; }
.tabela th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-fraco); font-weight: 600; padding: 16px 12px; }
.tabela th:first-child, .tabela td:first-child { padding-left: 24px; }
.tabela th:last-child, .tabela td:last-child { padding-right: 24px; }
.tabela td { white-space: nowrap; padding: 14px 12px; border-top: 1px solid var(--linha); vertical-align: middle; }
.tabela strong { font-weight: 600; }
.tabela .suave { font-size: 13px; }
.tabela__inativo td { color: var(--texto-fraco); }
.tabela__acoes { display: flex; gap: 6px; justify-content: flex-end; }
.tabela__acoes form { margin: 0; }
.tabela__vazia { padding: 24px; text-align: center; }
.pessoa { display: flex; align-items: center; gap: 12px; }

.selo { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 12px; font-weight: 600; background: #f1eff5; color: #3d3650; white-space: nowrap; }
.selo--admin { background: var(--roxo); color: #fff; }
.selo--gestor { background: var(--lilas-claro); color: var(--roxo-medio); }
.status { font-size: 13px; font-weight: 600; white-space: nowrap; }
.status::before { display: inline-block; margin-right: 6px; }
.status--ativo { color: var(--sucesso); }
.status--ativo::before { content: "●"; }
.status--pendente { color: var(--lilas-texto); }
.status--pendente::before { content: "◌"; }
.status--inativo { color: var(--texto-fraco); }
.status--inativo::before { content: "○"; }
.link-manual__url { font-family: ui-monospace, monospace; font-size: 13px; margin-top: 12px; }

/* Time */
.seletor { height: 46px; padding: 0 38px 0 14px; border: 1px solid var(--borda-campo); border-radius: 10px; background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23271271' stroke-width='2.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right 14px center; font: inherit; font-size: 13px; color: var(--texto); cursor: pointer; appearance: none; -webkit-appearance: none; }
.seletor:focus { outline: none; border-color: var(--lilas); box-shadow: 0 0 0 3px rgba(170,123,251,.22); }
.areas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.areas__item { display: inline-flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px; border-radius: 999px; background: #fff; border: 1px solid var(--borda); font-size: 13px; color: var(--texto); }
.areas__item strong { min-width: 26px; padding: 3px 9px; border-radius: 999px; background: var(--roxo); color: #fff; font-size: 12px; text-align: center; box-sizing: border-box; }
.areas__item--sem strong { background: #f1eff5; color: var(--texto-fraco); }
.tabela--time th:nth-child(2) { width: 180px; }
.tabela--time { min-width: 860px; }
.tabela--time th:nth-child(3), .tabela--time th:nth-child(4) { width: 220px; }
.area-nome--squad { background: #eafdc8; color: #2c4a00; }
.squads { display: grid; gap: 0; }
.squads__criar { margin-bottom: 20px; }
.squads__linha { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid var(--linha); }
.squads__linha:first-child { border-top: 0; }
.squads__linha form { margin: 0; }
.squads__renomear { display: flex; flex: 1 1 320px; gap: 8px; align-items: center; }
.squads__renomear input { height: 42px; }
.squads__membros { min-width: 90px; font-size: 13px; }
.squads__novo { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.squads__novo input { flex: 1 1 260px; width: auto; }
.form-area { display: flex; gap: 8px; margin: 0; }
.form-area .seletor { width: 100%; height: 42px; }
.area-nome { display: inline-block; padding: 5px 12px; border-radius: 6px; font-size: 13px; font-weight: 600; background: var(--lilas-claro); color: var(--roxo-medio); }

/* ---------- Clientes ---------- */
textarea { width: 100%; min-height: 320px; padding: 14px 16px; border: 1px solid var(--borda-campo); border-radius: 12px; background: #fff; font: inherit; font-size: 14px; line-height: 1.6; color: var(--texto); resize: vertical; }
textarea:focus { outline: none; border-color: var(--lilas); box-shadow: 0 0 0 3px rgba(170, 123, 251, .22); }
.numeros { font-variant-numeric: tabular-nums; }
.tabela--clientes td:first-child { white-space: normal; min-width: 240px; }
.tabela__nome { font-weight: 600; color: var(--texto); text-decoration: none; }
.tabela__nome:hover { color: var(--roxo); text-decoration: underline; }
.tabela__sub { display: inline-block; max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.botao-icone { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; color: var(--roxo); }
.botao-icone:hover { background: #f6f1ff; }

/* Cores do escopo (cada serviço tem a sua) */
.escopo--fee { --esc-fundo: #efe7ff; --esc-texto: #271271; --esc-cor: #8a5cf0; }
.escopo--trafego { --esc-fundo: #e6f9c8; --esc-texto: #2f5a00; --esc-cor: #5f9e12; }
.escopo--branding { --esc-fundo: #ffe1e5; --esc-texto: #9a1426; --esc-cor: #e7273d; }
.escopo--site { --esc-fundo: #dcecff; --esc-texto: #0b4a8f; --esc-cor: #2f7de1; }
.escopo--materiais { --esc-fundo: #ffecd6; --esc-texto: #8a4300; --esc-cor: #e07a0b; }
.escopos { display: flex; flex-wrap: wrap; gap: 6px; }
.escopo { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px 4px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--esc-fundo); color: var(--esc-texto); white-space: nowrap; }
.escopo::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--esc-cor); }

/* Cadastro em abas */
.cartao--abas { padding: 0; }
.abas { display: flex; flex-wrap: wrap; gap: 4px; padding: 0 20px; border-bottom: 1px solid var(--borda); }
.abas__item { display: inline-flex; align-items: center; gap: 8px; height: 56px; padding: 0 16px; margin-bottom: -1px; border: 0; border-bottom: 3px solid transparent; background: none; font: inherit; font-size: 14px; font-weight: 500; color: var(--texto-fraco); cursor: pointer; }
.abas__item:hover { color: var(--roxo); }
.abas__item[aria-selected="true"] { color: var(--roxo); font-weight: 700; border-bottom-color: var(--roxo); }
.selo-admin { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 999px; background: var(--roxo); color: #fff; font-size: 11px; font-weight: 600; }
.selo-admin--limao { background: var(--limao); color: var(--roxo); }
.painel { display: grid; gap: 20px; padding: 28px 24px; border-bottom: 1px solid var(--linha); }
.abas-ativas .painel { border-bottom: 0; }
.abas-ativas .painel__titulo { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.grade { display: grid; gap: 16px; }
.grade--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grade__cheia { grid-column: 1 / -1; }
.grade--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.campo > .seletor { width: 100%; height: 48px; border-radius: 12px; font-size: 14px; }
.campo > .seletor:disabled { background-color: #f6f5f9; color: var(--texto-fraco); cursor: not-allowed; }
.endereco { gap: 16px; }
.contato-extra { border-style: dashed; border-color: #cdbcfb; }
.contato-extra__remover { justify-self: start; }
.contatos-acoes { display: flex; }
.botao--adicionar { border-style: dashed; border-color: var(--lilas); background: #faf7ff; color: var(--roxo); }
.botao--adicionar:hover { background: var(--lilas-claro); border-color: var(--roxo); }
.grade > .campo { align-content: start; }
.grupo { display: grid; gap: 14px; margin: 0; padding: 18px 20px 20px; border: 1px solid var(--borda); border-radius: 14px; min-width: 0; }
.grupo > legend { padding: 0 6px; font-size: 14px; font-weight: 700; color: var(--roxo); }
.cartao__rodape { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 8px; padding: 18px 24px; border-top: 1px solid var(--borda); }

.escopo-opcoes { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.escopo-opcao { position: relative; display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 14px 16px; border: 2px solid var(--borda); border-radius: 14px; background: #fff; cursor: pointer; }
.escopo-opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.escopo-opcao__caixa { display: grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; border: 2px solid var(--esc-cor); color: transparent; }
.escopo-opcao__nome { font-size: 15px; font-weight: 600; }
.escopo-opcao:has(input:checked) { background: var(--esc-fundo); border-color: var(--esc-cor); color: var(--esc-texto); }
.escopo-opcao:has(input:checked) .escopo-opcao__caixa { background: var(--esc-cor); color: #fff; }
.escopo-opcao:has(input:focus-visible) { outline: 3px solid rgba(170, 123, 251, .55); outline-offset: 2px; }
.escopo-itens { display: grid; gap: 12px; }
.escopo-item { border: 2px solid var(--borda); border-radius: 14px; background: #fff; overflow: hidden; }
.escopo-item .escopo-opcao { border: 0; border-radius: 0; min-height: 60px; }
.escopo-item:has(.escopo-opcao input:checked) { border-color: var(--esc-cor); }
.escopo-item__corpo { display: grid; gap: 14px; padding: 16px 18px 18px; border-top: 1px solid var(--borda); }
.escopo-item:not(:has(.escopo-opcao input:checked)) .escopo-item__corpo { display: none; }
.escopo-item__corpo .campo > legend { font-weight: 600; font-size: 13px; color: var(--roxo); margin-bottom: 8px; padding: 0; }
.textarea--media { min-height: 140px; }
.moeda { position: relative; display: flex; max-width: 280px; }
.moeda__prefixo { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 14px; font-weight: 600; color: var(--texto-fraco); pointer-events: none; }
.moeda input { padding-left: 46px; font-variant-numeric: tabular-nums; }
.campo--budget .campo__erro { max-width: 280px; }
.escopo-lista__extra { display: block; font-size: 12px; font-weight: 500; color: var(--texto-suave); }
.aviso-modelo { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--aviso-fundo); color: var(--aviso); font-size: 13px; }
.pilulas { display: flex; flex-wrap: wrap; gap: 10px; }
.pilula { position: relative; cursor: pointer; }
.pilula input { position: absolute; opacity: 0; }
.pilula span { display: inline-flex; align-items: center; height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--borda-campo); background: #fff; color: var(--roxo); font-size: 14px; font-weight: 600; }
.pilula input:checked + span { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.pilula--verde span { border-color: #9fd36a; color: #2f5a00; background: #f6fdeb; }
.pilula--verde input:checked + span { background: #3f7d0e; border-color: #3f7d0e; color: #fff; }
.pilula input:focus-visible + span { outline: 3px solid rgba(170, 123, 251, .55); outline-offset: 2px; }

.aviso-cadeado { display: flex; align-items: center; gap: 10px; margin: 0; }
.acessos { display: grid; gap: 12px; }
.acesso-linha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 0; padding: 14px 18px 18px; border: 1px solid var(--borda); border-radius: 14px; min-width: 0; }
.acesso-linha > legend { padding: 0 6px; font-size: 14px; font-weight: 700; color: var(--roxo); }
.copiavel { display: flex; align-items: center; gap: 8px; min-width: 0; }
.copiavel > input, .copiavel > .senha { flex: 1; min-width: 0; }
.botao-copiar { display: grid; place-items: center; flex: none; width: 46px; height: 46px; padding: 0; border: 1px solid var(--borda-campo); border-radius: 10px; background: #f6f1ff; color: var(--roxo); cursor: pointer; transition: background .15s; }
.botao-copiar:hover { background: var(--lilas-claro); }
.botao-copiar.copiado { background: var(--limao); border-color: var(--limao); color: #000; }

/* Ficha do cliente */
.ficha__titulo { display: flex; align-items: center; gap: 16px; }
.avatar--ficha { width: 64px; height: 64px; border-radius: 18px; background: var(--roxo); color: var(--limao); font-size: 20px; }
.ficha { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 20px; }
.ficha__cheia { grid-column: 1 / -1; }
.dados { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin: 0; }
.dados__cheio { grid-column: 1 / -1; }
.dados dt { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-fraco); }
.dados dd { margin: 4px 0 0; font-size: 14px; overflow-wrap: anywhere; }
.dados dd strong { font-weight: 600; }
.escopo-lista { list-style: none; margin: 0; padding: 0; display: grid; }
.escopo-lista li { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 4px 0; border-top: 1px solid var(--linha); font-size: 14px; font-weight: 600; color: var(--esc-texto); }
.escopo-lista li:first-child { border-top: 0; }
.escopo-lista__nome { flex: 1; min-width: 0; }
.escopo-lista__vazio { font-size: 13px; font-weight: 400; color: var(--texto-fraco); }
.link-botao { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; font-weight: 700; color: var(--roxo); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.link-botao:hover { background: #f6f1ff; color: var(--roxo-medio); }
.escopo-lista__check { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 6px; background: var(--esc-cor); color: #fff; }
.texto-livre { font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
.texto-livre a { color: var(--roxo); font-weight: 600; word-break: break-all; }
.cartao--escuro { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.cartao--escuro h2 { color: #fff; margin: 0; }
.cartao__topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.acessos-ficha__cabecalho, .acessos-ficha__linha { display: grid; grid-template-columns: 120px minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: center; }
.acessos-ficha__cabecalho { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: #d9ccff; padding-bottom: 8px; }
.acessos-ficha__linha { padding: 10px 0; border-top: 1px solid rgba(170, 123, 251, .3); }
.acessos-ficha__linha input { height: 44px; background: rgba(255,255,255,.07); border-color: rgba(170, 123, 251, .45); color: #fff; }
.acessos-ficha__linha .senha__olho { color: #d9ccff; }
.acessos-ficha__linha .senha__olho:hover { background: rgba(255,255,255,.1); color: #fff; }
.acessos-ficha__linha .botao-copiar { width: 44px; height: 44px; background: rgba(255,255,255,.1); border-color: transparent; color: #fff; }
.acessos-ficha__linha .botao-copiar.copiado { background: var(--limao); color: #000; }
.acessos-ficha__vazio { grid-column: 2 / -1; font-size: 13px; color: #c9bdf5; }
.acessos-ficha__log { margin: 14px 0 0; font-size: 12px; color: #c9bdf5; }
.ficha__excluir { grid-column: 1 / -1; display: flex; justify-content: flex-end; margin: 0; }

.tabela__acoes { align-items: center; }
.botao-icone { padding: 0; border: 0; background: transparent; cursor: pointer; }
.botao-icone--perigo { color: var(--erro); }
.botao-icone--perigo:hover { background: var(--erro-fundo); color: var(--erro); }

/* Modal de confirmação */
.modal { width: min(440px, calc(100% - 32px)); padding: 28px; border: 0; border-radius: 20px; background: #fff; color: var(--texto); box-shadow: 0 24px 60px rgba(10, 4, 40, .35); text-align: center; }
.modal::backdrop { background: rgba(20, 8, 70, .5); }
.modal__icone { display: grid; place-items: center; width: 52px; height: 52px; margin: 0 auto 14px; border-radius: 50%; background: var(--erro-fundo); color: var(--erro); }
.modal h2 { margin: 0 0 8px; font-size: 1.25rem; }
.modal p { margin: 0 0 22px; color: var(--texto-suave); font-size: 14px; }
.modal p strong { color: var(--texto); }
.modal__acoes { display: flex; justify-content: center; gap: 10px; flex-wrap: wrap; }
.modal__acoes .botao { min-width: 140px; }
.modal--detalhe { width: min(720px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; text-align: left; }
.modal--detalhe[open] { display: flex; flex-direction: column; }
.modal__cabecalho { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 22px 24px 16px; border-bottom: 1px solid var(--borda); }
.modal__cabecalho h2 { margin: 10px 0 2px; }
.modal__cabecalho p { margin: 0; font-size: 13px; }
.modal__fechar { display: grid; place-items: center; flex: none; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent; color: var(--texto-fraco); cursor: pointer; }
.modal__fechar:hover { background: #f6f1ff; color: var(--roxo); }
.modal__corpo { flex: 1 1 auto; min-height: 0; overflow-y: auto; padding: 20px 24px; color: var(--texto); }
.modal__rodape { display: flex; justify-content: flex-end; padding: 14px 24px; border-top: 1px solid var(--borda); }
.botao--perigo-cheio { background: var(--erro); border-color: var(--erro); color: #fff; }
.botao--perigo-cheio:hover { background: #961425; border-color: #961425; color: #fff; }
.botao--perigo-cheio:disabled { opacity: .6; cursor: wait; }

/* Data de início + calendário (estilo S3: cabeçalho roxo, dia escolhido em verde-limão) */
.campo__rotulo { font-weight: 600; font-size: 13px; color: var(--roxo); }
.campo__dica { font-size: 12px; color: var(--texto-fraco); }
.data-campo { position: relative; display: flex; }
.data-campo input { padding-right: 56px; font-variant-numeric: tabular-nums; }
.data-campo__botao { position: absolute; top: 2px; right: 2px; display: grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f6f1ff; color: var(--roxo); cursor: pointer; }
.data-campo__botao:hover, .data-campo__botao[aria-expanded="true"] { background: var(--roxo); color: var(--limao); }
.calendario { position: absolute; top: calc(100% + 8px); left: 0; z-index: 30; width: 320px; border-radius: 18px; background: #fff; border: 1px solid var(--borda); box-shadow: 0 18px 48px rgba(20, 8, 70, .22); overflow: hidden; }
.calendario__topo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 14px 12px; background: var(--roxo); color: #fff; }
.calendario__mes { margin: 0; font-size: 15px; font-weight: 700; text-transform: capitalize; }
.calendario__nav { display: grid; place-items: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 10px; background: rgba(255,255,255,.1); color: #fff; cursor: pointer; }
.calendario__nav:hover { background: rgba(255,255,255,.2); color: var(--limao); }
.calendario__grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 12px; }
.calendario__semana { display: grid; place-items: center; height: 28px; font-size: 11px; font-weight: 700; color: var(--texto-fraco); text-transform: uppercase; }
.calendario__dia { display: grid; place-items: center; height: 38px; padding: 0; border: 0; border-radius: 10px; background: transparent; font: inherit; font-size: 13px; font-weight: 500; color: var(--texto); cursor: pointer; }
.calendario__dia:hover { background: var(--lilas-claro); color: var(--roxo); }
.calendario__dia--fora { color: #b3acc4; }
.calendario__dia--hoje { box-shadow: inset 0 0 0 2px var(--lilas); font-weight: 700; color: var(--roxo); }
.calendario__dia[aria-pressed="true"] { background: var(--limao); color: #000; font-weight: 800; box-shadow: none; }
.calendario__dia--bloqueado, .calendario__dia--bloqueado:hover { background: transparent; color: #cfc9dc; text-decoration: line-through; cursor: not-allowed; box-shadow: none; }
.calendario__nav:disabled { opacity: .35; cursor: not-allowed; }
.calendario__nav:disabled:hover { background: rgba(255,255,255,.1); color: #fff; }
.prazo-vencido { display: inline-block; margin-left: 6px; padding: 2px 8px; border-radius: 999px; background: var(--erro-fundo); color: var(--erro); font-size: 11px; font-weight: 700; }
.calendario__dia:focus-visible { outline: 3px solid rgba(170, 123, 251, .6); outline-offset: 1px; }
.calendario__rodape { display: flex; justify-content: space-between; gap: 8px; padding: 0 12px 12px; }
.calendario__acao { height: 36px; padding: 0 14px; border: 1px solid var(--borda-campo); border-radius: 999px; background: #fff; font: inherit; font-size: 12px; font-weight: 700; color: var(--roxo); cursor: pointer; }
.calendario__acao:hover { background: #f6f1ff; }

/* Validação ao digitar (máscaras de CNPJ, telefone e e-mail) */
input[aria-invalid="true"] { border-color: var(--erro); background: #fffafa; }
input[aria-invalid="true"]:focus { border-color: var(--erro); box-shadow: 0 0 0 3px rgba(231, 39, 61, .18); }
.campo__erro { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--erro); }
.campo__erro::before { content: "!"; display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: var(--erro); color: #fff; font-size: 11px; font-weight: 800; }

/* Foto do cliente */
.avatar--foto { object-fit: cover; background: #fff; border: 1px solid var(--borda); padding: 0; }
.foto-campo { display: flex; align-items: center; gap: 18px; }
.foto-campo__preview { display: grid; place-items: center; flex: none; width: 88px; height: 88px; border-radius: 22px; overflow: hidden; background: #f6f1ff; border: 2px dashed #cdbcfb; color: var(--lilas); }
.foto-campo__preview--redonda { border-radius: 50%; }
.foto-campo__preview img { width: 100%; height: 100%; object-fit: cover; }
.foto-campo__info { display: grid; gap: 8px; }
.foto-campo__acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.foto-campo__botao { cursor: pointer; }
.foto-campo__botao:focus-within { outline: 3px solid rgba(170, 123, 251, .55); outline-offset: 2px; }
.foto-campo__remover { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; font-size: 13px; font-weight: 600; color: var(--erro); cursor: pointer; }

/* Aviso "copiado" */
.aviso-copia { position: fixed; right: 24px; bottom: 24px; z-index: 50; padding: 10px 16px; border-radius: 999px; background: var(--limao); color: #000; font-size: 13px; font-weight: 700; box-shadow: 0 8px 24px rgba(10, 4, 40, .2); }

/* Erros */
.erro { text-align: center; padding: 48px 16px; }
.erro__codigo { font-size: 3rem; font-weight: 800; color: var(--lilas); margin: 0; }
.erro .botao { margin-top: 16px; }
.acesso .erro { padding: 0; }

@media (max-width: 720px) {
  .conteudo { padding: 24px 16px 48px; }
  .menu-aberto .lateral { position: fixed; left: 0; box-shadow: 0 0 0 100vmax rgba(10,4,40,.45); }
  .acesso__cartao { padding: 32px 24px 28px; }
  .busca input { width: 100%; }
  .cabecalho__acoes, .busca, .filtro, .filtro .seletor { width: 100%; }
  .grade--2, .grade--3, .acesso-linha, .ficha, .dados { grid-template-columns: minmax(0, 1fr); }
  .acessos-ficha__cabecalho { display: none; }
  .acessos-ficha__linha { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .acessos-ficha__vazio { grid-column: auto; }
  .painel { padding: 20px 16px; }
}

/* ---------- Quadro (kanban) ---------- */
.conteudo > .largo { max-width: none; }
.quadro-filtros { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px; margin-bottom: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--borda); }
.quadro-filtros__busca { flex: 1 1 220px; max-width: 320px; height: 44px; }
.quadro-filtros__busca input { width: 100%; }
.quadro-filtros__campo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--texto-suave); }
.quadro-filtros__campo .seletor { height: 44px; min-width: 170px; }
.quadro-filtros__limpar { height: 44px; padding: 0 12px; border: 0; background: none; font: inherit; font-size: 13px; font-weight: 600; color: var(--roxo); text-decoration: underline; cursor: pointer; }
.quadro-filtros__total { margin-left: auto; font-size: 13px; }

.quadro { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 12px; align-items: stretch; }
.quadro__coluna { --cor: var(--lilas); position: relative; flex: 1 0 190px; display: flex; flex-direction: column; min-height: 560px; padding-top: 4px; border-radius: 14px; background: #ecebf3; overflow: hidden; }
.quadro__coluna::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--cor); }
.quadro__coluna--andamento { --cor: #3b5bdb; }
.quadro__coluna--revisao { --cor: #f2b33d; }
.quadro__coluna--alteracao { --cor: var(--vermelho); }
.quadro__coluna--cliente { --cor: var(--roxo); }
.quadro__coluna--entregue { --cor: var(--limao); }
.quadro__coluna--alvo { box-shadow: inset 0 0 0 2px var(--lilas); background: #e6e1f5; }
.quadro__topo { display: flex; align-items: center; gap: 8px; padding: 12px 14px 10px; }
.quadro__topo h2 { flex: 1; margin: 0; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto); }
.quadro__contador { min-width: 26px; padding: 2px 9px; border-radius: 999px; background: #fff; font-size: 12px; font-weight: 700; color: var(--texto-suave); text-align: center; }
.quadro__lista { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 0 10px 10px; }
.quadro__vazio { margin: 6px 4px; font-size: 12px; color: var(--texto-fraco); }
.quadro__adicionar { display: flex; align-items: center; height: 44px; margin: 0 10px 8px; padding: 0 6px; border-radius: 8px; font-size: 13px; font-weight: 600; text-decoration: none; color: var(--roxo); }
.quadro__adicionar:hover { background: rgba(255,255,255,.7); }

.quadro__cliente { align-self: flex-start; max-width: 100%; padding: 3px 8px; border-radius: 6px; font-size: 11px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.quadro__cliente--0 { background: #ece6ff; color: #271271; }
.quadro__cliente--1 { background: #e0f0fa; color: #0b5578; }
.quadro__cliente--2 { background: #fdeedd; color: #7a3400; }
.quadro__cliente--3 { background: #e6f9c8; color: #2f5a00; }
.quadro__cliente--4 { background: #ffe1e5; color: #9a1426; }
.quadro__cliente--5 { background: #e3f4f1; color: #0f5d55; }

.tarefa { display: flex; flex-direction: column; gap: 8px; padding: 12px; border-radius: 10px; background: #fff; box-shadow: 0 1px 3px rgba(27, 22, 64, .08); cursor: grab; }
.tarefa:hover { box-shadow: 0 4px 12px rgba(27, 22, 64, .12); }
.tarefa--arrastando { opacity: .4; }
.tarefa__titulo { font-size: 13px; line-height: 1.4; color: var(--texto); text-decoration: none; }
.tarefa__titulo strong { font-weight: 700; }
.tarefa__titulo:hover strong { text-decoration: underline; color: var(--roxo); }
.tarefa__id { color: var(--texto-fraco); font-variant-numeric: tabular-nums; }
.tarefa__rodape { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.tarefa__pessoas { display: flex; padding-right: 6px; }
.tarefa__pessoa { margin-right: -6px; }
.tarefa__pessoa .avatar { width: 28px; height: 28px; font-size: 11px; border: 2px solid #fff; object-fit: cover; }
.tarefa__prazo { display: inline-flex; align-items: center; gap: 4px; margin-left: auto; font-size: 12px; font-weight: 600; color: var(--texto-suave); white-space: nowrap; }
.tarefa__atraso { display: none; }
.tarefa__prazo--atrasada { padding: 3px 8px; border-radius: 6px; background: var(--erro-fundo); color: var(--erro); font-weight: 700; }
.tarefa__prazo--atrasada .tarefa__atraso { display: inline; }
/* Entregue não conta como atrasada. */
.quadro__coluna--entregue .tarefa__prazo--atrasada { padding: 0; background: none; color: var(--texto-suave); font-weight: 600; }
.quadro__coluna--entregue .tarefa__atraso { display: none; }

.pessoas-tarefa { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pessoas-tarefa__item { display: flex; align-items: center; gap: 10px; min-height: 52px; padding: 8px 12px; border: 1px solid var(--borda-campo); border-radius: 12px; background: #fff; font-size: 14px; cursor: pointer; }
.pessoas-tarefa__item:has(input:checked) { border-color: var(--lilas); background: #f6f1ff; }
.pessoas-tarefa__item input { accent-color: var(--roxo); width: 18px; height: 18px; margin: 0; }
.pessoas-tarefa__item .avatar { width: 30px; height: 30px; font-size: 12px; }

@media (max-width: 720px) {
  .quadro-filtros__busca, .quadro-filtros__campo { max-width: none; width: 100%; flex: 1 1 100%; }
  .quadro-filtros__campo .seletor { flex: 1; }
  .quadro-filtros__total { margin-left: 0; }
  .quadro__coluna { flex-basis: 260px; }
}

/* ---------- Configurações ---------- */
.subnav { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px; margin-bottom: 20px; border-radius: 14px; background: #fff; border: 1px solid var(--borda); width: fit-content; max-width: 100%; }
.subnav__item { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--texto-suave); text-decoration: none; }
.subnav__item:hover { background: #f6f1ff; color: var(--roxo); }
.subnav__item--ativo, .subnav__item--ativo:hover { background: var(--roxo); color: #fff; }
.subnav__item--breve, .subnav__item--breve:hover { background: transparent; color: #a39cb5; cursor: not-allowed; }
.subnav__item small { padding: 2px 7px; border-radius: 999px; background: var(--lilas-claro); color: var(--lilas-texto); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

.busca--filtro { width: 320px; max-width: 100%; margin-bottom: 14px; }
.busca--filtro input { width: 100%; }

/* Lista de modelos: uma faixa por modelo, inteira clicável, engrenagem à direita */
.lista-modelos { list-style: none; margin: 0 0 20px; padding: 0; display: grid; gap: 8px; }
.lista-modelos__item { position: relative; display: flex; align-items: center; gap: 12px; min-height: 56px; padding: 0 8px 0 20px; border-radius: 12px; background: #fff; border: 1px solid var(--borda); transition: border-color .15s, box-shadow .15s; }
.lista-modelos__item:hover { border-color: #cdbcfb; box-shadow: 0 4px 14px rgba(39, 18, 113, .06); }
.lista-modelos__item::before { content: ""; position: absolute; left: -1px; top: 12px; bottom: 12px; width: 3px; border-radius: 0 3px 3px 0; background: transparent; transition: background .15s; }
.lista-modelos__item:hover::before { background: var(--lilas); }
.lista-modelos__nome { flex: 1; min-width: 0; align-self: stretch; display: flex; align-items: center; font-size: 14px; font-weight: 600; color: var(--texto); text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lista-modelos__nome:hover { color: var(--roxo); }
.lista-modelos__qtd { padding: 4px 10px; border-radius: 999px; background: var(--lilas-claro); color: var(--roxo-medio); font-size: 12px; font-weight: 600; white-space: nowrap; }
.lista-modelos__qtd--vazio { background: #f1eff5; color: var(--texto-fraco); }

/* Menu suspenso (engrenagem / três pontos) */
.menu { position: relative; }
.menu > summary { list-style: none; color: var(--texto-fraco); }
.menu > summary::-webkit-details-marker { display: none; }
.menu > summary:hover, .menu[open] > summary { color: var(--roxo); background: #f6f1ff; }
.menu > .botao-icone--caixa, .botao-icone--caixa { width: 46px; height: 46px; border: 1px solid var(--borda-campo); background: #fff; color: var(--roxo); }
.menu[open] > .botao-icone--caixa { background: var(--roxo); border-color: var(--roxo); color: #fff; }
.menu__lista { position: absolute; right: 0; top: calc(100% + 6px); z-index: 20; display: grid; min-width: 200px; padding: 6px; border-radius: 14px; background: #fff; border: 1px solid var(--borda); box-shadow: 0 16px 40px rgba(20, 8, 70, .18); }
.menu--direita .menu__lista { min-width: 250px; }
.menu__lista form { margin: 0; }
.menu__item { display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; min-height: 42px; padding: 0 12px; border: 0; border-radius: 9px; background: none; font: inherit; font-size: 13px; font-weight: 500; color: var(--texto); text-align: left; text-decoration: none; white-space: nowrap; cursor: pointer; }
.menu__item:hover { background: #f6f1ff; color: var(--roxo); }
.menu__item--perigo { color: var(--erro); }
.menu__item--perigo:hover { background: var(--erro-fundo); color: var(--erro); }
.menu__item--perigo { margin-top: 4px; border-top: 1px solid var(--linha); border-radius: 0 0 9px 9px; }
.menu__item--inativo, .menu__item--inativo:hover { background: none; color: #a39cb5; cursor: not-allowed; }
.menu__item small { padding: 2px 7px; border-radius: 999px; background: var(--lilas-claro); color: var(--lilas-texto); font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }

/* Página do modelo */
.modelo { display: grid; gap: 22px; padding: 28px; }
.modelo > * { min-width: 0; }
.modelo__nome { display: grid; gap: 4px; justify-items: start; margin: 0; }
.modelo__rotulo { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .1em; color: var(--texto-fraco); }
.nome-editavel { position: relative; display: inline-flex; align-items: center; max-width: calc(100% + 10px); margin-left: -10px; }
.nome-editavel input { width: auto; min-width: 8ch; max-width: 100%; height: 50px; padding: 0 40px 0 10px; border: 1px solid transparent; border-radius: 10px; background: transparent; font-size: 26px; font-weight: 700; color: var(--roxo); text-decoration: underline dashed #b9a7ee 1.5px; text-underline-offset: 8px; }
.nome-editavel input:hover { background: #faf8ff; }
.nome-editavel input:focus { border-color: var(--lilas); background: #fff; text-decoration: none; }
.nome-editavel__medida { position: absolute; left: 0; top: 0; width: max-content; visibility: hidden; white-space: pre; font-size: 26px; font-weight: 700; pointer-events: none; }
.nome-editavel__lapis { position: absolute; right: 12px; color: #b9a7ee; pointer-events: none; }
.nome-editavel:focus-within .nome-editavel__lapis { color: var(--lilas-texto); }
.modelo__acoes { display: flex; flex-wrap: wrap; gap: 10px; }
.modelo__vazio { display: grid; justify-items: center; gap: 6px; padding: 36px 20px 40px; border: 2px dashed var(--borda); border-radius: 14px; text-align: center; }
.modelo__vazio h2 { margin: 6px 0 0; font-size: 1.05rem; }
.modelo__vazio .botao { margin-top: 12px; }
.modelo__vazio-icone { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--lilas-claro); color: var(--roxo-medio); }
/* Sem overflow na caixa da tabela: o menu da engrenagem precisa sair por cima dela. */
.modelo__tabela { border: 1px solid var(--borda); border-radius: 14px; overflow: visible; }
.modelo__tabela .tabela { min-width: 0; }
.modelo__tabela .tabela th { padding-top: 14px; padding-bottom: 12px; background: #faf9fc; }
.modelo__tabela .tabela th:first-child { border-top-left-radius: 13px; }
.modelo__tabela .tabela th:last-child { border-top-right-radius: 13px; }
.tabela--modelo td:first-child { white-space: normal; }
.tabela--modelo .menu[open] { z-index: 25; }
.tabela--modelo td { padding-top: 10px; padding-bottom: 10px; }
.tabela--modelo__titulo { width: 38%; }
.tabela--modelo__titulo .tabela__nome { cursor: pointer; }
.tabela--modelo__linha { display: flex; align-items: center; gap: 12px; }
.tabela--modelo__ordem { display: inline-grid; place-items: center; flex: none; width: 24px; height: 24px; border-radius: 7px; background: var(--lilas-claro); color: var(--roxo-medio); font-size: 11px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tabela--modelo__descricao { color: var(--texto-suave); font-size: 13px; white-space: normal !important; }
.tabela__col-acoes { width: 64px; }
.tabela--modelo td:last-child { text-align: right; }
.tabela--modelo .menu { display: inline-block; }
.tabela--modelo .menu__lista { text-align: left; }
.modelo__rodape { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding-top: 18px; border-top: 1px solid var(--linha); }
.botao--contorno { border-color: var(--roxo); color: var(--roxo); background: #fff; }
.botao--contorno:disabled, .botao--contorno:disabled:hover { border-color: var(--borda-campo); background: #f6f5f9; color: #a39cb5; cursor: not-allowed; }
.obrigatorio { color: var(--vermelho); text-decoration: none; margin-left: 2px; }

/* Janelas com formulário */
.modal--formulario { width: min(640px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; text-align: left; }
.modal--pequeno { width: min(460px, calc(100% - 32px)); }
.modal--formulario[open] { display: flex; flex-direction: column; }
/* Aberta pelo servidor sem JavaScript (não modal): centraliza e escurece o fundo mesmo assim. */
.modal--formulario[open]:not(:modal) { position: fixed; inset: 0; z-index: 40; margin: auto; height: fit-content; box-shadow: 0 0 0 100vmax rgba(20, 8, 70, .5), 0 24px 60px rgba(10, 4, 40, .35); }
.modal__form { display: flex; flex-direction: column; min-height: 0; margin: 0; }
.modal--formulario .modal__cabecalho { align-items: center; padding: 18px 16px 16px 24px; }
.modal--formulario .modal__cabecalho h2 { margin: 0; }
.modal--formulario .modal__corpo { overflow-y: auto; padding: 22px 24px; }
.modal--formulario .modal__corpo .alerta { margin: 0; }
.modal--formulario .modal__rodape { gap: 8px; }
.modal--formulario textarea { min-height: 180px; }

@media (max-width: 720px) {
  .subnav { width: 100%; }
  .busca--filtro { width: 100%; }
  .lista-modelos__qtd { display: none; }
  .modelo { padding: 20px 16px; }
  .nome-editavel input, .nome-editavel__medida { font-size: 22px; }
  .tabela--modelo th:nth-child(2), .tabela--modelo td:nth-child(2) { display: none; }
}

/* ---------- Projetos ---------- */
.escolha-modelo { list-style: none; margin: 0 0 20px; padding: 0; border: 1px solid var(--borda); border-radius: var(--raio); background: #fff; overflow: hidden; }
.escolha-modelo li + li { border-top: 1px solid var(--linha); }
.escolha-modelo__item { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 52px; padding: 10px 22px; font-size: 14px; color: var(--texto); text-decoration: none; }
a.escolha-modelo__item:hover { background: #f6f1ff; color: var(--roxo); }
.escolha-modelo__item small { font-size: 12px; color: var(--texto-fraco); white-space: nowrap; }
.escolha-modelo__item--vazio { color: var(--texto-fraco); cursor: not-allowed; }

.novo-projeto__campos { display: grid; gap: 16px; max-width: 420px; }
.tabela-tarefas { border: 1px solid var(--borda); border-radius: 12px; overflow: hidden; }
.tabela-tarefas__cabecalho, .tabela-tarefas__linha { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1.3fr) minmax(180px, .8fr); gap: 16px; align-items: center; padding: 10px 16px; }
.tabela-tarefas__cabecalho { background: #faf9fd; font-size: 12px; font-weight: 700; color: var(--texto-suave); text-transform: uppercase; letter-spacing: .06em; }
.tabela-tarefas__linha { border-top: 1px solid var(--linha); font-size: 14px; }
.tabela-tarefas__linha:has(input:checked) { background: #f8f5ff; }
.tabela-tarefas__marcar { display: flex; align-items: center; gap: 12px; min-height: 44px; cursor: pointer; }
.tabela-tarefas__marcar input { width: 18px; height: 18px; margin: 0; accent-color: var(--roxo); flex: none; }
.tabela-tarefas__titulo { font-weight: 600; color: var(--roxo); }
.tabela-tarefas__descricao { font-size: 13px; }
.tabela-tarefas__responsavel .seletor { width: 100%; height: 42px; }
.novo-projeto__acoes { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.novo-projeto__acoes .campo__dica { margin-right: auto; }
.novo-projeto__acoes .botao--primario:disabled { background: #d9d4e6; border-color: #d9d4e6; color: #6b6480; cursor: not-allowed; }

.abas--pagina { padding: 0; margin-bottom: 16px; }
.abas--pagina .abas__item { color: var(--roxo); font-weight: 700; border-bottom-color: var(--roxo); cursor: default; }
.projeto-barra { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 16px; }
.tabela--projeto { min-width: 720px; }
.tabela--projeto td:nth-child(2) { white-space: normal; min-width: 240px; }
.etapa { --cor: var(--lilas); display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: #f3f1f8; font-size: 12px; font-weight: 600; color: var(--texto); }
.etapa::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--cor); }
.etapa--andamento { --cor: #3b5bdb; }
.etapa--revisao { --cor: #f2b33d; }
.etapa--alteracao { --cor: var(--vermelho); }
.etapa--cliente { --cor: var(--roxo); }
.etapa--entregue { --cor: #7cc21a; }
.tempo--rodando { color: #2f6b00; font-weight: 700; }

.tarefa__projeto { font-size: 11px; font-weight: 600; color: var(--texto-suave); margin-top: -4px; }
.tarefa__tempo { display: inline-flex; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--texto-suave); font-variant-numeric: tabular-nums; }
.tarefa__tempo.tempo--rodando { padding: 2px 6px; border-radius: 6px; background: #eafdc8; color: #2f5a00; }

/* Detalhe da tarefa */
.detalhe { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); max-width: 1160px; }
.detalhe__barra { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 12px 20px; border-bottom: 1px solid var(--borda); }
.play { display: inline-flex; align-items: center; gap: 8px; height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: var(--roxo); color: #fff; font: inherit; font-size: 14px; font-weight: 700; cursor: pointer; }
.play:hover { background: var(--roxo-medio); }
.play--ativo { background: var(--limao); color: var(--roxo); }
.play--ativo:hover { background: #b2f03f; }
.detalhe__tempo { font-size: 15px; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--texto-suave); }
.detalhe__alocados-resumo { display: inline-flex; align-items: center; padding-left: 12px; border-left: 1px solid var(--borda); min-height: 32px; font-size: 13px; }
.detalhe__acoes { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
.detalhe__corpo { display: grid; grid-template-columns: minmax(0, 1fr) 320px; }
.detalhe__principal { display: grid; gap: 14px; align-content: start; padding: 24px; min-width: 0; }
.detalhe__rotulo { margin: 0; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--lilas-texto); }
.detalhe__titulo { height: auto !important; padding: 6px 10px !important; margin-left: -10px; border-color: transparent !important; font-size: 22px !important; font-weight: 800 !important; color: var(--roxo) !important; }
.detalhe__titulo:hover { border-color: var(--borda-campo) !important; }
.detalhe__titulo:focus { border-color: var(--lilas) !important; }
.detalhe__meta { font-size: 13px; margin-top: -10px; }
.detalhe__abas .abas { padding: 0; }
.detalhe__abas .painel { padding: 18px 0 0; }
.abas__qtd { min-width: 22px; padding: 1px 7px; border-radius: 999px; background: var(--lilas-claro); font-size: 11px; font-weight: 700; color: var(--roxo); }
.detalhe__time { margin-top: 8px; }
.detalhe__info { display: grid; gap: 16px; align-content: start; padding: 24px 20px; border-left: 1px solid var(--borda); background: #fbfaff; }
.detalhe__info h2 { margin: 0; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; }
.detalhe__linha { display: grid; gap: 6px; font-size: 13px; }
.detalhe__linha > span, .detalhe__linha > label { font-weight: 600; color: var(--roxo); }
.detalhe__linha .seletor { width: 100%; height: 44px; }
.detalhe__linha input[type="text"] { height: 44px; }
.detalhe__link-projeto { margin: -6px 0 0; font-size: 13px; font-weight: 600; }
.detalhe__rodape { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--borda); }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { padding: 3px 10px; border-radius: 999px; background: var(--lilas-claro); color: var(--roxo-medio); font-size: 12px; font-weight: 600; }

.comentarios { list-style: none; margin: 0 0 16px; padding: 0; display: grid; gap: 14px; }
.comentario { display: flex; gap: 12px; align-items: flex-start; }
.comentario .avatar { width: 32px; height: 32px; font-size: 12px; }
.comentario__autor { margin: 0 0 2px; font-size: 13px; }
.comentario__autor .suave { font-size: 12px; margin-left: 6px; }
.comentario__texto { margin: 0; font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.comentar { display: grid; gap: 8px; justify-items: end; }
.comentar textarea { min-height: 90px; }

@media (max-width: 900px) {
  .detalhe__corpo { grid-template-columns: minmax(0, 1fr); }
  .detalhe__info { border-left: 0; border-top: 1px solid var(--borda); }
  .tabela-tarefas__cabecalho { display: none; }
  .tabela-tarefas__linha { grid-template-columns: minmax(0, 1fr); gap: 6px; }
}

/* Detalhe: ícones de ação (entregar, alocar, urgência), dicas e @menções */
.icone-acao { position: relative; display: inline-grid; place-items: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: #f1edfc; color: var(--roxo); cursor: pointer; list-style: none; }
.icone-acao::-webkit-details-marker { display: none; }
.icone-acao:hover, .menu[open] > .icone-acao { background: var(--lilas-claro); color: var(--roxo); }
.icone-acao--feito { background: var(--limao); color: var(--roxo); cursor: default; }
.icone-acao--feito:hover { background: var(--limao); }
.icone-acao--bandeira { background: transparent; color: var(--texto-fraco); }
.icone-acao--bandeira:hover { background: var(--erro-fundo); color: var(--erro); }
.icone-acao--urgente, .icone-acao--urgente:hover { background: var(--erro-fundo); color: var(--erro); }
[data-dica]:hover::after, [data-dica]:focus-visible::after { content: attr(data-dica); position: absolute; top: calc(100% + 8px); left: 50%; transform: translateX(-50%); z-index: 40; padding: 8px 12px; border-radius: 8px; background: #1b1640; color: #fff; font-size: 12px; font-weight: 500; white-space: nowrap; pointer-events: none; }
.detalhe__acoes [data-dica]:hover::after, .detalhe__acoes [data-dica]:focus-visible::after { left: auto; right: 0; transform: none; }
.menu[open] > [data-dica]::after { display: none; }
.detalhe__separador { width: 1px; height: 28px; margin: 0 4px; background: var(--borda); }
.detalhe__alocados-resumo { border-left: 0; padding-left: 0; }
.alocar > summary { color: var(--roxo); }
.alocar .menu__lista { left: 0; right: auto; min-width: 280px; gap: 4px; max-height: 360px; overflow-y: auto; }
.alocar__titulo { margin: 4px 8px 6px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-fraco); }
.alocar__pessoa { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 4px 8px; border-radius: 9px; font-size: 14px; cursor: pointer; }
.alocar__pessoa:hover { background: #f6f1ff; }
.alocar__pessoa:has(input:checked) { background: #f6f1ff; font-weight: 600; }
.alocar__pessoa input { width: 18px; height: 18px; margin: 0; accent-color: var(--roxo); }
.alocar__pessoa .avatar { width: 28px; height: 28px; font-size: 11px; }
.alocar .botao { margin: 6px 4px 4px; }

.mencionar { position: relative; width: 100%; }
.mencionar__lista { position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 30; min-width: 260px; max-height: 240px; overflow-y: auto; margin: 0; padding: 6px; list-style: none; border-radius: 12px; background: #fff; border: 1px solid var(--borda); box-shadow: 0 16px 40px rgba(20, 8, 70, .18); }
.mencionar__opcao { display: flex; align-items: baseline; gap: 8px; min-height: 40px; padding: 8px 10px; border-radius: 8px; font-size: 14px; cursor: pointer; }
.mencionar__opcao small { color: var(--texto-fraco); font-size: 12px; }
.mencionar__opcao[aria-selected="true"], .mencionar__opcao:hover { background: #f6f1ff; color: var(--roxo); }
.comentar .campo__dica { justify-self: start; }
.mencao { padding: 1px 4px; border-radius: 4px; background: var(--lilas-claro); color: var(--roxo-medio); font-weight: 600; }

.tarefa { position: relative; }
.tarefa__tag { position: absolute; top: 10px; right: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; }
.tarefa__tag--urgente { background: var(--erro-fundo); color: var(--erro); }
.tarefa__tag--pendente { background: #fff1d1; color: #8a5a00; }
.tarefa--marcada > :nth-child(2) { margin-right: 28px; }

/* Notificações (sininho) */
.lateral__sino { position: relative; margin-top: auto; margin-bottom: -16px; overflow: visible; }
.lateral__sino + .lateral__conta { margin-top: 0; }
.lateral__badge { position: absolute; top: 4px; left: 26px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--vermelho); color: #fff; font-size: 10px; font-weight: 800; line-height: 18px; text-align: center; box-shadow: 0 0 0 2px var(--roxo); }
.lateral__item--ativo .lateral__badge { box-shadow: 0 0 0 2px var(--limao); }

.filtro-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.filtro-chips__item { display: inline-flex; align-items: center; height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--borda-campo); background: #fff; font-size: 13px; font-weight: 600; color: var(--texto-suave); text-decoration: none; }
.filtro-chips__item:hover { border-color: var(--lilas); color: var(--roxo); }
.filtro-chips__item--ativo, .filtro-chips__item--ativo:hover { background: var(--roxo); border-color: var(--roxo); color: #fff; }

.notificacoes__dia { margin: 20px 0 10px; font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--texto-fraco); }
.notificacoes { list-style: none; margin: 0; padding: 0; border: 1px solid var(--borda); border-radius: var(--raio); background: #fff; overflow: hidden; max-width: 860px; }
.notificacoes li + li { border-top: 1px solid var(--linha); }
.notificacao { display: flex; align-items: flex-start; gap: 14px; padding: 16px 20px; color: var(--texto); text-decoration: none; }
.notificacao:hover { background: #faf8ff; color: var(--texto); }
.notificacao--nova { background: #f6f1ff; }
.notificacao__avatar { position: relative; flex: none; }
.notificacao__tipo { position: absolute; right: -4px; bottom: -4px; display: grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #fff; color: #fff; }
.notificacao__tipo--mencao { background: var(--lilas-texto); }
.notificacao__tipo--alocacao { background: var(--roxo); }
.notificacao__texto { display: grid; gap: 6px; flex: 1; min-width: 0; font-size: 14px; line-height: 1.45; }
.notificacao__texto strong { font-weight: 700; }
.notificacao__trecho { padding: 8px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--borda); font-size: 13px; color: var(--texto-suave); overflow-wrap: anywhere; }
.notificacao__quando { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--texto-fraco); }
.selo-tipo { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.selo-tipo--mencao { background: var(--lilas-claro); color: var(--roxo-medio); }
.selo-tipo--alocacao { background: #eafdc8; color: #2c4a00; }
.notificacao__ponto { flex: none; width: 10px; height: 10px; margin-top: 6px; border-radius: 50%; background: var(--vermelho); }

/* Salvamento automático do detalhe */
.salvamento { font-size: 12px; font-weight: 600; color: var(--texto-fraco); white-space: nowrap; }
.salvamento--ok { color: var(--sucesso); }
.salvamento--erro { color: var(--erro); white-space: normal; max-width: 320px; }

/* Comentários: editar e excluir */
.comentario__linha > div { flex: 1; min-width: 0; }
.comentario__acoes { display: inline-flex; gap: 4px; flex: none; opacity: .55; transition: opacity .15s; }
.comentario__linha:hover .comentario__acoes, .comentario__linha:focus-within .comentario__acoes { opacity: 1; }
.icone-acao--leve { width: 36px; height: 36px; background: transparent; color: var(--texto-fraco); }
.icone-acao--leve:hover { background: #f6f1ff; color: var(--roxo); }
.icone-acao--perigo:hover { background: var(--erro-fundo); color: var(--erro); }
.comentario__acoes [data-dica]:hover::after { left: auto; right: 0; transform: none; }
.comentario__editar > summary { list-style: none; }
.comentario__editar[open] { display: grid; gap: 8px; margin-top: 6px; }
.comentario__editar textarea { min-height: 90px; }
.comentario__botoes { display: flex; justify-content: flex-end; gap: 6px; }
.comentario__linha:has(.comentario__editar[open]) .comentario__texto { display: none; }

/* Avisos na tela (notificação nova sem recarregar) */
.avisos { position: fixed; right: 24px; bottom: 24px; z-index: 60; display: grid; gap: 10px; width: min(360px, calc(100% - 32px)); }
.aviso { display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border-radius: 14px; background: var(--roxo); color: #fff; box-shadow: 0 18px 48px rgba(20, 8, 70, .3); font-size: 14px; line-height: 1.4; animation: aviso-entra .25s ease-out; }
.aviso a { color: #fff; text-decoration: none; flex: 1; }
.aviso a:hover { color: var(--limao); }
.aviso svg { flex: none; color: var(--limao); margin-top: 1px; }
.aviso__fechar { flex: none; display: grid; place-items: center; width: 28px; height: 28px; margin: -4px -6px 0 0; padding: 0; border: 0; border-radius: 8px; background: transparent; color: #d9cffa; cursor: pointer; }
.aviso__fechar:hover { background: rgba(255,255,255,.12); color: #fff; }
@keyframes aviso-entra { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .aviso { animation: none; } }

/* Conversa (respostas em thread) */
.comentario { display: block; }
.comentario__linha { display: flex; gap: 12px; align-items: flex-start; }
.conversa { display: grid; gap: 10px; margin: 8px 0 0 44px; }
.comentarios--respostas { gap: 12px; margin: 0; padding-left: 14px; border-left: 2px solid var(--lilas-claro); }
.comentario--resposta .avatar { width: 28px; height: 28px; font-size: 11px; }
.responder > summary { list-style: none; }
.responder > summary::-webkit-details-marker { display: none; }
.responder__abrir { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 0 8px; margin-left: -8px; border-radius: 8px; font-size: 12px; font-weight: 700; color: var(--lilas-texto); cursor: pointer; }
.responder__abrir:hover { background: #f6f1ff; color: var(--roxo); }
.responder[open] { display: grid; gap: 8px; }
.responder[open] > summary { color: var(--roxo); }
.responder textarea { min-height: 70px; }
.selo-tipo--edicao { background: #fff4dc; color: #6b4600; }
.selo-tipo--resposta { background: #dcecff; color: #0b4a8f; }

/* Alocar: pessoas agrupadas por cargo (área do Time) */
.alocar .menu__lista { min-width: 300px; max-height: 440px; }
.alocar__equipe { display: grid; gap: 2px; margin: 0; padding: 0 0 6px; border: 0; min-width: 0; }
.alocar__equipe + .alocar__equipe { padding-top: 6px; border-top: 1px solid var(--linha); }
.alocar__cargo { display: flex; align-items: center; justify-content: space-between; gap: 8px; width: 100%; padding: 6px 8px 4px; font-size: 12px; font-weight: 700; color: var(--roxo); }
.alocar__cargo small { font-size: 11px; font-weight: 600; color: var(--texto-fraco); }

/* Menu de cada pessoa alocada (clique no avatar) */
.alocados { gap: 0; }
.pessoa-menu { margin-right: -6px; }
.pessoa-menu > summary { list-style: none; }
.pessoa-menu > summary::-webkit-details-marker { display: none; }
.pessoa-menu__avatar { position: relative; display: block; border-radius: 50%; cursor: pointer; }
.pessoa-menu__avatar .avatar { width: 32px; height: 32px; font-size: 12px; border: 2px solid #fff; }
.pessoa-menu__avatar:hover .avatar, .pessoa-menu[open] > .pessoa-menu__avatar .avatar { box-shadow: 0 0 0 2px var(--lilas); }
.pessoa-menu__check { position: absolute; right: -2px; bottom: -2px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; background: #2f7de1; color: #fff; border: 2px solid #fff; }
.pessoa-menu__lista { left: 0; right: auto; min-width: 290px; padding: 6px; }
.pessoa-menu__nome { display: grid; gap: 2px; margin: 4px 8px 8px; font-size: 13px; }
.pessoa-menu__nome small { font-size: 11px; color: var(--texto-fraco); }
.pessoa-menu__acao { justify-content: flex-start; gap: 12px; font-size: 14px; }
.pessoa-menu__icone { display: grid; place-items: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: #5d5672; color: #fff; }
.pessoa-menu__icone--check { background: #5d5672; }
.pessoa-menu__icone--perigo { background: var(--erro); }
.pessoa-menu__sub > summary { list-style: none; }
.pessoa-menu__sub > summary::-webkit-details-marker { display: none; }
.pessoa-menu__sub[open] > summary { background: #f6f1ff; color: var(--roxo); }
.pessoa-menu__form { display: grid; gap: 8px; padding: 8px 10px 10px 42px; }
.pessoa-menu__form .seletor { width: 100%; height: 42px; }
.pessoa-menu__form input[type="text"] { height: 42px; max-width: 140px; font-variant-numeric: tabular-nums; }
.pessoa-menu__form .botao { justify-self: start; }
.pessoa-menu__linha { margin: 6px 0; border: 0; border-top: 1px solid var(--linha); }

/* Dono da tarefa (ao lado do cronômetro) e alocados que abrem "Tempo na tarefa" */
.detalhe__dono { display: inline-flex; }
.detalhe__dono .pessoa-menu { margin-right: 0; }
.pessoa-menu__avatar--botao { padding: 0; border: 0; background: none; margin-right: -6px; }
.play:disabled { opacity: .5; cursor: not-allowed; }
.play:disabled:hover { background: var(--roxo); }
.play[data-dica] { position: relative; }

/* Janela "Tempo na tarefa" */
.modal-tempo { width: min(900px, calc(100% - 32px)); max-height: calc(100vh - 48px); padding: 0; text-align: left; }
.modal-tempo[open] { display: flex; flex-direction: column; }
.modal-tempo__caixa { display: flex; flex-direction: column; min-height: 0; flex: 1; }
.modal-tempo .modal__cabecalho { align-items: center; }
.modal-tempo .modal__cabecalho h2 { margin: 0; font-size: 18px; }
.tempo-lista { flex: 1 1 auto; min-height: 260px; overflow-y: auto; }
.tempo-linha { border-bottom: 1px solid var(--linha); }
.tempo-linha__resumo { display: grid; grid-template-columns: minmax(170px, 1.6fr) .7fr .7fr 1.1fr .8fr auto auto; align-items: center; gap: 12px; padding: 14px 20px; }
.tempo-linha__pessoa { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tempo-linha__pessoa strong { display: block; color: var(--roxo); font-size: 14px; }
.tempo-linha__pessoa small { display: block; font-size: 12px; color: var(--texto-fraco); }
.tempo-linha__pessoa .avatar { width: 34px; height: 34px; }
.tempo-linha__dado { display: grid; gap: 2px; font-size: 14px; }
.tempo-linha__dado > small { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--texto-fraco); }
.tempo-linha__valor { display: inline-flex; align-items: baseline; gap: 2px; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; }
.tempo-linha__valor > small { font-size: 11px; font-weight: 700; margin-right: 6px; }
.tempo-mais { display: inline-block; }
.tempo-mais > summary { list-style: none; }
.tempo-mais > summary::-webkit-details-marker { display: none; }
.tempo-mais__botao { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 7px; background: #f1edfc; color: var(--roxo); font-weight: 800; cursor: pointer; }
.tempo-mais__botao:hover, .tempo-mais[open] > .tempo-mais__botao { background: var(--roxo); color: #fff; }
.tempo-mais__form { display: grid; gap: 8px; min-width: 200px; padding: 12px; left: 0; right: auto; }
.tempo-mais__form input { height: 42px; font-variant-numeric: tabular-nums; }
.tempo-mais__form .botao { justify-self: start; }
.tempo-linha__esforco { display: inline-block; font-weight: 800; font-size: 15px; color: #2f7de1; cursor: pointer; }
.tempo-linha__esforco:hover { text-decoration: underline; }
.tempo-linha__esforco--fixo { color: var(--texto-suave); font-weight: 600; cursor: default; }
.tempo-linha__esforco--fixo:hover { text-decoration: none; }
.tempo-linha__detalhes-botao { display: inline-flex; align-items: center; gap: 4px; height: 36px; padding: 0 8px; border: 0; border-radius: 8px; background: none; font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--texto-suave); cursor: pointer; }
.tempo-linha__detalhes-botao:hover { background: #f6f1ff; color: var(--roxo); }
.tempo-linha__detalhes-botao[aria-expanded="true"] svg { transform: rotate(180deg); }
.tempo-linha__pontos { width: 36px; height: 36px; color: var(--texto-fraco); }
.tempo-linha__detalhes { margin: 0 20px 16px; border: 1px solid var(--borda); border-radius: 12px; }
.tempo-vazio { display: grid; gap: 6px; justify-items: center; padding: 28px 16px; text-align: center; }
.tempo-vazio strong { font-size: 18px; color: var(--texto); }
.tempo-vazio span { font-size: 13px; color: var(--texto-suave); }
.tempo-registros__nota { padding: 10px 14px 0; font-size: 12px; }
.tempo-registros { list-style: none; margin: 0; padding: 6px 0; }
.tempo-registros li { display: flex; align-items: center; gap: 12px; padding: 8px 14px; font-size: 13px; }
.tempo-registros li + li { border-top: 1px solid var(--linha); }
.tempo-registros li > span:nth-child(2) { flex: 1; color: var(--texto-suave); }
.tempo-registros form { margin: 0; }
.tempo-registros__tipo { padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; white-space: nowrap; }
.tempo-registros__tipo--play { background: var(--lilas-claro); color: var(--roxo-medio); }
.tempo-registros__tipo--manual { background: #fff4dc; color: #6b4600; }
.modal-tempo__total { display: grid; grid-template-columns: minmax(170px, 3fr) 1.1fr .8fr; gap: 12px; align-items: center; padding: 16px 20px; border-top: 1px solid var(--borda); background: #fbfaff; font-size: 14px; }
@media (max-width: 760px) {
  .tempo-linha__resumo { grid-template-columns: 1fr 1fr; }
  .tempo-linha__pessoa { grid-column: 1 / -1; }
  .modal-tempo__total { grid-template-columns: 1fr 1fr; }
  .modal-tempo__total strong { grid-column: 1 / -1; }
}
.tempo-mais > .tempo-linha__esforco { color: #2f7de1; background: none; }
.tempo-mais > .tempo-mais__botao { color: var(--roxo); }
.tempo-mais[open] > .tempo-mais__botao, .tempo-mais > .tempo-mais__botao:hover { color: #fff; background: var(--roxo); }

/* Calendário alinhado ao campo de data nas Informações (campo de 44px) */
.detalhe__linha .data-campo input { height: 44px; padding-right: 52px; }
.detalhe__linha .data-campo__botao { top: 3px; right: 3px; width: 38px; height: 38px; border-radius: 9px; }

/* Nova tarefa (variação do detalhe) */
.detalhe__dono { align-items: center; gap: 10px; }
.detalhe__dono-texto { font-size: 13px; }
.detalhe--nova .detalhe__titulo::placeholder { color: #b9b2cc; font-weight: 800; }
.abas__item--inativo { color: #b3acc4; cursor: not-allowed; }
.detalhe--nova .abas__item[aria-current] { color: var(--roxo); font-weight: 700; border-bottom-color: var(--roxo); }

/* Tag Pendente no topo do detalhe: ampulheta âmbar */
.icone-acao--pendente, .icone-acao--pendente:hover { background: #fff1d1; color: #8a5a00; }

/* Configurações › Projetos */
.projetos-filtros { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-start; }
.projetos-filtros .busca--filtro { margin-bottom: 14px; }
.tabela--projetos td:first-child { white-space: normal; min-width: 220px; }
.progresso { display: inline-flex; align-items: center; gap: 10px; }
.progresso__barra { width: 90px; height: 6px; border: 0; border-radius: 999px; background: #eeeaf6; overflow: hidden; appearance: none; -webkit-appearance: none; }
.progresso__barra::-webkit-progress-bar { background: #eeeaf6; border-radius: 999px; }
.progresso__barra::-webkit-progress-value { background: #7cc21a; border-radius: 999px; }
.progresso__barra::-moz-progress-bar { background: #7cc21a; border-radius: 999px; }
