/* ============================================================
   Quadro Audiovisual — painel
   Visual tirado do CoreEditor (tema escuro): Instrument Sans, roxo
   como cor principal, cartões levemente mais claros que o fundo,
   barra lateral "inset" (o conteúdo fica num cartão arredondado).
   ============================================================ */

:root {
  --sidebar: oklch(14.5% 0 0);
  --sidebar-fg: oklch(98.5% 0 0);
  --sidebar-accent: oklch(27% .04 293);
  --sidebar-accent-fg: oklch(93% .04 293);
  --sidebar-border: oklch(24.5% .005 293);

  --bg: oklch(18.5% .004 293);
  --fg: oklch(98.5% 0 0);
  --card: oklch(21.5% .005 293);
  --card-2: oklch(24% .006 293);
  --popover: oklch(14.5% 0 0);
  --muted: oklch(26.9% 0 0);
  --muted-fg: oklch(70.8% 0 0);
  --muted-fg-2: oklch(58% 0 0);
  --border: oklch(26.9% 0 0);
  --border-2: oklch(32% 0 0);

  --primary: oklch(62% .22 293.5);
  --primary-soft: oklch(62% .22 293.5 / .14);
  --primary-fg: oklch(98.5% 0 0);
  --warning: oklch(78% .14 72);
  --warning-soft: oklch(78% .14 72 / .14);
  --danger: oklch(70% .19 25);
  --danger-soft: oklch(70% .19 25 / .14);
  --ok: oklch(72% .17 162);
  --ok-soft: oklch(72% .17 162 / .14);

  --radius: .625rem;
  --radius-lg: .75rem;
  --radius-xl: 1rem;

  --font: "Instrument Sans", ui-sans-serif, system-ui, -apple-system, sans-serif;

  --sidebar-w: 16rem;
}

* { box-sizing: border-box; }
html, body { height: 100%; }
body {
  margin: 0;
  overflow: hidden;              /* a única rolagem é a do conteúdo */
  background: var(--sidebar);
  color: var(--fg);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  color-scheme: dark;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
svg { display: block; }
h1, h2, h3, p { margin: 0; }

/* ---------- estrutura ---------- */
.shell {
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
  height: 100vh;
  height: 100dvh;
  transition: grid-template-columns .2s ease;
}
.shell.sem-sidebar { grid-template-columns: 0 minmax(0, 1fr); }
.shell.sem-sidebar .sidebar { opacity: 0; pointer-events: none; }

/* ---------- barra lateral ---------- */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px;
  overflow: hidden;
  color: var(--sidebar-fg);
  transition: opacity .15s ease;
  min-width: 0;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: var(--radius);
  margin-bottom: 4px;
}
.brand:hover { background: var(--sidebar-accent); }
.brand-mark {
  width: 32px; height: 32px; flex: 0 0 32px;
  display: grid; place-items: center;
  border-radius: 8px;
  background: var(--primary);
  color: var(--primary-fg);
}
.brand-mark svg { width: 18px; height: 18px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 600; font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-sub { font-size: 12px; color: var(--muted-fg); }

.nav { display: flex; flex-direction: column; gap: 16px; padding: 4px 0; flex: 1; overflow: auto; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-label {
  font-size: 12px; font-weight: 500; color: var(--muted-fg-2);
  padding: 0 8px 6px;
}
.nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--sidebar-fg);
  white-space: nowrap;
}
.nav-item svg { width: 16px; height: 16px; color: var(--muted-fg); flex: 0 0 16px; }
.nav-item:hover { background: var(--sidebar-accent); }
.nav-item.ativo { background: var(--sidebar-accent); color: var(--sidebar-accent-fg); font-weight: 500; }
.nav-item.ativo svg { color: var(--sidebar-accent-fg); }
.nav-badge {
  margin-left: auto;
  font-size: 11px; font-weight: 600;
  color: var(--muted-fg);
  background: oklch(100% 0 0 / .06);
  padding: 1px 7px; border-radius: 999px;
  font-variant-numeric: tabular-nums;
}
.nav-badge:empty { display: none; }

