/* BioSphere · plataforma · estilos do bloco Execução (W2 · Projetos e execução).
   Módulos: MOD-02 Projetos, MOD-06 Simulation Hub, MOD-07 Experimentos, MOD-11 Copiloto e caderno, MOD-12 Drug Discovery.
   Só tokens de ds/tokens.css; prefixo de classe exe-. Nada vaza para fora das seções .exe. */

/* ---------- Página e barras ---------- */
.exe .ap-head { align-items: flex-end; }
.exe-bar { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-width: 0; }
.exe-bar .bs-search { flex: 1 1 240px; min-width: 0; max-width: 420px; }
.exe-bar__sp { flex: 1; }
.exe-bar .bs-select { width: auto; min-width: 150px; }
.exe-tabs { overflow-x: auto; scrollbar-width: none; max-width: 100%; }
.exe-tabs::-webkit-scrollbar { display: none; }
.exe-tabs button { white-space: nowrap; }
.exe-sec { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.exe-sec__h { display: flex; align-items: baseline; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; margin: 0; font-size: 20px; font-weight: 400; letter-spacing: -.02em; }
.exe-sec__h small { font-size: 13px; color: var(--ink-muted); letter-spacing: 0; }
.exe-note { margin: 0; font-size: 12.5px; line-height: 1.45; color: var(--ink-muted); }
.exe-note b { color: var(--ink); font-weight: 500; }
.exe-acts { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.exe-lock { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-muted); font-size: 12px; }
.exe-muted { color: var(--ink-muted); }
.exe-mono { font-family: var(--font-mono); font-size: 12px; }
.exe-wrap { overflow-wrap: anywhere; }
.exe-full { grid-column: 1 / -1; }

/* ---------- Grades de cards de entidade ---------- */
.exe-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: var(--space-4); }
.exe-grid > .bs-card { min-width: 0; }

/* ---------- Cabeçalho do workspace ---------- */
.exe-ws { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, 1fr); gap: var(--space-5); align-items: center; }
.exe-ws__cell { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.exe-ws__cell > small { font-size: 12px; color: var(--ink-muted); }
.exe-ws__tags { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.exe-groups { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.exe-groups .bs-seg { align-self: flex-start; max-width: 100%; overflow-x: auto; }

/* ---------- Métrica no cabeçalho do painel (repete o herói do card) ---------- */
.exe-dw { display: flex; align-items: flex-end; gap: 14px; margin-top: 6px; font-size: 13px; line-height: 1.4; }
.exe-dw > span:last-child { padding-bottom: 4px; opacity: .88; }
.exe-dw--ink > span:last-child { color: var(--ink-muted); opacity: 1; }

/* ---------- Quadros (kanban) ---------- */
.exe-kanban { min-width: 0; }
.exe-kanban .bs-kcard { text-align: left; width: 100%; }
.exe-kanban .bs-kcard .bs-tag { align-self: flex-start; }
.exe-kanban .bs-col__head b { font-weight: 500; }

/* ---------- Assistentes (wizard) ---------- */
.exe-wiz { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: var(--space-5); align-items: start; }
.exe-wiz__side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: var(--space-3); }
.exe-wiz__grp { display: flex; flex-direction: column; gap: 2px; }
.exe-wiz__grp > small { padding: 6px 12px 4px; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-muted); }
.exe-wiz__step { display: flex; align-items: center; gap: 10px; width: 100%; padding: 8px 12px; border-radius: var(--radius-md); font-size: 13.5px; color: var(--ink); text-align: left; transition: background .25s; }
.exe-wiz__step:hover { background: var(--surface-sunken); }
.exe-wiz__step.is-on { background: var(--surface-strong); font-weight: 500; }
.exe-wiz__dot { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--surface-sunken); font: 500 11px var(--font-mono); color: var(--ink-muted); }
.exe-wiz__step.is-done .exe-wiz__dot { background: var(--mint); color: var(--on-mint); }
.exe-wiz__step.is-on .exe-wiz__dot { background: var(--ink); color: var(--on-ink); }
.exe-wiz__main { display: flex; flex-direction: column; gap: var(--space-4); min-width: 0; }
.exe-wiz__foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.exe-wiz__foot .exe-bar__sp { min-width: 8px; }
.exe-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.exe-form > .exe-full { grid-column: 1 / -1; }
.exe-pick { display: flex; flex-direction: column; gap: 6px; max-height: 280px; overflow: auto; }
.exe-pick .bs-row.is-on { box-shadow: inset 0 0 0 1.5px var(--ink); }

