@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fontes/plus-jakarta-sans-latin-ext-400-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(/fontes/plus-jakarta-sans-latin-400-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fontes/plus-jakarta-sans-latin-ext-600-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 600;
  src: url(/fontes/plus-jakarta-sans-latin-600-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fontes/plus-jakarta-sans-latin-ext-700-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 700;
  src: url(/fontes/plus-jakarta-sans-latin-700-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fontes/plus-jakarta-sans-latin-ext-800-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 800;
  src: url(/fontes/plus-jakarta-sans-latin-800-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}
/* Cactus Varejo: o jeito do Trello com as cores da Cactus */
:root {
  --verde: #1f6f43;
  --verde-forte: #14301e;
  --verde-vivo: #4fd635;
  --texto: #172b4d;
  --texto-2: #44546f;
  --texto-3: #626f86;
  --fundo: #f4f6f1;
  --branco: #fff;
  --linha: #dcdfe4;
  --lista: #f1f2f4;
  --hover: #091e420f;
  --azul: #0c66e4;
  --perigo: #c9372c;
  --sombra: 0 1px 1px #091e4240, 0 0 1px #091e424f;
  --sombra-alta: 0 8px 24px -6px #091e4240, 0 0 1px #091e424f;
  --raio: 8px;
  --cor-quadro: var(--verde);
  color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body {
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 14px;
  line-height: 1.43;
  color: var(--texto);
  background: var(--fundo);
  -webkit-font-smoothing: antialiased;
}
#app { min-height: 100%; display: flex; flex-direction: column; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--azul); }
.ic { flex: none; }
.sem-tela { display: none; }

/* ----- botões ----- */
.bt, .bt-ic, .bt-lat, .bt-redondo, .q-bt { border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.bt { background: #091e420f; border-radius: 4px; padding: 6px 12px; font-weight: 600; color: var(--texto); min-height: 32px; justify-content: center; text-decoration: none; }
.bt:hover { background: #091e4224; }
.bt:disabled { opacity: .6; cursor: default; }
.bt-pri { background: var(--verde); color: #fff; }
.bt-pri:hover { background: #185a36; }
.bt-perigo { background: var(--perigo); color: #fff; }
.bt-perigo:hover { background: #ae2e24; }
.bt-claro { background: #fff; }
.bt-cheio { width: 100%; }
.bt-ic { background: transparent; border-radius: 4px; padding: 6px; color: var(--texto-2); justify-content: center; }
.bt-ic:hover { background: var(--hover); color: var(--texto); }
.bt-link { background: none; border: 0; padding: 0; color: var(--texto-2); text-decoration: underline; cursor: pointer; font: inherit; }
.bt-link:hover { color: var(--texto); }
.bt-redondo { width: 32px; height: 32px; border-radius: 50%; background: #091e420f; justify-content: center; }
.bt-redondo:hover { background: #091e4224; }
:focus-visible { outline: 2px solid var(--azul); outline-offset: 2px; }

input[type=text], input[type=email], input[type=password], input[type=search], input[type=url], input[type=date], input[type=time], select, textarea {
  border: 1px solid #8590a2;
  border-radius: 4px;
  padding: 7px 10px;
  background: #fff;
  min-height: 36px;
  width: 100%;
}
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--azul); box-shadow: inset 0 0 0 1px var(--azul); }
textarea { resize: vertical; }
label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 700; color: var(--texto-2); }
label.check { flex-direction: row; align-items: center; gap: 8px; font-size: 14px; font-weight: 400; color: var(--texto); }
.rotulo { font-size: 12px; font-weight: 700; color: var(--texto-2); }
.pilha { display: flex; flex-direction: column; gap: 10px; }
.lado { display: flex; gap: 8px; }
.lado > * { flex: 1; min-width: 0; }
.lado > .estreito { flex: 0 0 84px; }
.dica { color: var(--texto-3); margin: 0 0 10px; }
.vazio, .carregando { color: var(--texto-3); padding: 12px 0; }
.carregando.claro { color: #fffc; padding: 12px; }

/* ----- topo ----- */
.topo {
  height: 52px; flex: none;
  display: flex; align-items: center; gap: 8px;
  padding: 0 12px;
  background: var(--verde-forte);
  color: #fff;
  position: sticky; top: 0; z-index: 20;
}
.topo-marca { display: flex; align-items: center; gap: 8px; color: #fff; text-decoration: none; padding: 4px 6px; border-radius: 6px; }
.topo-marca:hover { background: #ffffff1a; }
.topo-logo { height: 36px; width: auto; display: block; }
.topo-nome { font-weight: 800; font-size: 16px; letter-spacing: .2px; }
.topo-navs { display: flex; gap: 2px; margin-left: 8px; }
.topo-nav { display: flex; align-items: center; gap: 6px; color: #ffffffd9; text-decoration: none; padding: 7px 10px; border-radius: 6px; font-weight: 600; }
.topo-nav:hover { background: #ffffff1f; color: #fff; }
.topo-nav.ativo { background: #ffffff2b; color: #fff; }
.topo-dir { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.topo-off { background: #f5cd47; color: #533f04; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 10px; }
.topo-conta { background: none; border: 0; padding: 2px; border-radius: 50%; cursor: pointer; }
.topo-conta:hover { box-shadow: 0 0 0 3px #ffffff33; }

.corpo { flex: 1; display: flex; flex-direction: column; min-height: 0; }

/* ----- avatares, etiquetas e selos ----- */
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 700; flex: none; user-select: none; }
.av-p { width: 24px; height: 24px; font-size: 10px; }
.av-m { width: 32px; height: 32px; font-size: 12px; }
.et { display: inline-flex; align-items: center; border-radius: 4px; font-size: 12px; font-weight: 600; padding: 0 8px; min-height: 16px; line-height: 16px; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; border: 0; }
.et-grande { min-height: 32px; line-height: 32px; padding: 0 12px; font-size: 14px; cursor: pointer; min-width: 48px; }
.et-barra { flex: 1; min-height: 32px; line-height: 32px; padding: 0 12px; font-size: 14px; cursor: pointer; text-align: left; }
.selos { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.selo { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--texto-2); padding: 2px 4px; border-radius: 3px; border: 0; background: none; }
.selo-prazo { cursor: pointer; }
.selo-prazo:hover { background: var(--hover); }
.s-feito { background: #1f845a; color: #fff; }
.s-feito:hover { background: #216e4e; }
.s-atrasado { background: #c9372c; color: #fff; }
.s-atrasado:hover { background: #ae2e24; }
.s-perto { background: #f5cd47; color: #533f04; }
.s-perto:hover { background: #e2b203; }
.tag { font-size: 12px; font-weight: 700; border-radius: 3px; padding: 0 6px; }
.tag-ok { background: #1f845a; color: #fff; }
.tag-atraso { background: #c9372c; color: #fff; }
.tag-perto { background: #f5cd47; color: #533f04; }

/* ----- início ----- */
.inicio, .fila { width: 100%; max-width: 1120px; margin: 0 auto; padding: 24px 16px 48px; }
.inicio-topo { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.inicio-topo h1 { font-size: 22px; margin: 0; }
.inicio-acoes { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.campo-busca { max-width: 240px; }
.inicio-bloco { margin-bottom: 28px; }
.inicio-bloco h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 12px; color: var(--texto-2); }
.grade-quadros { display: grid; grid-template-columns: repeat(auto-fill, minmax(196px, 1fr)); gap: 12px; }
.tile {
  position: relative; display: block; height: 96px; padding: 10px 12px; border-radius: var(--raio);
  background: linear-gradient(135deg, var(--cor) 0%, color-mix(in srgb, var(--cor) 70%, #000) 100%);
  color: #fff; text-decoration: none; font-weight: 700; overflow: hidden; box-shadow: var(--sombra);
}
.tile:hover { filter: brightness(.92); }
.tile-nome { display: block; font-size: 15px; line-height: 1.3; padding-right: 22px; }
.tile-selo { position: absolute; left: 12px; bottom: 10px; background: #ffffff33; border-radius: 3px; font-size: 11px; padding: 0 6px; }
.tile-estrela { position: absolute; right: 8px; bottom: 8px; background: none; border: 0; color: #fff; opacity: 0; cursor: pointer; padding: 4px; border-radius: 4px; }
.tile:hover .tile-estrela, .tile-estrela.ligada, .tile-estrela:focus-visible { opacity: 1; }
.tile-estrela.ligada { color: #f5cd47; }
.tile-novo { background: #091e420f; color: var(--texto-2); border: 0; cursor: pointer; font-weight: 600; display: flex; align-items: center; justify-content: center; box-shadow: none; }
.tile-novo:hover { background: #091e4224; filter: none; }
.inicio-fechados summary { cursor: pointer; font-weight: 700; color: var(--texto-2); padding: 6px 0; }
.inicio-fechados ul { list-style: none; padding: 0; margin: 8px 0; }
.inicio-fechados li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.inicio-fechados li span { flex: 1; }

/* ----- quadro ----- */
.q { flex: 1; display: flex; flex-direction: column; min-height: 0; background: linear-gradient(160deg, var(--cor-quadro), color-mix(in srgb, var(--cor-quadro) 65%, #000)); height: calc(100vh - 52px); height: calc(100dvh - 52px); }
.q-cab { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #0000003d; color: #fff; flex-wrap: wrap; }
.q-nome { font-size: 18px; margin: 0; padding: 4px 8px; border-radius: 4px; cursor: pointer; font-weight: 800; }
.q-nome:hover { background: #ffffff33; }
.q-nome-inp { font-size: 18px; font-weight: 800; max-width: 420px; }
.q-bt { background: #ffffff33; color: #fff; padding: 6px 10px; border-radius: 4px; font-weight: 600; text-decoration: none; min-height: 32px; }
.q-bt:hover { background: #ffffff4d; }
.q-bt.ativo { background: #fff; color: var(--texto); }
.q-estrela.ligada { color: #f5cd47; }
.q-selo { background: #ffffff33; border-radius: 3px; font-size: 12px; font-weight: 700; padding: 1px 6px; }
.q-vis { display: flex; gap: 4px; margin-left: 8px; }
.q-cab-dir { margin-left: auto; display: flex; gap: 6px; }
.q-filtros { display: flex; gap: 6px; align-items: center; padding: 8px 12px; background: #00000026; flex-wrap: wrap; }
.q-filtros > input, .q-filtros > select { width: auto; min-height: 32px; padding: 4px 8px; border-color: transparent; background: #ffffffeb; }
.q-filtros .campo-busca { width: 200px; }
.q-filtros.com-filtro { background: #0000004d; }
.seg { display: inline-flex; background: #ffffffeb; border-radius: 4px; padding: 2px; gap: 2px; }
.seg button { border: 0; background: none; padding: 4px 8px; border-radius: 3px; cursor: pointer; font-weight: 600; font-size: 13px; color: var(--texto-2); }
.seg button:hover { background: var(--hover); }
.seg button.ativo { background: var(--verde); color: #fff; }
.q-per { display: inline-flex; align-items: center; gap: 4px; color: #fff; font-weight: 600; }
.q-per input { width: 150px; min-height: 32px; padding: 4px 6px; }

.q-rolagem { flex: 1; overflow-x: auto; overflow-y: hidden; padding: 12px 6px 8px; min-height: 0; }
.q-rolagem.cal { overflow-y: auto; }
.q-listas { display: flex; align-items: flex-start; gap: 12px; height: 100%; padding: 0 6px; width: max-content; }
.q-rolagem.cal .q-listas { width: auto; height: auto; display: block; }

.lista { width: 272px; flex: none; background: var(--lista); border-radius: 12px; display: flex; flex-direction: column; max-height: 100%; box-shadow: var(--sombra); }
.lista-cab { display: flex; align-items: flex-start; gap: 4px; padding: 8px 8px 4px 12px; cursor: grab; }
.lista-nome { flex: 1; font-size: 14px; font-weight: 700; margin: 0; padding: 6px 0; overflow-wrap: anywhere; cursor: pointer; }
.lista-nome-inp { font-weight: 700; min-height: 32px; padding: 5px 8px; resize: none; overflow: hidden; }
.lista-n { font-size: 12px; color: var(--texto-3); padding: 7px 2px 0; font-weight: 600; }
.lista-cartoes { overflow-y: auto; padding: 4px 8px; display: flex; flex-direction: column; gap: 8px; min-height: 4px; overscroll-behavior: contain; }
.lista-filtrada { margin: 0; padding: 4px 12px; font-size: 12px; color: var(--texto-3); }
.lista-add { margin: 4px 8px 8px; border: 0; background: none; border-radius: 8px; padding: 8px; text-align: left; color: var(--texto-2); font-weight: 600; cursor: pointer; display: flex; gap: 6px; align-items: center; }
.lista-add:hover { background: #091e4224; color: var(--texto); }
.lista-nova { background: #ffffff3d; box-shadow: none; }
.lista-nova-bt { border: 0; background: none; color: #fff; font-weight: 700; padding: 12px; text-align: left; cursor: pointer; border-radius: 12px; display: flex; gap: 6px; align-items: center; }
.lista-nova-bt:hover { background: #ffffff33; }
.lista-nova.aberta { background: var(--lista); padding: 8px; gap: 8px; }

.cartao {
  background: #fff; border-radius: 8px; box-shadow: var(--sombra); padding: 8px 12px; cursor: pointer;
  display: flex; flex-direction: column; gap: 4px; overflow: hidden;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.cartao:hover { box-shadow: 0 0 0 2px var(--azul); }
.cartao.feito .cartao-tit { color: var(--texto-3); }
.cartao-capa { margin: -8px -12px 4px; width: calc(100% + 24px); max-height: 180px; object-fit: cover; display: block; }
.cartao-ets { display: flex; flex-wrap: wrap; gap: 4px; }
.cartao-tit { overflow-wrap: anywhere; }
.cartao-pe { display: flex; align-items: flex-end; justify-content: space-between; gap: 6px; }
.cartao-membros { display: flex; flex-wrap: wrap; gap: 2px; justify-content: flex-end; }

.composer { display: flex; flex-direction: column; gap: 8px; padding: 0 8px 8px; }
.composer-txt { box-shadow: var(--sombra); border: 0; resize: none; }
.composer-acoes { display: flex; gap: 4px; align-items: center; }

/* arrastar */
.fantasma { position: fixed; left: 0; top: 0; z-index: 100; pointer-events: none; box-shadow: var(--sombra-alta) !important; opacity: .95; }
.vaga-cartao { background: #091e4224; border-radius: 8px; flex: none; }
.vaga-lista { width: 272px; flex: none; background: #0000003d; border-radius: 12px; }
body.arrastando, body.arrastando * { cursor: grabbing !important; }

/* ----- calendário ----- */
.cal { background: #fff; border-radius: 12px; padding: 12px; box-shadow: var(--sombra); max-width: 1400px; margin: 0 auto; }
.cal-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; flex-wrap: wrap; }
.cal-cab h2 { margin: 0; font-size: 18px; min-width: 190px; text-align: center; }
.gira { transform: rotate(180deg); }
.cal-sem-data { color: var(--texto-3); font-size: 12px; margin-left: auto; }
.cal-grade { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; }
.cal-sem { font-size: 12px; font-weight: 700; color: var(--texto-3); text-align: center; text-transform: uppercase; padding: 4px 0; }
.cal-dia { min-height: 110px; background: var(--lista); border-radius: 6px; padding: 4px; display: flex; flex-direction: column; gap: 3px; }
.cal-dia.fora { opacity: .55; }
.cal-dia.hoje { box-shadow: inset 0 0 0 2px var(--verde); }
.cal-dia.alvo { background: #cce0ff; }
.cal-n { font-size: 12px; font-weight: 700; color: var(--texto-2); padding: 0 2px; }
.cal-cartao { display: flex; align-items: center; gap: 4px; border: 0; background: #fff; box-shadow: var(--sombra); border-radius: 4px; padding: 3px 5px; font-size: 12px; text-align: left; cursor: pointer; min-width: 0; }
.cal-cartao.s-feito, .cal-cartao.s-atrasado, .cal-cartao.s-perto { box-shadow: inset 3px 0 0 currentColor; }
.cal-cartao.s-feito { background: #dcfff1; color: #164b35; }
.cal-cartao.s-atrasado { background: #ffeceb; color: #ae2e24; }
.cal-cartao.s-perto { background: #fff7d6; color: #7f5f01; }
.cal-et { width: 8px; height: 8px; border-radius: 2px; flex: none; }
.cal-hora { font-weight: 700; flex: none; }
.cal-tit { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ----- janela e menus flutuantes ----- */
.jan-fundo { position: fixed; inset: 0; background: #091e427d; z-index: 50; display: flex; justify-content: center; align-items: flex-start; overflow-y: auto; padding: 48px 12px; }
.jan { background: var(--lista); border-radius: 12px; width: 100%; max-width: 768px; position: relative; box-shadow: var(--sombra-alta); }
.jan-arq { max-width: 560px; padding: 16px 20px 20px; }
.jan-cab { display: flex; justify-content: space-between; align-items: center; }
.jan-cab h2 { margin: 0; font-size: 18px; }
.arq h3 { font-size: 14px; color: var(--texto-2); margin: 16px 0 6px; }
.arq-lista { list-style: none; margin: 0; padding: 0; }
.arq-lista li { display: flex; align-items: center; gap: 8px; padding: 6px 0; border-bottom: 1px solid var(--linha); }
.arq-lista li > :first-child { flex: 1; text-align: left; }
.arq-lista small { color: var(--texto-3); }

.flut { position: fixed; z-index: 60; background: #fff; border-radius: 8px; box-shadow: var(--sombra-alta); max-height: calc(100vh - 16px); overflow-y: auto; }
.flut-topo { display: grid; grid-template-columns: 32px 1fr 32px; align-items: center; padding: 4px 8px; }
.flut-topo span { grid-column: 2; text-align: center; font-weight: 700; color: var(--texto-2); }
.flut-topo .bt-ic { grid-column: 3; }
.flut-corpo { padding: 4px 12px 12px; }
.flut-txt, .flut-dica { margin: 0 0 10px; color: var(--texto-2); }
.flut-dica { font-size: 12px; }
.flut-erro { color: var(--perigo); margin: 0; min-height: 1em; }
.menu { display: flex; flex-direction: column; }
.menu hr, .pilha hr { border: 0; border-top: 1px solid var(--linha); margin: 6px 0; width: 100%; }
.menu-item { display: flex; align-items: center; gap: 10px; background: none; border: 0; text-align: left; padding: 8px; border-radius: 4px; cursor: pointer; color: var(--texto); text-decoration: none; }
.menu-item:hover { background: var(--hover); }
.menu-item.sel { background: #e9f2ff; }
.menu-item.perigo { color: var(--perigo); }
.menu-item .ic:last-child:not(:first-child) { margin-left: auto; }
.menu-quem { display: flex; gap: 10px; align-items: center; padding: 4px 8px 10px; }
.menu-quem small { display: block; color: var(--texto-3); }
.cores-quadro { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.cores-quadro.grande .cor-q { width: 56px; height: 40px; }
.cor-q { width: 40px; height: 32px; border-radius: 4px; border: 0; cursor: pointer; }
.cor-q.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--azul); }
.cores-et { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.cor-et { height: 32px; border-radius: 4px; border: 0; cursor: pointer; }
.cor-et.sel { box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--azul); }
.et-previa-caixa { background: var(--lista); padding: 24px; display: flex; justify-content: center; border-radius: 4px; }
.et-previa { min-height: 32px; line-height: 32px; padding: 0 12px; font-size: 14px; min-width: 120px; justify-content: center; }
.ets-lista { display: flex; flex-direction: column; gap: 4px; }
.ets-linha { display: flex; align-items: center; gap: 6px; }
.ets-linha input[type=checkbox] { width: 16px; height: 16px; }

/* ----- cartão aberto ----- */
.jan-cartao { padding: 0 0 20px; }
.ct-capa { border-radius: 12px 12px 0 0; overflow: hidden; background: #dcdfe4; display: flex; justify-content: center; max-height: 220px; }
.ct-capa img { max-height: 220px; max-width: 100%; object-fit: contain; }
.ct-fechar { position: absolute; top: 8px; right: 8px; z-index: 2; background: #ffffffb3; border-radius: 50%; width: 36px; height: 36px; }
.ct-arquivado { background: #fff7d6; color: #533f04; padding: 10px 20px; display: flex; gap: 8px; align-items: center; font-weight: 600; }
.ct-cab { display: flex; gap: 12px; padding: 18px 52px 8px 20px; align-items: flex-start; }
.ct-cab > .ic { margin-top: 8px; color: var(--texto-2); }
.ct-cab-txt { flex: 1; min-width: 0; }
.ct-titulo { font-size: 20px; font-weight: 700; border: 1px solid transparent; background: transparent; padding: 4px 6px; margin-left: -6px; resize: none; overflow: hidden; min-height: 0; }
.ct-titulo:hover { background: #fff; }
.ct-onde { margin: 0; color: var(--texto-2); font-size: 13px; }
.ct-grade { display: grid; grid-template-columns: minmax(0, 1fr) 168px; gap: 16px; padding: 0 20px; }
.ct-principal { display: flex; flex-direction: column; gap: 22px; min-width: 0; padding-left: 32px; }
.ct-resumo { display: flex; flex-wrap: wrap; gap: 16px 20px; }
.ct-bloco h3, .ct-lat-bloco h3 { font-size: 12px; color: var(--texto-2); margin: 0 0 6px; font-weight: 700; }
.ct-linha { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.ct-feito { width: 18px; height: 18px; }
.ct-data.s-feito, .ct-data.s-atrasado, .ct-data.s-perto { background: #091e420f; color: var(--texto); }
.ct-sec { display: flex; flex-direction: column; gap: 8px; }
.ct-sec-cab { display: flex; align-items: center; gap: 12px; margin-left: -32px; }
.ct-sec-cab > .ic { color: var(--texto-2); }
.ct-sec-cab h2 { font-size: 16px; margin: 0; flex: 1; }
.ct-sec-cab .bt { flex: none; }
.ct-sec-cab .editavel { cursor: pointer; }
.inp-titulo { font-weight: 700; flex: 1; }
.ct-desc { cursor: pointer; }
.ct-desc-vazia { width: 100%; min-height: 56px; text-align: left; border: 0; border-radius: 4px; background: #091e420f; color: var(--texto-2); cursor: pointer; padding: 8px 12px; }
.ct-desc-vazia:hover { background: #091e4224; }
.ct-desc-txt { min-height: 120px; }
.md { overflow-wrap: anywhere; }
.md p { margin: 0 0 2px; }
.md h3 { font-size: 16px; margin: 10px 0 4px; }
.md h4 { font-size: 14px; margin: 8px 0 4px; }
.md ul, .md ol { margin: 2px 0 6px; padding-left: 22px; }
.md-esp { height: 8px; }
.md code { background: #091e420f; padding: 0 4px; border-radius: 3px; }
.md hr { border: 0; border-top: 1px solid var(--linha); }

.anexos { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.anexos li { display: flex; gap: 12px; align-items: center; }
.anexo-mini { width: 112px; height: 80px; flex: none; border-radius: 4px; background: #091e420f; display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--texto-2); font-weight: 700; text-decoration: none; }
.anexo-mini img { width: 100%; height: 100%; object-fit: cover; }
.anexo-info { min-width: 0; display: flex; flex-direction: column; }
.anexo-nome { font-weight: 700; color: var(--texto); text-decoration: none; overflow-wrap: anywhere; }
.anexo-info small { color: var(--texto-3); }

.cl-barra { display: flex; align-items: center; gap: 10px; font-size: 11px; color: var(--texto-2); margin-left: -32px; }
.cl-barra span { width: 22px; text-align: right; }
.cl-trilho { flex: 1; height: 8px; background: #091e420f; border-radius: 4px; overflow: hidden; }
.cl-cheio { height: 100%; background: var(--azul); transition: width .2s; }
.cl-cheio.ok { background: #1f845a; }
.cl-itens { list-style: none; margin: 0 0 0 -32px; padding: 0; }
.cl-itens li { display: flex; gap: 12px; align-items: flex-start; padding: 4px 0; border-radius: 4px; }
.cl-itens li:hover { background: var(--hover); }
.cl-itens input[type=checkbox] { width: 16px; height: 16px; margin: 3px 4px 0 3px; flex: none; }
.cl-txt { flex: 1; cursor: pointer; overflow-wrap: anywhere; }
.cl-txt.feito { text-decoration: line-through; color: var(--texto-3); }
.cl-edit { flex: 1; resize: none; }
.cl-tirar { opacity: 0; padding: 2px; }
.cl-itens li:hover .cl-tirar, .cl-tirar:focus-visible { opacity: 1; }
.cl-novo { max-width: 100%; }

.com-novo { display: flex; gap: 8px; margin-left: -40px; align-items: flex-start; }
.com-novo-campo { flex: 1; display: flex; gap: 6px; align-items: flex-start; }
.com-txt { box-shadow: var(--sombra); border: 0; resize: none; }
.com-lista { list-style: none; margin: 0 0 0 -40px; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.com { display: flex; gap: 8px; }
.com-dir { flex: 1; min-width: 0; }
.com-corpo { background: #fff; border-radius: 8px; box-shadow: var(--sombra); padding: 8px 12px; margin: 4px 0; }
.com-dir small, .ativ small { color: var(--texto-3); }
.ativ { display: flex; gap: 8px; align-items: flex-start; margin-left: 4px; }
.ativ p { margin: 0; }

.ct-lateral { display: flex; flex-direction: column; gap: 18px; }
.ct-lat-bloco { display: flex; flex-direction: column; gap: 6px; }
.bt-lat { background: #091e420f; border-radius: 4px; padding: 6px 10px; font-weight: 600; color: var(--texto); min-height: 32px; text-decoration: none; }
.bt-lat:hover { background: #091e4224; }
.ct-sumiu { padding: 40px 20px; text-align: center; }

/* ----- fila ----- */
.fila-grupo { margin-bottom: 24px; }
.fila-grupo h2 { display: flex; align-items: center; gap: 8px; font-size: 16px; margin: 0 0 8px; }
.fila-grupo.atraso h2 { color: var(--perigo); }
.fila-grupo ul { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 8px; box-shadow: var(--sombra); }
.fila-item { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.fila-item:last-child { border-bottom: 0; }
.fila-item input[type=checkbox] { width: 16px; height: 16px; }
.fila-link { flex: 1; min-width: 200px; display: flex; flex-direction: column; text-decoration: none; color: var(--texto); }
.fila-link:hover .fila-tit { text-decoration: underline; }
.fila-quadro { font-size: 11px; font-weight: 700; color: var(--cor); text-transform: uppercase; letter-spacing: .3px; }
.fila-tit { font-weight: 600; }
.fila-lista-nome { font-size: 12px; color: var(--texto-3); }
.fila-ets { display: flex; gap: 4px; flex-wrap: wrap; }

/* ----- equipe ----- */
.eq-lista { list-style: none; margin: 0; padding: 0; background: #fff; border-radius: 8px; box-shadow: var(--sombra); }
.eq-lista li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-bottom: 1px solid var(--linha); flex-wrap: wrap; }
.eq-lista li:last-child { border-bottom: 0; }
.eq-quem { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.eq-quem small { color: var(--texto-3); }
.eq-novo { display: flex; gap: 8px; flex-wrap: wrap; }
.eq-novo input, .eq-novo select { flex: 1; min-width: 200px; width: auto; }

/* ----- entrada ----- */
.entrada { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; background: radial-gradient(ellipse at top, #e3f7d7, var(--fundo) 60%); }
.entrada-caixa { background: #fff; border-radius: 12px; box-shadow: var(--sombra-alta); padding: 28px 28px 22px; width: 100%; max-width: 380px; text-align: center; }
.entrada-logo { width: 180px; height: auto; }
.entrada h1 { font-size: 20px; margin: 8px 0 4px; }
.entrada-sub { color: var(--texto-2); margin: 0 0 12px; }
.entrada-form { display: flex; flex-direction: column; gap: 12px; text-align: left; margin: 16px 0 8px; }
.entrada-msg { color: var(--perigo); margin: 0; min-height: 0; font-size: 13px; }
.entrada-msg.ok { color: #216e4e; }
.erro-geral { padding: 48px 16px; text-align: center; }

/* ----- avisos ----- */
#avisos { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 80; display: flex; flex-direction: column; gap: 8px; align-items: center; width: max-content; max-width: calc(100vw - 32px); }
.aviso { background: #172b4d; color: #fff; padding: 10px 14px; border-radius: 8px; box-shadow: var(--sombra-alta); display: flex; gap: 12px; align-items: center; }
.aviso-erro { background: var(--perigo); }
.aviso-acao { background: none; border: 0; color: #85b8ff; font-weight: 700; cursor: pointer; text-decoration: underline; }

/* ----- celular ----- */
@media (max-width: 760px) {
  .topo { padding: 0 8px; gap: 4px; }
  .topo-nome { display: none; }
  .topo-logo { height: 32px; }
  .topo-nav span { display: none; }
  .topo-nav { padding: 8px 10px; }
  .q-cab { padding: 6px 8px; }
  .q-nome { font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .q-vis { margin-left: 0; }
  .q-bt span { display: none; }
  .q-cab-dir { margin-left: 0; }
  .q-filtros { flex-wrap: nowrap; overflow-x: auto; padding: 6px 8px; }
  .q-filtros > * { flex: none; }
  .q-filtros .campo-busca { width: 150px; }
  .q-rolagem { scroll-snap-type: x mandatory; padding: 8px 0; }
  .q-listas { padding: 0 8px; gap: 8px; }
  .lista { width: calc(100vw - 40px); max-width: 320px; scroll-snap-align: center; }
  .jan-fundo { padding: 0; }
  .jan { border-radius: 0; min-height: 100%; }
  .ct-cab { padding: 16px 48px 8px 14px; }
  .ct-cab > .ic { display: none; }
  .ct-grade { grid-template-columns: 1fr; padding: 0 14px; }
  .ct-principal { padding-left: 0; }
  .ct-sec-cab, .cl-barra, .cl-itens, .com-novo, .com-lista { margin-left: 0; }
  .ct-sec-cab > .ic { display: none; }
  .ct-lateral { order: -1; flex-direction: row; flex-wrap: wrap; gap: 10px; }
  .ct-lat-bloco { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .ct-lat-bloco h3 { width: 100%; margin: 0; }
  .cal-dia { min-height: 72px; }
  .cal-hora { display: none; }
  .anexo-mini { width: 72px; height: 56px; }
  .inicio, .fila { padding: 16px 12px 40px; }
  .campo-busca { max-width: none; flex: 1; }
  .grade-quadros { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
}