.sidebar-foot { margin-top: auto; }
.usuario {
  display: flex; align-items: center; gap: 10px;
  padding: 8px; border-radius: var(--radius);
}
.usuario:hover { background: var(--sidebar-accent); }
.usuario-texto { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.usuario-nome { font-weight: 600; font-size: 13px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.usuario-sub { font-size: 12px; color: var(--muted-fg); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- conteúdo (inset) ---------- */
.inset {
  display: flex; flex-direction: column;
  min-width: 0; min-height: 0;
  margin: 8px 8px 8px 0;
  background: var(--bg);
  border-radius: var(--radius-xl);
  box-shadow: 0 0 0 1px oklch(100% 0 0 / .05), 0 1px 2px oklch(0% 0 0 / .4);
  overflow: hidden;
}
.shell.sem-sidebar .inset { margin-left: 8px; }

.topbar {
  display: flex; align-items: center; gap: 8px;
  height: 56px; flex: 0 0 56px;
  padding: 0 16px;
  border-bottom: 1px solid var(--border);
}
.icon-btn {
  width: 28px; height: 28px; border-radius: 6px;
  display: grid; place-items: center;
  color: var(--muted-fg);
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { background: var(--muted); color: var(--fg); }
.sep { width: 1px; height: 16px; background: var(--border-2); margin: 0 4px; }
.crumbs { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted-fg); min-width: 0; }
.crumbs a:hover { color: var(--fg); }
.crumbs .atual { color: var(--fg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.crumbs .chev { width: 14px; height: 14px; color: var(--muted-fg-2); flex: 0 0 14px; }
.topbar-right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.sync { font-size: 12px; color: var(--muted-fg-2); display: flex; align-items: center; gap: 6px; }
.sync::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--muted-fg-2); }
.sync.nuvem::before { background: var(--ok); }
.sync.local::before { background: var(--warning); }
.sync.erro::before { background: var(--danger); }

.conteudo {
  flex: 1; min-height: 0;
  overflow: hidden;              /* a tela não rola: cada página cabe nela */
  padding: 24px;
}
.pagina { display: flex; flex-direction: column; gap: 24px; height: 100%; min-height: 0; }
.pagina.rolavel { overflow-y: auto; overflow-x: hidden; margin: -24px; padding: 24px; height: auto; max-height: calc(100% + 48px); scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.heading-linha .acoes { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }

.carregando {
  display: flex; align-items: center; gap: 12px;
  color: var(--muted-fg); padding: 40px 0;
}
.spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--border-2); border-top-color: var(--primary);
  animation: gira .8s linear infinite;
}
@keyframes gira { to { transform: rotate(360deg); } }

/* cabeçalho de página: título + linha de apoio (Heading do CoreEditor) */
.heading { display: flex; flex-direction: column; gap: 4px; }
.heading h1 { font-size: 20px; font-weight: 600; letter-spacing: -.01em; display: flex; align-items: center; gap: 10px; }
.heading p { color: var(--muted-fg); font-size: 14px; }
.heading-linha { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

/* cartão base (.cartao do CoreEditor) */
.cartao {
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--card);
  box-shadow: 0 0 0 1px oklch(100% 0 0 / .03), 0 1px 2px -1px oklch(0% 0 0 / .3);
}

/* cartão destaque: rótulo em caixa alta, título grande, linha de apoio, ação à direita */
.destaque {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 16px; padding: 24px;
}
.destaque .min { min-width: 0; }
.rotulo {
  display: flex; align-items: center; gap: 8px; margin-bottom: 4px;
  color: var(--muted-fg); font-size: 12px; font-weight: 600;
  letter-spacing: .08em; text-transform: uppercase;
}
.destaque h2 {
  font-size: 24px; font-weight: 600; letter-spacing: -.02em;
  font-variant-numeric: tabular-nums;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.destaque p { color: var(--muted-fg); margin-top: 4px; font-size: 14px; text-wrap: pretty; }
.destaque .acao { flex: 0 0 auto; }

/* linha de números */
.numeros {
  display: flex; flex-wrap: wrap; align-items: center;
  column-gap: 32px; row-gap: 16px;
  padding: 16px 24px;
}
.numero .valor { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.numero .valor.alerta { color: var(--warning); }
.numero .valor.ruim { color: var(--danger); }
.numero .legenda { font-size: 12px; color: var(--muted-fg); }
.numeros .acao { margin-left: auto; }

/* badge */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  border-radius: 6px; padding: 2px 8px;
  font-size: 11px; font-weight: 600; line-height: 1.4;
  border: 1px solid transparent;
  white-space: nowrap;
}
.badge svg { width: 12px; height: 12px; }
.badge.warning { background: var(--warning-soft); color: var(--warning); border-color: oklch(78% .14 72 / .3); }
.badge.danger { background: var(--danger-soft); color: var(--danger); border-color: oklch(70% .19 25 / .3); }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: oklch(72% .17 162 / .3); }
.badge.primary { background: var(--primary-soft); color: oklch(80% .14 293.5); border-color: oklch(62% .22 293.5 / .35); }
.badge.neutro { background: oklch(100% 0 0 / .06); color: var(--muted-fg); }

/* botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 36px; padding: 0 16px;
  border-radius: 8px;
  font-size: 14px; font-weight: 500;
  background: var(--primary); color: var(--primary-fg);
  white-space: nowrap;
  transition: filter .15s ease, background .15s ease;
}
.btn:hover { filter: brightness(1.08); }
.btn svg { width: 16px; height: 16px; }
.btn.outline { background: transparent; border: 1px solid var(--border-2); color: var(--fg); }
.btn.outline:hover { background: var(--muted); filter: none; }
.btn.sm { height: 32px; padding: 0 12px; font-size: 13px; }

/* ---------- grade de projetos ---------- */
.grade {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}
.proj-card {
  display: flex; flex-direction: column; gap: 14px;
  padding: 18px;
  text-align: left;
  transition: border-color .15s ease, transform .15s ease;
  position: relative;
  overflow: hidden;
}
.proj-card::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--cor, var(--primary));
}
.proj-card:hover { border-color: var(--border-2); transform: translateY(-1px); }
.proj-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.proj-nome { font-size: 15px; font-weight: 600; letter-spacing: -.01em; }
.proj-sub { font-size: 12px; color: var(--muted-fg); margin-top: 2px; }
.proj-etapas { display: flex; gap: 14px; flex-wrap: wrap; }
.etapa .valor { font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; }
.etapa .valor.alerta { color: var(--warning); }
.etapa .legenda { font-size: 11px; color: var(--muted-fg); }
.proj-pe { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

/* barra de progresso por etapa */
.barra { display: flex; height: 6px; border-radius: 999px; overflow: hidden; background: var(--muted); }
.barra span { display: block; height: 100%; }
.barra .b-todo { background: var(--muted-fg-2); }
.barra .b-doing { background: var(--primary); }
.barra .b-review { background: var(--warning); }
.barra .b-done { background: var(--ok); }

/* avatares */
.avatares { display: flex; }
.avatar {
  width: 26px; height: 26px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 10px; font-weight: 700; color: #0c0c0f;
  background: var(--cor, var(--muted-fg));
  border: 2px solid var(--card);
  margin-left: -6px;
  flex: 0 0 26px;
}
.avatar:first-child { margin-left: 0; }
.avatar.md { width: 34px; height: 34px; font-size: 12px; flex-basis: 34px; margin-left: 0; border: 0; }
.avatar.cinza { background: var(--muted); color: var(--muted-fg); }
.avatar.lg { width: 44px; height: 44px; font-size: 15px; flex-basis: 44px; margin-left: 0; border: 0; }

/* ---------- colunas do projeto (quadro) ---------- */
.colunas-wrap { flex: 1; min-height: 0; }
.colunas { display: flex; gap: 12px; align-items: stretch; height: 100%; }
.coluna {
  display: flex; flex-direction: column; gap: 10px;
  flex: 1 1 0; min-width: 0;
  min-height: 0;
  padding: 10px;
  border-radius: var(--radius-lg);
  border: 2px solid var(--border);
  background: oklch(20% .004 293);
}
.coluna.review { border-color: oklch(78% .14 72 / .35); }
.coluna.done { border-color: oklch(72% .17 162 / .3); }
.coluna.doing { border-color: oklch(62% .22 293.5 / .4); }
.coluna-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 2px 4px; }
.coluna-titulo { font-size: 13px; font-weight: 600; letter-spacing: .02em; line-height: 1.25; }
.coluna-n {
  background: var(--bg); border-radius: 999px; padding: 1px 8px;
  font-size: 11px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted-fg);
}
.coluna-vazia {
  border: 2px dashed var(--border); border-radius: 8px;
  padding: 18px 12px; text-align: center;
  font-size: 12px; color: var(--muted-fg-2);
}
.card {
  display: flex; flex-direction: column; gap: 8px;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid var(--border);
  background: var(--card);
  text-align: left;
  width: 100%;
  transition: border-color .15s ease;
}
.card:hover { border-color: var(--border-2); }
.card.atrasado { border-color: oklch(70% .19 25 / .4); }
.card-titulo { font-size: 13px; font-weight: 500; line-height: 1.35; white-space: pre-line; }
.card-meta { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.card-meta .avatares { margin-left: auto; }
.card-proj { font-size: 11px; color: var(--muted-fg); display: flex; align-items: center; gap: 6px; }
.ponto { width: 8px; height: 8px; border-radius: 50%; background: var(--cor, var(--muted-fg)); flex: 0 0 8px; }
.card-desc { font-size: 12px; color: var(--muted-fg); white-space: pre-line; max-height: 4.2em; overflow: hidden; }

/* lista de cartões (visão da pessoa e lista simples) */
.lista-cards { display: flex; flex-direction: column; gap: 8px; }
.secao-titulo {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600; color: var(--muted-fg);
  letter-spacing: .04em; text-transform: uppercase;
}
.secao-titulo .n { font-weight: 500; color: var(--muted-fg-2); text-transform: none; letter-spacing: 0; }

/* ---------- vazio / erro ---------- */
.vazio { padding: 40px 24px; text-align: center; color: var(--muted-fg); }
.erro { padding: 24px; color: var(--danger); }

/* ---------- responsivo ---------- */
@media (max-width: 1180px) {
  :root { --sidebar-w: 14rem; }
}
@media (max-width: 960px) {
  .shell { grid-template-columns: 0 minmax(0, 1fr) !important; }
  .sidebar { position: fixed; top: 0; bottom: 0; z-index: 20; width: 16rem; background: var(--sidebar); opacity: 1 !important; pointer-events: auto !important; box-shadow: 0 0 40px oklch(0% 0 0 / .6); transition: transform .2s ease; }
  .sidebar { left: 0; transform: translateX(-100%); }
  .shell.mostra-sidebar .sidebar { transform: none; }
  .inset { grid-column: 2; margin: 0; border-radius: 0; }
  .conteudo { padding: 16px 16px 32px; }
  .destaque h2 { font-size: 20px; white-space: normal; }
  .colunas { flex-direction: column; }
}

/* projetos sem cor própria ficam no roxo do tema */
.heading .ponto { width: 12px; height: 12px; flex: 0 0 12px; background: var(--cor, var(--primary)); }

/* ---------- pessoas ---------- */
.pessoa-card { flex-direction: row; align-items: center; gap: 14px; }

/* ---------- botão Adicionar projeto + menu ---------- */
.menu-wrap { position: relative; }
.btn:disabled { opacity: .5; cursor: default; filter: none; }
.menu {
  position: absolute; right: 0; top: calc(100% + 6px); z-index: 10;
  min-width: 16rem; padding: 4px;
  border-radius: var(--radius); border: 1px solid var(--border);
  background: var(--popover);
  box-shadow: 0 0 0 1px oklch(100% 0 0 / .04), 0 12px 32px -8px oklch(0% 0 0 / .8);
}
.menu[hidden] { display: none; }
.menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 8px 10px; border-radius: 6px; font-size: 13px;
}
.menu-item:hover { background: var(--sidebar-accent); color: var(--sidebar-accent-fg); }
.menu-item .ponto { background: var(--primary); }
.proj-card .proj-topo .min { flex: 1; min-width: 0; }
.proj-card .icon-btn { flex: 0 0 auto; margin: -4px -6px 0 0; }
.heading-linha .heading h1 { align-items: center; }
@media (max-width: 960px) {
  .menu { left: 0; right: auto; }
}

