/* =====================================================================================================
   ESTILOS DO APP. Cores e fonte vêm de theme.css (carregado antes deste arquivo).
   Escalas fixas de espaçamento e tipografia: use as variáveis --s-* e --fs-*, não valores soltos.
   ===================================================================================================== */
:root {
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 24px; --s-6: 32px; --s-7: 48px;
  --fs-xs: .75rem; --fs-sm: .875rem; --fs-md: 1rem; --fs-lg: 1.125rem; --fs-xl: 1.375rem; --fs-2xl: 1.75rem;
  --radius-sm: 6px; --radius: 10px; --radius-lg: 14px;
  --shadow: 0 1px 2px rgba(1, 19, 52, .06), 0 1px 3px rgba(1, 19, 52, .04);
  --shadow-lg: 0 12px 32px -12px rgba(1, 19, 52, .35);
  --focus: 0 0 0 3px rgba(0, 67, 39, .25);
  --maxw: 1200px;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; background: var(--canvas); color: var(--ink);
  font: var(--fs-md)/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
body::before { content: ""; display: block; height: 4px; background: var(--stripe); }
h1, h2, h3 { color: var(--brand); line-height: 1.25; margin: 0 0 var(--s-3); font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: var(--fs-2xl); } h2 { font-size: var(--fs-xl); } h3 { font-size: var(--fs-lg); }
p { margin: 0 0 var(--s-3); }
p:last-child { margin-bottom: 0; }
a { color: var(--brand); text-underline-offset: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.lead { font-size: var(--fs-lg); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.spacer { height: var(--s-4); }
.footnote { margin-top: var(--s-4); text-align: center; }

/* ---------- Estrutura da página ---------- */
/* Cabeçalho: faixa branca de largura total; o conteúdo alinha com a coluna da página. */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  background: var(--surface); border-bottom: 1px solid var(--line);
  padding: var(--s-4) max(var(--s-5), calc((100% - var(--maxw)) / 2 + var(--s-5)));
}
.top .title { margin: 0; font-size: var(--fs-lg); color: var(--ink); }
.logo { font-weight: 700; font-size: var(--fs-xl); color: var(--brand); letter-spacing: -.02em; text-decoration: none; white-space: nowrap; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: var(--s-6) var(--s-5) var(--s-7); }
.wrap.narrow { max-width: 680px; }
.wrap.full { max-width: none; }
body:has(.wrap.full) .top { padding-left: var(--s-5); padding-right: var(--s-5); }
.stack { display: flex; flex-direction: column; gap: var(--s-5); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--s-3); margin-bottom: var(--s-4); }
.toolbar .row { gap: var(--s-3); }
@media (max-width: 600px) {
  .top { padding: var(--s-3) var(--s-4); }
  .wrap { padding: var(--s-5) var(--s-4) var(--s-6); }
  h1 { font-size: var(--fs-xl); } h2 { font-size: var(--fs-lg); }
}

/* ---------- Cartões e grades ---------- */
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--s-5); box-shadow: var(--shadow); }
.panel.tint { background: var(--tint); border-color: transparent; box-shadow: none; }
.panel + .panel { margin-top: var(--s-5); }
.panel > h2:first-child, .panel-head h2 { margin-bottom: var(--s-4); }
.panel-head { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; justify-content: space-between; margin-bottom: var(--s-4); }
.panel-head h2 { margin: 0 0 var(--s-1); }
.panel-head p { margin: 0; max-width: 70ch; }
.panel-note { margin-top: var(--s-4); }
.row { display: flex; gap: var(--s-3); flex-wrap: wrap; align-items: center; }
.row.between { justify-content: space-between; }
.row.nowrap { flex-wrap: nowrap; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--s-4) var(--s-5); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--s-4) var(--s-5); }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: 1fr; } }
/* Painel de controle: cartões lado a lado quando há espaço */
.control-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: var(--s-5); align-items: start; }
.control-grid > .panel + .panel { margin-top: 0; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s-2);
  min-height: 44px; padding: 0 var(--s-5); border-radius: var(--radius);
  border: 1px solid var(--brand); background: var(--surface); color: var(--brand);
  font-weight: 700; line-height: 1.2; cursor: pointer; text-decoration: none; text-align: center;
  transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s;
}
.btn:hover { background: var(--tint); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn.primary { background: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-strong); border-color: var(--brand-strong); }
.btn.lime { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.lime:hover { filter: brightness(.96); }
.btn.danger { border-color: var(--danger); color: var(--danger); }
.btn.danger:hover { background: #fbeeee; }
.btn.sm { min-height: 36px; padding: 0 var(--s-4); font-size: var(--fs-sm); white-space: nowrap; }
.btn.block { width: 100%; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Formulários ---------- */
label { display: block; font-weight: 700; margin: 0 0 var(--s-2); }
.field { margin-bottom: var(--s-4); }
.hint { font-weight: 400; color: var(--muted); font-size: var(--fs-sm); }
input[type=text], input[type=password], input[type=number], select, textarea {
  width: 100%; min-height: 44px; padding: var(--s-2) var(--s-3); background: var(--surface);
  border: 1px solid var(--field-line); border-radius: var(--radius); transition: border-color .15s, box-shadow .15s;
}
textarea { min-height: 104px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: var(--focus); }
select.inline, .switcher { width: auto; min-height: 36px; padding: 0 var(--s-3); }
.switcher { max-width: 340px; }
.err { color: var(--danger); font-weight: 700; min-height: 1.4em; margin-bottom: var(--s-2); }
.ok { color: var(--brand); font-weight: 700; }
.check { display: flex; gap: var(--s-2); align-items: center; font-weight: 400; margin: var(--s-1) 0 var(--s-4); }
.check input { width: 18px; height: 18px; }

/* ---------- Etiquetas ---------- */
.pill { display: inline-flex; align-items: center; min-height: 28px; padding: 0 var(--s-3); border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: var(--fs-sm); }
.chip { display: inline-block; padding: 2px 10px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-xs); letter-spacing: .02em; border: 1px solid var(--brand); vertical-align: middle; }
.chip.WOW { background: var(--brand); color: #fff; }
.chip.HOW { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chip.NOW { background: var(--surface); color: var(--brand); }
.chip.CIAO { background: var(--muted); border-color: var(--muted); color: #fff; }
.chip.none { border-style: dashed; color: var(--muted); border-color: var(--field-line); }
.tag { display: inline-block; margin-left: var(--s-2); padding: 1px 8px; border-radius: var(--radius-sm); background: var(--accent); color: var(--accent-ink); font-size: var(--fs-xs); font-weight: 700; vertical-align: middle; }
.tag.muted-tag { background: var(--q-ciao); color: var(--muted); }

/* ---------- Abas ---------- */
.tabs { display: flex; gap: var(--s-1); border-bottom: 1px solid var(--line); margin: 0 0 var(--s-5); overflow-x: auto; scrollbar-width: thin; }
.tab { background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -1px; padding: var(--s-3) var(--s-4); font-weight: 700; color: var(--muted); cursor: pointer; white-space: nowrap; border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.tab:hover { color: var(--brand); background: var(--tint); }
.tab[aria-selected=true] { color: var(--brand); border-bottom-color: var(--brand); }

/* ---------- Fases ---------- */
.steps { display: flex; gap: var(--s-2); flex-wrap: wrap; margin-bottom: var(--s-4); }
.step { min-height: 40px; border: 1px solid var(--line); background: var(--surface); border-radius: 999px; padding: 0 var(--s-4); font-weight: 700; color: var(--muted); cursor: pointer; }
.step:hover { border-color: var(--brand); color: var(--brand); }
.step.done { color: var(--brand); border-color: var(--brand); }
.step.current { background: var(--brand); color: #fff; border-color: var(--brand); }
.step-sub { display: block; font-weight: 400; font-size: var(--fs-xs); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Cronômetro ---------- */
.timer { font-variant-numeric: tabular-nums; font-weight: 700; color: var(--brand); font-size: var(--fs-xl); }
.timer.late { color: var(--danger); }
.timer.big { font-size: 3rem; line-height: 1; }
.timer-row { display: flex; flex-wrap: wrap; gap: var(--s-4); align-items: center; margin-bottom: var(--s-3); }

/* ---------- Tabelas ---------- */
.table-scroll { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: var(--s-3) var(--s-4); border-bottom: 1px solid var(--line); vertical-align: top; }
thead th { background: var(--canvas); color: var(--muted); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .05em; white-space: nowrap; }
tbody tr:last-child td { border-bottom: 0; }
tr.pick { cursor: pointer; }
tr.pick:hover, tr.pick.sel { background: var(--tint); }
tr.is-example { background: #fbfde8; }
table.backlog th.grp { text-align: center; }
table.backlog .num-cell { text-align: center; white-space: nowrap; }
table.backlog .strong { font-weight: 700; }
table.backlog td:nth-child(3) { min-width: 260px; }
.lvl { display: inline-block; min-width: 26px; padding: 1px 6px; border-radius: var(--radius-sm); font-weight: 700; font-size: var(--fs-sm); }
.lvl.l1 { background: var(--q-now); color: var(--brand); } .lvl.l2 { background: var(--q-how); color: var(--ink); } .lvl.l3 { background: var(--brand); color: #fff; }

/* ---------- Nova sessão: atalhos ---------- */
.presets { border: 0; padding: 0; margin: 0 0 var(--s-5); display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--s-3); }
.preset { display: flex; gap: var(--s-3); align-items: flex-start; border: 2px solid var(--line); border-radius: var(--radius); padding: var(--s-4); cursor: pointer; font-weight: 400; margin: 0; background: var(--surface); transition: border-color .15s; }
.preset:hover { border-color: var(--field-line); }
.preset span { display: flex; flex-direction: column; gap: var(--s-1); }
.preset input { margin-top: 3px; width: 18px; height: 18px; accent-color: var(--brand); }
.preset:has(input:checked) { border-color: var(--brand); background: var(--tint); }

/* ---------- Ideias e classificação ---------- */
.ideas-grid { display: grid; grid-template-columns: 1fr; gap: var(--s-5); }
.ideas-grid.with-editor { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 900px) { .ideas-grid.with-editor { grid-template-columns: 1fr; } }
.editor { align-self: start; position: sticky; top: var(--s-3); max-height: calc(100vh - var(--s-5)); overflow: auto; }
.editor-head { margin-bottom: var(--s-2); }
.editor-head h2 { margin: 0; }
/* Altura fixa: ao completar os critérios o texto encurta, e o painel não pode "pular" */
.result { display: flex; gap: var(--s-3); align-items: center; flex-wrap: wrap; padding: var(--s-3) var(--s-4); background: var(--tint); border-radius: var(--radius); margin-bottom: var(--s-4); min-height: 72px; }
.seg { display: inline-flex; border: 1px solid var(--brand); border-radius: var(--radius); overflow: hidden; }
.seg button { border: 0; background: var(--surface); padding: 0 var(--s-4); font-weight: 700; color: var(--brand); cursor: pointer; min-height: 40px; }
.seg button + button { border-left: 1px solid var(--brand); }
.seg button:hover { background: var(--tint); }
.seg button[aria-pressed=true] { background: var(--brand); color: #fff; }
.crit { padding: var(--s-4) 0; border-bottom: 1px solid var(--line); }
.crit:last-child { border-bottom: 0; }
.crit details { margin-top: var(--s-2); }
.crit summary { cursor: pointer; color: var(--muted); font-size: var(--fs-sm); }
.crit ul { margin: var(--s-2) 0 0; padding-left: var(--s-5); font-size: var(--fs-sm); }
.idea { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); margin-bottom: var(--s-3); }
.idea h3 { margin-bottom: var(--s-1); font-size: var(--fs-md); }
.idea dl { margin: var(--s-2) 0 0; }
.idea dt { font-weight: 700; font-size: var(--fs-xs); color: var(--brand); text-transform: uppercase; letter-spacing: .04em; }
.idea dd { margin: 0 0 var(--s-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.num { display: inline-block; min-width: 28px; padding: 0 6px; text-align: center; border-radius: var(--radius-sm); background: var(--tint); color: var(--brand); font-weight: 700; margin-right: 6px; }

/* ---------- Grupos ---------- */
.groups { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: var(--s-4); }
.group { border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); }
.group h3 { display: flex; align-items: center; font-size: var(--fs-md); margin-bottom: var(--s-1); }
.group ul { list-style: none; margin: var(--s-3) 0 0; padding: 0; }
.group li { display: flex; gap: var(--s-2); align-items: center; justify-content: space-between; padding: var(--s-2) 0; border-top: 1px solid var(--line); }
.group li > span:first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.group li .id-line { display: block; line-height: 1.2; }
.group li .row { flex-wrap: nowrap; gap: var(--s-2); }
.group select { width: auto; min-width: 84px; min-height: 32px; padding: 0 var(--s-2); }

/* ---------- Entrada dos participantes ---------- */
.join { display: flex; flex-wrap: wrap; gap: var(--s-5); align-items: center; }
.join-info { flex: 1 1 280px; min-width: 0; }
.join-info > p:first-child { margin-bottom: var(--s-1); }
.join-link { flex-wrap: nowrap; margin-bottom: var(--s-3); }
.join-link input { flex: 1; min-width: 0; }
.code { font-size: 2.5rem; font-weight: 700; letter-spacing: .18em; color: var(--brand); line-height: 1.1; margin-bottom: var(--s-3); }
.qr { width: 200px; height: 200px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-2); }

/* ---------- Calculadora de tempo ---------- */
.calc h3 { font-size: var(--fs-md); margin-bottom: var(--s-3); }
.calc-result { background: var(--tint); border-radius: var(--radius); padding: var(--s-3) var(--s-4); font-weight: 700; color: var(--brand); min-height: 2.8em; }
.calc-foot { margin-top: var(--s-4); }

/* ---------- Matriz de post-its: esforço no eixo vertical (alto em cima), impacto no horizontal ---------- */
.board { display: grid; grid-template-columns: 28px minmax(0, 1fr) minmax(0, 1fr); grid-template-rows: auto auto auto; gap: var(--s-2); }
.axis-y { grid-column: 1; grid-row: 1 / 3; writing-mode: vertical-rl; transform: rotate(180deg); display: flex; justify-content: space-between; align-items: center; color: var(--muted); font-size: var(--fs-sm); }
.axis-y strong, .axis-x strong { color: var(--brand); }
.axis-x { grid-column: 2 / 4; grid-row: 3; display: flex; justify-content: space-between; color: var(--muted); font-size: var(--fs-sm); }
.quad { border-radius: var(--radius); padding: var(--s-4); min-height: max(220px, calc((100vh - 320px) / 2)); border: 2px solid transparent; transition: border-color .15s; }
.quad.q-WOW { background: var(--q-wow); } .quad.q-HOW { background: var(--q-how); }
.quad.q-NOW { background: var(--q-now); } .quad.q-CIAO { background: var(--q-ciao); }
.quad.over { border-color: var(--brand); border-style: dashed; }
.quad-head { display: flex; gap: var(--s-2); align-items: center; flex-wrap: wrap; margin-bottom: var(--s-3); }
.quad-cards { display: flex; flex-wrap: wrap; gap: var(--s-3); align-items: flex-start; }
.quad-empty { color: var(--muted); font-size: var(--fs-sm); margin: 0; }
.tray { margin-top: var(--s-4); border: 2px dashed var(--field-line); border-radius: var(--radius); padding: var(--s-4); background: var(--surface); }
.fs-target:fullscreen { background: #fff; padding: var(--s-5); overflow: auto; }
.postit { position: relative; max-width: 220px; padding: var(--s-2) var(--s-3); border-radius: 4px; color: var(--ink); font-weight: 700;
  box-shadow: 0 1px 1px rgba(1, 19, 52, .12), 0 4px 10px -6px rgba(1, 19, 52, .4); overflow-wrap: break-word; hyphens: auto; transition: transform .12s; }
.postit[role=button] { cursor: pointer; }
.postit[role=button]:hover { transform: translateY(-2px); }
.board.editable .postit { cursor: grab; }
.postit-title { font-size: .95rem; line-height: 1.25; }
.postit-moved { margin-left: 6px; color: var(--brand); }
@media (max-width: 600px) {
  .board { grid-template-columns: 20px minmax(0, 1fr) minmax(0, 1fr); gap: 6px; }
  .quad { min-height: 110px; padding: 6px; }
  .quad-head .hint { display: none; }
  .quad-cards { gap: 6px; }
  .postit { max-width: 100%; padding: 6px 8px; }
  .postit-title { font-size: .8rem; }
}
/* Cores dos grupos (post-its e marcadores) */
.g1 { background: #fff59d; } .g2 { background: #ffcc80; } .g3 { background: #a5d6a7; } .g4 { background: #90caf9; }
.g5 { background: #f8bbd0; } .g6 { background: #d1c4e9; } .g7 { background: #b2ebf2; } .g8 { background: #e6ee9c; }
.swatch { display: inline-block; width: 14px; height: 14px; border-radius: 3px; margin-right: var(--s-2); flex: none; vertical-align: -2px; box-shadow: inset 0 0 0 1px rgba(1, 19, 52, .2); }
.group-legend { display: flex; gap: var(--s-4); flex-wrap: wrap; list-style: none; padding: 0; margin: var(--s-3) 0 0 36px; font-size: var(--fs-sm); color: var(--muted); }
.discussion-head { align-items: flex-start; margin-bottom: var(--s-4); }
.discussion-head p { max-width: 75ch; }

/* Legenda dos quadrantes (ícone "i") */
.legend { margin: 0 0 var(--s-3); }
.legend summary { cursor: pointer; display: inline-flex; gap: var(--s-2); align-items: center; font-weight: 700; color: var(--brand); list-style: none; }
.legend summary::-webkit-details-marker { display: none; }
.info-icon { width: 24px; height: 24px; border-radius: 50%; background: var(--brand); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-style: italic; font-family: Georgia, serif; font-weight: 700; }
.legend-body { margin-top: var(--s-3); border: 1px solid var(--line); border-radius: var(--radius); padding: var(--s-3) var(--s-4); background: var(--surface); max-width: 640px; box-shadow: var(--shadow); }
.legend-body dl { margin: 0; }
.legend-body dt { font-weight: 700; margin-top: var(--s-2); }
.legend-body dd { margin: 2px 0 0; }

/* Janela de detalhes da ideia */
.idea-dialog { border: 0; border-radius: var(--radius-lg); padding: var(--s-5); max-width: min(640px, 92vw); width: 100%; color: var(--ink); box-shadow: var(--shadow-lg); }
.idea-dialog::backdrop { background: rgba(1, 19, 52, .55); }
.idea-dialog h2 { margin-top: var(--s-3); }
.idea-dl dt { font-weight: 700; font-size: var(--fs-xs); color: var(--brand); margin-top: var(--s-3); text-transform: uppercase; letter-spacing: .04em; }
.idea-dl dd { margin: 2px 0 0; white-space: pre-wrap; overflow-wrap: anywhere; }
.dlg-move { margin-top: var(--s-4); padding-top: var(--s-4); border-top: 1px solid var(--line); }
.dlg-actions { margin-top: var(--s-3); }

/* ---------- Participante ---------- */
.phase-card { text-align: center; padding: var(--s-6) var(--s-5); }
.group-badge { display: inline-block; background: var(--brand); color: #fff; font-weight: 700; font-size: 1.5rem; padding: var(--s-3) var(--s-5); border-radius: var(--radius); margin: var(--s-2) 0 var(--s-4); }
.how { margin: 0; padding: 0; list-style: none; counter-reset: how; }
.how li { counter-increment: how; position: relative; padding: 0 0 var(--s-4) 48px; display: flex; flex-direction: column; gap: 2px; }
.how li:last-child { padding-bottom: 0; }
.how li::before { content: counter(how); position: absolute; left: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.sheet { border: 1px solid var(--brand); border-radius: var(--radius); padding: var(--s-4); margin: var(--s-3) 0; background: var(--surface); }
.sheet ol { padding-left: var(--s-5); margin: 0; }
.sheet li { margin-bottom: var(--s-2); }
.toast { position: fixed; left: 50%; bottom: var(--s-5); transform: translateX(-50%); background: var(--ink); color: #fff; padding: var(--s-3) var(--s-5); border-radius: var(--radius); font-weight: 700; z-index: 10; max-width: 90vw; box-shadow: var(--shadow-lg); }

/* Participante fantasma: formulário à esquerda, ideias de todos os grupos à direita */
.ghost-ideation { display: grid; grid-template-columns: minmax(320px, 440px) minmax(0, 1fr); gap: var(--s-5); align-items: start; }
.group-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: var(--s-4); }
.group-col h3 { display: flex; align-items: center; gap: 2px; font-size: var(--fs-md); }
.examples { margin-bottom: var(--s-4); }
.idea.g-border { border-left-width: 6px; background: var(--surface); }
.idea.g-border.g1, .initiative.g1 { border-left-color: #f2df3a; } .idea.g-border.g2, .initiative.g2 { border-left-color: #f5a23c; }
.idea.g-border.g3, .initiative.g3 { border-left-color: #5fb265; } .idea.g-border.g4, .initiative.g4 { border-left-color: #4a9be0; }
.idea.g-border.g5, .initiative.g5 { border-left-color: #e5779f; } .idea.g-border.g6, .initiative.g6 { border-left-color: #9a84cf; }
.idea.g-border.g7, .initiative.g7 { border-left-color: #4fc3d4; } .idea.g-border.g8, .initiative.g8 { border-left-color: #b8c43c; }
@media (max-width: 900px) { .ghost-ideation { grid-template-columns: 1fr; } }

/* Síntese: ranking por setor */
.initiative-group { max-width: 900px; margin-bottom: var(--s-5); }
.initiative-group h3 { margin-bottom: var(--s-3); }
.initiative { border: 1px solid var(--line); border-left-width: 6px; border-radius: var(--radius); margin-bottom: var(--s-2); background: var(--surface); box-shadow: var(--shadow); }
.initiative > summary { cursor: pointer; list-style: none; padding: var(--s-3) var(--s-4); display: grid; grid-template-columns: auto 1fr; column-gap: var(--s-3); align-items: center; }
.initiative > summary::-webkit-details-marker { display: none; }
.initiative > summary::after { content: "Ver detalhes"; grid-column: 2; font-size: var(--fs-xs); color: var(--brand); font-weight: 700; }
.initiative[open] > summary::after { content: "Fechar"; }
.initiative-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.initiative-title { font-weight: 700; font-size: var(--fs-md); color: var(--ink); }
.initiative-who { font-size: var(--fs-sm); color: var(--muted); }
.initiative-body { padding: 0 var(--s-4) var(--s-4) 72px; }
.initiative-body .idea-dl { padding: 0; margin: 0; }
.rank-badge { grid-row: 1 / 3; width: 44px; height: 44px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; background: var(--q-now); color: var(--brand); }
.initiative.rank-1 .rank-badge { background: var(--brand); color: #fff; }
.initiative.rank-2 .rank-badge { background: var(--brand-soft); color: #fff; }
.initiative.rank-3 .rank-badge { background: var(--accent); color: var(--accent-ink); }
.see-matrix { margin-top: var(--s-4); }
.see-matrix > summary { cursor: pointer; font-weight: 700; color: var(--brand); padding: var(--s-2) 0; }
@media (max-width: 600px) { .initiative-body { padding-left: var(--s-4); } .rank-badge { width: 36px; height: 36px; font-size: var(--fs-sm); } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; } }
