:root {
  --primary-color: #00d8d8;
  --secondary-color: #348fe2;
  --success-color: #21c97a;
  --warning-color: #f59c1a;
  --danger-color: #ff5b57;
  --purple-color: #8753de;
  --dark-bg: #07111f;
  --dark-bg-2: #0c1729;
  --panel-bg: rgba(15, 28, 50, 0.72);
  --panel-bg-2: rgba(255, 255, 255, 0.06);
  --border: rgba(255, 255, 255, 0.11);
  --text: #f7fbff;
  --muted: #9aa9c2;
  --cell-solid: #0b1626;
  --sidebar-width: 260px;
  --sidebar-collapsed: 86px;
  --navbar-height: 74px;
  --radius: 18px;
  --blue-gradient: linear-gradient(135deg, #03c8ff, #3455ff);
  --primary-gradient: linear-gradient(135deg, #00d8d8, #26d07c);
  --purple-gradient: linear-gradient(135deg, #6a11cb, #2575fc);
  --orange-gradient: linear-gradient(135deg, #f59c1a, #ff5b57);
  --red-gradient: linear-gradient(135deg, #ff5b57, #d22761);

  /* ----- Tokens de tema (sobrescreva-os num tema da Loja de Temas) -----
     Os valores abaixo são o padrão do sistema; um tema pode redefinir
     qualquer um deles em :root para reskinar o app inteiro sem mudar o HTML. */
  --font-sans: 'Inter', sans-serif;
  --app-bg:
    radial-gradient(circle at 92% 18%, rgba(135,83,222,.28), transparent 24%),
    radial-gradient(circle at 5% 92%, rgba(0,216,216,.14), transparent 18%),
    linear-gradient(135deg, #04101c 0%, #08192c 45%, #120d28 100%);
  --sidebar-bg: rgba(0, 0, 0, .28);
  --topbar-bg: rgba(5, 14, 27, .56);
  --brand-logo-bg: var(--primary-gradient);
  --shadow-panel: 0 18px 60px rgba(0,0,0,.24);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--app-bg);
  background-attachment: fixed;
  overflow-x: hidden;
}

/* Modo claro "manual" (toggle). Os tokens só se aplicam quando NÃO há um tema
   da Loja ativo — assim um tema claro pode definir suas próprias variáveis em
   :root sem ser sobrescrito por estes valores (a proximidade no DOM venceria). */
body.light-mode:not([data-theme]) {
  --app-bg:
    radial-gradient(circle at 92% 18%, rgba(135,83,222,.18), transparent 24%),
    radial-gradient(circle at 5% 92%, rgba(0,216,216,.14), transparent 18%),
    linear-gradient(135deg, #f4f8ff 0%, #edf5ff 45%, #f8efff 100%);
  --panel-bg: rgba(255, 255, 255, 0.72);
  --panel-bg-2: rgba(255, 255, 255, 0.52);
  --border: rgba(15, 28, 50, 0.10);
  --text: #1c2637;
  --muted: #5d6b82;
  --cell-solid: #eef4fc;
  --sidebar-bg: rgba(255, 255, 255, .36);
  --topbar-bg: rgba(255, 255, 255, .45);
}

body.light-mode {
  color: var(--text);
  background: var(--app-bg);
  background-attachment: fixed;
}

.grid-overlay {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px 64px),
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px 64px);
  mask-image: linear-gradient(135deg, transparent 0%, black 45%, black 100%);
  z-index: -1;
}

body.light-mode .grid-overlay {
  background:
    linear-gradient(90deg, rgba(0,0,0,.035) 1px, transparent 1px 64px),
    linear-gradient(rgba(0,0,0,.035) 1px, transparent 1px 64px);
}

.glass {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-panel);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.soft-glass {
  background: var(--panel-bg-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

a { color: var(--primary-color); }

.sidebar {
  width: var(--sidebar-width);
  height: 100vh;
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1050;
  padding: 18px 14px;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--border);
  backdrop-filter: blur(18px);
  transition: width .25s ease, transform .25s ease;
  overflow-y: auto;
}

/* (cor da sidebar no modo claro agora vem do token --sidebar-bg) */

.sidebar.collapsed { width: var(--sidebar-collapsed); }

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 10px 18px;
  font-weight: 800;
  font-size: 23px;
  white-space: nowrap;
  color: var(--text);
  text-decoration: none;
}

.brand-logo {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--brand-logo-bg);
  box-shadow: 0 0 28px rgba(0,216,216,.25);
  color: #fff;
  flex-shrink: 0;
}

/* A marca virou <img> (antes era um glifo do Font Awesome). O dimensionamento
   precisa morar AQUI, e não no bloco `body:not([data-theme])` do
   tarefinha-design.css: sob um tema da Loja aquele escopo inteiro é desligado,
   a imagem ficava sem width/height e renderizava no tamanho natural (386x397),
   estourando a sidebar e a tela de carregamento. Tamanho é estrutura, não tema.
   O :has(img) tira o ladrilho colorido só quando há imagem dentro — a logo já
   tem cor própria e ficaria suja sobre o gradiente. */
.brand-logo img { width: 42px; height: 42px; display: block; object-fit: contain; }
.app-loader-core .logo img { width: 46px; height: 46px; display: block; object-fit: contain; }
/* Sem tema, a logo do Tarefinha aparece sozinha e o ladrilho colorido sai —
   a marca tem cor própria e ficaria suja sobre o gradiente. */
body:not([data-theme]) .brand-logo:has(img) { background: none; box-shadow: none; border-radius: 0; }

/* ---- Marca sob um tema da Loja ----
   A identidade visual passa a ser do TEMA: a logo do Tarefinha some e sobra o
   ladrilho (.brand-logo, com --brand-logo-bg) e o miolo do loader
   (.app-loader-core .logo), que o autor do tema preenche como quiser —
   background, ::before com content, mask, o que fizer sentido.

   Ganchos para quem escreve tema:
     .brand-logo              -> ladrilho 42x42 ao lado do nome, na sidebar
     .app-loader-core .logo   -> miolo do anel na tela de carregamento
   Ambos são grid/flex centralizados, então um ::before já cai no lugar certo. */
body[data-theme] .brand-logo img,
body[data-theme] .app-loader-core .logo img { display: none; }

/* Aurora animado no nome da marca (inspirado no CodePen "The aurora")
   Gradiente fluindo nas cores da logo: cyan -> verde -> azul */
.brand span {
  --b: var(--primary-color, #00d8d8);
  background: linear-gradient(
    100deg,
    var(--b) 0%,
    color-mix(in srgb, var(--b) 55%, #ffffff) 22%,
    color-mix(in srgb, var(--b) 70%, #000000) 44%,
    var(--b) 66%,
    color-mix(in srgb, var(--b) 55%, #ffffff) 88%,
    var(--b) 100%
  );
  background-size: 250% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--b) 35%, transparent));
  animation: brandAurora 6s linear infinite;
}

@keyframes brandAurora {
  to { background-position: 250% center; }
}

@media (prefers-reduced-motion: reduce) {
  .brand span { animation: none; }
}

.sidebar.collapsed .brand span,
.sidebar.collapsed .menu-text,
.sidebar.collapsed .plan-card,
.sidebar.collapsed .sidebar-footer-text { display: none; }

.sidebar-menu { list-style: none; padding: 0; margin: 6px 0; }
.sidebar-menu li { margin: 7px 0; }

.sidebar-link {
  width: 100%;
  border: 0;
  color: var(--text);
  text-decoration: none;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 13px 14px;
  border-radius: 14px;
  transition: all .2s ease;
  text-align: left;
  cursor: pointer;
}

.sidebar-link i { width: 22px; text-align: center; font-size: 18px; color: #d8e4f7; }
body.light-mode .sidebar-link i { color: #27344a; }

.sidebar-link:hover,
.sidebar-link.active {
  background: color-mix(in srgb, var(--primary-color, #00d8d8) 16%, transparent);
  color: #fff;
  box-shadow: inset 4px 0 0 color-mix(in srgb, var(--primary-color, #00d8d8) 80%, transparent);
}
.sidebar-link:hover i,
.sidebar-link.active i { color: var(--primary-color, #00d8d8); }
body.light-mode .sidebar-link:hover i,
body.light-mode .sidebar-link.active i { color: color-mix(in srgb, var(--primary-color, #00d8d8) 78%, #000); }

body.light-mode .sidebar-link:hover,
body.light-mode .sidebar-link.active { color: #0f2438; }

.sidebar-footer { margin-top: 22px; }

.plan-card { padding: 16px; }
/* Utilitário global: permite que um flex item encolha abaixo do conteúdo, para
   o text-truncate funcionar (sem isso o título estoura o card). */
.min-w-0 { min-width: 0; }

/* Atalho para o controle financeiro, dentro do card da organização. */
.plan-finance-btn {
  flex: 0 0 auto;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  text-decoration: none;
  color: #d8e4f7;
  background: color-mix(in srgb, var(--primary-color, #00d8d8) 14%, transparent);
  border: 1px solid color-mix(in srgb, var(--primary-color, #00d8d8) 35%, transparent);
  transition: all .2s ease;
}
.plan-finance-btn:hover,
.plan-finance-btn.active {
  color: #fff;
  background: var(--primary-gradient);
  border-color: transparent;
  transform: translateY(-1px);
}
body.light-mode .plan-finance-btn { color: #0f2438; }

.main {
  margin-left: var(--sidebar-width);
  min-height: 100vh;
  transition: margin-left .25s ease;
}

.main.collapsed { margin-left: var(--sidebar-collapsed); }

.topbar {
  height: var(--navbar-height);
  position: sticky;
  top: 0;
  z-index: 1030;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 14px 28px;
  background: var(--topbar-bg);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(20px);
}

/* (cor da topbar no modo claro agora vem do token --topbar-bg) */

.content { padding: 28px; }

.icon-btn, .action-btn {
  border: 1px solid var(--border);
  color: var(--text);
  background: rgba(255,255,255,.07);
  border-radius: 14px;
  height: 44px;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition: all .2s ease;
  text-decoration: none;
  cursor: pointer;
  position: relative;
}

.icon-btn { width: 44px; padding: 0; }
.icon-btn:hover, .action-btn:hover { transform: translateY(-1px); border-color: rgba(0,216,216,.45); color: var(--text); }
.action-btn.active { background: rgba(0,216,216,.16); border-color: rgba(0,216,216,.4); }

.btn-gradient {
  background: var(--primary-gradient);
  border: 0;
  color: #fff;
  border-radius: 14px;
  height: 48px;
  padding: 0 22px;
  font-weight: 700;
  box-shadow: 0 12px 26px rgba(0,216,216,.22);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.btn-gradient:hover { color: #fff; filter: brightness(1.05); }

/* Subtle "add / new" action button (discreet, brand-accented) */
.btn-add {
  display: inline-flex; align-items: center; gap: 8px;
  height: 42px; padding: 0 16px; border-radius: 12px;
  background: rgba(0,216,216,.12); color: var(--primary-color);
  border: 1px solid rgba(0,216,216,.35); font-weight: 600;
  cursor: pointer; text-decoration: none; transition: all .2s ease;
}
.btn-add:hover { background: rgba(0,216,216,.2); color: var(--primary-color); transform: translateY(-1px); }

.notif-dot {
  position: absolute;
  top: -5px; right: -5px;
  min-width: 17px; height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: var(--danger-color);
  color: #fff;
  font-size: 10px;
  line-height: 1;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 2px var(--panel-bg);
  pointer-events: none;
}

.topbar-left, .topbar-right { flex: 1; display: flex; align-items: center; gap: 16px; }
.topbar-left { justify-content: flex-start; }
.topbar-right { justify-content: flex-end; }
.topbar-center { flex: 0 0 auto; display: flex; justify-content: center; }

.search-box {
  width: min(460px, 38vw);
  min-width: 220px;
  position: relative;
}

.search-box input {
  width: 100%;
  height: 48px;
  color: var(--text);
  padding: 0 50px 0 18px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  outline: none;
}

.search-box i { position: absolute; right: 18px; top: 16px; color: var(--muted); }

/* Resultados da busca global */
.search-results {
  position: absolute; top: calc(100% + 8px); left: 0; right: 0; z-index: 1200;
  max-height: 70vh; overflow-y: auto; padding: 6px;
  background: var(--panel-bg); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 18px 50px rgba(0,0,0,.35); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
}
.sr-group { font-size: 10.5px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 8px 10px 4px; }
.sr-row {
  display: flex; align-items: center; gap: 10px; width: 100%; text-align: left;
  background: transparent; border: 0; color: var(--text); padding: 8px 10px; border-radius: 10px; cursor: pointer;
}
.sr-row:hover, .sr-row.active { background: rgba(255,255,255,.08); }
.sr-ic { width: 26px; height: 26px; flex: 0 0 26px; display: grid; place-items: center; border-radius: 8px; background: var(--panel-bg-2); color: var(--muted); font-size: 13px; }
.sr-ic img { display: block; }
.sr-txt { display: flex; flex-direction: column; min-width: 0; }
.sr-title { font-weight: 600; font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-ctx { font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sr-empty { padding: 16px 12px; color: var(--muted); font-size: 13px; text-align: center; }

/* ===== Comentários: menções + reações ===== */
.comment-text { color: var(--text); white-space: pre-wrap; word-break: break-word; }
.mention { color: var(--primary-color); font-weight: 700; background: color-mix(in srgb, var(--primary-color) 16%, transparent); padding: 0 4px; border-radius: 5px; }

/* Anexos exibidos no comentário */
.comment-attachments { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.comment-att-img { display: inline-block; line-height: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--border); }
.comment-att-img img { width: 96px; height: 96px; object-fit: cover; display: block; transition: transform .15s ease; }
.comment-att-img:hover img { transform: scale(1.04); }
.comment-att-file {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  padding: 8px 12px; border: 1px solid var(--border); border-radius: 8px;
  color: var(--text); background: var(--panel-bg, transparent); max-width: 260px;
}
.comment-att-file:hover { border-color: var(--primary-color); }
.comment-att-file .fa-file-pdf { color: #e5484d; font-size: 18px; }
.comment-att-file .comment-att-name { font-size: 13px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.comment-att-file .comment-att-size { font-size: 11px; color: var(--text-muted-soft, #8a93a5); margin-left: auto; white-space: nowrap; }

/* Alça de redimensionamento das colunas do board */
.board-table th.has-resizer { position: relative; }
/* A alça precisa ANUNCIAR que a coluna é ajustável. Na primeira versão ela era
   7px totalmente transparente, e o tracinho só aparecia com o mouse já sobre o
   cabeçalho — na prática ninguém descobria o recurso. Agora o divisor fica
   visível em repouso e a área de clique é mais generosa. */
.col-resizer {
  position: absolute; top: 0; right: -5px; width: 11px; height: 100%;
  cursor: col-resize; z-index: 3; touch-action: none;
  background: transparent; transition: background .12s ease;
}
.col-resizer::after {
  /* Em repouso precisa ser mais forte que a borda da célula (var(--border)),
     senão some dentro dela e volta a parecer só a divisória da coluna. */
  content: ''; position: absolute; top: 22%; left: 5px; width: 2px; height: 56%;
  border-radius: 2px; background: color-mix(in srgb, var(--muted) 55%, transparent);
  transition: background .12s ease, height .12s ease;
}
.board-table th.has-resizer:hover .col-resizer::after {
  background: color-mix(in srgb, var(--primary-color) 45%, transparent); height: 70%;
}
.col-resizer:hover::after,
.col-resizer.dragging::after { background: var(--primary-color); height: 78%; }
.col-resizer:hover, .col-resizer.dragging {
  background: color-mix(in srgb, var(--primary-color) 10%, transparent);
}
/* Durante o arrasto o cursor não pode mudar ao passar por cima do texto, e a
   seleção precisa ficar travada — senão o navegador começa a selecionar. */
body.col-resizing { cursor: col-resize; user-select: none; -webkit-user-select: none; }

/* Falha ao enviar o comentário — inline, no lugar do alert() do navegador. */
.comment-error {
  margin-top: 8px; padding: 8px 12px; border-radius: 10px; font-size: 13px;
  color: #d63455; background: rgba(239, 77, 107, .12);
  border: 1px solid rgba(239, 77, 107, .28);
}
.comment-error[hidden] { display: none; }

/* Prévia dos arquivos selecionados antes de enviar */
.comment-file-preview { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.comment-file-chip {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px;
  padding: 4px 8px; border: 1px solid var(--border); border-radius: 999px; color: var(--text);
}
.comment-file-chip .cf-size { color: var(--text-muted-soft, #8a93a5); }
.comment-file-chip .cf-remove { background: none; border: 0; color: var(--text-muted-soft, #8a93a5); cursor: pointer; padding: 0 2px; line-height: 1; }
.comment-file-chip .cf-remove:hover { color: #e5484d; }

.comment-reactions { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.reaction-chip {
  display: inline-flex; align-items: center; gap: 5px; font-size: 13px;
  background: var(--panel-bg-2); border: 1px solid var(--border); color: var(--text);
  padding: 2px 9px; border-radius: 999px; cursor: pointer; transition: all .12s ease;
}
.reaction-chip:hover { border-color: var(--primary-color); }
.reaction-chip.mine { background: color-mix(in srgb, var(--primary-color) 22%, transparent); border-color: var(--primary-color); }
.reaction-chip .rc-count { font-size: 11.5px; color: var(--muted); font-weight: 700; }
.reaction-chip.mine .rc-count { color: var(--text); }

.reaction-add { position: relative; }
.reaction-add-btn { width: 28px; height: 26px; display: grid; place-items: center; border-radius: 999px; background: transparent; border: 1px dashed var(--border); color: var(--muted); cursor: pointer; }
.reaction-add-btn:hover { color: var(--text); border-color: var(--primary-color); }
.reaction-picker { position: absolute; bottom: calc(100% + 6px); left: 0; z-index: 50; display: flex; gap: 2px; padding: 6px; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.reaction-picker[hidden] { display: none; }
.reaction-pick { font-size: 18px; background: transparent; border: 0; padding: 4px 6px; border-radius: 8px; cursor: pointer; line-height: 1; }
.reaction-pick:hover { background: rgba(255,255,255,.1); transform: scale(1.15); }

/* Autocomplete de menção */
.mention-field { position: relative; }
.mention-pop { position: absolute; bottom: calc(100% + 6px); left: 0; right: 0; z-index: 60; max-height: 220px; overflow-y: auto; padding: 6px; background: var(--panel-bg); border: 1px solid var(--border); border-radius: 12px; box-shadow: 0 12px 30px rgba(0,0,0,.35); }
.mention-pop[hidden] { display: none; }
.mention-opt { display: block; width: 100%; text-align: left; background: transparent; border: 0; color: var(--text); padding: 7px 10px; border-radius: 8px; cursor: pointer; font-size: 13.5px; }
.mention-opt:hover, .mention-opt.active { background: color-mix(in srgb, var(--primary-color) 18%, transparent); }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.2);
  display: inline-grid;
  place-items: center;
  background: #3b4456;
  color: #e7edf6;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
img.avatar { background: #3b4456; }

.page-title { font-size: 34px; font-weight: 800; margin: 0; }
.page-subtitle { color: var(--muted); margin-top: 5px; }

.stat-card {
  min-height: 126px;
  padding: 22px;
  display: flex;
  gap: 18px;
  align-items: center;
}

/* Card de estatística clicável (navega para a tela correspondente) */
.stat-card-link {
  position: relative;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: transform .15s ease, border-color .15s ease, box-shadow .15s ease;
}
.stat-card-link:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--primary-color) 45%, transparent);
  box-shadow: 0 10px 24px rgba(0,0,0,.14);
  color: inherit;
}
.stat-card-link:focus-visible { outline: 2px solid var(--primary-color); outline-offset: 2px; }
.stat-card-go {
  position: absolute; right: 16px; top: 50%;
  transform: translateY(-50%) translateX(-4px);
  opacity: 0; color: var(--muted); font-size: 13px;
  transition: opacity .15s ease, transform .15s ease;
}
.stat-card-link:hover .stat-card-go { opacity: 1; transform: translateY(-50%) translateX(0); }

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 23px;
  flex-shrink: 0;
}

.stat-value { font-size: 32px; font-weight: 800; margin: 0; }
.stat-label { color: var(--muted); margin: 0; }
.trend { font-size: 13px; margin-top: 6px; }
.trend.up { color: #24e69d; }
.trend.down { color: #ff7373; }

.section-card { padding: 22px; }
.section-title { font-size: 19px; font-weight: 750; margin-bottom: 14px; }

.progress-row { display: grid; grid-template-columns: 160px 1fr 48px; gap: 14px; align-items: center; margin: 15px 0; }
.progress { height: 12px; background: rgba(255,255,255,.08); border-radius: 999px; overflow: hidden; }
.progress-bar { border-radius: 999px; background: var(--primary-gradient); }

.board-card-desc { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* Barra de progresso dos cards de board (listagem) */
.board-progress { height: 8px; border-radius: 999px; background: rgba(120,140,170,.18); overflow: hidden; }
.board-progress-bar { height: 100%; border-radius: 999px; background: var(--primary-gradient); transition: width .35s ease; min-width: 0; }

.table-glass {
  width: 100%;
  color: var(--text);
  border-collapse: collapse;
  overflow: hidden;
}

.table-glass th,
.table-glass td {
  padding: 16px;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.table-glass th { color: #dce7fa; font-weight: 700; text-align: left; }
body.light-mode .table-glass th { color: #27344a; }
.table-glass tbody tr:hover { background: rgba(255,255,255,.05); }
.table-glass tbody tr.clickable { cursor: pointer; }

.badge-soft {
  border: none;
  border-radius: 9px;
  padding: 6px 11px;
  font-weight: 700;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  white-space: nowrap;
}

/* Flat solid chips (no neon outline) for consistent visual identity. */
.badge-green { color: #fff; background: #00c875; }
.badge-blue { color: #fff; background: #2f80ed; }
.badge-orange { color: #fff; background: #f0930f; }
.badge-red { color: #fff; background: #e2445c; }
.badge-purple { color: #fff; background: #8753de; }
.badge-gray { color: #fff; background: #61708a; }

.filter-pill {
  padding: 11px 18px;
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,.06);
  display: inline-flex;
  gap: 10px;
  align-items: center;
  color: var(--text);
  margin-right: 10px;
  margin-bottom: 10px;
  text-decoration: none;
  cursor: pointer;
}
.filter-pill:hover { color: var(--text); border-color: rgba(0,216,216,.4); }
.filter-pill.active { background: rgba(0,216,216,.16); border-color: rgba(0,216,216,.4); }

.kanban-wrapper { overflow-x: auto; padding-bottom: 8px; }

.kanban-board {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 1fr);
  gap: 16px;
  min-width: min-content;
}

.kanban-col { padding: 14px; min-height: 560px; }
.kanban-col-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 800;
  margin-bottom: 14px;
}

.task-card {
  padding: 16px;
  margin-bottom: 12px;
  border-radius: 15px;
  background: rgba(255,255,255,.07);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: .2s ease;
}

.task-card:hover { transform: translateY(-2px); border-color: rgba(0,216,216,.35); }
.task-card.dragging { opacity: .5; }
.kanban-col.drop-hover { background: rgba(0,216,216,.06); }
.task-title { font-weight: 750; margin-bottom: 10px; }
.task-meta { display: flex; gap: 12px; color: var(--muted); font-size: 13px; margin-top: 12px; flex-wrap: wrap; }

.task-date.overdue { color: #ff6575; }
.task-date.ok { color: #24e69d; }

.modal-content.glass { color: var(--text); }
.modal-header, .modal-footer { border-color: var(--border); }
/* Botão de fechar (X) alinhado ao topo-direito mesmo com cabeçalho de 2 linhas */
.modal-content.glass .modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.modal-content.glass .modal-header > .icon-btn { flex: 0 0 auto; }
.modal-xl-custom { max-width: 1120px; }

/* ===== Painel lateral (drawer) da tarefa — desliza da direita ===== */
.modal.task-drawer .modal-dialog.task-drawer-dialog {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  margin: 0;
  width: 100%;
  max-width: 880px;
  height: 100vh;
  transform: translateX(100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
.modal.task-drawer.show .modal-dialog.task-drawer-dialog { transform: translateX(0); }
.task-drawer .modal-content.glass {
  height: 100vh;
  max-height: 100vh;
  border-radius: 0;
  border: 0;
  border-left: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
/* header fixo, corpo rolável (estrutura do items/partials/modal.blade.php) */
#taskModalBody { display: flex; flex-direction: column; height: 100%; min-height: 0; }
#taskModalBody .modal-header { flex: 0 0 auto; }
#taskModalBody .modal-body { flex: 1 1 auto; min-height: 0; overflow-y: auto; }
@media (max-width: 640px) { .modal.task-drawer .task-drawer-dialog { max-width: 100%; } }

/* ===== Botões padronizados do drawer ===== */
.td-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  height: 40px; padding: 0 18px; border-radius: 10px;
  font-size: 14px; font-weight: 600; line-height: 1;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap; text-decoration: none;
  transition: filter .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.td-btn:disabled { opacity: .55; cursor: default; }
.td-btn-sm { height: 32px; padding: 0 12px; font-size: 13px; }
.td-btn-primary { background: var(--primary-gradient); color: #fff; }
.td-btn-primary:hover { filter: brightness(1.06); color: #fff; }
.td-btn-ghost { background: transparent; color: var(--muted); border-color: var(--border); }
.td-btn-ghost:hover { color: var(--text); background: color-mix(in srgb, var(--text) 6%, transparent); }
.td-btn-icon { width: 40px; height: 40px; padding: 0; flex: 0 0 auto; }

/* Seções do drawer + metadados */
.td-section { margin-bottom: 22px; }
.td-section-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.td-section-title { margin: 0; font-size: 15px; font-weight: 700; }
.td-textarea { min-height: 170px; font-size: 14px; line-height: 1.55; resize: vertical; }
.td-meta { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; border-top: 1px solid var(--border); padding-top: 14px; }
.td-meta-item { display: flex; flex-direction: column; gap: 3px; }

/* ===== Conteúdo estilo Markdown ===== */
.md-content { font-size: 14px; line-height: 1.65; color: var(--text); word-wrap: break-word; }
.md-content > :first-child { margin-top: 0; }
.md-content > :last-child { margin-bottom: 0; }
/* Imagens coladas/inseridas na descrição não podem estourar o drawer. */
.md-content img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid var(--border); margin: 8px 0; }
.md-content h1, .md-content h2, .md-content h3, .md-content h4 { font-weight: 700; line-height: 1.3; margin: 18px 0 8px; }
.md-content h1 { font-size: 1.35rem; }
.md-content h2 { font-size: 1.18rem; border-bottom: 1px solid var(--border); padding-bottom: 4px; }
.md-content h3 { font-size: 1.05rem; }
.md-content h4 { font-size: .95rem; }
.md-content p { margin: 0 0 10px; }
.md-content ul, .md-content ol { margin: 0 0 10px; padding-left: 22px; }
.md-content li { margin: 3px 0; }
.md-content li > p { margin: 0; }
.md-content a { color: var(--primary-color); text-decoration: none; }
.md-content a:hover { text-decoration: underline; }
.md-content code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .88em; background: color-mix(in srgb, var(--text) 9%, transparent); padding: 1px 5px; border-radius: 5px; }
.md-content pre { background: color-mix(in srgb, var(--text) 9%, transparent); padding: 12px 14px; border-radius: 10px; overflow-x: auto; margin: 0 0 12px; }
.md-content pre code { background: none; padding: 0; }
.md-content blockquote { margin: 0 0 12px; padding: 4px 14px; border-left: 3px solid var(--border); color: var(--muted); }
.md-content hr { border: 0; border-top: 1px solid var(--border); margin: 16px 0; }
.md-content table { border-collapse: collapse; margin: 0 0 12px; width: 100%; }
.md-content th, .md-content td { border: 1px solid var(--border); padding: 6px 10px; text-align: left; }
.md-content img { max-width: 100%; border-radius: 8px; }

/* Ações do comentário (editar/excluir) — discretas, aparecem no hover */
.comment-box .comment-actions { opacity: 0; transition: opacity .12s ease; display: inline-flex; gap: 2px; }
.comment-box:hover .comment-actions, .comment-box:focus-within .comment-actions { opacity: 1; }
.comment-box .comment-actions .icon-btn { width: 28px; height: 28px; font-size: 12px; }

/* Seleção dos atalhos visíveis do projeto (criar/editar) */
.feature-toggles { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; }
.feature-toggle {
  display: inline-flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 7px 12px; border: 1px solid var(--border); border-radius: 8px;
  font-size: 13px; color: var(--text); transition: border-color .15s ease, background .15s ease;
}
.feature-toggle:hover { border-color: var(--primary-color); }
.feature-toggle i { color: var(--text-muted-soft, #8a93a5); width: 15px; text-align: center; }
.feature-toggle:has(input:checked) { border-color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 10%, transparent); }
.feature-toggle:has(input:checked) i { color: var(--primary-color); }

.task-side {
  padding: 20px;
  border-radius: 16px;
  background: rgba(255,255,255,.05);
  border: 1px solid var(--border);
  height: 100%;
}

.detail-row { padding: 13px 0; border-bottom: 1px solid var(--border); }
.detail-row:last-child { border-bottom: 0; }
.detail-label { color: var(--muted); font-size: 13px; margin-bottom: 6px; }

.comment-box { padding: 16px 0; border-bottom: 1px solid var(--border); }

.checkbox-row {
  padding: 12px 13px;
  border: 1px solid var(--border);
  border-radius: 12px;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.form-control, .form-select {
  background: rgba(255,255,255,.07);
  color: var(--text);
  border: 1px solid var(--border);
  border-radius: 13px;
}
.form-control::placeholder { color: var(--muted); }

.form-control:focus, .form-select:focus {
  background: rgba(255,255,255,.1);
  color: var(--text);
  border-color: rgba(0,216,216,.5);
  box-shadow: 0 0 0 .25rem rgba(0,216,216,.12);
}

.form-select option { color: #111; }
.form-label { color: var(--muted); font-weight: 600; }

.tabs-soft .nav-link {
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 12px;
  margin-right: 5px;
  cursor: pointer;
}
.tabs-soft .nav-link.active {
  color: #fff;
  background: rgba(0,216,216,.14);
  border-color: rgba(0,216,216,.35);
}
body.light-mode .tabs-soft .nav-link.active { color: #0f2438; }

.report-menu { min-width: 190px; padding: 12px; }
.report-menu .sidebar-link { padding: 12px; }

.empty-state { text-align: center; padding: 48px 20px; color: var(--muted); }
.empty-state i { font-size: 46px; opacity: .5; margin-bottom: 14px; }

.text-muted-soft { color: var(--muted) !important; }

.dropdown-menu {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  backdrop-filter: blur(18px);
}
.dropdown-item { color: var(--text); }
.dropdown-item:hover { background: rgba(0,216,216,.16); color: var(--text); }

.alert-flash {
  border-radius: 14px;
  border: 1px solid rgba(32,219,143,.4);
  background: rgba(32,219,143,.12);
  color: #20db8f;
  padding: 14px 18px;
  margin-bottom: 20px;
}

/* ============ Monday-style editable board table ============ */

/* Group header bar */
.board-group-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 4px 12px;
}
.board-collapse {
  background: transparent; border: 0; cursor: pointer;
  width: 28px; height: 28px; border-radius: 8px;
  display: grid; place-items: center; font-size: 15px;
}
.board-collapse:hover { background: rgba(255,255,255,.08); }
.board-collapse i { transition: transform .2s ease; }
.board-group.collapsed .board-group-body { display: none; }
.board-group.collapsed .board-collapse i { transform: rotate(-90deg); }
.group-drag-handle {
  background: transparent; border: 0; cursor: grab; color: var(--muted);
  width: 22px; height: 28px; border-radius: 8px; display: grid; place-items: center;
  font-size: 13px; opacity: .35; transition: opacity .12s ease, color .12s ease;
}
.group-drag-handle:hover { opacity: 1; color: var(--text); background: rgba(255,255,255,.08); }
.group-drag-handle:active { cursor: grabbing; }
.board-group.group-dragging { opacity: .55; }

/* Perf: o navegador pula layout/paint das linhas fora da viewport (virtualização
   nativa). Reduz drasticamente o jank ao rolar boards com muitos itens.
   contain-intrinsic-size estima a altura da linha p/ manter a barra de rolagem estável. */
tr.board-row {
  content-visibility: auto;
  contain-intrinsic-size: 0 48px;
}

.group-swatch {
  width: 18px; height: 18px; border-radius: 6px;
  display: inline-grid; place-items: center;
  position: relative; overflow: hidden; flex-shrink: 0;
}
.group-swatch input[type=color] {
  position: absolute; inset: 0; opacity: 0;
  width: 100%; height: 100%; border: 0; padding: 0; cursor: pointer;
}
.group-name-input, .group-name-static {
  background: transparent; border: 1px solid transparent;
  font-size: 19px; font-weight: 800;
  border-radius: 8px; padding: 3px 8px; outline: none;
  max-width: 360px;
}
.group-name-input:hover { border-color: var(--border); }
.group-name-input:focus { border-color: rgba(0,216,216,.5); background: rgba(255,255,255,.06); }
.group-count {
  font-size: 12px; font-weight: 600; color: var(--muted);
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 10px;
}

/* Filter bar */
.filter-bar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; flex-wrap: wrap; padding: 10px 14px;
}
.filter-ico {
  width: 34px; height: 34px; border-radius: 10px;
  display: grid; place-items: center;
  background: rgba(255,255,255,.08); color: var(--muted);
  flex-shrink: 0;
}
body.light-mode .filter-ico { background: rgba(15,28,50,.06); }
.filter-field {
  display: flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 12px; padding: 0 12px; height: 42px;
  transition: border-color .15s ease;
}
.filter-field:hover { border-color: rgba(0,216,216,.4); }
.filter-field i { color: var(--muted); font-size: 13px; }
.filter-select {
  background: transparent; border: 0; outline: none; color: var(--text);
  height: 100%; cursor: pointer; padding-right: 4px; font-weight: 600; font-size: 14px;
}
.filter-select option { color: #111; }
.filter-clear {
  display: inline-flex; align-items: center; gap: 6px;
  color: #ff8a86; text-decoration: none; font-weight: 600; font-size: 14px;
  padding: 0 6px;
}
.filter-clear:hover { color: #ff6b66; }
.filter-saved-tag {
  font-size: 12px; color: var(--primary-color);
}

/* Table card — solid panel (no backdrop-filter, so sticky columns work) */
.board-card {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  overflow: hidden;
}
/* Esconde a barra de rolagem horizontal de cada grupo — uma única barra
   compartilhada (.board-hscroll) rola todos os grupos juntos, estilo Monday. */
.board-card .table-responsive {
  border-radius: var(--radius);
  scrollbar-width: none;        /* Firefox */
  -ms-overflow-style: none;     /* IE/Edge legado */
}
.board-card .table-responsive::-webkit-scrollbar { height: 0; width: 0; display: none; }

/* Barra de rolagem horizontal única, fixada no rodapé da viewport */
.board-hscroll {
  position: sticky;
  bottom: 0;
  z-index: 6;
  height: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  background: var(--panel-bg);
  border-top: 1px solid var(--border);
  border-radius: 0 0 var(--radius) var(--radius);
}
.board-hscroll-inner { height: 1px; }

/* Standard data table — same look as the board table, for plain list pages */
.pf-table { width: 100%; border-collapse: separate; border-spacing: 0; color: var(--text); }
.pf-table thead th {
  text-transform: uppercase; letter-spacing: .03em; font-size: 12px; font-weight: 700;
  color: var(--muted); background: rgba(255,255,255,.03);
  padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--border);
}
.pf-table tbody td {
  padding: 14px 16px; border-bottom: 1px solid var(--border);
  vertical-align: middle; color: var(--text);
}
.pf-table tbody tr:last-child td { border-bottom: 0; }
.pf-table tbody tr:hover td { background: rgba(255,255,255,.04); }
.pf-table tbody tr.clickable { cursor: pointer; }

/* Table grid */
.board-table { border-collapse: separate; border-spacing: 0; min-width: 1080px; overflow: visible; }
.board-table th, .board-table td {
  padding: 6px 10px;
  border-bottom: 1px solid var(--border);
  border-right: 1px solid var(--border);
  vertical-align: middle;
}
.board-table th:last-child, .board-table td:last-child { border-right: 0; }
.board-table tbody tr:hover td { background: rgba(255,255,255,.04); }

/* All header texts centered */
.board-table thead th { text-align: center; }

.group-summary-row th {
  border-bottom: 0; padding: 10px;
  background: rgba(255,255,255,.02);
}
.group-col-row th {
  font-size: 12px; text-transform: uppercase; letter-spacing: .03em;
  color: var(--muted); font-weight: 700; padding: 9px 10px;
  background: rgba(255,255,255,.03);
}
.group-col-row th.sortable { cursor: pointer; user-select: none; white-space: nowrap; }
.group-col-row th.sortable:hover { color: var(--text); background: rgba(255,255,255,.06); }
.group-col-row th.sortable .sort-ind { margin-left: 6px; font-size: 11px; opacity: .35; transition: opacity .12s; }
.group-col-row th.sortable:hover .sort-ind { opacity: .7; }
.group-col-row th.sortable.sort-active { color: var(--text); }
.group-col-row th.sortable.sort-active .sort-ind { opacity: 1; color: var(--accent, #6ea8fe); }

/* Drag handle for row reordering (Monday-style) */
.drag-handle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; flex: 0 0 16px; color: var(--muted);
  cursor: grab; opacity: 0; transition: opacity .12s;
}
.board-row:hover .drag-handle { opacity: .55; }
.drag-handle:hover { opacity: 1 !important; color: var(--text); }
.drag-handle:active { cursor: grabbing; }
.board-row.dragging { opacity: .35; }

/* ===== Tempo real: presença + edição colaborativa ===== */
.board-presence { display: flex; align-items: center; gap: 8px; }
.board-presence .rt-dot { width: 9px; height: 9px; border-radius: 50%; background: #00c875; box-shadow: 0 0 0 0 rgba(0,200,117,.6); animation: rt-pulse 1.8s infinite; }
@keyframes rt-pulse { 0% { box-shadow: 0 0 0 0 rgba(0,200,117,.55); } 70% { box-shadow: 0 0 0 7px rgba(0,200,117,0); } 100% { box-shadow: 0 0 0 0 rgba(0,200,117,0); } }
.board-presence .rt-stack { display: flex; }
.board-presence .rt-stack > * { margin-left: -8px; }
.board-presence .rt-stack > *:first-child { margin-left: 0; }
.board-presence .rt-count { font-size: 12px; color: var(--muted); font-weight: 600; }
.rt-ava { border-radius: 50%; border: 2px solid var(--panel-bg); object-fit: cover; display: inline-block; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.rt-ava-txt { display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; font-size: 11px; }
.rt-more { background: var(--panel-bg-2) !important; color: var(--text) !important; border-color: var(--border) !important; }

/* Célula sendo editada por outra pessoa (cursor colaborativo) */
.board-table td.rt-cell { position: relative; box-shadow: inset 0 0 0 2px var(--rt, #6ea8fe) !important; border-radius: 4px; }
.rt-cell-tag {
  position: absolute; top: -9px; left: 8px; z-index: 6;
  font-size: 10px; font-weight: 700; line-height: 1.4; color: #fff;
  background: var(--rt, #6ea8fe); padding: 0 6px; border-radius: 6px;
  white-space: nowrap; pointer-events: none; box-shadow: 0 2px 6px rgba(0,0,0,.25);
}

/* Cursores ao vivo (com foto) */
.rt-cursor { position: absolute; top: 0; left: 0; z-index: 5000; pointer-events: none; transition: transform .08s linear; will-change: transform; }
.rt-cur-ptr { display: block; filter: drop-shadow(0 1px 2px rgba(0,0,0,.35)); }
.rt-cur-tag { position: absolute; top: 14px; left: 12px; display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 2px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 700; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.3); }
.rt-cur-tag img { width: 18px; height: 18px; border-radius: 50%; object-fit: cover; border: 1px solid rgba(255,255,255,.7); }
.rt-cur-tag i { width: 18px; height: 18px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: rgba(255,255,255,.25); font-style: normal; font-size: 9px; }
.rt-cur-tag b { font-weight: 700; }

/* "Digitando…" nos comentários */
.rt-typing { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12.5px; font-style: italic; margin: 4px 2px 0; }
.rt-typing[hidden] { display: none; }
.rt-typing-dots { display: inline-flex; gap: 3px; }
.rt-typing-dots i { width: 5px; height: 5px; border-radius: 50%; background: var(--primary-color); display: inline-block; animation: rt-typing-b 1.2s infinite ease-in-out; }
.rt-typing-dots i:nth-child(2) { animation-delay: .2s; }
.rt-typing-dots i:nth-child(3) { animation-delay: .4s; }
@keyframes rt-typing-b { 0%, 60%, 100% { opacity: .25; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }

/* ===================== Perfil ===================== */
.profile-hero { position: relative; overflow: hidden; padding: 0 0 18px; border-radius: 18px; }
.profile-hero-cover {
  height: 92px; margin-bottom: 14px;
  background: linear-gradient(120deg, var(--accent), #3455ff 70%, #8753de);
  opacity: .85;
}
.profile-hero-body { display: flex; align-items: flex-end; gap: 18px; padding: 0 22px; }
.profile-hero-avatar {
  display: inline-flex; line-height: 0; margin-top: -56px;
  border-radius: 50%; padding: 4px; background: var(--panel-bg); box-shadow: 0 6px 18px rgba(0,0,0,.35);
}
.profile-hero-info { min-width: 0; }
.profile-hero-info h3 { font-weight: 800; }
.profile-hero-headline { color: var(--accent); font-weight: 600; font-size: 14px; }
.profile-hero-chips { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 6px; color: var(--muted); font-size: 13px; }
.profile-hero-chips span, .profile-hero-chips a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.profile-hero-chips a:hover { color: var(--text); }

/* Tabs */
.nav.profile-tabs { list-style: none; padding: 0; display: flex; gap: 8px; border: 0; }
.profile-tab {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--panel-bg-2); border: 1px solid var(--border); color: var(--muted);
  padding: 10px 16px; border-radius: 12px; font-weight: 600; font-size: 14px; cursor: pointer;
  transition: all .15s ease;
}
.profile-tab:hover { color: var(--text); }
.profile-tab.active { background: var(--primary-gradient); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(0,216,216,.28); }

/* Consent / GitHub connect */
.gh-mark { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 22px; color: var(--text); background: var(--panel-bg-2); border: 1px solid var(--border); }
.consent-row { display: flex; gap: 10px; align-items: flex-start; color: var(--muted); font-size: 13.5px; margin-top: 6px; cursor: pointer; }
.consent-row input { margin-top: 2px; }
.gh-privacy { margin-top: 10px; font-size: 12.5px; color: var(--muted); background: rgba(255,255,255,.03); border: 1px solid var(--border); border-radius: 10px; padding: 10px 12px; }

/* GitHub panel */
.gh-header { display: flex; align-items: flex-start; gap: 16px; }
.gh-avatar { width: 72px; height: 72px; border-radius: 50%; border: 2px solid var(--border); }
.gh-id { flex: 1; min-width: 0; }
.gh-login { color: var(--accent, #6ea8fe); text-decoration: none; font-weight: 600; }
.gh-bio { color: var(--muted); margin: 6px 0 0; font-size: 13.5px; }
.gh-actions { display: flex; gap: 8px; align-items: center; }
.gh-actions form { margin: 0; }

.gh-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 18px 0; }
@media (max-width: 680px) { .gh-stats { grid-template-columns: repeat(2, 1fr); } }
.gh-stat { background: var(--panel-bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px; text-align: center; }
.gh-stat b { display: block; font-size: 20px; font-weight: 800; color: var(--text); }
.gh-stat span { font-size: 12px; color: var(--muted); }

.gh-meta { display: flex; flex-wrap: wrap; gap: 16px; color: var(--muted); font-size: 13px; margin-bottom: 8px; }
.gh-meta span, .gh-meta a { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; }
.gh-meta a:hover { color: var(--text); }

.gh-section-title { font-weight: 700; margin: 18px 0 10px; color: var(--text); }
.gh-langbar { display: flex; height: 10px; border-radius: 6px; overflow: hidden; background: var(--panel-bg-2); }
.gh-langbar span { height: 100%; }
.gh-langchips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.gh-langchip { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--muted); background: var(--panel-bg-2); border: 1px solid var(--border); padding: 4px 10px; border-radius: 999px; }
.gh-langchip i { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.gh-langchip b { color: var(--text); }

.gh-repos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (max-width: 680px) { .gh-repos { grid-template-columns: 1fr; } }
.gh-repo { display: block; background: var(--panel-bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 14px; text-decoration: none; transition: all .15s ease; }
.gh-repo:hover { border-color: var(--accent, #6ea8fe); transform: translateY(-2px); }
.gh-repo-name { font-weight: 700; color: var(--text); display: flex; align-items: center; gap: 8px; }
.gh-repo-desc { color: var(--muted); font-size: 12.5px; margin-top: 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gh-repo-foot { display: flex; gap: 14px; margin-top: 10px; color: var(--muted); font-size: 12px; }
.gh-repo-foot span { display: inline-flex; align-items: center; gap: 5px; }
.gh-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.gh-synced { color: var(--muted); font-size: 12px; margin-top: 16px; text-align: right; }

/* Calendário de contribuições */
.gh-cal-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin: 18px 0 10px; }
.gh-year-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.gh-year {
  background: var(--panel-bg-2); border: 1px solid var(--border); color: var(--muted);
  font-weight: 600; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; cursor: pointer; transition: all .15s ease;
}
.gh-year:hover { color: var(--text); }
.gh-year.active { background: var(--primary-gradient); color: #fff; border-color: transparent; }

.gh-cal-card { background: var(--panel-bg-2); border: 1px solid var(--border); border-radius: 14px; padding: 16px; }
.gh-cal-wrap { overflow-x: auto; padding-bottom: 4px; }
.gh-cal-grid { display: inline-grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; gap: 4px 6px; }
.gh-cal-months { grid-column: 2; grid-row: 1; display: grid; grid-auto-rows: 14px; align-items: center; position: relative; }
.gh-cal-months { grid-template-columns: repeat(60, 14px); }
.gh-cal-months span { grid-row: 1; font-size: 10.5px; color: var(--muted); }
.gh-cal-wdays { grid-column: 1; grid-row: 2; display: flex; flex-direction: column; gap: 3px; justify-content: space-between; padding-right: 2px; }
.gh-cal-wdays span { height: 11px; font-size: 9.5px; line-height: 11px; color: var(--muted); }
.gh-cal { grid-column: 2; grid-row: 2; display: inline-flex; gap: 3px; }
.gh-cal-col { display: flex; flex-direction: column; gap: 3px; }
.gh-cal-cell { width: 11px; height: 11px; border-radius: 3px; background: rgba(255,255,255,.07); outline: 1px solid rgba(255,255,255,.04); outline-offset: -1px; }
.gh-cal-cell[data-level="x"] { visibility: hidden; }
.gh-cal-cell[data-level="0"] { background: rgba(255,255,255,.07); }
.gh-cal-cell[data-level="1"] { background: color-mix(in srgb, var(--accent, #00d8d8) 32%, transparent); }
.gh-cal-cell[data-level="2"] { background: color-mix(in srgb, var(--accent, #00d8d8) 56%, transparent); }
.gh-cal-cell[data-level="3"] { background: color-mix(in srgb, var(--accent, #00d8d8) 80%, transparent); }
.gh-cal-cell[data-level="4"] { background: var(--accent, #00d8d8); }
.gh-cal-legend { display: flex; align-items: center; gap: 4px; margin-top: 10px; color: var(--muted); font-size: 11px; }
.gh-cal-legend i { width: 11px; height: 11px; border-radius: 3px; display: inline-block; }
.gh-cal-legend i[data-level="0"] { background: rgba(255,255,255,.07); }
.gh-cal-legend i[data-level="1"] { background: color-mix(in srgb, var(--accent, #00d8d8) 32%, transparent); }
.gh-cal-legend i[data-level="2"] { background: color-mix(in srgb, var(--accent, #00d8d8) 56%, transparent); }
.gh-cal-legend i[data-level="3"] { background: color-mix(in srgb, var(--accent, #00d8d8) 80%, transparent); }
.gh-cal-legend i[data-level="4"] { background: var(--accent, #00d8d8); }
.gh-langchip-sub { color: var(--muted); opacity: .7; font-weight: 400; margin-left: 2px; }

/* Estatísticas de contribuição */
.gh-cstats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 880px) { .gh-cstats { grid-template-columns: repeat(2, 1fr); } }
.gh-cstat { display: flex; align-items: center; gap: 12px; background: var(--panel-bg-2); border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.gh-cstat-ic { width: 38px; height: 38px; flex: 0 0 38px; border-radius: 10px; display: grid; place-items: center; font-size: 16px; color: #fff; background: var(--primary-gradient); }
.gh-cstat b { display: block; font-size: 19px; font-weight: 800; color: var(--text); line-height: 1.1; }
.gh-cstat span { font-size: 11.5px; color: var(--muted); }

/* Organizações */
.gh-orgs { display: flex; flex-wrap: wrap; gap: 10px; }
.gh-orgs a { display: inline-block; }
.gh-orgs img { width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--border); transition: transform .15s ease; }
.gh-orgs a:hover img { transform: translateY(-2px); border-color: var(--accent, #6ea8fe); }

/* Accent picker */
.accent-pick { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.accent-pick input[type=color] { width: 42px; height: 34px; padding: 0; border: 1px solid var(--border); border-radius: 8px; background: none; cursor: pointer; }
.accent-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid rgba(255,255,255,.25); cursor: pointer; }
.accent-swatch:hover { transform: scale(1.12); }

/* ===== Tela de carregamento (transições de página) ===== */
.app-loader {
  position: fixed; inset: 0; z-index: 99999;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px;
  background: radial-gradient(ellipse at center, rgba(10,18,34,.84), rgba(6,11,20,.94));
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  opacity: 1; transition: opacity .35s ease, visibility .35s ease;
}
.app-loader.hidden { opacity: 0; visibility: hidden; pointer-events: none; }
/* Variante clara (tema branco) */
body.light-mode .app-loader {
  background: radial-gradient(ellipse at center, rgba(244,248,255,.45), rgba(237,245,255,.62));
}
body.light-mode .app-loader-core .ring { filter: drop-shadow(0 0 9px color-mix(in srgb, var(--primary-color, #00d8d8) 30%, transparent)); }
body.light-mode .app-loader-core .logo i { filter: drop-shadow(0 0 8px color-mix(in srgb, var(--primary-color, #00d8d8) 35%, transparent)); }

.app-loader-core { position: relative; width: 112px; height: 112px; }
.app-loader-core .ring {
  position: absolute; inset: 0; border-radius: 50%;
  background: conic-gradient(from 90deg,
    transparent 0 8%,
    color-mix(in srgb, var(--primary-color, #00d8d8) 50%, #ffffff) 28%,
    var(--primary-color, #00d8d8) 55%,
    color-mix(in srgb, var(--primary-color, #00d8d8) 72%, #000000) 82%,
    transparent 95% 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 calc(100% - 7px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 8px), #000 calc(100% - 7px));
  animation: pf-spin 1.1s linear infinite;
  filter: drop-shadow(0 0 9px color-mix(in srgb, var(--primary-color, #00d8d8) 45%, transparent));
}
.app-loader-core .ring.r2 {
  inset: 16px;
  background: conic-gradient(from 270deg,
    transparent 0 22%,
    color-mix(in srgb, var(--primary-color, #00d8d8) 85%, #ffffff) 46%,
    var(--primary-color, #00d8d8) 72%,
    transparent 92% 100%);
  -webkit-mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
          mask: radial-gradient(farthest-side, #0000 calc(100% - 5px), #000 calc(100% - 4px));
  animation: pf-spin 1.7s linear infinite reverse;
  filter: none;
}
.app-loader-core .logo {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-size: 30px; animation: pf-pulse 1.6s ease-in-out infinite;
}
.app-loader-core .logo i {
  background: var(--primary-gradient); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 10px color-mix(in srgb, var(--primary-color, #00d8d8) 50%, transparent));
}
.app-loader-title { font-weight: 800; font-size: 20px; letter-spacing: .5px; color: var(--text); }
.app-loader-sub { color: var(--muted); font-size: 13px; margin-top: -10px; letter-spacing: .4px; }
.app-loader-sub::after { content: ''; display: inline-block; width: 1.2em; text-align: left; animation: pf-dots 1.4s steps(1,end) infinite; }

@keyframes pf-spin { to { transform: rotate(360deg); } }
@keyframes pf-pulse { 0%, 100% { transform: scale(1); opacity: .9; } 50% { transform: scale(1.12); opacity: 1; } }
@keyframes pf-dots { 0% { content: ''; } 25% { content: '.'; } 50% { content: '..'; } 75% { content: '...'; } }

@media (prefers-reduced-motion: reduce) {
  .app-loader-core .ring, .app-loader-core .logo, .app-loader-sub::after { animation-duration: 2.4s; }
}

/* Nome do projeto em destaque no card do board (listagem /boards) */
.board-project-name {
  font-weight: 700; font-size: 14px; color: var(--text);
  background: var(--panel-bg-2); border: 1px solid var(--border);
  padding: 5px 12px; border-radius: 999px;
  max-width: 200px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.board-project-name i { color: var(--primary-color); opacity: .9; }

/* Minhas Tarefas: alvo de drop por prazo */
.bucket-drop-hint {
  border: 1.5px dashed var(--border); border-radius: 12px;
  padding: 14px; text-align: center; color: var(--muted);
  font-size: 13px; background: rgba(255,255,255,.02);
}
.board-group.drop-hover { outline: 2px dashed var(--accent, #6ea8fe); outline-offset: 3px; border-radius: 12px; }
.board-group.drop-hover .bucket-drop-hint { color: var(--text); border-color: var(--accent, #6ea8fe); background: rgba(110,168,254,.08); }

/* Confirmation modal */
.confirm-icon {
  width: 64px; height: 64px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: rgba(239, 68, 68, .14); color: #ef4444; font-size: 26px;
}
.btn-danger-gradient {
  background: linear-gradient(135deg, #ef4444, #dc2626) !important;
  border: 0; color: #fff;
}
.btn-danger-gradient:hover { filter: brightness(1.08); }

/* Frozen first columns (checkbox + Tarefa) on horizontal scroll */
.board-table th:nth-child(1), .board-table td:nth-child(1),
.board-table th:nth-child(2), .board-table td:nth-child(2) {
  position: sticky; z-index: 2; background: var(--cell-solid);
}
.board-table th:nth-child(1), .board-table td:nth-child(1) { left: 0; }
.board-table th:nth-child(2), .board-table td:nth-child(2) { left: 42px; }
.board-table thead th:nth-child(1), .board-table thead th:nth-child(2) { z-index: 4; }
.board-table tbody tr:hover td:nth-child(1),
.board-table tbody tr:hover td:nth-child(2) { background: var(--cell-solid); }
.board-table td:nth-child(2)::after {
  content: ''; position: absolute; top: 0; right: 0; bottom: 0; width: 6px;
  box-shadow: 6px 0 8px -6px rgba(0,0,0,.4); pointer-events: none;
}

/* Summary distribution bar */
.summary-bar {
  display: flex; height: 16px; width: 100%;
  border-radius: 5px; overflow: hidden;
  background: rgba(255,255,255,.06);
}
.summary-bar > span { height: 100%; }
.summary-empty { color: var(--muted); font-weight: 700; padding-left: 2px; line-height: 16px; }

/* Cells — fixed row height so editable blocks can fill the whole cell */
.board-table tbody td { height: 48px; padding: 0; }
.board-table tbody td.cell-name { padding: 0 6px; }
.cell-check { text-align: center; width: 42px; }
/* Keep header (group) and row checkboxes the same size despite different font-size contexts */
.board-table .form-check-input { width: 16px; height: 16px; margin-top: 0; vertical-align: middle; }
.cell-pad { padding: 0 !important; }

.cell-title {
  width: 100%; background: transparent; border: 1px solid transparent;
  color: var(--text); border-radius: 8px; padding: 8px 9px;
  font-weight: 600; outline: none;
}
.cell-title:hover { border-color: var(--border); }
.cell-title:focus { border-color: rgba(0,216,216,.5); background: rgba(255,255,255,.06); }

/* Colored selects (status / type / priority) — rounded chip centered in a neutral cell */
.cell-pad:has(> .cell-color) { text-align: center; }
.cell-color {
  display: inline-block;
  width: auto; max-width: calc(100% - 12px); height: auto; min-height: 0;
  margin: 0; vertical-align: middle;
  border: 0; outline: none; cursor: pointer;
  color: #fff; font-weight: 700; font-size: 12.5px;
  text-align: center; text-align-last: center;
  padding: 6px 16px; border-radius: 999px;
  appearance: none; -webkit-appearance: none; -moz-appearance: none;
  transition: filter .15s ease, box-shadow .15s ease;
}
.cell-color:hover { box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, #61708a) 35%, transparent); }
.cell-color:focus { box-shadow: 0 0 0 2px rgba(255,255,255,.45); }
.cell-color option { color: #111; background: #fff; font-weight: 600; text-align: left; }

/* Monday-style option picker popover (type / status / priority) */
.cell-opt-pop { position: fixed; z-index: 3000; padding: 12px; min-width: 264px; max-width: min(92vw, 360px); }
.cell-opt-pop[hidden] { display: none; }
.cell-opt-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cell-opt {
  border: 0; border-radius: 8px; padding: 10px 12px;
  color: #fff; font-weight: 700; font-size: 12.5px; line-height: 1.15;
  cursor: pointer; text-align: center; min-height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: box-shadow .15s ease, filter .15s ease, transform .1s ease;
}
.cell-opt:hover { filter: brightness(1.06); box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #000) 38%, transparent); }
.cell-opt:active { transform: scale(.97); }
.cell-opt.is-current { box-shadow: 0 0 0 2px var(--text), 0 0 0 5px color-mix(in srgb, var(--c, #000) 30%, transparent); }
/* Footer "Editar etiquetas" no menu de opções */
.cell-opt-foot { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--border); }
.cell-opt-edit {
  width: 100%; display: flex; align-items: center; gap: 8px; justify-content: center;
  background: transparent; border: 0; color: var(--muted); cursor: pointer;
  font-weight: 600; font-size: 12.5px; padding: 6px; border-radius: 8px;
}
.cell-opt-edit:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* Editor de etiquetas */
.labels-list { display: flex; flex-direction: column; gap: 8px; }
.label-row { display: flex; align-items: center; gap: 8px; background: var(--panel-bg-2); border: 1px solid var(--border); border-radius: 10px; padding: 6px 8px; }
.label-row .lbl-grip { color: var(--muted); cursor: grab; padding: 0 2px; }
.label-row.dragging { opacity: .4; }
.label-row .lbl-color { width: 30px; height: 30px; padding: 0; border: 0; background: none; border-radius: 8px; cursor: pointer; flex: 0 0 30px; }
.label-row .lbl-color::-webkit-color-swatch { border: 0; border-radius: 8px; }
.label-row .lbl-color::-webkit-color-swatch-wrapper { padding: 0; }
.label-row .lbl-name { flex: 1; background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 8px; padding: 6px 8px; outline: none; }
.label-row .lbl-name:focus { border-color: rgba(0,216,216,.5); background: rgba(255,255,255,.05); }
.label-row .lbl-del { color: var(--muted); }
.label-row .lbl-del:hover { color: var(--danger-color, #e2445c); }

/* Solid status pill — mirrors the Monday-style status colour used in the board/backlog. */
.status-pill {
  display: inline-block; min-width: 120px;
  padding: 7px 14px; border-radius: 6px;
  color: #fff; font-weight: 700; font-size: .82rem;
  text-align: center; line-height: 1.2;
}
/* Compact variant for count chips (no fixed min-width). */
.status-pill.status-pill--sm { min-width: 0; padding: 5px 11px; font-size: .78rem; }

/* Person cell — fills the cell, avatar + editable select */
.person-cell { display: flex; align-items: center; gap: 8px; height: 100%; padding: 0 8px; }
.person-select {
  flex: 1; height: 100%; background: transparent; border: 1px solid transparent;
  color: var(--text); border-radius: 8px; padding: 6px; outline: none; cursor: pointer;
}
.person-select:hover { border-color: var(--border); }
.person-select:focus { border-color: rgba(0,216,216,.5); }
.person-select option { color: #111; }

/* Generic full-cell editable select (sprint) */
.cell-select-full {
  width: 100%; height: 100%; min-height: 48px;
  background: transparent; border: 1px solid transparent; color: var(--text);
  padding: 0 10px; outline: none; cursor: pointer;
}
.cell-select-full:hover { border-color: var(--border); background: rgba(255,255,255,.04); }
.cell-select-full:focus { border-color: rgba(0,216,216,.5); }
.cell-select-full option { color: #111; }
.cell-select-full.sprint-empty { color: var(--muted); font-style: italic; }

/* Date range cell — fills the whole cell; click opens a start/end editor */
.cell-date { padding: 0 !important; position: relative; }
.date-range {
  display: flex; align-items: center; gap: 8px;
  width: 100%; height: 100%; min-height: 48px;
  padding: 0 12px; cursor: pointer; color: var(--muted);
  background: transparent; border: 0; text-align: left;
}
.date-range:hover { background: rgba(255,255,255,.05); }
.date-range.has-date { color: var(--text); }
.date-range.due-soon { color: #ffcb00; background: rgba(255,203,0,.12); }
.date-range.due-soon i { color: #ffcb00; }
.date-range.overdue { color: #ff6b66; background: rgba(255,91,87,.12); }
.date-range.overdue i { color: #ff6b66; }
.date-range-label { font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Date range picker (Monday-style) */
.date-pop {
  /* position: fixed + posicionamento via JS para o popover escapar do overflow
     da tabela/card (.table-responsive) e nunca ficar recortado. */
  position: fixed; z-index: 1080; width: 300px;
  max-height: calc(100vh - 24px); overflow-y: auto;
  background: var(--cell-solid); border: 1px solid var(--border); border-radius: 14px;
  padding: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.35);
}
.dp-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.dp-title { font-weight: 800; font-size: 16px; }
.dp-count { font-size: 12px; color: var(--muted); }
.dp-inputs { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.dp-inputs span { color: var(--muted); }
.dp-input {
  flex: 1; width: 100%; height: 38px; padding: 0 10px;
  border-radius: 9px; border: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--text); outline: none;
}
.dp-input:focus { border-color: rgba(0,216,216,.5); }
.dp-nav { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dp-month, .dp-year {
  height: 34px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--text); padding: 0 8px; cursor: pointer; outline: none;
}
.dp-month { flex: 1; } .dp-year { width: 90px; }
.dp-month option, .dp-year option { color: #111; }
.dp-arrows { margin-left: auto; display: flex; gap: 6px; }
.dp-prev, .dp-next {
  width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border);
  background: rgba(255,255,255,.05); color: var(--text); cursor: pointer; font-size: 16px; line-height: 1;
}
.dp-prev:hover, .dp-next:hover { border-color: rgba(0,216,216,.5); }
.dp-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dp-weekdays span { text-align: center; font-size: 11px; color: var(--muted); padding: 4px 0; text-transform: lowercase; }
.dp-day {
  height: 34px; border: 0; background: transparent; color: var(--text);
  cursor: pointer; border-radius: 8px; font-size: 13px;
}
.dp-day:hover { background: rgba(0,216,216,.18); }
.dp-day.dp-out { color: var(--muted); opacity: .5; }
.dp-day.dp-today { font-weight: 800; box-shadow: inset 0 -2px 0 var(--primary-color); }
.dp-day.dp-inrange { background: rgba(73,166,255,.22); border-radius: 0; }
.dp-day.dp-start, .dp-day.dp-end { background: #2f80ed; color: #fff; }
.dp-day.dp-start { border-radius: 8px 0 0 8px; }
.dp-day.dp-end { border-radius: 0 8px 8px 0; }
.dp-day.dp-start.dp-end { border-radius: 8px; }
.dp-actions { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.dp-clear, .dp-apply { height: 38px; border-radius: 10px; cursor: pointer; font-weight: 600; padding: 0 16px; border: 1px solid var(--border); }
.dp-clear { background: transparent; color: var(--muted); }
.dp-apply { background: var(--primary-gradient); color: #fff; border: 0; flex: 1; }

/* Comment bubble */
.bubble {
  display: inline-flex; align-items: center; gap: 4px;
  background: rgba(255,255,255,.06); border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 9px; color: var(--muted);
  font-size: 12px; cursor: pointer; flex-shrink: 0;
}
.bubble:hover { color: var(--text); border-color: rgba(0,216,216,.4); }

/* Quick add row */
.quick-add-row td { border-bottom: 0; padding: 10px; }
.quick-add-input { font-weight: 500; color: var(--muted); }
.quick-add-input:focus { color: var(--text); }

/* Selected rows + bulk bar */
.board-row.selected td { background: rgba(0,216,216,.10) !important; }
.bulk-bar {
  position: sticky; top: 84px; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 10px 16px; margin-bottom: 14px;
}

@media (max-width: 991px) {
  .sidebar { transform: translateX(-100%); }
  .sidebar.show { transform: translateX(0); }
  .main, .main.collapsed { margin-left: 0; }
  .topbar { padding: 12px 16px; }
  .content { padding: 18px 14px; }
  .search-box { display: none; }
  .page-title { font-size: 27px; }
  .user-text { display: none; }
  .kanban-col { min-height: 480px; }
}

/* =========================================================
   Cards de gráfico (padrão glasmórfico do dashboard)
   ========================================================= */
.chart-card {
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin-bottom: 0;
  transition: box-shadow .25s ease;
}
/* Sem deslocamento no hover — o card não "pula". Apenas realce sutil. */
.chart-card:hover { box-shadow: 0 22px 70px rgba(0,0,0,.30); }

.chart-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 15px 20px;
  border-bottom: 1px solid var(--border);
}
.chart-card-header h5 {
  margin: 0;
  font-size: 16px;
  font-weight: 750;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 10px;
}
.chart-card-header h5 i {
  font-size: 18px;
  color: var(--muted);
}

.chart-card-tools { display: flex; gap: 8px; }
.chart-tool-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--panel-bg-2);
  color: var(--muted);
  cursor: pointer;
  display: grid;
  place-items: center;
  font-size: 13px;
  transition: all .25s ease;
}
.chart-tool-btn:hover {
  color: var(--text);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0,0,0,.25);
}

.chart-card-body { padding: 18px 20px; flex: 1 1 auto; }
.chart-container { position: relative; width: 100%; height: 300px; }

/* Estado expandido (botão de expandir) */
.chart-expand-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.55);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1999;
  display: none;
}
.chart-expand-backdrop.show { display: block; }
.chart-card.expanded {
  position: fixed;
  inset: 4vh 4vw;
  z-index: 2000;
  margin: 0;
  box-shadow: 0 30px 90px rgba(0,0,0,.55);
}
.chart-card.expanded .chart-container { height: calc(92vh - 64px) !important; }

.finance-kpi-grid .stat-card {
  min-height: 100%;
}

.finance-kpi-grid .stat-label {
  font-size: 1rem;
  line-height: 1.3;
}

.finance-kpi-grid .stat-value {
  font-size: clamp(2rem, 1.65rem + 0.7vw, 2.75rem);
  line-height: 1.05;
}

@media (min-width: 1700px) {
  .finance-kpi-col {
    flex: 0 0 auto;
    width: 25%;
  }
}

@media (max-width: 575px) {
  .chart-card-header h5 { font-size: 15px; }
  .chart-card-body { padding: 14px; }
}

/* ---- Épicos ---- */
.epic-card {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  border-left: 4px solid var(--epic-color, #8753de);
  transition: transform .18s ease, box-shadow .18s ease;
}
.epic-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 24px 70px rgba(0,0,0,.34);
}
/* Brilho radial sutil na cor do épico (canto superior direito) */
.epic-card::after {
  content: "";
  position: absolute;
  top: 0; right: 0;
  width: 190px; height: 190px;
  background: radial-gradient(circle at top right, var(--epic-color, #8753de), transparent 68%);
  opacity: .12;
  pointer-events: none;
}
.epic-card > * { position: relative; z-index: 1; }

.epic-chip {
  width: 46px; height: 46px;
  border-radius: 14px;
  display: grid; place-items: center;
  flex-shrink: 0;
  color: #fff; font-size: 19px;
  background: var(--epic-color, #8753de);
  box-shadow: 0 10px 24px -8px var(--epic-color, #8753de);
}
.epic-title { font-size: 18px; font-weight: 750; margin: 0; line-height: 1.2; }
.epic-board { color: var(--muted); font-size: 12.5px; margin: 3px 0 0; }

.epic-open {
  color: var(--muted);
  font-size: 15px;
  transition: color .18s ease, transform .18s ease;
}
.epic-card:hover .epic-open { color: var(--text); transform: translateX(3px); }

.epic-pct { font-size: 13px; font-weight: 700; color: var(--text); }

.epic-bar {
  display: flex;
  height: 8px;
  border-radius: 6px;
  overflow: hidden;
  background: rgba(255,255,255,.06);
}

.epic-metrics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}
.epic-metric {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
}
.epic-metric small { color: var(--muted); font-weight: 600; }
.epic-metric i { font-size: 12px; }

/* ===== Gestor Global ============================================= */
/* Barra de personificação ativa */
.impersonation-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px; padding: 12px 18px; border-radius: 14px;
  background: linear-gradient(135deg, rgba(135,83,222,.18), rgba(135,83,222,.08));
  border: 1px solid rgba(135,83,222,.45);
  color: var(--text);
}
.impersonation-bar .imp-text { font-weight: 600; }
.impersonation-bar .imp-text i { margin-right: 8px; color: #b58bff; }
.imp-stop-btn {
  border: 0; border-radius: 10px; padding: 8px 14px; cursor: pointer;
  font-weight: 700; color: #fff; background: #ff5b57; white-space: nowrap;
}
.imp-stop-btn:hover { filter: brightness(1.06); }

/* Cartões de estatística */
.gstats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; margin-bottom: 18px; }
.gstat { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 16px; }
.gstat-ic { font-size: 24px; }
.gstat-num { font-size: 24px; font-weight: 800; color: var(--text); line-height: 1; }
.gstat-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Botão de ação destrutiva (ex.: bloquear) */
.action-btn-danger { color: #ff8a86; border-color: rgba(255,91,87,.4); }
.action-btn-danger:hover { color: #fff; background: #ff5b57; border-color: #ff5b57; }

/* Campo de busca dentro do filtro (input no padrão dos selects) */
.gfilter-input { cursor: text; min-width: 220px; }
.gfilter-input::placeholder { color: var(--muted); font-weight: 500; }

/* Painel com respiro interno (diferente do .board-card, que é colado para tabelas) */
.gpanel {
  background: var(--panel-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 60px rgba(0,0,0,.24);
  padding: 18px 20px;
}

/* Log de personificações */
.glog { padding: 10px 0; border-bottom: 1px solid var(--border); }
.glog:last-child { border-bottom: 0; }
.glog-line { color: var(--text); font-size: 14px; }
.glog-meta { margin-top: 2px; }

/* ===== Loja de Temas ============================================= */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }

/* Card de administração (Gestor Global) */
.theme-admin-card { display: flex; flex-direction: column; gap: 0; padding: 0; overflow: hidden; }
.theme-admin-card .theme-swatch { height: 70px; width: 100%; }
.theme-admin-card .theme-admin-body { padding: 16px 18px; }

/* Card da loja (usuário/admin) */
.theme-store-card { padding: 0; overflow: hidden; }
.theme-store-card .theme-store-body { padding: 16px 18px; }

/* Mini prévia visual do tema */
.theme-preview {
  height: 96px; padding: 16px; display: flex; flex-direction: column; gap: 8px; justify-content: center;
  background: linear-gradient(135deg, color-mix(in srgb, var(--swatch) 80%, #fff), var(--swatch));
}
.theme-preview-dot { width: 22px; height: 22px; border-radius: 50%; background: rgba(255,255,255,.85); box-shadow: 0 2px 8px rgba(0,0,0,.2); }
.theme-preview-bar { height: 8px; border-radius: 999px; background: rgba(255,255,255,.6); width: 80%; }
.theme-preview-bar.w-50 { width: 50%; }

/* Editor de CSS do tema */
.theme-css { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 13px; }

/* Ajuda do editor de temas */
.theme-help { border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; background: var(--panel-bg-2); }
.theme-help summary { cursor: pointer; font-weight: 600; color: var(--text); }
.theme-help-body { margin-top: 10px; font-size: 13px; color: var(--muted); }
.theme-help-body code { color: var(--primary-color); background: color-mix(in srgb, var(--primary-color) 12%, transparent); padding: 0 4px; border-radius: 4px; }
.theme-help-pre { background: rgba(0,0,0,.3); border: 1px solid var(--border); border-radius: 8px; padding: 10px; font-size: 12px; color: var(--text); overflow-x: auto; }

/* Parâmetros do tema na Loja */
.theme-apply-form { display: flex; flex-direction: column; gap: 8px; }
.theme-param { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--muted); }
.theme-param input[type="color"] { width: 44px; height: 28px; padding: 0; border: 1px solid var(--border); border-radius: 6px; background: transparent; cursor: pointer; }

/* Parâmetro de tema do tipo texto/URL (ocupa a linha toda) */
.theme-param.theme-param-text { flex-direction: column; align-items: stretch; gap: 4px; }
.theme-param.theme-param-text input { width: 100%; }

/* Botão de favoritar na Loja de Temas */
.theme-store-card { position: relative; }
.theme-fav { position: absolute; top: 8px; right: 8px; z-index: 3; margin: 0; }
.theme-fav button {
  border: 0; cursor: pointer; width: 32px; height: 32px; border-radius: 50%;
  display: grid; place-items: center; font-size: 14px;
  background: rgba(0,0,0,.35); color: #fff;
  backdrop-filter: blur(4px); transition: transform .12s ease, background .15s ease;
}
.theme-fav button:hover { transform: scale(1.12); background: rgba(0,0,0,.5); }
.theme-fav.is-fav button { color: #ffd23f; }

/* Mini prévia do app dentro do card (topbar + sidebar + conteúdo) */
.theme-preview-app {
  --tpa-bg: #141a2a; --tpa-panel: rgba(255,255,255,.08); --tpa-line: rgba(255,255,255,.22);
  position: relative; height: 132px; background: var(--tpa-bg); overflow: hidden;
  display: flex; flex-direction: column;
}
.theme-preview-app.is-light { --tpa-bg: #f2f4f8; --tpa-panel: rgba(0,0,0,.07); --tpa-line: rgba(0,0,0,.18); }
.tpa-topbar { height: 22px; flex: 0 0 auto; display: flex; align-items: center; gap: 6px; padding: 0 10px; background: color-mix(in srgb, var(--swatch) 18%, var(--tpa-bg)); border-bottom: 1px solid var(--tpa-panel); }
.tpa-logo { width: 10px; height: 10px; border-radius: 3px; background: var(--swatch); }
.tpa-chip { height: 6px; width: 56px; border-radius: 999px; background: var(--tpa-line); }
.tpa-avatar { width: 10px; height: 10px; border-radius: 50%; background: var(--swatch); margin-left: auto; }
.tpa-body { display: flex; flex: 1; min-height: 0; }
.tpa-sidebar { width: 30px; flex: 0 0 auto; display: flex; flex-direction: column; gap: 6px; align-items: center; padding-top: 8px; background: color-mix(in srgb, var(--swatch) 8%, var(--tpa-bg)); border-right: 1px solid var(--tpa-panel); }
.tpa-sidebar span { width: 14px; height: 6px; border-radius: 3px; background: var(--tpa-line); }
.tpa-sidebar span.on { background: var(--swatch); }
.tpa-content { flex: 1; padding: 8px 10px; display: flex; flex-direction: column; gap: 6px; }
.tpa-title { height: 7px; width: 45%; border-radius: 999px; background: var(--tpa-line); }
.tpa-cards { display: flex; gap: 6px; }
.tpa-card { flex: 1; height: 26px; border-radius: 6px; background: var(--tpa-panel); border: 1px solid var(--tpa-panel); }
.tpa-card.on { background: color-mix(in srgb, var(--swatch) 30%, transparent); border-color: color-mix(in srgb, var(--swatch) 55%, transparent); }
.tpa-line { height: 5px; width: 85%; border-radius: 999px; background: var(--tpa-panel); }
.tpa-line.short { width: 55%; }

/* Pin do tema ativo sobre a prévia (não afeta a altura do card) */
.theme-active-pin {
  position: absolute; top: 8px; left: 8px; z-index: 3;
  display: inline-flex; align-items: center; gap: 0; height: 24px;
  padding: 0 7px; border-radius: 999px; color: #fff; font-size: 11px; font-weight: 600;
  box-shadow: 0 2px 8px rgba(0,0,0,.3); overflow: hidden; white-space: nowrap;
}
.theme-active-pin .tap-label { max-width: 0; opacity: 0; transition: max-width .2s ease, opacity .15s ease, margin .2s ease; }
.theme-active-pin:hover .tap-label { max-width: 90px; opacity: 1; margin-left: 5px; }

/* Botão "Experimentar" (pré-visualização ao vivo) sobre a mini prévia */
.tpa-try {
  position: absolute; right: 8px; bottom: 8px; border: 0; cursor: pointer;
  font-size: 11px; font-weight: 600; padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.45); color: #fff; backdrop-filter: blur(4px);
  opacity: 0; transform: translateY(4px); transition: opacity .15s ease, transform .15s ease, background .15s ease;
}
.theme-preview-app:hover .tpa-try, .tpa-try:focus-visible { opacity: 1; transform: translateY(0); }
.tpa-try:hover { background: var(--swatch); }
.tpa-try:disabled { opacity: .6; cursor: wait; }

/* Avaliação por estrelas (1 a 5) na Loja */
.theme-rating-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.theme-stars { display: inline-flex; flex-direction: row-reverse; gap: 1px; margin: 0; }
.theme-stars button { border: 0; background: transparent; cursor: pointer; padding: 1px; font-size: 14px; color: var(--muted); transition: transform .1s ease, color .1s ease; }
.theme-stars button.on { color: #ffd23f; }
.theme-stars button:hover, .theme-stars button:hover ~ button { color: #ffd23f; transform: none; }
.theme-stars button:hover { transform: scale(1.2); }
.theme-rating-avg { font-size: 13px; color: var(--text); display: inline-flex; align-items: center; gap: 4px; white-space: nowrap; }
.theme-rating-avg .fa-star { color: #ffd23f; font-size: 12px; }

/* "Personalizar": expande os parâmetros do tema mantendo os cards uniformes */
.theme-params-toggle {
  display: flex; align-items: center; gap: 6px; width: 100%;
  border: 1px solid var(--border); background: var(--panel-bg-2); color: var(--muted);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease;
}
.theme-params-toggle:hover { color: var(--text); border-color: var(--primary-color); }
.theme-params-chevron { font-size: 11px; transition: transform .2s ease; }
.theme-params-toggle[aria-expanded="true"] .theme-params-chevron { transform: rotate(180deg); }
.theme-params { display: flex; flex-direction: column; gap: 8px; }

/* Botão de reportar bug no card */
.theme-report-btn {
  border: 1px dashed var(--border); background: transparent; color: var(--muted);
  border-radius: 10px; padding: 7px 12px; font-size: 13px; cursor: pointer;
  transition: color .15s ease, border-color .15s ease, background .15s ease;
}
.theme-report-btn:hover { color: #ff8a86; border-color: rgba(255,91,87,.5); background: rgba(255,91,87,.08); }

/* Barra flutuante da pré-visualização ao vivo */
.theme-live-bar {
  position: fixed; left: 50%; bottom: 18px; transform: translateX(-50%); z-index: 1080;
  display: flex; align-items: center; gap: 10px; max-width: min(92vw, 560px);
  padding: 10px 16px; border-radius: 999px; border: 1px solid var(--border);
  background: var(--panel-bg); box-shadow: 0 12px 32px rgba(0,0,0,.35); backdrop-filter: blur(10px);
  font-size: 13px; color: var(--text);
}
.theme-live-bar > i { color: var(--primary-color); }
.theme-live-bar button {
  border: 0; cursor: pointer; border-radius: 999px; padding: 6px 12px; font-size: 12px; font-weight: 600;
  background: var(--primary-color); color: #fff; white-space: nowrap;
}
.theme-live-bar button:hover { filter: brightness(1.1); }

/* Painel de reportes de temas (Gestor Global) */
.report-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.report-stat { padding: 14px 16px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--panel-bg); }
.report-stat .num { font-size: 22px; font-weight: 800; line-height: 1; }
.report-stat .lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
.report-card { padding: 14px 16px; }
.report-card + .report-card { margin-top: 10px; }
.report-card .report-desc { white-space: pre-line; color: var(--text); font-size: 14px; }
.report-meta { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.report-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.report-actions select { max-width: 170px; }
.report-resolution { border-left: 3px solid var(--border); padding: 6px 10px; margin-top: 8px; font-size: 13px; color: var(--muted); background: var(--panel-bg-2); border-radius: 0 8px 8px 0; }

/* ===== Requisitos ===== */
/* Célula "Requisito" da tabela do board: select + botão de info */
.cell-requirement { padding: 0 !important; }
.req-cell { display: flex; align-items: center; height: 100%; min-height: 48px; }
.req-cell .req-select { flex: 1 1 auto; min-width: 0; }
.cell-select-full.req-empty { color: var(--muted); font-style: italic; }
.req-info {
  flex: 0 0 auto; width: 30px; height: 30px; margin-right: 6px;
  color: var(--muted);
}
.req-info:hover { color: var(--primary-color); }

/* Barra de progresso do requisito (listagem, detalhe e modal) */
.req-progress {
  position: relative; height: 8px; border-radius: 999px;
  background: var(--panel-bg-2); overflow: hidden; min-width: 60px;
}
.req-progress > span {
  display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--primary-color), #00c875);
  transition: width .3s ease;
}

/* Rótulos de metadados nas páginas de requisito */
.req-meta-label { font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 2px; }

/* Botão "N tarefas" na listagem */
button.badge-soft { border: 0; cursor: pointer; font: inherit; }
button.badge-soft:hover { filter: brightness(1.1); }

/* Linhas de tarefa no modal de tarefas vinculadas */
.req-task-row { padding: 8px 10px; border: 1px solid var(--border); border-radius: 10px; background: var(--panel-bg-2); }

/* Tabela de requisitos: usa a grade do board (.board-table) com colunas de
   largura fixa (colgroup) e a barra de rolagem horizontal única do board. */
.req-inline { min-width: 1936px; }
.req-inline .cell-title { font-weight: 500; }
.req-inline .cell-title.req-code { font-weight: 700; }
.req-inline textarea.req-desc {
  width: 100%; resize: none; overflow: hidden; line-height: 1.35;
  min-height: 36px; font-weight: 400;
}

/* Coluna Git/PR no board: selo e botão vincular */
.cell-git { white-space: nowrap; }
.git-selo {
  display: inline-flex; align-items: center; gap: 5px; max-width: 100%;
  padding: 3px 8px; border-radius: 999px; text-decoration: none;
  font-size: 11.5px; font-weight: 600; color: #fff; background: var(--gc, #61708a);
}
.git-selo i { font-size: 12px; }
.git-selo-state { background: rgba(0,0,0,.18); padding: 0 6px; border-radius: 999px; font-size: 10.5px; }
.git-selo-more { opacity: .85; font-size: 10.5px; }
.git-link-add {
  display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 8px;
  background: transparent; border: 1px dashed var(--border); color: var(--muted);
  font-size: 11.5px; cursor: pointer;
}
.git-link-add:hover { border-color: var(--primary-color); color: var(--primary-color); }

.git-webhook-box { border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; background: rgba(255,255,255,.03); }

/* Lista de vínculos Git na página do projeto */
.git-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.git-row:last-child { border-bottom: 0; }
.git-row-type { font-size: 10px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 5px; padding: 2px 6px; min-width: 56px; text-align: center; }
.git-row-title { color: var(--text); text-decoration: none; font-weight: 500; max-width: 360px; }
.git-row-title:hover { color: var(--primary-color); }

/* Painel "Repositório ao vivo" */
.git-ov-meta { margin-bottom: 14px; }
.git-ov-desc { color: var(--text); margin-bottom: 8px; }
.git-ov-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.git-ov-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 860px) { .git-ov-grid { grid-template-columns: 1fr; } }
.git-ov-h { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin-bottom: 8px; display: flex; align-items: center; gap: 6px; }
.git-ov-count { background: rgba(255,255,255,.06); border-radius: 999px; padding: 0 8px; font-size: 11px; font-weight: 600; }
.git-ov-item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 4px 8px; padding: 7px 0; border-bottom: 1px solid var(--border); text-decoration: none; }
.git-ov-item:last-child { border-bottom: 0; }
.git-ov-num { font-size: 11px; font-weight: 700; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.git-ov-title { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-ov-item:hover .git-ov-title { color: var(--primary-color); }
.git-ov-sub { grid-column: 2; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-ov-empty { color: var(--muted); font-size: 13px; margin: 0; padding: 4px 0; }
.git-ov-branches { display: flex; flex-wrap: wrap; gap: 6px; }
.git-ov-branch { font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; color: var(--text); background: rgba(255,255,255,.05); border: 1px solid var(--border); border-radius: 6px; padding: 2px 8px; }

/* Modal de seleção de PR/branch (board) */
.git-pick-search-wrap { position: relative; }
.git-pick-search-wrap i { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 13px; pointer-events: none; }
.git-pick-search-wrap .form-control { padding-left: 34px; }
.git-pick-list { max-height: 300px; overflow-y: auto; margin: 0 -4px; }
.git-pick-h { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 10px 4px 4px; }
.git-pick-item { display: grid; grid-template-columns: auto 1fr; align-items: baseline; gap: 2px 8px; width: 100%; text-align: left; background: none; border: 0; border-radius: 8px; padding: 8px 10px; cursor: pointer; }
.git-pick-item:hover { background: color-mix(in srgb, var(--primary-color) 10%, transparent); }
.git-pick-num { font-size: 11px; font-weight: 700; color: var(--muted); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.git-pick-title { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-pick-sub { grid-column: 2; font-size: 11.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.git-pick-divider { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin: 14px 0 12px; }
.git-pick-divider::before, .git-pick-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }

/* Botão de gerenciar vínculo na célula do board */
.git-cell-wrap { display: inline-flex; align-items: center; gap: 4px; }
.git-link-manage { background: none; border: 0; color: var(--muted); cursor: pointer; width: 22px; height: 22px; border-radius: 6px; opacity: 0; transition: opacity .12s ease, color .12s ease; font-size: 11px; }
.git-link-manage:hover { color: var(--primary-color); background: rgba(255,255,255,.06); }
.board-row:hover .git-link-manage, .board-subrow:hover .git-link-manage { opacity: 1; }

/* Vínculos atuais no modal */
.git-cur-item { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid var(--border); }
.git-cur-item:last-child { border-bottom: 0; }
.git-cur-type { font-size: 10px; font-weight: 700; color: var(--muted); background: rgba(255,255,255,.06); border-radius: 5px; padding: 2px 6px; min-width: 48px; text-align: center; }
.git-cur-title { color: var(--text); text-decoration: none; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; min-width: 0; }
.git-cur-title:hover { color: var(--primary-color); }
.git-cur-item .icon-btn { width: 28px; height: 28px; }

/* Login social (GitHub) */
.auth-divider { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 13px; margin: 18px 0; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--border); }
.btn-github {
  display: inline-flex; align-items: center; gap: 10px; padding: 12px 18px;
  border-radius: 12px; background: #24292f; color: #fff; font-weight: 600;
  text-decoration: none; border: 1px solid #24292f; transition: background .15s ease;
}
.btn-github:hover { background: #1b1f24; color: #fff; }
.btn-github i { font-size: 18px; }

/* ===================== Central de Ajuda (Base de Conhecimento) ===================== */
.help-search-wrap { position: relative; max-width: 560px; }
.help-search-wrap i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.help-search {
  width: 100%; height: 46px; padding: 0 16px 0 44px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255,255,255,.06); color: var(--text); outline: none;
}
.help-search:focus { border-color: var(--primary-color); }

.help-manuals { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.help-manual-card { padding: 20px; border-radius: 16px; border-top: 3px solid var(--mc); }
.help-manual-card.is-mine { box-shadow: 0 0 0 1px var(--mc); }
.help-manual-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.help-manual-ico { width: 46px; height: 46px; min-width: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; font-size: 18px; }
.help-manual-title { font-size: 17px; font-weight: 700; margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.help-manual-summary { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.help-badge-mine { font-size: 11px; font-weight: 700; color: var(--mc); background: color-mix(in srgb, var(--mc) 16%, transparent); padding: 2px 8px; border-radius: 999px; }
.help-article-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.help-article-link { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 9px; color: var(--text); text-decoration: none; }
.help-article-link:hover { background: rgba(255,255,255,.05); }
.help-article-ico { color: var(--mc); width: 18px; text-align: center; }
.help-article-go { margin-left: auto; color: var(--muted); font-size: 11px; }

/* Página do artigo: navegação + conteúdo */
.help-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; }
.help-nav { padding: 14px; border-radius: 14px; position: sticky; top: 16px; }
.help-nav-manuals { display: flex; flex-direction: column; gap: 4px; }
.help-nav-manual { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 9px; color: var(--muted); text-decoration: none; font-size: 13px; font-weight: 600; }
.help-nav-manual:hover { background: rgba(255,255,255,.05); color: var(--text); }
.help-nav-manual.active { background: color-mix(in srgb, var(--mc) 16%, transparent); color: var(--mc); }
.help-nav-sep { height: 1px; background: var(--border); margin: 12px 0; }
.help-nav-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 1px; }
.help-nav-link { display: flex; align-items: center; gap: 9px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: 13.5px; }
.help-nav-link i { width: 16px; text-align: center; color: var(--muted); font-size: 12px; }
.help-nav-link:hover { background: rgba(255,255,255,.05); }
.help-nav-link.active { background: color-mix(in srgb, var(--mc) 18%, transparent); color: var(--mc); font-weight: 600; }
.help-nav-link.active i { color: var(--mc); }

.help-article { padding: 26px 30px; border-radius: 14px; }
.help-article-bc { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 16px; flex-wrap: wrap; }
.help-article-bc a { color: var(--muted); text-decoration: none; }
.help-article-bc i { font-size: 9px; opacity: .6; }

/* Conteúdo (markdown renderizado) */
.help-content { line-height: 1.7; font-size: 15px; }
.help-content h1 { font-size: 26px; font-weight: 800; margin: 0 0 6px; }
.help-content h2 { font-size: 19px; font-weight: 700; margin: 28px 0 10px; padding-top: 14px; border-top: 1px solid var(--border); }
.help-content h3 { font-size: 16px; font-weight: 700; margin: 20px 0 8px; }
.help-content p { margin: 0 0 12px; }
.help-content ul, .help-content ol { margin: 0 0 14px; padding-left: 22px; }
.help-content li { margin: 4px 0; }
.help-content a { color: var(--primary-color); }
.help-content code { background: rgba(255,255,255,.08); padding: 1px 6px; border-radius: 5px; font-size: 13px; }
.help-content img { max-width: 100%; height: auto; border-radius: 10px; border: 1px solid var(--border); margin: 8px 0 18px; display: block; }
.help-content blockquote { margin: 0 0 14px; padding: 10px 14px; border-left: 3px solid var(--primary-color); background: rgba(0,216,216,.06); border-radius: 0 8px 8px 0; color: var(--text); }
.help-content blockquote p { margin: 0; }
.help-content table { width: 100%; border-collapse: collapse; margin: 0 0 16px; font-size: 14px; }
.help-content th, .help-content td { border: 1px solid var(--border); padding: 8px 10px; text-align: left; }
.help-content th { background: rgba(255,255,255,.04); font-weight: 700; }
.help-content hr { border: 0; border-top: 1px solid var(--border); margin: 22px 0; }

.help-pager { display: flex; gap: 12px; margin-top: 26px; padding-top: 18px; border-top: 1px solid var(--border); }
.help-pager-btn { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 10px; border: 1px solid var(--border); color: var(--text); text-decoration: none; max-width: 48%; }
.help-pager-btn:hover { border-color: var(--primary-color); }
.help-pager-btn small { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.help-pager-btn span { font-weight: 600; line-height: 1.25; }

@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-nav { position: static; }
}

/* Campo de busca por texto na barra do board (estilo do search global) */
.board-search { position: relative; width: min(320px, 42vw); min-width: 220px; }
.board-search input {
  width: 100%; height: 42px; color: var(--text);
  padding: 0 40px 0 16px; border-radius: 12px;
  border: 1px solid var(--border); background: rgba(255, 255, 255, .06); outline: none;
}
.board-search input:focus { border-color: var(--primary-color); }
.board-search .bs-ico { position: absolute; right: 15px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.board-search .bs-clear { position: absolute; right: 7px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px; }

/* Filtro por texto dentro do board: esconde ruído e revela matches em grupos recolhidos */
#board-table.is-text-filtering .quick-add-row,
#board-table.is-text-filtering .board-subadd,
#board-table.is-text-filtering .add-group-wrap,
#board-table.is-text-filtering .group-summary-row { display: none !important; }
#board-table.is-text-filtering .board-group.collapsed .board-group-body { display: block; }
.board-textfilter-empty { margin-top: 1rem; }

/* Resultados da busca de tarefas/subtarefas na listagem de boards do projeto */
.task-result { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--border); color: inherit; text-decoration: none; }
.task-result:last-child { border-bottom: 0; }
.task-result:hover { background: rgba(255,255,255,.04); }
.task-result-main { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.task-result-title { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.task-result-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--muted); }
.task-result-go { color: var(--muted); flex: none; }
.task-result:hover .task-result-go { color: var(--primary-color); }

/* Destaque temporário ao abrir uma tarefa vinda da busca (?focus=) */
@keyframes rowFocusFlash { 0%, 70% { background: rgba(0, 216, 216, .18); } 100% { background: transparent; } }
tr.row-focus-flash > * { animation: rowFocusFlash 2.4s ease-out; }

/* Rodapé da Descrição: Documento de origem + Localização (slide/pág/aba).
   Chips discretos, só aparecem quando há valor; texto completo no tooltip. */
.req-desc-foot { display: flex; flex-wrap: wrap; gap: 4px 8px; margin-top: 4px; }
.req-desc-meta {
  display: inline-flex; align-items: center; gap: 4px; max-width: 100%;
  font-size: 11px; color: var(--muted);
  background: rgba(255,255,255,.04); border: 1px solid var(--border);
  border-radius: 6px; padding: 1px 6px; line-height: 1.5;
}
.req-desc-meta i { font-size: 10px; opacity: .8; flex: none; }
.req-desc-meta > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 200px; }

/* Respiro interno: afasta conteúdo das linhas/gridlines da tabela */
.req-inline tbody td { padding-top: 6px; padding-bottom: 6px; }
.req-inline td.cell-pad { padding-left: 5px; padding-right: 5px; }

/* Chips dos 4 campos-etiqueta (Categoria/Sistema/Criticidade/Status): mesma
   pílula do board, centrada, com folga lateral para o anel de foco/hover não
   encostar na borda da célula. */
.req-inline .cell-color { max-width: calc(100% - 16px); }

/* Responsável: vários por requisito (etiquetas) */
.req-inline td.req-multi-cell { padding: 4px 8px; }
.req-multi {
  display: flex; flex-wrap: wrap; align-items: center; gap: 4px;
  width: 100%; min-height: 40px; padding: 4px 6px;
  background: transparent; border: 1px solid transparent; border-radius: 8px;
  cursor: pointer; text-align: left;
}
.req-multi:hover { border-color: var(--border); background: rgba(255,255,255,.04); }
.req-tag {
  display: inline-block; padding: 3px 10px; border-radius: 999px;
  color: #fff; font-weight: 700; font-size: 12px; line-height: 1.3; white-space: nowrap;
}
.req-multi-empty { color: var(--muted); font-style: italic; }

/* Campo de data (Prazo) preenchendo a célula */
.req-inline .req-date { width: 100%; }
.req-inline .req-date::-webkit-calendar-picker-indicator { filter: invert(.55); cursor: pointer; }

/* Ações da linha com folga das bordas da célula */
.req-inline td:last-child { padding-left: 12px; padding-right: 12px; }

/* Coluna Progresso: respiro lateral para a barra não colar nas gridlines */
.req-inline td.req-progress-cell { padding-left: 12px; padding-right: 12px; }

/* Barra de rolagem horizontal fixa (ancorada à viewport, não ao card) */
.req-hscroll {
  position: fixed; bottom: 0; left: 0; z-index: 1030;
  height: 14px; overflow-x: auto; overflow-y: hidden;
  background: var(--panel-bg); border-top: 1px solid var(--border);
  box-shadow: 0 -4px 12px rgba(0,0,0,.18);
  display: none;
}

/* Flash verde quando uma linha é salva inline */
.req-row.fa-row-updated td { animation: req-flash 1.2s ease; }
@keyframes req-flash {
  0% { background: rgba(0,200,117,.22); }
  100% { background: transparent; }
}

/* Cabeçalho de colunas no modal de importação em lote */
.req-bulk-cols { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.req-bulk-cols span {
  display: inline-block; padding: 3px 9px; border-radius: 8px;
  background: var(--panel-bg-2); border: 1px solid var(--border);
  font-size: 12px; font-weight: 600; color: var(--text);
}
.req-bulk-cols i { color: var(--muted); font-size: 11px; }
#reqBulkInput { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; white-space: pre; }

/* ===================== Levantamento (Survey) ===================== */
.sv-project-tag {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--panel-bg-2); border: 1px solid var(--border);
  color: var(--muted); font-size: 13px;
}
.sv-project-tag b { color: var(--text); }

/* Indicadores do topo */
.sv-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
@media (max-width: 760px) { .sv-stats { grid-template-columns: repeat(2, 1fr); } }
.sv-stat {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: var(--radius, 14px);
  background: var(--panel-bg); border: 1px solid var(--border);
  box-shadow: var(--shadow-panel);
}
.sv-stat-ico {
  width: 40px; height: 40px; flex: 0 0 40px;
  display: grid; place-items: center; border-radius: 11px;
  color: #fff; font-size: 16px;
}
.sv-stat b { display: block; font-size: 22px; line-height: 1.1; color: var(--text); }
.sv-stat small { color: var(--muted); font-size: 12px; }

/* Blocos */
.sv-block { padding: 16px; }
.sv-block-head {
  display: flex; align-items: center; justify-content: space-between;
  gap: 8px; margin-bottom: 12px;
}
.sv-add { display: flex; gap: 8px; margin-bottom: 12px; }
.sv-add .form-control { flex: 1 1 auto; }
.sv-add .btn-gradient { flex: 0 0 auto; padding-left: 14px; padding-right: 14px; }

.sv-empty {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 24px 12px; color: var(--muted); text-align: center; font-size: 13px;
}
.sv-empty i { font-size: 26px; opacity: .6; }

/* Dúvidas */
.sv-q-list { display: flex; flex-direction: column; gap: 10px; }
.sv-q {
  border: 1px solid var(--border); border-radius: 12px;
  background: var(--panel-bg-2); overflow: hidden;
  transition: border-color .15s ease;
}
.sv-q.open { border-color: color-mix(in srgb, var(--primary-color) 45%, var(--border)); }
.sv-q-head {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; cursor: pointer;
}
.sv-q-head:hover { background: rgba(125,150,190,.06); }
.sv-q-text { flex: 1 1 auto; min-width: 0; color: var(--text); font-weight: 600; font-size: 14px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-q.open .sv-q-text { white-space: normal; }
.sv-q-date { flex: 0 0 auto; color: var(--muted); font-size: 12px; }
.sv-q-chevron { flex: 0 0 auto; color: var(--muted); font-size: 12px; transition: transform .18s ease; }
.sv-q.open .sv-q-chevron { transform: rotate(180deg); }

.sv-pill {
  flex: 0 0 auto; font-size: 11px; font-weight: 700; padding: 3px 9px;
  border-radius: 999px; color: #fff; white-space: nowrap;
}
.sv-pill.pendente { background: #fdab3d; }
.sv-pill.respondida { background: #00c875; }

.sv-q-body { padding: 4px 12px 12px; border-top: 1px solid var(--border); }
.sv-lbl { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); margin: 10px 0 4px; }
.sv-q-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 10px; }
.sv-q-status-btn {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 7px 12px; border-radius: 9px; font-size: 13px; font-weight: 600;
  background: var(--panel-bg-2); border: 1px solid var(--border); color: var(--text); cursor: pointer;
}
.sv-q-status-btn:hover { border-color: var(--primary-color); color: var(--primary-color); }

/* Checklist */
.sv-ck-list { display: flex; flex-direction: column; gap: 4px; }
.sv-ck {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; border-radius: 9px;
}
.sv-ck:hover { background: rgba(125,150,190,.07); }
.sv-ck-box { flex: 0 0 auto; width: 17px; height: 17px; cursor: pointer; }
.sv-ck-text { flex: 1 1 auto; min-width: 0; color: var(--text); font-size: 14px; outline: none; word-break: break-word; }
.sv-ck-text[contenteditable="true"] {
  background: var(--panel-bg); border-radius: 6px; padding: 2px 6px;
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 40%, transparent);
}
.sv-ck.done .sv-ck-text { text-decoration: line-through; color: var(--muted); opacity: .7; }
.sv-ck-actions { flex: 0 0 auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s ease; }
.sv-ck:hover .sv-ck-actions { opacity: 1; }

/* Observações / textos */
.sv-notes { resize: vertical; }
.sv-save-state { font-size: 12px; color: var(--muted); }

/* Levantamento — busca nas dúvidas */
.sv-search {
  display: flex; align-items: center; gap: 8px;
  padding: 0 10px; margin-bottom: 12px;
  border: 1px solid var(--border); border-radius: 9px;
  background: var(--panel-bg-2);
}
.sv-search i { color: var(--muted); font-size: 13px; }
.sv-search input {
  flex: 1 1 auto; border: 0; background: transparent; outline: none;
  color: var(--text); font-size: 14px; padding: 9px 0;
}

/* Levantamento — blocos colapsáveis */
.sv-collapsible .sv-block-head { cursor: pointer; user-select: none; }
.sv-collapse-ico { margin-left: 6px; color: var(--muted); font-size: 12px; transition: transform .18s ease; }
.sv-collapsible.collapsed .sv-collapse-ico { transform: rotate(-90deg); }
.sv-collapsible.collapsed .sv-block-head { margin-bottom: 0; }
.sv-collapsible.collapsed .sv-block-body { display: none; }
.sv-block-head > h6 { margin-right: auto; }

/* Levantamento — alça de arraste, ações no cabeçalho da dúvida */
.sv-q-grip { flex: 0 0 auto; color: var(--muted); cursor: grab; font-size: 12px; opacity: .5; }
.sv-q-grip:hover { opacity: 1; color: var(--text); }
.sv-q-head-actions { flex: 0 0 auto; display: flex; gap: 2px; opacity: 0; transition: opacity .12s ease; }
.sv-q-head:hover .sv-q-head-actions { opacity: 1; }
.sv-q.open .sv-q-head-actions { opacity: 1; }
.sv-q.sv-dragging { opacity: .55; box-shadow: 0 10px 26px rgba(0,0,0,.35); }

/* Levantamento — indicadores clicáveis (filtro) e alça do checklist */
button.sv-stat { width: 100%; text-align: left; font: inherit; cursor: pointer; }
.sv-stat[data-q-filter], .sv-stat[data-ck-filter] { transition: border-color .12s ease, box-shadow .12s ease; }
.sv-stat[data-q-filter]:hover, .sv-stat[data-ck-filter]:hover { border-color: color-mix(in srgb, var(--primary-color) 40%, var(--border)); }
.sv-stat.active { border-color: var(--primary-color); box-shadow: 0 0 0 2px color-mix(in srgb, var(--primary-color) 30%, transparent); }
.sv-ck-grip { flex: 0 0 auto; color: var(--muted); cursor: grab; opacity: .45; font-size: 12px; }
.sv-ck:hover .sv-ck-grip { opacity: 1; }
.sv-ck.sv-dragging { opacity: .55; }

/* Levantamento — observação e anexos da dúvida */
.sv-q-files { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.sv-q-file { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border: 1px solid var(--border); border-radius: 8px; background: var(--panel-bg-2); }
.sv-q-file > i { color: var(--muted); }
.sv-q-file-name { flex: 1 1 auto; min-width: 0; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; }
.sv-q-file-name:hover { text-decoration: underline; }
.sv-q-file-size { flex: 0 0 auto; color: var(--muted); font-size: 11px; }
.sv-q-attach-btn { display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: 13px; color: var(--primary-color); border: 1px dashed var(--border); border-radius: 8px; padding: 7px 12px; margin-bottom: 4px; }
.sv-q-attach-btn:hover { border-color: var(--primary-color); background: var(--panel-bg-2); }
.sv-q-attach-btn.loading { opacity: .6; pointer-events: none; }

/* Levantamento — tabela de responsabilidades */
.sv-resp-table { width: 100%; border-collapse: collapse; }
.sv-resp-table thead th { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 4px 6px; text-align: left; }
.sv-resp-table thead th:first-child { width: 38%; }
.sv-resp-table td { padding: 4px 6px; vertical-align: top; }
.sv-resp-table .form-control { font-size: 13px; }
.sv-resp-desc { resize: none; overflow: hidden; min-height: 38px; }
.sv-resp-actions { width: 40px; text-align: center; }

/* ===== Gestão de Documentos ===== */
/* Coluna de arquivos: ícones por tipo (cinza = sem arquivo, colorido = tem) */
.doc-files-cell { text-align: center; }
.doc-files {
  display: inline-flex; align-items: center; gap: 8px;
  width: 100%; min-height: 40px; padding: 4px 8px;
  background: transparent; border: 1px solid transparent; border-radius: 8px; cursor: pointer;
}
.doc-files:hover { border-color: var(--border); background: rgba(255,255,255,.04); }
.doc-fileicon {
  position: relative; display: inline-flex; align-items: center; justify-content: center;
  width: 26px; height: 26px; border-radius: 7px; font-size: 14px;
  color: var(--muted); background: var(--panel-bg-2);
}
.doc-fileicon.on { color: #fff; background: var(--c, #61708a); }
.doc-fileicon b {
  position: absolute; top: -5px; right: -5px; font-size: 9px; line-height: 1;
  background: var(--text); color: var(--panel-bg); border-radius: 999px; padding: 2px 4px; font-weight: 700;
}
.doc-task-pick { padding: 6px 8px; border-radius: 8px; cursor: pointer; }
.doc-task-pick:hover { background: var(--panel-bg-2); }

/* Editor de Markdown (edição + prévia lado a lado) */
.md-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-items: stretch; }
@media (max-width: 900px) { .md-editor { grid-template-columns: 1fr; } }
.md-pane { display: flex; flex-direction: column; min-height: 60vh; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; background: var(--panel-bg); }
.md-pane-head { padding: 8px 12px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: var(--muted); background: rgba(255,255,255,.03); border-bottom: 1px solid var(--border); }
.md-input { flex: 1; width: 100%; border: 0; outline: none; resize: none; padding: 14px; background: transparent; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13.5px; line-height: 1.6; }
.md-preview { flex: 1; overflow: auto; padding: 14px 18px; color: var(--text); }
.markdown-body h1, .markdown-body h2, .markdown-body h3 { margin: .6em 0 .35em; font-weight: 700; }
.markdown-body h1 { font-size: 1.6em; border-bottom: 1px solid var(--border); padding-bottom: .2em; }
.markdown-body h2 { font-size: 1.3em; border-bottom: 1px solid var(--border); padding-bottom: .2em; }
.markdown-body p { margin: .5em 0; }
.markdown-body ul, .markdown-body ol { padding-left: 1.5em; margin: .5em 0; }
.markdown-body code { background: var(--panel-bg-2); padding: .15em .4em; border-radius: 5px; font-size: .9em; }
.markdown-body pre { background: var(--panel-bg-2); padding: 12px; border-radius: 8px; overflow: auto; }
.markdown-body pre code { background: transparent; padding: 0; }
.markdown-body blockquote { border-left: 3px solid var(--border); margin: .5em 0; padding: .2em 0 .2em 12px; color: var(--muted); }
.markdown-body table { border-collapse: collapse; margin: .5em 0; }
.markdown-body th, .markdown-body td { border: 1px solid var(--border); padding: 6px 10px; }
.markdown-body img { max-width: 100%; border-radius: 8px; }
.markdown-body a { color: var(--primary-color); }

.doc-row.fa-row-updated td { animation: req-flash 1.2s ease; }