.menu-item .avatar { margin-left: 0; border: 0; }
.menu-item .texto { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.menu-item .sub { font-size: 11px; color: var(--muted-fg); }
.pessoa-card .min { flex: 1; min-width: 0; }
.pessoa-card .icon-btn { flex: 0 0 auto; }

/* ---------- próximas gravações ---------- */
.grav-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.grav-hora {
  flex: 0 0 auto; min-width: 7.5rem;
  font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums;
  color: oklch(80% .14 293.5);
  background: var(--primary-soft); border: 1px solid oklch(62% .22 293.5 / .3);
  border-radius: 6px; padding: 4px 8px; text-align: center;
}
.grav-card.passou { opacity: .55; }
.grav-card.passou .grav-hora { color: var(--muted-fg); background: oklch(100% 0 0 / .06); border-color: transparent; }
.grav-card .min { min-width: 0; }
.link { color: oklch(80% .14 293.5); text-decoration: underline; text-underline-offset: 2px; }
.link:hover { color: var(--fg); }

/* lista à esquerda (duas colunas) e calendário ocupando o resto */
.grav-layout {
  display: grid; grid-template-columns: minmax(0, 600px) minmax(0, 1fr); gap: 24px;
  flex: 1; min-height: 0;        /* ocupa o que sobra da tela */
}
.grav-lista {
  display: flex; flex-direction: column; gap: 24px; min-width: 0;
  overflow-y: auto; overflow-x: hidden;   /* só esta parte rola */
  min-height: 0; padding-right: 8px;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent;
}
.grav-lista::-webkit-scrollbar { width: 6px; }
.grav-lista::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
.grade-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.secao-titulo.pisca { color: oklch(80% .14 293.5); transition: color .3s ease; }

/* ---------- calendário ---------- */
.calendario { padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; min-height: 0; height: 100%; }
.cal-topo { display: flex; align-items: center; gap: 6px; }
.cal-mes { font-size: 15px; font-weight: 600; min-width: 11rem; text-align: center; }
.cal-topo .btn { margin-left: auto; }
.cal-grade {
  display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px;
  flex: 1; min-height: 0;
  grid-template-rows: auto; grid-auto-rows: minmax(0, 1fr);   /* as semanas esticam até a borda */
}
.cal-dow { font-size: 12px; font-weight: 700; color: var(--muted-fg-2); text-align: center; line-height: 18px; }
.cal-vazio { min-height: 0; }
.cal-dia {
  display: flex; flex-direction: column; gap: 3px;
  min-height: 0; padding: 6px;
  border-radius: 8px; border: 1px solid var(--border);
  background: oklch(20% .004 293);
  font-size: 12px; color: var(--muted-fg);
  min-width: 0; overflow: hidden;
}
.cal-dia.fds { background: oklch(19% .004 293); }
.cal-dia.tem { border-color: oklch(62% .22 293.5 / .45); color: var(--fg); cursor: pointer; }
.cal-dia.tem:hover { background: var(--primary-soft); }
.cal-dia.hoje .cal-num { background: var(--primary); color: var(--primary-fg); }
.cal-num {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-weight: 600; font-variant-numeric: tabular-nums;
}
.cal-chip {
  display: block; font-size: 11px; line-height: 1.3;
  padding: 2px 6px; border-radius: 4px;
  background: var(--primary-soft); color: oklch(85% .1 293.5);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cal-mais { font-size: 11px; color: var(--muted-fg); padding-left: 6px; }

@media (max-width: 1180px) {
  .grav-layout { grid-template-columns: 1fr; }
}
@media (max-width: 960px) {
  .conteudo { overflow-y: auto; }
  .pagina { height: auto; }
  .grav-layout { flex: none; }
  .grav-lista { overflow: visible; }
  .calendario { height: auto; }
  .grade-2 { grid-template-columns: 1fr; }
  .cal-dia { min-height: 44px; }
  .cal-chip { display: none; }
  .cal-dia.tem::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }
}

/* ---------- cartões nas colunas ---------- */
.coluna.sobre { border-color: var(--primary); background: var(--primary-soft); }
.coluna-cards { display: flex; flex-direction: column; gap: 8px; flex: 1; min-height: 2rem; overflow-y: auto; overflow-x: hidden; scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; }
.card { cursor: grab; }
.card.arrastando { opacity: .4; }
.card.solta-antes { box-shadow: 0 -5px 0 -2px var(--primary); }
.card.solta-depois { box-shadow: 0 5px 0 -2px var(--primary); }
.card:active { cursor: grabbing; }
.novo-card { margin-top: auto; }
.novo-card-btn {
  display: flex; align-items: center; gap: 6px; width: 100%;
  padding: 7px 8px; border-radius: 6px;
  font-size: 13px; color: var(--muted-fg);
}
.novo-card-btn svg { width: 14px; height: 14px; }
.novo-card-btn:hover { background: var(--muted); color: var(--fg); }
.novo-card-input {
  width: 100%; height: 34px; padding: 0 10px;
  border-radius: 6px; border: 1px solid var(--primary);
  background: var(--card); color: var(--fg); font: inherit; font-size: 13px; outline: none;
}
.novo-card-input[hidden] { display: none; }
.equipe-linha { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 6px 3px 3px; border-radius: 999px;
  border: 1px solid var(--border); background: var(--card); font-size: 12px;
}
.chip .avatar { margin: 0; border: 0; width: 22px; height: 22px; flex-basis: 22px; font-size: 9px; }
.chip-x { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; color: var(--muted-fg); }
.chip-x svg { width: 11px; height: 11px; }
.chip-x:hover { background: var(--muted); color: var(--fg); }
.card-lista { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; cursor: pointer; }

/* ---------- seletor de período (6 botões) ---------- */
.seg { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 8px; background: oklch(100% 0 0 / .06); }
.seg-item { height: 28px; padding: 0 12px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted-fg); }
.seg-item:hover { color: var(--fg); }
.seg-item.on { background: var(--card-2); color: var(--fg); box-shadow: 0 1px 2px oklch(0% 0 0 / .4); }
.var { font-size: 11px; font-weight: 600; margin-left: 6px; vertical-align: middle; }
.var.sobe { color: var(--ok); }
.var.desce { color: var(--danger); }
.proj-card .proj-etapas { gap: 12px; }

