@import url('tokens.css');
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.5 var(--font); }
h1, h2, h3, p { margin: 0; }
a { color: var(--navy); }
.hide { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.row { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.grow { flex-grow: 1; }

/* topo */
.topbar { background: var(--navy); color: #fff; padding: 16px 48px; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.topbar .brand { font-size: 22px; font-weight: 700; }
.topbar .sep { width: 1px; height: 30px; background: var(--navy-mid); }
.topbar .title { font-weight: 600; }
.topbar .sub { font-size: 13px; color: var(--on-navy-muted); }
.topbar a { color: #fff; font-weight: 600; }
.tag-demo { font-size: 12px; font-weight: 600; background: var(--gold); color: var(--navy); padding: 4px 10px; border-radius: 6px; }

.wrap { max-width: 1184px; margin: 0 auto; padding: 36px 48px 64px; }
.wrap.wide { max-width: 1440px; }
.stack { display: flex; flex-direction: column; gap: 24px; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; align-items: start; }
.side { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 24px; }
h1.page { font-size: 30px; line-height: 1.2; font-weight: 600; color: var(--navy); margin-bottom: 8px; }
.lead { font-size: 16px; color: var(--muted); }

.card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 28px; display: flex; flex-direction: column; gap: 20px; }
.card h2 { font-size: 20px; font-weight: 600; color: var(--navy); }
.card-head { display: flex; align-items: center; gap: 12px; }
.num { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--gold); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.num.navy { background: var(--navy); color: #fff; font-size: 13px; }
.card.gold { border: 2px solid var(--gold); }
.note { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 18px 20px; font-size: 14px; }
.note .tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }

/* campos */
.cols2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, legend { font-weight: 600; font-size: 14px; }
.field small, legend small { font-weight: 400; color: var(--muted); }
fieldset { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
legend { padding: 0; margin-bottom: 8px; }
input[type=text], input[type=password], input[type=email], select, textarea {
  width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 8px;
  background: var(--field); color: var(--ink); font: inherit;
}
textarea { padding: 10px 12px; min-height: 96px; resize: vertical; }
input:focus-visible, select:focus-visible, textarea:focus-visible, button:focus-visible, a:focus-visible, .chip:has(input:focus-visible), .size:has(input:focus-visible) {
  outline: 3px solid var(--focus); outline-offset: 2px;
}
input[readonly], input:disabled { background: var(--soft); border-color: var(--line); }
.hint { font-size: 12px; color: var(--muted); }
.edit { border: 2px solid var(--gold) !important; background: var(--gold-soft) !important; font-weight: 600; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--field-line); background: #fff; font-size: 14px; cursor: pointer; }
.chip input, .size input { accent-color: var(--gold); width: 16px; height: 16px; margin: 0; }
.chip:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.sizes { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.size { display: flex; flex-direction: column; gap: 4px; min-height: 84px; padding: 12px 14px; border-radius: 10px; border: 1px solid var(--field-line); background: #fff; cursor: pointer; }
.size .t { display: flex; gap: 8px; align-items: center; font-weight: 600; }
.size .d { font-size: 13px; }
.size:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.entreg { display: grid; grid-template-columns: 28px minmax(0, 1fr); gap: 12px; align-items: center; }

/* botões: pílula, como no site (primária dourada com texto escuro; secundária com borda) */
.btn { min-height: 48px; padding: 0 28px; border-radius: var(--raio-botao); border: 1px solid var(--line); background: #fff; color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: background .2s ease, border-color .2s ease; }
.btn:hover { background: var(--line); }
.btn.primary, .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn.primary:hover, .btn.gold:hover { background: var(--gold-dark); border-color: var(--gold-dark); }
.btn.navy { background: var(--navy); border-color: var(--navy); color: #fff; }
.btn.navy:hover { background: var(--navy-dark); border-color: var(--navy-dark); }
.btn.ghost { border-color: var(--field-line); }
.btn.lg { min-height: 52px; font-size: 16px; padding: 0 32px; }
.btn.sm { min-height: 40px; padding: 0 20px; font-size: 14px; }
.btn.onnavy { background: transparent; border-color: var(--on-navy-muted); color: #fff; }
.btn.onnavy:hover { background: rgba(255, 255, 255, .12); }
.btn.gold.onnavy, .topbar .btn.gold { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.topbar :focus-visible, .en.ativa:focus-visible { outline-color: #fff; }

.alert { border-radius: 10px; padding: 12px 16px; font-size: 14px; }
.alert.err { background: var(--bad-bg); color: var(--bad); border: 1px solid var(--bad); }
.alert.okk { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok); }
.alert ul { margin: 6px 0 0; padding-left: 20px; }

/* confirmação / entrada */
.center { min-height: calc(100vh - 70px); display: flex; align-items: center; justify-content: center; padding: 32px; }
.box { width: 100%; max-width: 560px; }
.check { width: 52px; height: 52px; border-radius: 50%; background: var(--ok-bg); display: flex; align-items: center; justify-content: center; }
.proto { background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 10px; padding: 14px 16px; }
.proto .v { font-size: 20px; font-weight: 600; color: var(--navy); letter-spacing: .02em; }

/* painel */
.tools { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.tools .f { display: flex; flex-direction: column; gap: 4px; }
.tools label, .tools .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.tools input, .tools select { min-height: 40px; background: #fff; }
.seg { display: inline-flex; border: 1px solid var(--field-line); border-radius: 8px; overflow: hidden; background: #fff; }
.seg button { min-height: 40px; padding: 0 16px; border: 0; border-left: 1px solid var(--field-line); background: #fff; color: var(--ink); font: inherit; cursor: pointer; }
.seg button:first-child { border-left: 0; }
.seg button[aria-pressed=true] { background: var(--navy); color: #fff; font-weight: 600; }
.refs { display: flex; gap: 8px; }
.refs .r { display: flex; align-items: center; gap: 6px; font-size: 12px; }
.refs input { width: 64px; padding: 0 8px; }
.kpis { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; }
.kpi.hl { background: var(--gold-soft); }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 500; }
.kpi .v { font-size: 28px; line-height: 1.25; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.kpi .n { font-size: 12px; color: var(--muted); }
.two { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; }
.panel { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 22px 24px; }
.panel h2 { font-size: 16px; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--muted); margin: 8px 0 12px; }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
/* Defesa em profundidade: nenhuma barra pode sair da sua trilha, qualquer que seja o valor. */
.bar { height: 10px; background: var(--field); border-radius: 3px; overflow: hidden; max-width: 100%; }
.bar > div { max-width: 100%; }
.arow > *, .crow > *, .erow > * { min-width: 0; }
.panel { overflow-x: clip; }
.bar > div { height: 100%; border-radius: 3px; }
.arow { display: grid; grid-template-columns: 160px minmax(0, 1fr) 190px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.arow .vals { text-align: right; font-size: 12px; font-variant-numeric: tabular-nums; }

.table { font-size: 13px; }
.tr { display: grid; grid-template-columns: 70px minmax(0, 2fr) minmax(0, 1.4fr) 140px 76px 120px 100px 150px 100px; gap: 12px; padding: 14px 24px; border-top: 1px solid #e3e7ec; align-items: center; color: inherit; text-decoration: none; }
.tr.th { background: var(--field); border-top: 0; font-size: 12px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 10px; padding-bottom: 10px; }
a.tr:hover { background: #f8fafc; }
.mono { font-family: var(--font-mono); font-size: 12px; color: var(--muted); }
.ttl { font-weight: 600; color: var(--navy); }
.badge { display: inline-block; padding: 2px 10px; border-radius: 6px; font-size: 12px; font-weight: 700; background: var(--neutral-bg); color: var(--neutral); white-space: nowrap; }
.b-ok { background: var(--ok-bg); color: var(--ok); } .b-warn { background: var(--warn-bg); color: var(--warn); }
.b-bad { background: var(--bad-bg); color: var(--bad); } .b-info { background: var(--info-bg); color: var(--info); }
.b-navy { background: var(--navy); color: #fff; } .b-gold { background: var(--gold); color: #1f1700; }
.b-out { background: #fff; border: 1px solid var(--line); color: var(--muted); }

/* ficha */
.ficha { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 24px; align-items: start; }
.kv { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-top: 1px solid #e3e7ec; }
.kv .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.scale { display: flex; gap: 6px; }
.scale label, .pill { flex: 1; display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border-radius: 8px; border: 1px solid var(--field-line); background: #fff; font-size: 13px; cursor: pointer; text-align: center; }
.scale label:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.scale input { accent-color: var(--gold); margin: 0; }
.score { background: var(--navy); color: #fff; border-radius: 10px; padding: 12px 16px; display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.score .big { font-size: 24px; font-weight: 700; color: var(--gold); }
.cost { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; }
.cost .calc { font-size: 12px; color: var(--on-navy-muted); }
.cost .tot { font-size: 20px; font-weight: 700; color: var(--gold); }
.hist { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 12px; padding: 8px 0; border-top: 1px solid #e3e7ec; font-size: 13px; }

/* anexos */
.anexos-ajuda { display: flex; flex-direction: column; gap: 8px; }
input[type=file] { width: 100%; padding: 10px 12px; border: 1px dashed var(--field-line); border-radius: 8px; background: var(--field); font: inherit; min-height: 44px; }
.anexo-linha { display: grid; grid-template-columns: minmax(0, 1fr) 190px auto; gap: 12px; align-items: center; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; }
.anexo-linha strong { overflow-wrap: anywhere; }
.anexo-linha select { min-height: 40px; }
.doc { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.doc + .doc { border-top: 1px solid #e3e7ec; }
.doc > div:first-child { flex-grow: 1; min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 900px) {
  .anexo-linha { grid-template-columns: 1fr; }
  .topbar { padding: 14px 16px; } .wrap { padding: 24px 16px 48px; }
  .form-grid, .two, .ficha { grid-template-columns: 1fr; } .side { position: static; }
  .cols2 { grid-template-columns: 1fr; } .sizes { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .card { padding: 20px 16px; } .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table { overflow-x: auto; } .tr { min-width: 1000px; }
}

/* ===== assistente de preenchimento ===== */
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.kicker { font-size: 13px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.stepper { display: flex; align-items: center; gap: 12px; list-style: none; margin: 0; padding: 0; }
.stepper li { display: flex; align-items: center; gap: 10px; color: var(--muted); font-weight: 500; }
.stepper li:not(:last-child) { flex: 1; }
.stepper li:not(:last-child)::after { content: ""; flex: 1; height: 2px; min-width: 24px; background: var(--line); }
.bolha { width: 32px; height: 32px; border-radius: 50%; border: 2px solid var(--field-line); background: #fff; color: var(--muted); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.stepper li.feito .bolha { background: var(--navy); border-color: var(--navy); color: #fff; }
.stepper li.feito::after { background: var(--navy); }
.stepper li.atual { color: var(--navy); font-weight: 700; }
.stepper li.atual .bolha { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.progresso-mobile { display: none; }
.barra { height: 8px; border-radius: 4px; background: var(--line); margin-top: 8px; }
.barra > div { height: 8px; border-radius: 4px; background: var(--gold); }
.passo-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 32px; align-items: start; margin-top: 28px; }
.passo-grid.sem-lateral { grid-template-columns: minmax(0, 1fr); }
.titulo-passo { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--navy); }
.titulo-passo:focus { outline: none; }
.lbl-linha { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.contador { font-weight: 400; color: var(--muted); font-size: 13px; }
.erro-msg { color: var(--bad); font-size: 13px; font-weight: 600; margin-top: 6px; }
.erro-msg:empty { display: none; }
.erro > input, .erro > select, .erro > textarea, .erro .lista-entreg input { border: 2px solid var(--bad); background: #fff; }
.ok-msg { color: var(--ok); font-size: 13px; font-weight: 600; margin-top: 4px; }
.acoes { display: flex; align-items: center; gap: 12px; padding-top: 16px; border-top: 1px solid #e3e7ec; flex-wrap: wrap; }
.secao { padding-top: 24px; border-top: 1px solid #e3e7ec; }
.reveal { background: var(--field); border-radius: 10px; padding: 18px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 14px; }
.reveal[hidden] { display: none; }
.reveal input, .reveal select { background: #fff; }
.sizes.ex .size { min-height: 150px; }
.erro details.acc { border: 2px solid var(--bad); }
.size .q { margin: 2px 0 8px; opacity: .92; }
details.acc { border: 1px solid var(--line); border-radius: 10px; padding: 0 16px; background: #fff; }
details.acc summary { display: flex; align-items: center; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; }
details.acc summary::-webkit-details-marker { display: none; }
details.acc summary::after { content: "Editar"; font-weight: 600; color: var(--navy); border: 1px solid var(--field-line); border-radius: 8px; padding: 8px 14px; }
details.acc[open] summary { border-bottom: 1px solid #e3e7ec; }
details.acc[open] summary::after { content: "Fechar"; }
details.acc .conteudo { padding: 16px 0; display: flex; flex-direction: column; gap: 14px; }
.dropzone { border: 2px dashed var(--field-line); border-radius: 12px; background: var(--field); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dropzone.sobre { border-color: var(--gold); background: var(--gold-soft); }
.arq { display: grid; grid-template-columns: minmax(0, 1fr) 210px auto; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.arq strong { overflow-wrap: anywhere; }
.dica + .dica { margin-top: 14px; }
.dica .t { font-size: 13px; font-weight: 700; }
.rev { display: flex; flex-direction: column; gap: 12px; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pilula { display: inline-flex; align-self: flex-start; align-items: center; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 6px 16px; font-weight: 600; font-size: 14px; color: var(--navy); }
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 56px; align-items: start; padding: 24px 0 32px; }
.hero h1 { margin: 0; font-size: 46px; line-height: 1.12; font-weight: 600; color: var(--navy); }
.hero h1:focus { outline: none; }
.btn.lg { min-height: 52px; font-size: 16px; padding: 0 28px; }
.tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.tres .card { padding: 24px; gap: 8px; }
.tres h2 { margin: 0; font-size: 17px; font-weight: 600; color: var(--navy); }
.linha-passo { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid #e3e7ec; }
.linha-passo .bolha { background: var(--navy); border-color: var(--navy); color: #fff; }
.tl { list-style: none; margin: 0; padding: 0; }
.tl li { display: flex; gap: 14px; padding: 14px 0; border-top: 1px solid #e3e7ec; }
.tl .bolha { width: 30px; height: 30px; font-size: 13px; color: var(--navy); border-color: var(--navy); }
.tl li.feito .bolha { background: var(--navy); color: #fff; }
dialog { border: 1px solid var(--line); border-radius: 12px; padding: 28px; max-width: 640px; width: calc(100% - 32px); }
dialog::backdrop { background: rgba(19, 47, 80, .5); }

@media (max-width: 900px) {
  .stepper { display: none; }
  .progresso-mobile { display: block; }
  .passo-grid { grid-template-columns: 1fr; margin-top: 20px; }
  .reveal { grid-template-columns: 1fr; }
  .arq { grid-template-columns: 1fr; }
  .hero, .tres { grid-template-columns: 1fr; gap: 24px; }
  .hero h1 { font-size: 34px; }
  .topbar { padding: 12px 16px; }
  .topbar > .sub { display: none; }
  .acoes.fixa { position: sticky; bottom: 0; background: #fff; margin: 0 -16px -20px; padding: 12px 16px 16px; border-top: 1px solid var(--line); z-index: 5; display: grid; grid-template-columns: 1fr 2fr; gap: 8px 10px; }
  .acoes.fixa > .grow { display: none; }
  .acoes.fixa > #rascunho { grid-column: 1 / -1; order: -1; text-align: center; }
  .acoes.fixa > .btn { width: 100%; justify-content: center; }
}
@media print {
  .topbar, .acoes, .nao-imprimir { display: none !important; }
  body { background: #fff; }
  .card { border: 0; padding: 0; }
}

/* ---------- calendário da data limite ---------- */
.dt-wrap { position: relative; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.dt-btn { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 48px; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 8px; background: #fff; color: var(--ink); font: inherit; text-align: left; cursor: pointer; }
.dt-btn > span { flex: 1; }
.dt-btn svg { flex-shrink: 0; color: var(--navy); }
.dt-btn[aria-expanded="true"], .dt-btn.tem { border-color: var(--navy); }
.dt-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(218, 169, 1, .35); }
.link { background: none; border: 0; padding: 4px 0; font: inherit; font-size: 14px; font-weight: 600; color: var(--navy); text-decoration: underline; cursor: pointer; min-height: 32px; }
.dt-pop { position: absolute; top: 56px; left: 0; z-index: 20; width: 336px; max-width: calc(100vw - 32px); padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; box-shadow: 0 8px 24px rgba(19, 47, 80, .18); }
.dt-cab { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.dt-mes { flex: 1; text-align: center; font-weight: 600; color: var(--navy); }
.dt-nav { width: 40px; height: 40px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--navy); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.dt-nav:disabled { color: #a8b0ba; cursor: not-allowed; }
.dt-grade { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.dt-sem { margin-bottom: 4px; text-align: center; font-size: 13px; font-weight: 600; color: var(--muted); }
.dt-dia { height: 42px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 14px; color: var(--ink); cursor: pointer; }
.dt-dia:hover:not(:disabled) { background: var(--field); }
.dt-dia:disabled { color: #b5bcc5; cursor: not-allowed; }
.dt-dia.hoje { box-shadow: inset 0 0 0 2px var(--gold); font-weight: 700; }
.dt-dia.sel { background: var(--navy); color: #fff; font-weight: 700; }
.dt-atalhos { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--soft); }
.chip-btn { min-height: 36px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--field-line); background: #fff; font: inherit; font-size: 13px; cursor: pointer; }
.chip-btn:hover { background: var(--field); }
.dt-rodape { display: flex; margin-top: 8px; }
@media (max-width: 700px) {
  .dt-pop { position: fixed; left: 0; right: 0; bottom: 0; top: auto; width: auto; max-width: none; border-radius: 16px 16px 0 0; padding: 18px 16px 24px; box-shadow: 0 -8px 32px rgba(19, 47, 80, .3); }
  .dt-dia { height: 44px; }
}

/* ---------- ficha completa da demanda (revisão) ---------- */
.ficha { overflow: hidden; }
.ficha-cab { display: flex; align-items: flex-start; gap: 14px; padding: 20px 28px; flex-wrap: wrap; }
.ficha-cab .grow { min-width: 200px; }
.ficha-titulo { font-size: 20px; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.ficha .sec { padding: 18px 28px; border-top: 1px solid var(--soft); }
.ficha .st { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.ficha .kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 28px; }
.ficha .k { font-size: 12px; font-weight: 600; color: var(--muted); }
.ficha .v { overflow-wrap: anywhere; white-space: pre-line; }
.ficha .val { display: inline-block; margin: 0 6px 6px 0; padding: 6px 12px; border-radius: 999px; background: var(--field); border: 1px solid #d5dbe2; font-size: 13px; }
.ficha .falta { color: var(--bad); font-weight: 600; }
.ficha-doc { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 16px; align-items: center; padding: 10px 14px; border: 1px solid #d5dbe2; border-radius: 8px; }
.ficha-doc strong { overflow-wrap: anywhere; }
.ficha-rodape { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 14px 28px; border-top: 1px solid var(--soft); background: #f8fafc; }
@media (max-width: 700px) {
  .ficha-cab, .ficha .sec, .ficha-rodape { padding-left: 18px; padding-right: 18px; }
  .ficha .kv { grid-template-columns: 1fr; }
  .ficha-doc { grid-template-columns: 1fr; gap: 6px; }
}
@media print { .ficha-rodape, .dt-pop { display: none; } }

/* =====================================================================
   Painel administrativo e sessão do comitê
   ===================================================================== */
.panel { box-shadow: var(--sombra); }
.panel h2 { font-size: 17px; }
.panel .h-sub { font-size: 15px; margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--soft); }
.panel > .small.muted { margin-bottom: 4px; }
.duas { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 16px; align-items: start; }
.duas.inv { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); }
.panel-cab { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 4px; }
.panel-cab .legend { margin: 4px 0 0; }

/* resumo executivo */
.exec { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 24px 28px 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 20px; }
.exec-cab { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.exec-h { font-size: 26px; line-height: 1.2; font-weight: 600; color: var(--navy); margin: 2px 0 0; }
.premissas { position: relative; }
.premissas > summary { list-style: none; cursor: pointer; min-height: 40px; display: inline-flex; align-items: center; padding: 0 14px; border: 1px solid var(--field-line); border-radius: 8px; font-weight: 600; font-size: 14px; color: var(--navy); background: #fff; }
.premissas > summary::-webkit-details-marker { display: none; }
.premissas > summary::before { content: "⚙"; margin-right: 8px; }
.premissas-corpo { position: absolute; right: 0; top: 48px; z-index: 15; width: 360px; max-width: calc(100vw - 32px); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; box-shadow: 0 8px 24px rgba(19, 47, 80, .18); display: flex; flex-direction: column; gap: 14px; }
.premissas .f { display: flex; flex-direction: column; gap: 4px; }
.premissas label, .premissas .lbl { font-size: 12px; font-weight: 600; color: var(--muted); }
.premissas input { min-height: 40px; background: #fff; }
.kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kpi { display: flex; flex-direction: column; gap: 4px; padding: 16px 18px; border-radius: 14px; }
.kpi.hl { background: var(--gold-soft); border-color: var(--gold); }
.kpi .v { font-size: 30px; }
.kpi .bar.fino { margin: 2px 0; }
.bar.fino { height: 6px; }
.kpi .bar.fino > div, .etapa .bar.fino > div { background: var(--navy); }
.kpi.hl .bar.fino { background: #f1e2a6; }
.exec-grid { display: grid; grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); gap: 24px; align-items: stretch; }
.funil { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; }
.etapa { padding: 4px 18px; border-left: 1px solid var(--soft); display: flex; flex-direction: column; gap: 2px; }
.etapa:first-child { border-left: 0; padding-left: 0; }
.etapa .fn { font-size: 34px; line-height: 1.1; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.etapa .et { font-size: 13px; font-weight: 600; }
.etapa .bar { margin: 6px 0 2px; }
.etapa.e3 .fn { color: var(--c-aprovar); }
.etapa.e3 .bar > div { background: var(--c-aprovar); }
.leituras { list-style: none; margin: 0; padding: 14px 16px; background: var(--field); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; }
.lt { display: grid; grid-template-columns: 10px minmax(0, 1fr); gap: 10px; align-items: start; }
.lt::before { content: ""; width: 8px; height: 8px; margin-top: 7px; border-radius: 50%; background: var(--navy2); }
.lt.warn::before { background: var(--gold); box-shadow: 0 0 0 2px var(--gold-soft); }
.lt.neutro::before { background: var(--field-line); }

/* matriz estratégica */
.matriz-wrap { margin-top: 8px; }
.matriz { width: 100%; height: auto; display: block; font-family: inherit; overflow: visible; }
.matriz text { fill: var(--muted); font-size: 12px; }
.matriz .g-fundo { fill: #fff; }
.matriz .g-q-ganho { fill: #e9f6ef; }
.matriz .g-grade { stroke: #eef1f4; stroke-width: 1; }
.matriz .g-sep { stroke: #e3e7ec; stroke-width: 1; }
.matriz .g-eixo { stroke: var(--field-line); stroke-width: 1; }
.matriz .g-corte { stroke: #8fa0b3; stroke-width: 1.5; stroke-dasharray: 5 4; }
.matriz .g-corte-t { font-size: 11px; fill: #5f6b78; }
.matriz .g-nivel { fill: var(--ink); font-size: 13px; font-weight: 600; }
.matriz .g-q { paint-order: stroke; stroke: #fff; stroke-width: 3px; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; fill: #7c8794; }
.matriz .g-titulo { font-size: 12px; fill: var(--muted); }
.matriz .g-vazio { font-size: 14px; }
.matriz .pt { cursor: pointer; outline: none; }
.matriz .pt-aprovar { fill: var(--c-aprovar); stroke: #fff; stroke-width: 2; }
.matriz .pt-adiar { fill: #fff; stroke: var(--c-adiar); stroke-width: 3; }
.matriz .pt:hover circle:last-child, .matriz .pt:focus-visible circle:last-child { stroke: var(--navy); stroke-width: 3; }
.matriz .alvo rect { fill: var(--gold); stroke: var(--navy); stroke-width: 2.5; }
.matriz .alvo text { fill: var(--navy); font-weight: 700; font-size: 13px; paint-order: stroke; stroke: #fff; stroke-width: 4px; }
.legend i.lg-aprovar { background: var(--c-aprovar); border-radius: 50%; }
.legend i.lg-adiar { background: #fff; border: 3px solid var(--c-adiar); border-radius: 50%; width: 12px; height: 12px; box-sizing: border-box; }
.legend i.lg-pedido { background: #9FB0C6; } .legend i.lg-aprov { background: var(--navy); }
.quad { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 14px 0 8px; }
.quad .q { display: flex; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--field); font-size: 13px; line-height: 1.3; }
.quad .q-ganho { background: #e9f6ef; }
.quad .qn { font-size: 24px; font-weight: 600; color: var(--navy); min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.dica-grafico { position: fixed; z-index: 50; max-width: 320px; background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; box-shadow: 0 8px 24px rgba(19, 47, 80, .35); pointer-events: none; line-height: 1.4; }
.dica-grafico .dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 6px 0; color: var(--on-navy-muted); }
.dica-grafico .dl b { color: #fff; font-weight: 600; }
.dica-grafico .muted { color: #9FB0C6; }

/* decisões, ciclos, eixos */
.empilhada { display: flex; gap: 2px; height: 14px; border-radius: 7px; overflow: hidden; margin: 14px 0 12px; background: var(--field); }
.drow { display: grid; grid-template-columns: 12px 120px minmax(0, 1fr) 30px; gap: 10px; align-items: center; width: 100%; min-height: 40px; padding: 4px 8px; margin: 0 -8px 2px; border: 0; border-radius: 8px; background: transparent; font: inherit; font-size: 13px; text-align: left; cursor: pointer; color: var(--ink); width: calc(100% + 16px); }
.drow:hover { background: var(--field); }
.drow.sel { background: var(--info-bg); box-shadow: inset 0 0 0 2px var(--navy2); }
.drow b { text-align: right; font-variant-numeric: tabular-nums; }
.pt-cor { width: 12px; height: 12px; border-radius: 3px; }
.drow .bar { height: 10px; display: block; }
.drow .bar > span { display: block; height: 100%; border-radius: 3px; max-width: 100%; }
.crow, .erow { display: grid; grid-template-columns: 110px minmax(0, 1fr) 92px; gap: 12px; align-items: center; margin-bottom: 12px; font-size: 13px; }
.erow { grid-template-columns: minmax(0, 150px) minmax(0, 1fr) 118px; }
.crow .vals, .erow .vals { text-align: right; font-size: 12px; line-height: 1.3; }
.bar > div { transition: width .35s ease; }
@media (prefers-reduced-motion: reduce) { .bar > div { transition: none; } }

/* lista */
.panel.lista { padding: 22px 0 8px; }
.lista-cab { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 0 24px 14px; }
.lista .tools { padding: 0 24px 16px; border-bottom: 1px solid var(--soft); }
.lista .tools input { min-width: 220px; }
.tr.vazia { display: block; color: var(--muted); text-align: center; padding: 32px; }
.tr[href]:focus-visible { outline-offset: -3px; }

@media (max-width: 1100px) {
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .duas, .duas.inv, .exec-grid { grid-template-columns: 1fr; }
  .quad { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .exec { padding: 18px 16px 20px; }
  .funil { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 16px; }
  .etapa:nth-child(3) { border-left: 0; padding-left: 0; }
  .arow { grid-template-columns: 1fr; gap: 4px; }
  .arow .vals { text-align: left; }
  .crow { grid-template-columns: 90px minmax(0, 1fr) 80px; }
  .erow { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .erow .vals { text-align: left; }
  .lista-cab, .lista .tools { padding-left: 16px; padding-right: 16px; }
  .seg { width: 100%; } .seg button { flex: 1; padding: 0 6px; font-size: 13px; }
}

/* =====================================================================
   Ficha da demanda (sessão do comitê)
   ===================================================================== */
.fila-barra { width: 120px; height: 6px; border-radius: 3px; background: var(--navy-mid); overflow: hidden; }
.fila-barra > div { height: 100%; background: var(--gold); transition: width .3s ease; }
.sessao { display: flex; flex-direction: column; gap: 20px; }
.fx-topo { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 26px 28px 28px; box-shadow: var(--sombra); display: flex; flex-direction: column; gap: 14px; }
.fx-id { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.fx-titulo { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 600; color: var(--navy); overflow-wrap: anywhere; }
.fx-quem { font-size: 14px; }
.fatos { display: flex; flex-wrap: wrap; gap: 10px; }
.fato { display: inline-flex; flex-direction: column; gap: 1px; padding: 8px 14px; border-radius: 10px; background: var(--field); font-size: 14px; font-weight: 600; max-width: 100%; }
.fato small { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fato.legal { background: var(--gold-soft); box-shadow: inset 0 0 0 1px var(--gold); }
.jornada { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: 6px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.etapa-j { padding: 16px 20px; display: flex; flex-direction: column; gap: 4px; position: relative; }
.etapa-j + .etapa-j { border-left: 1px solid var(--line); }
.etapa-j + .etapa-j::before { content: "→"; position: absolute; left: -11px; top: 14px; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; }
.etapa-j.vazia { background: repeating-linear-gradient(135deg, #fafbfc 0 8px, #f3f5f8 8px 16px); }
.etapa-j:last-child.feita { background: var(--gold-soft); }
.ej-topo { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.ej-n { width: 22px; height: 22px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.ej-tam { font-size: 13px; font-weight: 600; color: var(--muted); }
.ej-c { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.ej-h { font-size: 14px; color: var(--ink); }
.ej-p { margin-top: 4px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.var { font-size: 12px; font-weight: 700; }
.var.sobe { color: var(--bad); } .var.desce { color: var(--ok); } .var.igual { color: var(--muted); font-weight: 600; }

.fx-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 20px; align-items: start; }
.fx-col { display: flex; flex-direction: column; gap: 20px; min-width: 0; }
.fx-pedido { gap: 18px; }
.fx-bloco h3 { margin: 0 0 4px; font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.fx-bloco p { margin: 0; white-space: pre-line; overflow-wrap: anywhere; font-size: 15px; }
.fx-bloco ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 4px; overflow-wrap: anywhere; }
.tag-sm { display: inline-block; padding: 4px 12px; border-radius: 999px; background: var(--field); border: 1px solid #d5dbe2; font-size: 13px; }
.fx-hist { padding: 0 24px; gap: 0; }
.fx-hist > summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; cursor: pointer; list-style: none; }
.fx-hist > summary::-webkit-details-marker { display: none; }
.fx-hist[open] > summary { border-bottom: 1px solid var(--soft); margin-bottom: 8px; }
.fx-hist > div { padding-bottom: 12px; }

.tri-escalas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tri-escalas .scale { flex-direction: column; }
.scale label { padding: 6px 8px; }
.dec-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.dec-tile { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; min-height: 76px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.dec-tile input { position: absolute; opacity: 0; pointer-events: none; }
.dec-tile .ic { width: 32px; height: 32px; flex-shrink: 0; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; background: var(--c-info); }
.dec-tile .tx { display: flex; flex-direction: column; gap: 2px; line-height: 1.25; }
.dec-tile small { font-size: 12px; color: var(--muted); }
.dec-tile:hover { border-color: var(--field-line); }
.dec-tile:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.d-aprovar .ic { background: var(--c-aprovar); } .d-adiar .ic { background: var(--c-adiar); } .d-recusar .ic { background: var(--c-recusar); } .d-mesclar .ic { background: var(--c-mesclar); }
.d-aprovar:has(input:checked) { border-color: var(--c-aprovar); background: var(--ok-bg); }
.d-adiar:has(input:checked) { border-color: var(--c-adiar); background: var(--warn-bg); }
.d-recusar:has(input:checked) { border-color: var(--c-recusar); background: var(--bad-bg); }
.d-mesclar:has(input:checked) { border-color: var(--c-mesclar); background: var(--info-bg); }
.d-pedir_info:has(input:checked) { border-color: var(--c-info); background: var(--neutral-bg); }
legend.sub { font-size: 13px; font-weight: 600; margin-bottom: 6px; }
fieldset fieldset > legend:not(.sub) { font-size: 15px; color: var(--navy); }
.card fieldset[disabled] { opacity: .6; }
.plano { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; background: #fbfcfd; }
.plano-cab { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 4px; }
.plano-cab #plano-leg { font-weight: 700; color: var(--navy); }
.plano-vazio { padding: 28px 12px; text-align: center; color: var(--muted); font-size: 14px; }
.muda-grid { display: flex; flex-direction: column; font-size: 14px; }
.mu { display: grid; grid-template-columns: 96px minmax(0, 1fr) 20px minmax(0, 1fr); gap: 8px; padding: 6px 0; border-top: 1px solid rgba(218, 169, 1, .35); align-items: baseline; }
.mu:first-child { border-top: 0; }
.mu .mn { font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; }
.mu .md { color: var(--muted); }
.mu.mudou b { color: var(--navy); background: rgba(218, 169, 1, .3); border-radius: 4px; padding: 0 6px; justify-self: start; }
.acoes-dec { position: sticky; bottom: 0; z-index: 4; display: flex; gap: 12px; flex-wrap: wrap; padding: 14px 0 4px; margin-top: 4px; background: linear-gradient(to top, #fff 75%, rgba(255, 255, 255, 0)); }
.alerta-link { color: inherit; font-weight: 700; margin-left: 8px; }

@media (max-width: 1000px) {
  .fx-grid { grid-template-columns: 1fr; }
  .jornada { grid-template-columns: 1fr; }
  .etapa-j + .etapa-j { border-left: 0; border-top: 1px solid var(--line); }
  .etapa-j + .etapa-j::before { content: "↓"; left: 20px; top: -11px; }
  .fx-topo { padding: 20px 16px; } .fx-titulo { font-size: 23px; }
  .tri-escalas { grid-template-columns: 1fr; }
  .tri-escalas .scale { flex-direction: row; }
  .fila-barra { display: none; }
  .mu { grid-template-columns: 80px 1fr 16px 1fr; }
}

/* ---------- ficha em duas etapas ---------- */
.etapas-nav { display: flex; align-items: center; gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--sombra); }
.en { flex: 1; display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-radius: 10px; text-decoration: none; color: var(--ink); min-height: 56px; }
.en .bolha { width: 34px; height: 34px; }
.en small { display: block; font-size: 12px; color: var(--muted); }
.en b { font-size: 15px; }
a.en:hover { background: var(--field); }
.en.ativa, a.en.ativa:hover { background: var(--navy); color: #fff; }
.en.ativa small { color: var(--on-navy-muted); }
.en.ativa .bolha { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.en.feita .bolha { background: var(--ok); border-color: var(--ok); color: #fff; }
.en.bloqueada { opacity: .55; cursor: not-allowed; }
.en-liga { width: 32px; height: 2px; background: var(--line); flex-shrink: 0; }
.etapa-j.ativa { box-shadow: inset 0 0 0 2px var(--navy); }
.etapa-j.ativa .ej-n { background: var(--gold); color: var(--navy); }

.etapa-form { gap: 26px; }
.bloco-f { display: flex; flex-direction: column; gap: 16px; padding-top: 22px; border-top: 1px solid var(--soft); }
.bf-t { margin: 0; font-size: 16px; font-weight: 600; color: var(--navy); display: flex; align-items: center; gap: 10px; }
.bf-t > span { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font-size: 13px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.gold .bf-t > span { background: var(--gold); color: var(--navy); }
.perguntas { display: flex; flex-direction: column; gap: 18px; }
.pergunta legend { display: flex; flex-direction: column; gap: 2px; margin-bottom: 8px; }
.pq-t { font-weight: 700; color: var(--navy); }
.pq-p { font-weight: 400; font-size: 14px; color: var(--muted); }
.opcoes-g { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.op-g { position: relative; display: flex; align-items: center; gap: 10px; min-height: 64px; padding: 10px 14px; border: 2px solid var(--line); border-radius: 12px; background: #fff; cursor: pointer; }
.op-g input { position: absolute; opacity: 0; pointer-events: none; }
.op-g .op-n { width: 28px; height: 28px; flex-shrink: 0; border-radius: 50%; background: var(--field); color: var(--navy); font-weight: 700; display: inline-flex; align-items: center; justify-content: center; }
.op-g .op-t { display: flex; flex-direction: column; line-height: 1.25; }
.op-g small { font-size: 12px; color: var(--muted); }
.op-g:hover { border-color: var(--field-line); }
.op-g:has(input:checked) { background: var(--navy); border-color: var(--navy); color: #fff; }
.op-g:has(input:checked) small { color: var(--on-navy-muted); }
.op-g:has(input:checked) .op-n { background: var(--gold); color: var(--navy); }
.op-g:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.resumo-tri { gap: 14px; background: #f8fafc; }
.rt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rt-grid > div { display: flex; flex-direction: column; gap: 2px; font-size: 12px; }
.rt-grid small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.rt-grid b { font-size: 20px; color: var(--navy); font-weight: 600; }
.bloqueio { align-items: flex-start; }

@media (max-width: 1000px) {
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .opcoes-g { grid-template-columns: 1fr; }
  .opcoes-g.tres { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .opcoes-g.tres .op-g { flex-direction: column; text-align: center; justify-content: center; }
  .en { padding: 8px 10px; gap: 8px; } .en small { display: none; } .en-liga { width: 12px; }
}

/* =====================================================================
   Prazos: semáforo de SLA e calendário do comitê
   ===================================================================== */
input[type=date] { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid var(--field-line); border-radius: 8px; background: var(--field); color: var(--ink); font: inherit; }
textarea.edit { min-height: 76px; font-weight: 500; }
.sep-h { border: 0; border-top: 1px solid var(--soft); margin: 2px 0; width: 100%; }
.premissas-corpo { width: 420px; max-height: 80vh; overflow-y: auto; }
.sessoes-aj { display: flex; flex-direction: column; gap: 8px; }
.sessao-aj { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 10px; align-items: center; font-size: 13px; font-weight: 600; color: var(--ink); }
.sessao-aj small { display: block; font-weight: 400; color: var(--muted); }
.sessao-aj input { min-height: 40px; }

/* pílula: bolinha + texto (a cor nunca fala sozinha) */
.sla { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; line-height: 1.3; }
.sla > i { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; background: var(--sla-cinza); }
.sla.verde > i { background: var(--sla-verde); } .sla.amarelo > i { background: var(--sla-amarelo); }
.sla.vermelho > i { background: var(--sla-vermelho); box-shadow: 0 0 0 3px rgba(192, 57, 43, .18); }
.sla.vermelho { color: var(--bad); }

.prazos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.prazo-card { border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; display: flex; flex-direction: column; gap: 12px; background: #fff; }
.pz-cab { display: flex; align-items: center; gap: 12px; }
.pz-cab h3 { margin: 0; font-size: 16px; color: var(--navy); font-weight: 600; }
.semaforo { width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; background: var(--sla-cinza); }
.semaforo.verde { background: var(--sla-verde); box-shadow: 0 0 0 4px rgba(30, 142, 90, .18); }
.semaforo.amarelo { background: var(--sla-amarelo); box-shadow: 0 0 0 4px rgba(217, 154, 0, .22); }
.semaforo.vermelho { background: var(--sla-vermelho); box-shadow: 0 0 0 4px rgba(192, 57, 43, .22); }
.pz-nums { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.pz-nums > div { display: flex; flex-direction: column; }
.pz-nums b { font-size: 26px; line-height: 1.15; font-weight: 600; color: var(--navy); font-variant-numeric: tabular-nums; }
.pz-nums span { font-size: 12px; color: var(--muted); }
.pz-data { display: flex; flex-direction: column; }
.pz-data b { font-size: 22px; line-height: 1.2; font-weight: 600; color: var(--navy); }
.pz-data span { font-size: 13px; color: var(--muted); }
.pz-fila { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.pz-chip { display: inline-flex; align-items: center; gap: 8px; min-height: 34px; padding: 0 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--field); font: inherit; font-size: 13px; color: var(--ink); }
button.pz-chip { cursor: pointer; }
button.pz-chip:hover { border-color: var(--field-line); background: #fff; }
.pz-chip > i { width: 10px; height: 10px; border-radius: 50%; background: var(--sla-cinza); }
.pz-chip.verde > i { background: var(--sla-verde); } .pz-chip.amarelo > i { background: var(--sla-amarelo); } .pz-chip.vermelho > i { background: var(--sla-vermelho); }
.pz-chip.vermelho { border-color: var(--sla-vermelho); background: var(--bad-bg); }
.pz-chip.amarelo { background: var(--warn-bg); border-color: var(--sla-amarelo); }
.pz-chip.neutro { opacity: .75; }

/* ficha: faixa de prazos */
.faixa-prazos { display: flex; flex-wrap: wrap; gap: 10px; }
.fp { display: flex; flex-direction: column; gap: 2px; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--line); background: #fff; min-width: 240px; flex: 1; }
.fp small { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.fp .sla { font-size: 14px; }
.fp .fp-sub { font-size: 12px; color: var(--muted); }
.fp.ativa { box-shadow: inset 0 0 0 2px var(--navy); }
.fp.vermelho { background: var(--bad-bg); } .fp.amarelo { background: var(--warn-bg); }

.tr { grid-template-columns: 70px minmax(0, 2fr) minmax(0, 1.4fr) 140px 76px 120px 100px 150px minmax(170px, 1.1fr) 100px; }
@media (max-width: 1100px) { .prazos { grid-template-columns: 1fr; } }
@media (max-width: 900px) { .tr { min-width: 1250px; } .premissas-corpo { right: auto; left: 0; } }
@media (max-width: 700px) { .pz-nums { grid-template-columns: 1fr; } .sessao-aj { grid-template-columns: 1fr; } }

/* ---------- tipografia (escala do guia de estilo) ---------- */
body { font-variant-numeric: normal; }
.kpi .v, .etapa .fn, .pz-nums b, .rt-grid b, .ej-c, table td { font-variant-numeric: tabular-nums; }
h1.page, .titulo-passo, .hero h1, .fx-titulo, .exec-h, .check + div h1 { font-weight: 700; letter-spacing: -.01em; }

/* =====================================================================
   Componentes das ondas 1 a 5 (nota do comitê, ranking, capacidade, mapa de calor, avisos,
   convites, pauta/ata, telão, roadmap, execução). Validados nas maquetes.
   ===================================================================== */
.regras { margin: 8px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.lg-livre { background: #fff; border: 2px solid var(--navy); box-sizing: border-box; }
.legend i.lg-meta { width: 3px; height: 14px; background: var(--gold-dark); border-radius: 1px; vertical-align: -3px; }
.legend i.lg-recusar { background: var(--c-recusar); border-radius: 50%; }
.legend i.lg-plan { background: #9FB0C6; } .legend i.lg-and { background: var(--gold); } .legend i.lg-ent { background: var(--sla-verde); } .legend i.lg-blq { background: var(--sla-vermelho); }
.q-rever { background: var(--bad-bg); }
.dica-exemplo { background: var(--navy); color: #fff; border-radius: 10px; padding: 10px 14px; font-size: 13px; margin-top: 8px; }
.dica-exemplo .dl { display: grid; grid-template-columns: auto 1fr; gap: 2px 14px; margin: 6px 0; color: var(--on-navy-muted); }
.dica-exemplo .dl b { color: #fff; font-weight: 600; }

/* B1: avaliação */
.criterios { display: flex; flex-direction: column; gap: 14px; }
.crit { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; }
.crit legend { display: flex; flex-direction: column; gap: 2px; padding: 0; margin: 0; float: left; width: 100%; }
.crit .n5 { clear: both; }
.pq-t { font-weight: 700; color: var(--navy); } .pq-p { font-weight: 400; font-size: 14px; color: var(--muted); }
.pesoc { font-weight: 600; font-size: 11px; color: var(--muted); background: var(--soft); border-radius: 999px; padding: 2px 8px; margin-left: 6px; letter-spacing: .04em; text-transform: uppercase; }
.n5 { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.n5 label { position: relative; cursor: pointer; }
.n5 input { position: absolute; opacity: 0; pointer-events: none; }
.n5 span { display: flex; flex-direction: column; align-items: center; gap: 0; min-height: 56px; justify-content: center; border: 2px solid var(--line); border-radius: 12px; background: #fff; font-weight: 700; font-size: 18px; color: var(--navy); }
.n5 small { font-size: 11px; font-weight: 500; color: var(--muted); }
.n5 label:hover span { border-color: var(--field-line); }
.n5 input:checked + span { background: var(--navy); border-color: var(--navy); color: #fff; }
.n5 input:checked + span small { color: var(--on-navy-muted); }
.n5 input:focus-visible + span { outline: 3px solid var(--focus); outline-offset: 2px; }
.sugestao { font-size: 13px; color: var(--muted); }
.nota-box { display: grid; grid-template-columns: 150px minmax(0, 1fr) 190px; gap: 18px; align-items: center; background: var(--navy); color: #fff; border-radius: 14px; padding: 16px 20px; }
.nota-grande { display: flex; flex-direction: column; align-items: center; }
.nota-grande small, .nota-peso small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--on-navy-muted); }
.nota-grande b { font-size: 56px; line-height: 1; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; }
.nota-grande span { font-size: 13px; color: var(--on-navy-muted); }
.nota-detalhe { display: flex; flex-direction: column; gap: 6px; }
.nd { display: grid; grid-template-columns: 90px minmax(0, 1fr) 82px; gap: 10px; align-items: center; font-size: 13px; }
.nd .bar { background: rgba(255, 255, 255, .2); height: 8px; } .nd .bar > div { background: var(--gold) !important; }
.nd b { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.nota-peso { display: flex; flex-direction: column; gap: 6px; align-items: flex-start; }
.nota-peso .badge { font-size: 14px; padding: 4px 14px; background: var(--gold); color: var(--ink); }
.nota-peso .small { color: var(--on-navy-muted); line-height: 1.5; }
.sugestao-sis { font-size: 13px; background: var(--field); border: 1px dashed var(--field-line); border-radius: 10px; padding: 10px 14px; }

/* B1: ranking e cenários */
.rank { display: flex; flex-direction: column; margin-top: 8px; }
.rk { display: grid; grid-template-columns: 34px minmax(0, 2.2fr) minmax(0, 1.6fr) 70px 86px 92px; gap: 12px; align-items: center; padding: 10px 6px; border-top: 1px solid var(--soft); font-size: 14px; }
.rk-th { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); border-top: 0; }
.rk .n { font-weight: 700; color: var(--muted); } .rk .d { text-align: right; font-variant-numeric: tabular-nums; }
.rk .t b { color: var(--navy); margin-right: 6px; }
.rk .b { display: grid; grid-template-columns: minmax(0, 1fr) 30px; gap: 8px; align-items: center; } .rk .b b { text-align: right; font-variant-numeric: tabular-nums; }
.rk .flag { display: inline-block; margin-left: 8px; font-size: 11px; font-weight: 700; color: var(--warn); background: var(--warn-bg); border-radius: 999px; padding: 1px 8px; }
.rk.alerta { background: var(--gold-soft); }
.rk.abaixo { opacity: .88; }
.corte-linha { position: relative; border-top: 2px dashed var(--navy); margin: 6px 0; }
.corte-linha span { position: absolute; right: 0; top: -12px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; padding: 2px 12px; border-radius: 999px; }
.cenario { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.cn-linha { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; } .cn-linha b { font-size: 26px; color: var(--navy); }
.slider { width: 100%; accent-color: var(--navy); height: 28px; }
.cn-marcas { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); }
.cn-res { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin-top: 12px; }
.cn-res > div { background: var(--field); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; }
.cn-res b { font-size: 22px; color: var(--navy); font-variant-numeric: tabular-nums; } .cn-res span { font-size: 12px; color: var(--muted); }
.cn-res .ruim { background: var(--bad-bg); } .cn-res .ruim b { color: var(--bad); }
.tab-mini { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 13px; }
.tm { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; padding: 8px 12px; border-top: 1px solid var(--soft); }
.tm.th { background: var(--field); border-top: 0; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.tm.sel { background: var(--gold-soft); font-weight: 700; }

/* B4 B5 */
.bar.grande { height: 22px; border-radius: 6px; } .bar.grande > div { border-radius: 6px; }
.cap { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.cap-linha { display: grid; grid-template-columns: 110px minmax(0, 1fr) 200px; gap: 14px; align-items: center; }
.cap-linha .cn { font-weight: 700; color: var(--navy); } .cap-linha .cn small { display: block; font-weight: 400; color: var(--muted); font-size: 12px; }
.cap-linha .cv { display: flex; flex-direction: column; align-items: flex-start; font-size: 14px; }
.eixo-metas { display: flex; flex-direction: column; gap: 14px; margin-top: 14px; }
.em { display: grid; grid-template-columns: 150px minmax(0, 1fr) 130px; gap: 14px; align-items: center; font-size: 14px; }
.eb { position: relative; } .eb .meta { position: absolute; top: -5px; bottom: -5px; width: 3px; background: var(--gold-dark); border-radius: 2px; }
.ev { display: flex; flex-direction: column; font-size: 13px; line-height: 1.3; } .ev b { font-size: 18px; }
.metas-ed { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-top: 8px; }
.metas-ed label { display: flex; flex-direction: column; gap: 4px; font-size: 12px; font-weight: 600; color: var(--muted); } .metas-ed input { min-height: 40px; }

/* B7 mapa de calor */
.heat { margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.h-th, .h-tr { display: grid; grid-template-columns: 190px repeat(5, minmax(0, 1fr)) 120px; gap: 4px; align-items: stretch; }
.h-th > div { font-size: 12px; font-weight: 700; color: var(--muted); text-align: center; padding: 6px 4px; }
.h-tr .rot { font-weight: 600; font-size: 14px; display: flex; align-items: center; }
.hc { display: flex; align-items: center; justify-content: center; min-height: 48px; border-radius: 8px; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; cursor: pointer; }
.h0 { background: var(--field); color: var(--muted); font-weight: 400; cursor: default; }
.h1 { background: #E3E9F1; color: var(--ink); } .h2 { background: #C3D0E1; color: var(--ink); } .h3 { background: #94A9C6; color: var(--ink); }
.h4 { background: #5F7DA4; color: #fff; } .h5 { background: #2D4A72; color: #fff; } .h6 { background: var(--navy); color: #fff; }
.h-tr .tot { display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 13px; color: var(--navy); }
.h-total { border-top: 2px solid var(--line); padding-top: 4px; margin-top: 4px; } .h-total .tot { flex-direction: column; } .h-total .tot span { font-size: 11px; font-weight: 500; color: var(--muted); }
.heat-leg { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 12px; color: var(--muted); } .heat-leg i.hc { width: 36px; min-height: 16px; border-radius: 4px; }

/* A9 avisos */
.sino { position: relative; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--on-navy-muted); background: transparent; color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.sino .cont { position: absolute; top: -4px; right: -4px; min-width: 20px; height: 20px; border-radius: 10px; background: var(--gold); color: var(--ink); font-size: 12px; font-weight: 700; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.avisos-pop { position: absolute; top: 76px; right: 160px; width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--sombra-flutuante); z-index: 30; overflow: hidden; }
.ap-cab { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--soft); }
.ap-item { display: grid; grid-template-columns: 14px minmax(0, 1fr); gap: 12px; padding: 12px 16px; border-bottom: 1px solid var(--soft); font-size: 13px; align-items: start; }
.ap-item b { display: block; font-size: 14px; } .ap-item span { color: var(--muted); } .ap-item em { display: block; font-style: normal; font-size: 11px; color: var(--muted); margin-top: 2px; }
.nao-lido { background: #F5F8FD; }
.ap-rod { display: block; text-align: center; padding: 12px; font-weight: 700; font-size: 14px; }
.semaforo { margin-top: 4px; width: 14px; height: 14px; }
.lista-avisos { display: flex; flex-direction: column; margin-top: 8px; }
.la-grupo { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 14px 0 6px; }
.la { display: flex; gap: 14px; align-items: center; padding: 12px 10px; border-top: 1px solid var(--soft); font-size: 14px; border-radius: 8px; }
.la.nao-lido { background: #F5F8FD; }
.prefs { display: flex; flex-direction: column; margin-top: 8px; }
.pf-cab, .pf { display: grid; grid-template-columns: minmax(0, 1fr) 70px 70px; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--soft); font-size: 14px; }
.pf-cab { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); border-top: 0; } .pf-cab span:not(:first-child) { text-align: center; }
.sw { position: relative; justify-self: center; width: 44px; height: 26px; }
.sw input { position: absolute; inset: 0; opacity: 0; cursor: pointer; margin: 0; }
.sw i { position: absolute; inset: 0; border-radius: 13px; background: var(--field-line); transition: background .2s; pointer-events: none; }
.sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; transition: left .2s; }
.sw input:checked + i { background: var(--navy); } .sw input:checked + i::after { left: 21px; }

/* A3 / A5 */
.usr .tr { grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) 150px 100px 150px; } .usr .tr .small { margin-top: 0; }
.convite { border: 2px solid var(--gold); }
.codigo { display: flex; align-items: center; gap: 14px; margin-top: 12px; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 12px; padding: 14px 18px; flex-wrap: wrap; }
.codigo code { font-family: var(--font-mono); font-size: 32px; font-weight: 700; letter-spacing: .12em; color: var(--navy); flex: 1; }
.codigo-in { font-family: var(--font-mono); font-size: 22px; letter-spacing: .12em; font-weight: 700; text-align: center; min-height: 56px; }
.dados-ok { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; background: var(--field); border-radius: 12px; padding: 14px; font-size: 14px; font-weight: 600; }
.dados-ok small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.jornada-pub { display: flex; align-items: flex-start; gap: 0; margin: 16px 0; }
.jp { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; min-width: 96px; font-size: 13px; }
.jp small { color: var(--muted); font-size: 12px; } .jp .bolha { width: 34px; height: 34px; }
.jp.feito .bolha { background: var(--ok); border-color: var(--ok); color: #fff; }
.jp.atual .bolha { background: var(--gold); border-color: var(--gold); color: var(--ink); }
.jp.alerta .bolha { background: var(--bad); border-color: var(--bad); color: #fff; }
.jp-liga { flex: 1; height: 2px; background: var(--line); margin-top: 17px; min-width: 24px; } .jp-liga.feito { background: var(--ok); }
.dem-pub { display: flex; flex-direction: column; gap: 10px; }
.dp { display: flex; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; background: #fff; }
.dem-card { gap: 12px; }
.pedido-info { background: var(--warn-bg); border: 1px solid var(--warn); border-radius: 10px; padding: 12px 14px; font-size: 14px; color: var(--ink); }

/* C1 ata (folha) */
.folha { background: #fff; border: 1px solid var(--line); border-radius: 6px; box-shadow: var(--sombra); padding: 48px 56px 36px; display: flex; flex-direction: column; gap: 14px; }
.fl-cab { display: flex; gap: 20px; align-items: center; border-bottom: 3px solid var(--gold); padding-bottom: 16px; } .fl-cab h1 { margin: 2px 0 0; font-size: 26px; font-weight: 700; color: var(--navy); }
.brand-fl { font-size: 28px; font-weight: 700; color: var(--navy); }
.fl-meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; background: var(--field); border-radius: 10px; padding: 12px 16px; font-size: 14px; font-weight: 600; } .fl-meta small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.folha h2 { margin: 10px 0 0; font-size: 15px; font-weight: 700; color: var(--navy); text-transform: uppercase; letter-spacing: .05em; }
.fl-p { margin: 0; font-size: 14px; } .editavel { color: var(--muted); } .editavel span, span.editavel { background: var(--gold-soft); border: 1px dashed var(--gold); border-radius: 4px; padding: 0 6px; font-size: 12px; }
.fl-num { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 10px; } .fl-num > div { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: flex; flex-direction: column; } .fl-num b { font-size: 22px; color: var(--navy); } .fl-num span { font-size: 12px; color: var(--muted); }
.fl-tab { width: 100%; border-collapse: collapse; font-size: 13px; } .fl-tab th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); padding: 6px 8px; border-bottom: 2px solid var(--line); } .fl-tab td { padding: 8px; border-bottom: 1px solid var(--soft); } .fl-tab .d { text-align: right; font-variant-numeric: tabular-nums; }
.fl-just { margin: 0; padding-left: 20px; font-size: 14px; display: flex; flex-direction: column; gap: 6px; }
.fl-ass { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 60px; margin-top: 40px; font-size: 13px; text-align: center; } .fl-ass i { display: block; border-top: 1px solid var(--ink); margin-bottom: 6px; }
.fl-rod { font-size: 11px; color: var(--muted); text-align: center; border-top: 1px solid var(--soft); padding-top: 10px; }

/* C3 telão */
.telao { background: var(--navy); color: #fff; padding: 28px 36px; display: flex; flex-direction: column; gap: 22px; }
.telao::after { background: rgba(255, 255, 255, .12); color: #fff; border-color: transparent; }
.tl-top { display: flex; align-items: center; gap: 20px; } .tl-top .brand { font-size: 32px; font-weight: 700; } .tl-top > div:nth-child(2) { display: flex; flex-direction: column; font-size: 18px; } .tl-top > div:nth-child(2) span { color: var(--on-navy-muted); font-size: 14px; }
.tl-hora { text-align: right; display: flex; flex-direction: column; } .tl-hora b { font-size: 22px; } .tl-hora span { font-size: 12px; color: var(--on-navy-muted); }
.tl-grade { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tl-kpi { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; } .tl-kpi small { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; color: var(--on-navy-muted); }
.tl-kpi b { font-size: 56px; line-height: 1.1; font-weight: 700; color: var(--gold); font-variant-numeric: tabular-nums; } .tl-kpi span { font-size: 14px; color: #E8EBEE; } .tl-kpi .semaforo { display: inline-block; vertical-align: middle; }
.tl-meio { display: grid; grid-template-columns: 1.2fr 1fr 1.2fr; gap: 16px; flex: 1; }
.tl-box { background: rgba(255, 255, 255, .08); border-radius: 16px; padding: 18px 22px; display: flex; flex-direction: column; gap: 14px; } .tl-box h2 { margin: 0; font-size: 14px; text-transform: uppercase; letter-spacing: .06em; color: var(--on-navy-muted); }
.tl-funil { display: flex; flex-direction: column; gap: 12px; } .tl-funil > div { position: relative; display: grid; grid-template-columns: 60px minmax(0, 1fr); align-items: center; gap: 4px 12px; } .tl-funil b { font-size: 30px; font-variant-numeric: tabular-nums; } .tl-funil span { font-size: 15px; } .tl-funil i { grid-column: 1 / -1; display: block; height: 8px; border-radius: 4px; background: var(--gold); }
.tl-sessao { display: flex; flex-direction: column; gap: 6px; } .tl-sessao b { font-size: 34px; line-height: 1.15; } .tl-sessao > span { color: #E8EBEE; font-size: 18px; }
.telao .sla { color: #fff; }
.tl-eixos { display: flex; flex-direction: column; gap: 12px; } .tl-eixos > div { display: grid; grid-template-columns: 150px minmax(0, 1fr) 44px; align-items: center; gap: 12px; font-size: 14px; } .tl-eixos i { display: block; height: 14px; background: var(--gold); border-radius: 4px; } .tl-eixos b { text-align: right; font-variant-numeric: tabular-nums; }
.tl-rod { font-size: 12px; color: var(--on-navy-muted); }

/* C5 roadmap */
.rm { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; }
.rm-cab, .rm-cap, .rm-faixa { display: grid; grid-template-columns: 180px repeat(4, minmax(0, 1fr)); gap: 10px; align-items: center; }
.rm-cab > div { font-weight: 700; color: var(--navy); font-size: 14px; border-bottom: 3px solid var(--navy); padding-bottom: 6px; }
.rm-cap small { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; } .rl { font-size: 13px; font-weight: 600; color: var(--ink); }
.rm-faixa { border-top: 1px solid var(--soft); padding-top: 10px; align-items: stretch; }
.rm-col { grid-column: 2 / -1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.rb { border-radius: 10px; padding: 8px 12px; font-size: 13px; min-height: 58px; display: flex; flex-direction: column; justify-content: center; border: 1px solid transparent; } .rb small { font-size: 11px; opacity: .85; } .rb b { margin-right: 4px; }
.rb.plan { background: #E3E9F1; color: var(--ink); border-color: #C3D0E1; } .rb.and { background: var(--gold); color: var(--ink); } .rb.ent { background: var(--ok-bg); color: var(--ok); border-color: #A9DBC0; } .rb.blq { background: var(--bad-bg); color: var(--bad); border-color: var(--sla-vermelho); }
.rm-linha-hoje { display: none; }

/* D1 execução */
.etapas3 .en small { font-size: 12px; }
.dec-tile.d-plan .ic { background: #526E91; } .dec-tile.d-and .ic { background: var(--gold-dark); } .dec-tile.d-blq .ic { background: var(--sla-vermelho); } .dec-tile.d-ent .ic { background: var(--sla-verde); } .dec-tile.d-cancel .ic { background: var(--c-info); }
.d-plan:has(input:checked) { border-color: #526E91; background: var(--info-bg); } .d-and:has(input:checked) { border-color: var(--gold-dark); background: var(--gold-soft); } .d-blq:has(input:checked) { border-color: var(--sla-vermelho); background: var(--bad-bg); } .d-ent:has(input:checked) { border-color: var(--sla-verde); background: var(--ok-bg); } .d-cancel:has(input:checked) { border-color: var(--c-info); background: var(--neutral-bg); }
.marcos { display: flex; flex-direction: column; gap: 8px; }
.marco { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; font-size: 14px; } .marco input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--navy); } .marco small { display: block; color: var(--muted); font-size: 12px; } .marco.feito { background: var(--ok-bg); border-color: #A9DBC0; }
.tl li.feito .bolha { font-size: 10px; }
.kanban { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.kb { background: var(--soft); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 10px; } .kb h3 { margin: 0 0 4px; font-size: 14px; color: var(--navy); display: flex; align-items: center; gap: 8px; } .kb h3 b { margin-left: auto; background: #fff; border-radius: 999px; padding: 0 10px; font-size: 13px; }
.kb-pt { width: 12px; height: 12px; border-radius: 50%; } .kb-pt.plan { background: #9FB0C6; } .kb-pt.and { background: var(--gold); } .kb-pt.blq { background: var(--sla-vermelho); } .kb-pt.ent { background: var(--sla-verde); }
.kc { display: flex; flex-direction: column; gap: 6px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; text-decoration: none; color: var(--ink); font-size: 14px; } .kc b { color: var(--navy); margin-right: 4px; } .kc.bloq { border-color: var(--sla-vermelho); background: #FFF7F6; }

/* D5 atribuição */
.fila-tri .tr { grid-template-columns: 70px minmax(0, 2fr) 210px 170px 110px; }
.resp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; } .resp i { font-style: normal; width: 28px; height: 28px; border-radius: 50%; background: var(--navy2); color: #fff; font-size: 11px; display: inline-flex; align-items: center; justify-content: center; } .resp.mine i { background: var(--gold); color: var(--ink); } .resp.sem { color: var(--muted); font-weight: 500; font-style: italic; }
.carga { display: flex; flex-direction: column; gap: 12px; margin-top: 12px; } .cg { display: grid; grid-template-columns: 150px minmax(0, 1fr) 24px 90px; gap: 12px; align-items: center; font-size: 13px; } .cg b { text-align: right; }
.cl { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.sla.cinza { color: var(--muted); }


/* ajustes: itens clicáveis dos painéis de decisão */
a.rk { color: inherit; text-decoration: none; border-radius: 8px; } a.rk:hover { background: var(--field); }
button.hc { border: 0; font: inherit; font-size: 13px; font-weight: 600; width: 100%; } button.hc:disabled { cursor: default; }
button.hc:not(:disabled):hover { box-shadow: inset 0 0 0 2px var(--gold); } button.hc.sel { box-shadow: inset 0 0 0 3px var(--gold); }
.tab-mini a.tm { color: inherit; text-decoration: none; } .tab-mini a.tm:hover { background: var(--field); }
.heat { overflow-x: auto; } .h-th, .h-tr { min-width: 920px; }
@media (max-width: 900px) { .nota-box { grid-template-columns: 1fr; } .n5 span small { font-size: 10px; } .cap-linha { grid-template-columns: 1fr; gap: 4px; } .em { grid-template-columns: 1fr; gap: 4px; } .rank { overflow-x: auto; } .rk { min-width: 640px; } }

/* pessoas e acessos */
.pf-linha { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; padding: 10px 0; border-top: 1px solid var(--soft); }
.table.usr .tr > div:last-child { display: flex; gap: 6px; flex-wrap: wrap; }
dialog textarea[rows] { width: 100%; }

/* comprovante (impressão / PDF) */
.so-impressao { display: none; }
.comp-dem { border-top: 1px solid var(--line); padding-top: 12px; break-inside: avoid; } .comp-dem h2 { font-size: 16px; margin: 0 0 8px; color: var(--navy); }
.comp-grade { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 20px; font-size: 13px; white-space: pre-line; }
.comp-grade small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
@media print {
  body.so-comprovante main > *:not(#comprovante), body.so-comprovante .topbar { display: none !important; }
  body.so-comprovante #comprovante { display: block !important; }
  .folha { border: 0; box-shadow: none; padding: 0; }
}
a.ap-item { color: inherit; text-decoration: none; } a.ap-item:hover { background: var(--field); }
.avisos-pop { position: absolute; z-index: 60; } .sino .cont.hide { display: none; }
.la a.btn { white-space: nowrap; }

/* acessibilidade e tablet */
.pular { position: absolute; left: 8px; top: -60px; z-index: 100; background: var(--gold); color: var(--ink); font-weight: 700; padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.pular:focus { top: 8px; }
html.texto-grande { font-size: 118%; }
html.texto-grande .btn, html.texto-grande .chip, html.texto-grande .op-g, html.texto-grande input, html.texto-grande select { min-height: 52px; }
html.texto-grande .small, html.texto-grande .hint { font-size: 14px; }
@media (hover: none) and (pointer: coarse) { .btn.sm { min-height: 44px; } .chip-btn, .pz-chip { min-height: 44px; } .seg button { min-height: 44px; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }


.so-impressao-bloco { display: none; } @media print { .so-impressao-bloco { display: block; } .nao-imprimir { display: none !important; } .topbar { display: none; } }

/* telão e relatório */
body.telao-corpo { background: var(--navy); margin: 0; } .telao { min-height: 100vh; } .telao .tl-meio { align-items: stretch; }
@media (max-width: 900px) { .tl-grade { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tl-meio { grid-template-columns: 1fr; } .telao { padding: 20px 16px; } .tl-kpi b { font-size: 40px; } }
.relatorio { max-width: 1040px; margin: 0 auto; } .relatorio .matriz-wrap { max-width: 760px; }
@media print { @page { size: A4; margin: 14mm; } .relatorio { padding: 0; } .relatorio h2 { break-after: avoid; } .relatorio table, .relatorio .matriz-wrap { break-inside: avoid; } }
.tl-kpi b { font-size: clamp(36px, 4.2vw, 52px); white-space: nowrap; }

/* execução */
.ext { display: flex; flex-direction: column; gap: 8px; } .ext-linha { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1.1fr) 120px minmax(0, 1fr) 130px auto; gap: 8px; align-items: center; }
.ext-linha input, .ext-linha select { min-height: 40px; } .marco .mc-t { flex: 1; min-height: 36px; border: 0; background: transparent; padding: 0 4px; } .marco { align-items: center; }
.link.rm { color: var(--bad); font-size: 13px; }
@media (max-width: 900px) { .ext-linha { grid-template-columns: 1fr 1fr; } }
.etapas3 .en { padding: 8px 12px; }
.rm-cel { display: flex; flex-direction: column; gap: 8px; min-width: 0; } a.rb { text-decoration: none; } .rb span { overflow-wrap: anywhere; }
.rm { overflow-x: auto; } .rm-cab, .rm-cap, .rm-faixa { min-width: 860px; }
details.acc-simples { border: 1px dashed var(--field-line); border-radius: 10px; padding: 10px 14px; } details.acc-simples > summary { cursor: pointer; font-weight: 600; color: var(--navy); }
.dem-card .jornada-pub { overflow-x: auto; }

/* ---- D5/D6: fila de triagem com responsáveis */
.fila-tri .tr { grid-template-columns: 72px minmax(0, 2fr) minmax(0, 1.3fr) minmax(0, 1.2fr) 150px; min-width: 0; }
.fila-tri .tr .ttl { font-weight: 600; color: var(--navy); }
.fila-tri .tr > div:last-child { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.resp { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.resp > i { width: 26px; height: 26px; border-radius: 50%; background: var(--navy); color: #fff; font: 600 11px/26px var(--font-body, inherit); text-align: center; font-style: normal; }
.resp.mine > i { background: var(--gold); color: var(--navy); }
.resp.sem { color: var(--muted); font-style: italic; }
.carga { display: flex; flex-direction: column; gap: 12px; margin-top: 8px; }
.cg { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) 24px auto; gap: 10px; align-items: center; font-size: 13px; }
.cg .bar { height: 8px; border-radius: 4px; background: var(--field); overflow: hidden; }
.cg .bar > div { height: 100%; border-radius: 4px; }
@media (max-width: 900px) { .fila-tri .tr { min-width: 760px; } .fila-tri.table { overflow-x: auto; } }
.duas { display: grid; gap: 20px; align-items: start; }
@media (max-width: 900px) { .duas { grid-template-columns: minmax(0, 1fr) !important; } }

/* ---- D7/D8/B8: modelos de parecer, estimativa assistida e importação */
.mod-sel { align-self: flex-start; min-height: 36px; border: 1px solid var(--field-line); border-radius: 8px; background: #fff; padding: 0 10px; font: inherit; font-size: 13px; color: var(--navy); }
.estim { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--gold-soft); border: 1px solid var(--gold); }
.imp-res { display: flex; flex-direction: column; }
.imp-l { display: grid; grid-template-columns: 56px minmax(0, 1fr) minmax(0, 2fr); gap: 12px; padding: 10px 24px; border-top: 1px solid #e3e7ec; font-size: 13px; align-items: start; }
.imp-l .ok { color: var(--sla-verde); font-weight: 600; } .imp-l .nok { color: var(--bad); font-weight: 600; }
.mdl { display: grid; gap: 8px; padding: 14px 0; border-top: 1px solid #e3e7ec; }
.mdl-top { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 10px; align-items: end; }
.mdl textarea { min-height: 70px; }
@media (max-width: 900px) { .imp-l, .mdl-top { grid-template-columns: minmax(0, 1fr); } }

/* ---- onda 7: identidade (senha, autenticador, meus acessos) */
.qr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 10px; display: inline-flex; }
.chave { font-family: var(--font-mono); font-size: 17px; font-weight: 700; letter-spacing: .1em; color: var(--navy); background: var(--field); border: 1px dashed var(--field-line); border-radius: 10px; padding: 10px 14px; display: inline-block; word-break: break-all; }
.passos { display: flex; gap: 8px; align-items: center; font-size: 13px; color: var(--muted); flex-wrap: wrap; }
.passos b { display: inline-flex; width: 26px; height: 26px; border-radius: 50%; background: var(--line); color: var(--muted); align-items: center; justify-content: center; font-size: 13px; }
.passos .on { color: var(--navy); font-weight: 600; } .passos .on b { background: var(--navy); color: #fff; } .passos .ok b { background: var(--ok); color: #fff; }
.passos .ln { width: 24px; height: 2px; background: var(--line); }
.apps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.app { display: flex; gap: 10px; align-items: center; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; background: #fff; font-size: 14px; }
.app i { width: 36px; height: 36px; border-radius: 9px; display: flex; align-items: center; justify-content: center; color: #fff; font: 700 17px var(--font); font-style: normal; flex: none; }
.app small { display: block; color: var(--muted); font-size: 12px; }
.codes { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.codes code { font: 700 17px var(--font-mono); letter-spacing: .1em; background: var(--field); border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; text-align: center; color: var(--navy); }
.forca { display: flex; gap: 4px; } .forca i { height: 6px; flex: 1; border-radius: 3px; background: var(--line); } .forca i.on { background: var(--ok); } .forca i.mid { background: var(--sla-amarelo); }
.req { list-style: none; margin: 0; padding: 0; font-size: 13px; display: grid; gap: 4px; } .req li::before { content: "○ "; color: var(--muted); } .req li.ok::before { content: "✓ "; color: var(--ok); font-weight: 700; }
.sec-row { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 16px 0; border-top: 1px solid #e3e7ec; }
.sec-row .ico { width: 44px; height: 44px; border-radius: 12px; background: var(--field); display: flex; align-items: center; justify-content: center; font-size: 22px; color: var(--navy); }
.sec-row h3 { margin: 0; font-size: 16px; color: var(--navy); }
.sec-row .inline { grid-column: 2 / -1; display: grid; gap: 10px; }
.otp-in { font-family: var(--font-mono); font-size: 26px; letter-spacing: .3em; font-weight: 700; text-align: center; min-height: 58px; }
@media (max-width: 700px) { .apps, .codes { grid-template-columns: minmax(0, 1fr); } .sec-row { grid-template-columns: 44px minmax(0, 1fr); } .sec-row > .btn { grid-column: 2; justify-self: start; } }

/* ---- B2: votos individuais do comitê */
.voto-r { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 12px; align-items: center; font-size: 14px; }
.vt-esc { display: flex; gap: 6px; }
.vt-esc label { cursor: pointer; } .vt-esc input { position: absolute; opacity: 0; }
.vt-esc span { width: 40px; height: 40px; border: 1px solid var(--field-line); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-weight: 600; background: #fff; color: var(--navy); }
.vt-esc input:checked + span { background: var(--navy); color: #fff; border-color: var(--navy); }
.vt-esc input:focus-visible + span { outline: 3px solid var(--gold); outline-offset: 2px; }
.res-vt { display: grid; grid-template-columns: 170px minmax(0, 1fr) 44px 92px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid #e3e7ec; font-size: 14px; }
.pts { position: relative; height: 22px; background: var(--field); border-radius: 11px; } .pts i { position: absolute; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--navy); border: 2px solid #fff; transform: translateX(-8px); } .pts i.m { background: var(--gold); width: 20px; height: 20px; top: 1px; transform: translateX(-10px); }
.est-nota { background: var(--field); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.dev { display: grid; grid-template-columns: 20px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 6px 0; font-size: 14px; } .dev small { color: var(--muted); display: block; font-size: 12px; }
@media (max-width: 700px) { .voto-r, .res-vt { grid-template-columns: minmax(0, 1fr); } }

/* quem já está identificado: faixa com o nome no lugar do passo "Você" */
.ident-faixa { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--field); }
.ident-av { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 14px; display: flex; align-items: center; justify-content: center; flex: none; }

/* ---- D12: painel em três níveis (cabeçalho, início, abas, gaveta) */
.nav2 { gap: 8px; } .nav2 .titulo-p { font-weight: 600; color: #fff; font-size: 16px; margin-right: 8px; }
.nav-links { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; }
.nav2 .nv { color: #d6dde8; font-size: 14px; font-weight: 600; padding: 8px 12px; border-radius: 8px; white-space: nowrap; text-decoration: none; cursor: pointer; list-style: none; display: inline-block; }
.nav2 .nv::-webkit-details-marker, .av::-webkit-details-marker { display: none; }
.nav2 .nv:hover { background: rgba(255,255,255,.08); color: #fff; } .nav2 .nv.on { background: rgba(255,255,255,.16); color: #fff; }
.nav2 .nv:focus-visible, .av:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
.dd-wrap { position: relative; } .dd-wrap > summary { list-style: none; }
.dd { position: absolute; top: calc(100% + 6px); left: 0; background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11,31,58,.22); padding: 8px; min-width: 260px; z-index: 30; font-size: 14px; }
.dd.dd-dir { left: auto; right: 0; }
.dd a, .dd div.it { display: block; padding: 9px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; } .dd a:hover { background: var(--field); } .dd small { display: block; color: var(--muted); font-size: 12px; font-weight: 400; } .dd .sp { height: 1px; background: var(--line); margin: 6px 0; }
.av { width: 36px; height: 36px; border-radius: 50%; background: var(--gold); color: #1f1700; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; cursor: pointer; list-style: none; }
.acao-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.ac { background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sla-cinza); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 6px; color: inherit; text-decoration: none; }
.ac.v { border-left-color: var(--sla-vermelho); } .ac.a { border-left-color: var(--sla-amarelo); } .ac.g { border-left-color: var(--sla-verde); } .ac.i { border-left-color: var(--info); } .ac.n0 { border-left-color: var(--navy); }
.ac b.n { font-size: 34px; line-height: 1; color: var(--navy); } .ac .t { font-weight: 600; color: var(--navy); } .ac .btn { align-self: flex-start; margin-top: 4px; }
a.ac:hover { background: var(--field); } .mais { color: var(--info); font-weight: 600; font-size: 14px; }
.kpi2 { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; } .kpi2 small { color: var(--muted); font-weight: 600; display: block; } .kpi2 b { font-size: 30px; color: var(--navy); display: block; line-height: 1.15; } .kpi2 span { font-size: 13px; color: var(--muted); }
.kpi2 .mini { height: 8px; background: var(--field); border-radius: 4px; overflow: hidden; margin-top: 8px; } .kpi2 .mini i { display: block; height: 100%; background: var(--navy); }
.tabs2 { display: flex; gap: 4px; border-bottom: 2px solid var(--line); flex-wrap: wrap; } .tabs2 a { padding: 12px 20px; font-weight: 600; color: var(--muted); border-bottom: 3px solid transparent; margin-bottom: -2px; text-decoration: none; } .tabs2 a[aria-current=page] { color: var(--navy); border-color: var(--gold); } .tabs2 a small { font-weight: 500; margin-left: 6px; background: var(--field); border-radius: 999px; padding: 1px 8px; }
details.acc { border: 1px solid var(--line); border-radius: 12px; background: #fff; } details.acc + details.acc { margin-top: 10px; } details.acc > summary { display: flex; align-items: center; gap: 12px; padding: 14px 18px; font-weight: 600; color: var(--navy); cursor: pointer; list-style: none; } details.acc > summary::-webkit-details-marker { display: none; }
details.acc > summary small { color: var(--muted); font-weight: 400; } details.acc > summary::after { content: "Abrir ▾"; margin-left: auto; color: var(--muted); font-weight: 600; font-size: 14px; } details.acc[open] > summary::after { content: "Fechar ▴"; } details.acc > .corpo { padding: 4px 18px 18px; }
.veu { position: fixed; inset: 0; background: rgba(11,31,58,.32); z-index: 40; }
.gaveta { position: fixed; top: 0; right: 0; bottom: 0; width: min(480px, 100vw); background: #fff; border-left: 1px solid var(--line); box-shadow: -12px 0 30px rgba(11,31,58,.18); padding: 22px; display: flex; flex-direction: column; gap: 14px; z-index: 41; overflow-y: auto; }
.l3 { display: grid; grid-template-columns: 70px minmax(0, 1fr) 56px; gap: 10px; padding: 10px 0; border-top: 1px solid #e3e7ec; font-size: 14px; align-items: center; color: inherit; text-decoration: none; } a.l3:hover { background: var(--field); }
.nota-pill { display: inline-block; min-width: 38px; text-align: center; border-radius: 8px; padding: 2px 8px; font-weight: 700; background: var(--field); color: var(--navy); }
.param-grid { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 20px; align-items: start; } .param-nav { display: flex; flex-direction: column; gap: 4px; position: sticky; top: 12px; } .param-nav a { padding: 10px 12px; border-radius: 8px; color: var(--ink); font-weight: 600; text-decoration: none; } .param-nav a:hover { background: var(--field); }
@media (max-width: 1000px) { .acao-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .param-grid { grid-template-columns: minmax(0, 1fr); } .param-nav { position: static; flex-direction: row; flex-wrap: wrap; } }
@media (max-width: 600px) { .acao-cards { grid-template-columns: minmax(0, 1fr); } .nav2 .titulo-p { display: none; } .topbar { padding: 12px 16px; } }
.mais-filtros { align-self: flex-end; position: relative; } .mais-filtros > summary { list-style: none; cursor: pointer; } .mais-filtros > summary::-webkit-details-marker { display: none; }
.mais-filtros .mf-corpo { position: absolute; right: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 12px 30px rgba(11,31,58,.18); padding: 14px; display: grid; gap: 10px; min-width: 240px; z-index: 20; }

@media (max-width: 1500px) { .nav2 .titulo-p { display: none; } }
.nav2 .tag-demo { font-size: 11px; padding: 4px 8px; }
section.lista #tabela .tr { grid-template-columns: 72px minmax(0, 2.6fr) 150px 130px 120px 150px minmax(150px, 1.2fr) 96px; min-width: 0; }
@media (max-width: 1100px) { section.lista #tabela { overflow-x: auto; } section.lista #tabela .tr { min-width: 1000px; } }


/* ---- Início v2: grade alinhada e hierarquia executiva */
/* Início redesenhado: grade alinhada, hierarquia clara, sensação executiva */
.g12 { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; align-items: stretch; }
.c3 { grid-column: span 3; } .c4 { grid-column: span 4; } .c5 { grid-column: span 5; } .c6 { grid-column: span 6; } .c7 { grid-column: span 7; } .c8 { grid-column: span 8; } .c12 { grid-column: span 12; }
.cartao { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.cartao > h2 { margin: 0; font-size: 15px; font-weight: 700; color: var(--navy); letter-spacing: .01em; }
.cartao .sub { font-size: 13px; color: var(--muted); margin-top: -6px; }
.hero2 { background: var(--navy); color: #fff; border-radius: 16px; padding: 26px 30px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; }
.hero2 .k { font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: var(--on-navy-muted); font-weight: 700; }
.hero2 h1 { margin: 4px 0 8px; font-size: var(--t-kpi); line-height: 1.2; font-weight: 700; } .hero2 h1 b { color: var(--gold); }
.hero2 p { margin: 0; color: #E8EBEE; font-size: 15px; max-width: 760px; }
.hero2 .acoes { display: flex; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
.k3 { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.k3 small { grid-column: 1 / -1; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.k3 b { font-size: 30px; white-space: nowrap; line-height: 1.1; color: var(--navy); font-variant-numeric: tabular-nums; }
.k3 span { grid-column: 1 / -1; font-size: 13px; color: var(--muted); }
.k3 .delta { font-weight: 700; } .k3 .delta.ok { color: var(--ok); } .k3 .delta.ruim { color: var(--bad); }
.anel { width: 64px; height: 64px; border-radius: 50%; position: relative; background: conic-gradient(var(--navy) calc(var(--p) * 1%), var(--field) 0); display: flex; align-items: center; justify-content: center; }
.anel::after { content: ""; position: absolute; inset: 9px; background: #fff; border-radius: 50%; } .anel i { position: relative; z-index: 1; font-style: normal; font-size: 13px; font-weight: 700; color: var(--navy); }
.anel.am { background: conic-gradient(var(--sla-amarelo) calc(var(--p) * 1%), var(--field) 0); } .anel.vm { background: conic-gradient(var(--sla-vermelho) calc(var(--p) * 1%), var(--field) 0); }
.spark { width: 84px; height: 36px; }
.at-lista { display: flex; flex-direction: column; }
.at { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 13px 0; border-top: 1px solid #e3e7ec; font-size: 14px; }
.at:first-child { border-top: 0; } .at b { color: var(--navy); } .at small { display: block; color: var(--muted); font-size: 12px; margin-top: 2px; }
.pt-s { width: 12px; height: 12px; border-radius: 50%; margin-top: 5px; } .pt-s.v { background: var(--sla-vermelho); } .pt-s.a { background: var(--sla-amarelo); } .pt-s.g { background: var(--sla-verde); } .pt-s.i { background: var(--info); }
.fn3 { display: flex; flex-direction: column; gap: 10px; }
.fn3 > div { display: grid; grid-template-columns: 120px minmax(0, 1fr) 40px; gap: 10px; align-items: center; font-size: 13px; } .fn3 .b { height: 14px; background: var(--field); border-radius: 7px; overflow: hidden; } .fn3 .b i { display: block; height: 100%; background: var(--navy); border-radius: 7px; } .fn3 b { text-align: right; font-variant-numeric: tabular-nums; color: var(--navy); }
.cic { display: flex; flex-direction: column; gap: 10px; } .cic > div { display: grid; grid-template-columns: 82px minmax(0, 1fr) 76px; gap: 10px; align-items: center; font-size: 13px; } .cic .b { height: 14px; background: var(--field); border-radius: 7px; position: relative; } .cic .b i { display: block; height: 100%; border-radius: 7px; background: var(--navy); } .cic b { text-align: right; font-variant-numeric: tabular-nums; }
.tl-d { display: flex; flex-direction: column; gap: 0; position: relative; padding-left: 22px; } .tl-d::before { content: ""; position: absolute; left: 6px; top: 6px; bottom: 6px; width: 2px; background: var(--line); }
.tl-d > div { position: relative; padding: 8px 0; font-size: 14px; } .tl-d > div::before { content: ""; position: absolute; left: -22px; top: 13px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--navy); } .tl-d > div.hoje::before { border-color: var(--gold); background: var(--gold); } .tl-d > div.fim::before { border-color: var(--sla-verde); }
.tl-d small { display: block; color: var(--muted); font-size: 12px; }
.dia-grande { font-size: 30px; font-weight: 700; color: var(--navy); line-height: 1.1; }
.aprof { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .aprof a { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; color: inherit; } .aprof a b { color: var(--navy); } .aprof a span { font-size: 13px; color: var(--muted); } .aprof a em { font-style: normal; color: var(--info); font-weight: 600; font-size: 13px; margin-top: 4px; }
.fila-dia { display: flex; flex-direction: column; } .fd { display: grid; grid-template-columns: 70px minmax(0, 1fr) 150px 90px; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e3e7ec; font-size: 14px; } .fd:first-child { border-top: 0; } .fd .t b { color: var(--navy); display: block; } .fd .t small { color: var(--muted); font-size: 12px; }
.grande-num { display: flex; align-items: baseline; gap: 10px; } .grande-num b { font-size: 56px; line-height: 1; color: var(--navy); } .grande-num span { font-size: 15px; color: var(--muted); }

.matriz .pt-n-critica { fill: #132F50; stroke: #fff; stroke-width: 2; } .matriz .pt-n-alta { fill: var(--gold); stroke: #fff; stroke-width: 2; } .matriz .pt-n-media { fill: #8FA3B8; stroke: #fff; stroke-width: 2; } .matriz .pt-n-baixa { fill: #D5DCE4; stroke: #8FA3B8; stroke-width: 1.5; }
.legend i.lg-critica { background: #132F50; border-radius: 50%; } .legend i.lg-alta { background: var(--gold); border-radius: 50%; } .legend i.lg-media { background: #8FA3B8; border-radius: 50%; } .legend i.lg-baixa { background: #D5DCE4; border: 1.5px solid #8FA3B8; border-radius: 50%; width: 12px; height: 12px; box-sizing: border-box; }
.hero2 .btn.onnavy { border-color: var(--on-navy-muted); }
a.at-link { color: var(--info); font-weight: 600; }
@media (max-width: 1000px) { .g12 > [class^="c"] { grid-column: span 12; } .hero2 { grid-template-columns: minmax(0, 1fr); } .aprof { grid-template-columns: repeat(2, minmax(0, 1fr)); } .fd { grid-template-columns: 64px minmax(0, 1fr); } .fd > :nth-child(3), .fd > :nth-child(4) { grid-column: 2; } }
.aprof a, .aprof a:hover { text-decoration: none; } .aprof a:hover { border-color: var(--field-line); background: var(--field); }

/* ---- Portal: entrada limpa */
body.pg-login { background: var(--bg); min-height: 100vh; display: flex; flex-direction: column; }
.pg-centro { flex: 1; display: flex; align-items: center; justify-content: center; padding: 40px 20px; }
.login-cx { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 34px 34px 28px; display: flex; flex-direction: column; gap: 16px; box-shadow: 0 18px 50px rgba(11,31,58,.10); }
.login-cx .marca { font-size: 28px; font-weight: 700; color: var(--navy); letter-spacing: -.01em; } .login-cx .marca small { display: block; font-size: 13px; font-weight: 500; color: var(--muted); letter-spacing: 0; margin-top: 2px; }
.login-cx h1 { margin: 6px 0 0; font-size: 22px; color: var(--navy); }
.login-cx .rodape { border-top: 1px solid var(--line); padding-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.pg-rodape { text-align: center; color: var(--muted); font-size: 12px; padding: 16px; }
.perfil-legado { font-size: 13px; color: var(--muted); padding: 0 8px; } .perfil-legado > summary { cursor: pointer; text-align: center; }
.login-cx.hide { display: none; }

/* ---- D20/D21: escala tipográfica única e faixa de caminho */
:root { --t-pagina: 24px; --t-secao: 18px; --t-cartao: 15px; --t-texto: 15px; --t-apoio: 13px; --t-kpi: 28px; }
.crumb { display: flex; align-items: center; gap: 14px; padding: 10px 48px; background: #fff; border-bottom: 1px solid var(--line); font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.crumb > a { color: var(--navy); font-weight: 600; text-decoration: none; } .crumb > a:hover { text-decoration: underline; } .crumb .sep2 { color: #b5bec9; }
.crumb ol { list-style: none; margin: 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; } .crumb li + li::before { content: "›"; color: #b5bec9; margin-right: 8px; } .crumb li a { color: var(--muted); text-decoration: none; } .crumb li a:hover { text-decoration: underline; } .crumb [aria-current=page] { color: var(--ink); font-weight: 600; }
.crumb .fila-barra { width: 90px; } .crumb .btn { min-height: 34px; }
.pag-cab { display: flex; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.pag-cab h1 { margin: 0; font-size: var(--t-pagina); line-height: 1.25; color: var(--navy); font-weight: 700; } .pag-cab .grow { min-width: 220px; } .pag-cab .small { margin-top: 2px; }
@media (max-width: 700px) { .crumb { padding: 10px 16px; } }
.panel h2, .card h2 { font-size: var(--t-secao); }
.k3 b, .kpi2 b { font-size: var(--t-kpi); }
.crumb .fila-barra { background: var(--field); } .crumb .fila-barra > div { background: var(--navy); }
h1.page, .fx-titulo, .exec-h { font-size: var(--t-pagina); line-height: 1.25; }

/* ---- D16: fila de triagem */
.pess { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #e3e7ec; font-size: 14px; } .pess:first-of-type { border-top: 0; }
.pess b { color: var(--navy); } .pess .mini2 { height: 6px; background: var(--field); border-radius: 3px; overflow: hidden; margin-top: 4px; display: flex; } .pess .mini2 i { display: block; height: 100%; }
.av2 { width: 38px; height: 38px; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; font-size: 13px; display: flex; align-items: center; justify-content: center; } .av2.g { background: var(--sla-cinza); }
.chips-f { display: flex; gap: 8px; flex-wrap: wrap; } .chip2 { display: inline-flex; gap: 6px; align-items: center; border: 1px solid var(--field-line); border-radius: 999px; padding: 6px 14px; font-size: 14px; background: #fff; font-weight: 600; color: var(--navy); } .chip2.on { background: var(--navy); color: #fff; border-color: var(--navy); } .chip2 small { font-weight: 500; opacity: .8; }
.tr3 { display: grid; grid-template-columns: 64px minmax(0, 1fr) 160px 120px; gap: 12px; align-items: center; padding: 12px 20px; border-top: 1px solid #e3e7ec; font-size: 14px; } .tr3.th { background: var(--field); border-top: 0; font-size: 12px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; padding-top: 9px; padding-bottom: 9px; } .tr3 .t b { color: var(--navy); display: block; font-weight: 600; } .tr3 .t small { color: var(--muted); font-size: 12px; }
.acoes-l { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; }
@media (max-width: 1000px) { .tr3 { grid-template-columns: 64px minmax(0, 1fr); } .tr3 > :nth-child(3), .tr3 > :nth-child(4) { grid-column: 2; } .tr3.th { display: none; } }

/* ---- D17/D19: parecidas na triagem; comitê com classificação em primeiro plano */
.fx-grid2 { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 16px; align-items: start; } @media (max-width: 1000px) { .fx-grid2 { grid-template-columns: minmax(0, 1fr); } }
.pq-cmp { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 14px; align-items: center; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; } .pq-acoes { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; max-width: 330px; }
.pq-linha { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid #e3e7ec; font-size: 14px; }
.sim { display: inline-block; background: var(--gold-soft); border: 1px solid var(--gold); border-radius: 999px; padding: 1px 10px; font-size: 12px; font-weight: 700; color: #5d4600; }
.nota-info { background: var(--info-bg); border: 1px solid var(--info); border-radius: 10px; padding: 10px 14px; font-size: 14px; color: var(--ink); } .nota-info b { color: var(--info); }
.acc2 { background: #fff; border: 1px solid var(--line); border-radius: 12px; } .acc2 > summary { padding: 14px 18px; font-weight: 600; color: var(--navy); list-style: none; cursor: pointer; font-size: var(--t-cartao); } .acc2 > summary::-webkit-details-marker { display: none; } .acc2 > summary small { color: var(--muted); font-weight: 400; margin-left: 8px; } .acc2 > summary::after { content: 'Abrir ▾'; float: right; color: var(--muted); font-size: 13px; font-weight: 600; } .acc2[open] > summary::after { content: 'Fechar ▴'; }
.acc2 > .corpo { padding: 0 18px 16px; } .acc2 .corpo > .card, .acc2 .corpo > details.card { border: 0; box-shadow: none; padding: 0; background: transparent; }
details.fx-hist { border-radius: 12px; }

/* ---- D18: pauta do comitê */
.slim { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 18px; font-size: 14px; } .slim .bar-p { flex: 1; height: 8px; background: var(--field); border-radius: 4px; overflow: hidden; } .slim .bar-p i { display: block; height: 100%; background: var(--navy); }
.lista-c { display: flex; flex-direction: column; } .lc { display: grid; grid-template-columns: 28px minmax(0, 1fr) 46px; gap: 10px; align-items: center; padding: 10px 12px; border-radius: 10px; font-size: 14px; } .lc.on { background: var(--field); box-shadow: inset 0 0 0 2px var(--gold); } .lc b { color: var(--navy); font-weight: 600; } .lc small { display: block; color: var(--muted); font-size: 12px; } .lc .n { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--field-line); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--navy); } .lc .n.ok { background: var(--sla-verde); border-color: var(--sla-verde); color: #fff; }
.resumo-x { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; } .resumo-x > div { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; background: #fff; } .resumo-x small { display: block; color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; } .resumo-x b { font-size: 22px; color: var(--navy); display: block; line-height: 1.2; } .resumo-x span { font-size: 12px; color: var(--muted); }
button.lc { width: 100%; border: 0; background: transparent; text-align: left; font: inherit; cursor: pointer; color: var(--ink); } button.lc:hover { background: var(--field); } button.lc:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
body.pauta-fs .topbar, body.pauta-fs .crumb { display: none; } body.pauta-fs { background: var(--bg); }
.slim .btn { min-height: 36px; }