/* ---------- Conversa, caderno e captura ---------- */
.exe-chat { display: flex; flex-direction: column; gap: 10px; max-height: 520px; overflow: auto; padding-right: 4px; }
.exe-chat .bs-msg { max-width: 92%; }
.exe-note-it { display: flex; flex-direction: column; gap: 8px; }
.exe-note-it p { margin: 0; font-size: 14.5px; line-height: 1.5; }
.exe-links { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.exe-transcr { font-size: 15px; line-height: 1.6; margin: 0; }
.exe-diff { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-3); }
.exe-wave { display: flex; align-items: center; gap: 3px; height: 40px; }
.exe-wave i { flex: 1; min-width: 2px; border-radius: var(--radius-pill); background: var(--ink-faint); }
.exe-wave i.on { background: var(--ink); }

/* ---------- Simulação e molécula ---------- */
.exe-mol { display: grid; place-items: center; min-height: 140px; }
.exe-molgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: var(--space-3); }
.exe-molcard { display: flex; flex-direction: column; gap: 6px; padding: 12px; border-radius: var(--radius-md); background: var(--surface-sunken); text-align: left; color: var(--ink); transition: box-shadow .25s; }
.exe-molcard:hover { box-shadow: inset 0 0 0 1px var(--line-strong); }
.exe-molcard b { font: 500 13px var(--font-mono); }
.exe-molcard small { font-size: 12px; color: var(--ink-muted); }
.exe-log { max-height: 180px; overflow: auto; font: 12px/1.6 var(--font-mono); }
.exe-kv-tight .bs-kv { gap: 10px 16px; }

/* ---------- Gráficos simples (svg com tokens) ---------- */
.exe-graph { width: 100%; height: auto; display: block; }
.exe-graph line { stroke: var(--line-strong); stroke-width: 1.2; }
.exe-graph circle { fill: var(--surface-raised); stroke: var(--ink); stroke-width: 1.4; cursor: pointer; }
.exe-graph circle.on { fill: var(--mint); stroke: var(--mint-strong); }
.exe-graph circle.warn { fill: var(--orange-soft); stroke: var(--orange); }
.exe-graph text { font: 11px var(--font-mono); fill: var(--ink-muted); }

/* ---------- Tabelas ---------- */
.exe .bs-table td .bs-tag + .bs-tag { margin-left: 4px; }
.exe-td-acts { white-space: nowrap; text-align: right; }
.exe-td-acts .bs-mini + .bs-mini { margin-left: 4px; }
.exe-row-lock { opacity: .72; }

/* ---------- Celular ---------- */
@media (max-width: 900px) {
  .exe-ws { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .exe-wiz { grid-template-columns: minmax(0, 1fr); }
  .exe-wiz__side { position: static; flex-direction: row; overflow-x: auto; }
  .exe-wiz__grp { flex: none; }
  .exe-wiz__grp > small { display: none; }
  .exe-wiz__step { white-space: nowrap; }
  .exe-form { grid-template-columns: minmax(0, 1fr); }
  .exe-diff { grid-template-columns: minmax(0, 1fr); }
  .exe-bar .bs-search { max-width: none; }
  .exe-bar .bs-select { flex: 1 1 140px; }
}