/* ---------- modal do cartão ---------- */
.modal-fundo {
  position: fixed; inset: 0; z-index: 50;
  background: oklch(0% 0 0 / .6); backdrop-filter: blur(2px);
  display: grid; place-items: center; padding: 24px;
}
.modal { width: min(720px, 100%); max-height: 90vh; overflow: auto; padding: 20px 24px 16px; display: flex; flex-direction: column; gap: 12px; background: var(--popover); }
.modal-topo { display: flex; align-items: center; gap: 8px; }
.modal-titulo {
  flex: 1; min-width: 0; font: inherit; font-size: 18px; font-weight: 600; color: var(--fg);
  background: transparent; border: 1px solid transparent; border-radius: 6px; padding: 4px 8px; margin-left: -8px; outline: none;
}
.modal-titulo:hover { border-color: var(--border); }
.modal-titulo:focus { border-color: var(--primary); background: var(--card); }
.modal-sub { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted-fg); }
.modal-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px; }
.modal .sub { font-size: 12px; color: var(--muted-fg); }
.select {
  width: 100%; height: 36px; padding: 0 10px; border-radius: 8px;
  border: 1px solid var(--border-2); background: var(--card); color: var(--fg); font: inherit; font-size: 14px;
}
.opcoes { display: flex; flex-direction: column; gap: 2px; }
.opcao { display: flex; align-items: center; gap: 8px; padding: 6px 8px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.opcao:hover { background: var(--muted); }
.opcao input { accent-color: var(--primary); }
.opcao .avatar { margin: 0; border: 0; }
.opcao .sub { margin-left: auto; }
.hist { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.hist li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 8px; border-radius: 6px; background: var(--card); }
.modal-pe { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 4px; border-top: 1px solid var(--border); }

/* ---------- aviso ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); z-index: 60;
  padding: 10px 16px; border-radius: 8px; font-size: 13px;
  background: var(--popover); border: 1px solid var(--border-2); color: var(--fg);
  box-shadow: 0 12px 32px -8px oklch(0% 0 0 / .8);
  opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease;
}
.toast.on { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 960px) {
  .modal-grid { grid-template-columns: 1fr; }
  .pagina.rolavel { overflow: visible; margin: 0; padding: 0; max-height: none; }
  .colunas-wrap { flex: none; }
  .colunas { height: auto; }
}

/* projetos pontuais: cinza em vez de roxo */
.proj-card.pontual::before { background: var(--muted-fg-2); }
.ponto.cinza { background: var(--muted-fg-2) !important; }
.proj-card.so-nome { padding: 18px; justify-content: center; }

/* pontuais em três colunas: em espera · em andamento · finalizados */
.pont-colunas { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; align-items: start; }
.pont-coluna {
  display: flex; flex-direction: column; gap: 10px; min-height: 8rem; padding: 10px;
  border-radius: var(--radius-lg); border: 2px solid var(--border); background: oklch(20% .004 293);
}
.pont-coluna.sobre { border-color: var(--primary); background: var(--primary-soft); }
.pont-lista { display: flex; flex-direction: column; gap: 8px; }
.proj-card.so-nome { padding: 14px 16px; cursor: grab; }
.proj-card.so-nome.arrastando { opacity: .4; }
@media (max-width: 960px) { .pont-colunas { grid-template-columns: 1fr; } }

/* tela Projetos: fixos parados, só a área dos pontuais rola */
.pagina.compacta { gap: 14px; }
.pagina.compacta .proj-card { padding: 14px 16px; gap: 10px; }
.pont-rola {
  flex: 1; min-height: 0; overflow-y: auto; overflow-x: hidden;
  scrollbar-width: thin; scrollbar-color: var(--border-2) transparent; padding-right: 4px;
}
.pont-rola::-webkit-scrollbar { width: 6px; }
.pont-rola::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 3px; }
@media (max-width: 960px) { .pont-rola { overflow: visible; flex: none; } }

.pont-meta { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.pont-meta .avatares { margin-left: auto; }
.icon-btn.mini { width: 24px; height: 24px; }
.icon-btn.mini svg { width: 13px; height: 13px; }
input[type="date"].select { color-scheme: dark; }

/* ---------- gráficos dos pontuais ---------- */
.g-grade { display: grid; grid-template-columns: 1.3fr 1fr; gap: 16px; align-items: start; }
.grafico { padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.g-titulo { font-size: 14px; font-weight: 600; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.g-titulo .sub, .grafico .sub { font-size: 12px; font-weight: 400; color: var(--muted-fg); }
.g-legenda { display: flex; gap: 14px; font-size: 12px; color: var(--muted-fg); }
.g-legenda span { display: inline-flex; align-items: center; gap: 6px; }
.g-key { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.g-key.andamento, .g-seg.andamento, .tl-barra.andamento { background: var(--primary); }
.g-key.atrasado, .g-seg.atrasado, .tl-barra.atrasado { background: var(--danger); }
.g-linha { display: grid; grid-template-columns: 7rem 1fr; gap: 4px 12px; align-items: center; }
.g-rotulo { display: flex; align-items: center; gap: 8px; font-size: 13px; }
.g-rotulo .avatar { margin: 0; border: 0; }
.g-trilho { position: relative; display: flex; gap: 2px; height: 14px; border-radius: 4px; background: var(--muted); overflow: visible; }
.g-seg { display: block; height: 100%; border-radius: 4px; min-width: 4px; }
.g-valor { position: absolute; left: calc(100% + 0px); top: -3px; font-size: 12px; font-weight: 600; white-space: nowrap; padding-left: 8px; font-variant-numeric: tabular-nums; }
.g-valor .ruim { color: var(--danger); font-weight: 500; }
.g-trilho { width: calc(100% - 7rem); }
.g-chips { grid-column: 2; display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.g-chips .chip { padding: 2px 8px; font-size: 12px; color: var(--fg); }
.g-chips .chip.ruim { border-color: oklch(70% .19 25 / .4); color: var(--danger); }
.g-chips .chip:hover { background: var(--muted); }
.g-vazio { font-size: 13px; color: var(--muted-fg); padding: 8px 0; }
.lista-atrasados { display: flex; flex-direction: column; gap: 8px; }
.atrasado-linha { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 8px; border: 1px solid oklch(70% .19 25 / .3); background: var(--danger-soft); }
.atrasado-linha .min { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.atrasado-linha .proj-nome { font-size: 13px; }
.atrasado-linha .avatares .avatar { margin-left: -6px; }
.atrasado-linha .avatares .avatar:first-child { margin-left: 0; }

/* linha do tempo */
.tl { display: flex; flex-direction: column; gap: 8px; }
.tl-eixo { position: relative; height: 22px; margin-left: 13rem; border-bottom: 1px solid var(--border); font-size: 11px; color: var(--muted-fg-2); }
.tl-semana { position: absolute; top: 0; transform: translateX(-50%); font-variant-numeric: tabular-nums; }
.tl-semana::after { content: ""; position: absolute; left: 50%; top: 16px; height: 6px; border-left: 1px solid var(--border-2); }
.tl-hoje { position: absolute; top: 0; transform: translateX(-50%); color: oklch(80% .14 293.5); font-weight: 600; }
.tl-hoje i { position: absolute; left: 50%; top: 20px; height: 1000px; border-left: 1px dashed oklch(62% .22 293.5 / .5); pointer-events: none; }
.tl-linha { display: grid; grid-template-columns: 13rem 1fr; align-items: center; gap: 0; }
.tl-nome { font-size: 13px; display: flex; flex-direction: column; line-height: 1.2; padding-right: 10px; }
.tl-trilho { position: relative; height: 18px; border-radius: 4px; background: oklch(100% 0 0 / .03); overflow: visible; }
.tl-barra { position: absolute; top: 2px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 2px var(--card); }
.tl-barra:hover { filter: brightness(1.15); }
.tl-sem { position: absolute; top: 0; margin-left: 10px; font-size: 11px; color: var(--muted-fg); line-height: 18px; }
.tl { position: relative; overflow: hidden; }
@media (max-width: 1180px) { .g-grade { grid-template-columns: 1fr; } }
@media (max-width: 960px) { .tl-eixo { margin-left: 0; } .tl-linha { grid-template-columns: 1fr; } .g-linha { grid-template-columns: 1fr; } .g-trilho { width: calc(100% - 3rem); } }

/* ---------- aba Editar ---------- */
.passos { display: flex; flex-direction: column; gap: 12px; }
.passo { display: flex; gap: 16px; padding: 18px 20px; opacity: .55; }
.passo.ativo, .passo.feito { opacity: 1; }
.passo .min { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.passo p { font-size: 14px; color: var(--muted-fg); }
.passo-n {
  width: 28px; height: 28px; border-radius: 50%; flex: 0 0 28px;
  display: grid; place-items: center; font-size: 13px; font-weight: 700;
  background: var(--muted); color: var(--muted-fg);
}
.passo.ativo .passo-n { background: var(--primary); color: var(--primary-fg); }
.passo.feito .passo-n { background: var(--ok-soft); color: var(--ok); }
.passo-titulo { font-size: 15px; font-weight: 600; }
.solta {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 28px; border-radius: var(--radius); cursor: pointer;
  border: 2px dashed var(--border-2); color: var(--muted-fg); font-size: 14px;
  transition: border-color .15s ease, background .15s ease;
}
.solta svg { width: 18px; height: 18px; }
.solta:hover, .solta.sobre { border-color: var(--primary); background: var(--primary-soft); color: var(--fg); }
.solta.off { opacity: .5; cursor: not-allowed; }
.envio { margin-top: 10px; display: flex; flex-direction: column; gap: 6px; }
.envio .barra { height: 8px; }
.link-btn { color: oklch(80% .14 293.5); text-decoration: underline; text-underline-offset: 2px; font-size: 13px; padding: 0 4px; }
.erro-inline { color: var(--danger); font-size: 13px; }
.passo code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; background: var(--muted); padding: 2px 6px; border-radius: 4px; color: var(--fg); }
.tabela.decup td:last-child { font-size: 13px; line-height: 1.4; }
.tabela.decup th:first-child, .tabela.decup td:first-child { width: 2rem; color: var(--muted-fg); }

/* decupagem: resumo e abas */
.decup-resumo { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.decup-tempo { display: flex; align-items: baseline; gap: 8px; }
.decup-tempo .valor { font-size: 22px; font-weight: 600; font-variant-numeric: tabular-nums; }
.decup-tempo .valor.ok { color: var(--ok); }
.decup-tempo svg { width: 16px; height: 16px; color: var(--muted-fg-2); align-self: center; }
.decup-chips { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }

.ok-inline { color: var(--ok); font-size: 13px; }

/* ---------- headline: três opções ---------- */
.opcoes-h { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 4px; }
.opcao-h {
  display: flex; flex-direction: column; align-items: flex-start; gap: 8px; text-align: left;
  padding: 12px; border-radius: var(--radius); border: 2px solid var(--border); background: var(--card-2);
  transition: border-color .15s ease, background .15s ease;
}
.opcao-h:hover { border-color: var(--border-2); }
.opcao-h.on { border-color: var(--primary); background: var(--primary-soft); }
.opcao-h:disabled { opacity: .5; cursor: not-allowed; }
.opcao-h-nome { font-size: 14px; font-weight: 600; }
.mini { position: relative; width: 54px; height: 96px; border-radius: 6px; overflow: hidden; background: var(--muted); border: 1px solid var(--border-2); }
.mini-cima, .mini-baixo { position: absolute; left: 0; right: 0; }
.mini-cima { top: 0; height: 50%; background: repeating-linear-gradient(45deg, oklch(100% 0 0 / .08) 0 4px, transparent 4px 8px); }
.mini-baixo { bottom: 0; height: 50%; background: oklch(62% .22 293.5 / .55); }
.mini.cheia_texto .mini-baixo { height: 100%; }
.mini.cheia_texto .mini-cima { display: none; }
.mini-txt { position: absolute; top: 8px; left: 0; right: 0; text-align: center; font-size: 13px; font-weight: 700; color: #fff; text-shadow: 0 1px 2px #000; }
.h-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.campo { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 16rem; }
.campo span { font-size: 12px; color: var(--muted-fg); }
.campo.curto { flex: 0 0 7rem; min-width: 7rem; }
@media (max-width: 960px) { .opcoes-h { grid-template-columns: 1fr; } }

.opcao-h .ref { width: 100%; max-width: 180px; aspect-ratio: 9 / 16; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-2); background: var(--muted); align-self: center; }
.opcoes-h.duas { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.trilha-linha { display: flex; align-items: center; gap: 12px; width: 100%; }
.trilha-linha .min { display: flex; flex-direction: column; gap: 2px; }
.tocar { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--primary); color: var(--primary-fg); cursor: pointer; transition: transform .1s ease, filter .15s ease; }
.tocar:hover { filter: brightness(1.1); }
.tocar:active { transform: scale(.95); }
.tocar.on { background: var(--ok-soft); color: var(--ok); }
@media (max-width: 960px) { .opcoes-h.duas { grid-template-columns: 1fr; } }
/* amostra de cor do B-roll: três faixas, cruas ou com a cor da identidade */
.amostra { flex: 0 0 auto; display: inline-flex; gap: 3px; width: 40px; height: 40px; padding: 4px; border-radius: 10px; border: 1px solid var(--border-2); background: var(--muted); }
.amostra span { flex: 1; border-radius: 3px; }
.amostra.sem_identidade span:nth-child(1) { background: #8a8f98; }
.amostra.sem_identidade span:nth-child(2) { background: #b5b9c0; }
.amostra.sem_identidade span:nth-child(3) { background: #5e626a; }
.amostra.com_identidade span:nth-child(1) { background: #c9a56a; }
.amostra.com_identidade span:nth-child(2) { background: #2f6f8f; }
.amostra.com_identidade span:nth-child(3) { background: #7a3f5c; }
/* amostra de legenda: "Aa" numa caixa clara ou mais escura */
.amostra-leg { flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; font-size: 15px; border: 1px solid var(--border-2); }
.amostra-leg.padrao { background: #f4f4f5; color: #111; }
.amostra-leg.elias { background: #1b1d22; color: #eef3e6; font-family: 'Gambarino', Georgia, 'Times New Roman', serif; font-weight: 400; letter-spacing: -0.5px; -webkit-text-stroke: 0.4px #fff; }
.amostra-leg.mais_escura { background: #1c1c21; color: #fff; }
/* texto da headline: prévia blocada vermelha (Poppins Bold, duas linhas, centralizada) */
.headline-previa { align-self: center; width: 100%; min-height: 3.4em; display: flex; align-items: center; justify-content: center; text-align: center; padding: 8px 12px; border-radius: 6px; background: #d12b2b; color: #fff; font-weight: 700; font-size: 13px; line-height: 1.15; letter-spacing: -.01em; }
.headline-previa.fraca { background: var(--muted); color: var(--muted-fg); font-weight: 600; }
.opcao-h.vazia { cursor: default; opacity: .7; }
.h-form { display: flex; align-items: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 8px; width: 100%; }
.h-form .campo { min-width: 20rem; }
textarea.select { resize: vertical; min-height: 3.2em; line-height: 1.3; font: inherit; }
.passo-cabeca { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.spinner.mini { width: 12px; height: 12px; border-width: 2px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.texto-corte { font-size: 13px; line-height: 1.5; color: var(--muted-fg); max-height: 9em; overflow: auto; padding: 10px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid var(--border); }

/* ---------- entrada por botão ---------- */
.pagina.entrada { display: flex; align-items: center; justify-content: center; min-height: 100%; }
.entrada-cartao { width: min(520px, 100%); padding: 28px; display: flex; flex-direction: column; gap: 10px; }
.entrada-cartao h2 { font-size: 22px; font-weight: 600; letter-spacing: -.01em; }
.entrada-lista { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.entrada-btn { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card-2); text-align: left; transition: border-color .15s ease, background .15s ease; }
.entrada-btn:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.entrada-btn:disabled { opacity: .45; cursor: not-allowed; }
.entrada-btn .texto { display: flex; flex-direction: column; line-height: 1.25; min-width: 0; }
.entrada-btn .nome { font-weight: 600; font-size: 14px; }
.entrada-btn .avatar { margin: 0; border: 0; }
/* usuário na barra lateral */
#usuario-bloco { width: 100%; }
#usuario-bloco .usuario { width: 100%; text-align: left; }
.menu.menu-usuario { right: 0; left: 0; top: auto; bottom: calc(100% + 6px); min-width: 0; }
.menu-item.sem-acao { cursor: default; }
.menu-item.sem-acao:hover { background: transparent; color: inherit; }
.nav-badge { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--primary); color: var(--primary-fg); font-size: 11px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.nav-badge[hidden] { display: none; }
/* ---------- demandas ---------- */
.secao-titulo .btn { margin-left: auto; text-transform: none; letter-spacing: 0; }
.secao-titulo.vermelho { color: var(--danger); }
.vermelho { color: var(--danger); }
.aviso-leve { color: var(--warning); }
.resumo-pessoas { margin-bottom: 4px; }
.resumo-pessoa { display: flex; align-items: center; gap: 12px; padding: 12px 14px; }
.resumo-pessoa .nome { font-weight: 600; font-size: 14px; }
.resumo-pessoa .avatar { margin: 0; border: 0; }
.lista-demandas { display: flex; flex-direction: column; gap: 8px; margin-bottom: 8px; }
.demanda { display: flex; align-items: center; gap: 14px; padding: 10px 14px; border-radius: var(--radius); border: 1px solid var(--border); background: var(--card); cursor: pointer; transition: border-color .15s ease; }
.demanda:hover { border-color: var(--border-2); }
.demanda.urgente { border-left: 3px solid var(--danger); }
.demanda.feito { opacity: .6; }
.demanda.feito .demanda-titulo { text-decoration: line-through; }
.demanda .min { flex: 1; min-width: 0; }
.demanda-titulo { font-weight: 600; font-size: 14px; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.demanda .sub { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; margin-top: 2px; }
.seg { display: inline-flex; border: 1px solid var(--border-2); border-radius: 8px; overflow: hidden; flex: 0 0 auto; }
.seg button { height: 30px; padding: 0 10px; font-size: 12px; font-weight: 500; color: var(--muted-fg); background: transparent; border-right: 1px solid var(--border); }
.seg button:last-child { border-right: 0; }
.seg button:hover { background: var(--muted); color: var(--fg); }
.seg button.on { background: var(--primary-soft); color: oklch(85% .12 293.5); }
.seg button[data-status-demanda$=":feito"].on { background: var(--ok-soft); color: var(--ok); }
.seg.solto { align-self: flex-start; }
.modal-demanda { width: min(860px, 100%); }
.demanda-grid { grid-template-columns: 1fr 1fr; }
.demanda-grid .col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.linha-campos { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.campo .select { width: 100%; }
.texto-longo { white-space: pre-wrap; font-size: 14px; line-height: 1.5; }
.refs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; font-size: 13px; }
.refs a { color: oklch(80% .14 293.5); text-decoration: underline; text-underline-offset: 2px; word-break: break-all; }
.comentarios { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 13px; max-height: 14em; overflow: auto; }
.comentarios li { padding: 8px 10px; border-radius: 8px; background: var(--card-2); white-space: pre-wrap; }
.com-cab { display: flex; justify-content: space-between; gap: 8px; margin-bottom: 2px; }
.com-form { display: flex; gap: 8px; align-items: flex-end; }
.com-form textarea { flex: 1; }
.acessos { display: flex; flex-direction: column; padding: 4px 14px; }
.acesso { display: grid; grid-template-columns: 1.2fr 2fr auto; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.acesso:last-child { border-bottom: 0; }
.acesso .nome { font-weight: 600; }
@media (max-width: 960px) { .demanda-grid { grid-template-columns: 1fr; } .acesso { grid-template-columns: 1fr; gap: 4px; } }
/* avisos importantes */
.aviso-card { cursor: pointer; }
.aviso-texto { font-size: 13px; line-height: 1.55; color: var(--muted-fg); word-break: break-word; display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.aviso-texto.grande { display: block; -webkit-line-clamp: unset; font-size: 15px; line-height: 1.6; color: var(--fg); flex: 1; min-height: 0; overflow: auto; padding: 4px 2px; }
/* janela do aviso: quadrada e grande, o texto inteiro à vista */
.modal-aviso { width: min(680px, 100%); height: min(680px, 90vh); max-height: 90vh; padding: 22px 26px 16px; }
.modal-aviso .modal-titulo { font-size: 20px; }
.modal-aviso .campo.cresce { flex: 1; min-height: 0; }
.modal-aviso .campo.cresce textarea { flex: 1; min-height: 0; height: 100%; resize: none; font-size: 16px; line-height: 1.55; }
.aviso-texto a { color: oklch(80% .14 293.5); text-decoration: underline; text-underline-offset: 2px; }
.opcao-h .intens { font-style: italic; line-height: 1.35; }

/* Editar: resumo do preset aplicado */
.resumo-preset ul { margin: 6px 0 4px; padding-left: 18px; font-size: 13px; color: var(--texto-2, inherit); }
.resumo-preset li { margin: 2px 0; }
.resumo-preset details { margin: 6px 0; font-size: 13px; }
.resumo-preset summary { cursor: pointer; color: var(--primary); }

/* ---------- equipamentos ---------- */
.eq-wrap { overflow-x: auto; }
.eq-colunas { min-width: max-content; }
.eq-caixa {
  display: flex; flex-direction: column; gap: 10px;
  flex: 0 0 190px; min-width: 190px; min-height: 0;
  padding: 10px; border-radius: var(--radius-lg);
  border: 2px solid var(--border); background: oklch(20% .004 293);
}
.eq-caixa.eq-local { border-style: dashed; }
.eq-caixa.sobre { border-color: var(--primary); background: var(--primary-soft); }
.eq-caixa .coluna-titulo .sub { font-weight: 400; color: var(--muted-fg); }
.eq-card { cursor: grab; }
.eq-card.arrastando { opacity: .4; }
.novo-eq { margin-top: auto; }
.novo-eq-input { width: 100%; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--border-2); background: var(--card); color: inherit; font: inherit; font-size: 13px; }

/* ---------- demanda do dia / trabalho do editor ---------- */
.pessoa-wrap { display: flex; flex-direction: column; gap: 8px; }
.pessoa-wrap > .btn { align-self: flex-start; }
.dia-bloco { padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; }
.dia-cab { display: flex; align-items: center; gap: 10px; }
.dia-cab .min { flex: 1; min-width: 0; }
.dia-titulo { font-size: 14px; font-weight: 600; }
.dia-titulo .sub { font-weight: 400; color: var(--muted-fg); }
.dia-itens { display: flex; flex-direction: column; gap: 6px; }
.dia-item { display: flex; align-items: flex-start; gap: 10px; padding: 8px 10px; border-radius: 8px; background: var(--card); border: 1px solid var(--border); font-size: 13px; }
.dia-n { flex: 0 0 18px; color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.dia-item input { margin-top: 2px; accent-color: var(--primary); }
.dia-item .texto { flex: 1; min-width: 0; white-space: pre-line; }
.dia-item.feito .texto { text-decoration: line-through; color: var(--muted-fg); }
.dia-item input:disabled { cursor: default; }
.trab-lista { display: flex; flex-direction: column; gap: 6px; margin: 4px 0 8px; }
.trab-linha { display: flex; align-items: center; gap: 8px; padding: 8px 12px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); font-size: 13px; }
.trab-linha .nome { font-weight: 500; }
.trab-linha .sub { margin-left: auto; text-align: right; }
.gravar-btn { gap: 6px; }
.gravar-btn.gravando { background: var(--danger); border-color: var(--danger); color: #fff; animation: pisca-grav 1s ease-in-out infinite; }
@keyframes pisca-grav { 50% { opacity: .65; } }
textarea.select { font: inherit; font-size: 13px; line-height: 1.4; resize: vertical; width: 100%; }

.destaque.revisao { flex-direction: column; align-items: stretch; gap: 10px; }
.destaque.revisao .trab-lista { margin: 0; }

/* ---------- passo a passo ao vivo do Aplicar tudo ---------- */
.etapas-vivas { display: flex; flex-direction: column; gap: 4px; margin-top: 10px; }
.etapa-viva { display: flex; align-items: center; gap: 8px; font-size: 13px; padding: 4px 8px; border-radius: 6px; }
.etapa-viva .marca { width: 16px; text-align: center; color: var(--success, #4ade80); }
.etapa-viva .nome { flex: 1; min-width: 0; }
.etapa-viva .tempo { color: var(--muted-fg); font-variant-numeric: tabular-nums; }
.etapa-viva.feita .nome { color: var(--muted-fg); }
.etapa-viva.atual { background: var(--primary-soft); font-weight: 500; }
.etapa-viva.total { border-top: 1px solid var(--border); margin-top: 2px; padding-top: 6px; color: var(--muted-fg); }
.etapa-viva.atual { font-size: 15px; padding: 8px 10px; }
.etapa-viva.atual .rotulo { display: block; font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted-fg); margin-bottom: 2px; }
.etapa-fila { font-size: 13px; color: var(--muted-fg); padding: 2px 8px 6px; }
.etapa-aviso { font-size: 13px; line-height: 1.4; padding: 8px 10px; border-radius: 6px; margin: 4px 0; }
.etapa-aviso.mouse { background: oklch(70% .14 75 / .14); border: 1px solid oklch(70% .14 75 / .45); }
.etapa-aviso.lento { background: oklch(62% .19 25 / .14); border: 1px solid oklch(62% .19 25 / .5); }

/* ---------- Editar: seletor de timeline e fila (02/11/2026) ---------- */
.g-chips .chip.on { background: var(--primary-soft); border-color: oklch(70% .14 293.5 / .6); color: oklch(88% .1 293.5); }
.fila-lista { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 12px; }
.fila-item { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 6px 10px; border-radius: 8px; background: var(--card-2); }
.fila-item input { accent-color: oklch(70% .14 293.5); }
.fila-item.apagada { opacity: .55; }

.proj-card-travado { opacity: .45; cursor: not-allowed; pointer-events: none; }
/* leva do dia (12/11/2026) */
.fila-item .min { flex: 1; min-width: 0; }
.fila-item.erro { background: color-mix(in oklch, var(--card-2) 80%, oklch(62% .2 25)); }

/* sininho (16/11/2026): novidade no projeto ou aviso novo, até a pessoa abrir */
.nav-sino { margin-left: auto; display: inline-flex; color: #f5b83d; }
.nav-sino[hidden] { display: none; }
.nav-sino svg, .proj-sino svg { width: 14px; height: 14px; }
.proj-sino { display: inline-flex; vertical-align: -2px; margin-left: 6px; color: #f5b83d; }
/* Editar numa tela só (16/11/2026): timeline clicável, sem caixinha; selecionada fica na cor do destaque */
.fila-tl { display: flex; align-items: center; gap: 8px; font-size: 14px; padding: 8px 12px; border-radius: 8px; background: var(--card-2); border: 1px solid transparent; cursor: pointer; user-select: none; }
.fila-tl:hover { border-color: oklch(70% .14 293.5 / .35); }
.fila-tl.on { background: var(--primary-soft); border-color: oklch(70% .14 293.5 / .6); color: oklch(88% .1 293.5); }
.fila-tl .min { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.g-chips .chip:disabled { opacity: .4; cursor: default; }
/* passo a passo da edição (17/11/2026) */
.passo-item { gap: 10px; }
.passo-item .passo-txt { font-size: 13px; color: var(--muted, #9aa0aa); text-align: right; max-width: 62%; }
.passo-item.rodando { background: var(--primary-soft); }
.passo-item.rodando .passo-txt { color: oklch(88% .1 293.5); }
.passo-item.ok .passo-txt { color: oklch(78% .15 150); }
