/* Refinamento tipográfico das superfícies operacionais mais usadas.
   Manrope é variável entre 400 e 800. A escala abaixo usa 500 para apoio,
   600 para controles e 700 para títulos; não depende de negrito sintetizado. */
:root {
  --alos-meta-size: 12px;
  --alos-control-size: 13px;
}
html, body,
#viewTable, #viewLiminares, #viewJulgamentos, #viewEsteira, #viewRadar,
#drawer.process-workspace { font-synthesis: none; text-rendering: optimizeLegibility; }

/* Atividades: títulos e comandos usam a mesma voz das demais mesas de trabalho. */
#viewTarefas .wt4-copy h2 {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.22;
  letter-spacing: -.025em;
}
#viewTarefas .wt4-next > b {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: 17px;
  font-weight: 600;
  line-height: 1.4;
}
#viewTarefas :is(.wt5-primary-field small,.wt5-advanced-filters > span,
  .wt4-eyebrow,.wt4-live span,.wt4-live b,.wt4-next > span,.wt4-next > small,
  .wt4-recorte > small,.wt4-list-head span,.wt4-kpis button small) {
  font-size: var(--alos-meta-size);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: .015em;
}
#viewTarefas :is(.wt5-primary-field select,.wt5-primary-field small) { letter-spacing: 0; }
#viewTarefas .wt5-primary-field select { font-size: var(--alos-control-size); font-weight: 600; }
#viewTarefas :is(.wt4-next > button,.wt-new,.wt-filter,.wt-recorte-tabs button,
  .wt-scope button,.wt5-clear,.wt-sortsel select,.wt-link,.wt-action) {
  min-height: 40px;
  font-size: var(--alos-control-size);
  font-weight: 600;
  line-height: 1.4;
}
#viewTarefas .wt-card :is(h3,.wt-h3) { font-weight: 600; }
#viewTarefas .wt-card :is(.wt-meta,.wt-due,.wt-status,.wt-origin,.wt-prio,.wt-tipo) {
  font-size: var(--alos-meta-size);
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
}
#viewTarefas .wt4-kpis button :is(b,span) { font-weight: 600; }
body.text-large #viewTarefas .wt-card :is(h3,.wt-h3) { font-size: 16.5px; }
body.text-large #viewTarefas .wt-card .wt-meta { font-size: 13px; }

/* Processo e carteira */
#viewTable :is(.proc5-copy h2,.ptx-head h3) { font-weight: 700; }
#viewTable :is(.proc5-copy>span,.proc5-next>span,.proc5-next>small,.proc5-next>em,
  .proc5-signals span,.proc5-signals small,.ptx-head p,.ptx-thesis small,
  .ptx-thesis strong,.ptx-theses-label span,.ptx-theses-label small,
  .proc-client-cell small,.proc-varaforum,.proc-foro,.proc-area-pill,.proc-tese-label) {
  font-size: var(--alos-meta-size); font-weight: 500; line-height: 1.48; letter-spacing: 0;
}
#viewTable :is(.proc-groupbtn,.proc5-column-mode button) { font-weight: 600; }
#viewTable :is(.row-proc-title,.proc-cn .proc-link,.ptx-area,.ptx-view,.ptx-thesis b) { font-weight: 600; }

#drawer.process-workspace :is(.dh-client,.dr-history-intro h3,.dr-res-head h3) { font-weight: 700; }
#drawer.process-workspace :is(.dh-title,.dr-history-intro p,.dr-res-head p,.dr-hevent-text,
  .dr-res-evidence,.dr-hempty span) { font-weight: 500; }
#drawer.process-workspace :is(.dr-hmeta time,.dr-hbadge,.dr-hsource,.dr-res-head>div>span,
  .dr-res-field span,.dr-res-type,.dr-res-status,.dr-res-actions button) {
  min-height: auto; font-size: 11.5px; font-weight: 600; line-height: 1.35; letter-spacing: .015em;
}
#drawer.process-workspace :is(.dh-back,.dr-res-primary,.dr-res-save) { font-weight: 700; }
#drawer.process-workspace .dr-hsource { display: inline-flex; align-items: center; gap: 5px; color: var(--muted); }
#drawer.process-workspace .dr-hsource .ic { width: 13px; height: 13px; }
#drawer.process-workspace .dr-hcoverage {
  display: flex; max-width: 1040px; align-items: flex-start; gap: 9px; margin: -8px 0 18px;
  padding: 10px 12px; border: 1px solid color-mix(in srgb,#2b817d 20%,var(--border));
  border-radius: 11px; background: color-mix(in srgb,#2b817d 5%,var(--card));
  color: var(--text-soft); font-size: 12px; font-weight: 500; line-height: 1.5;
}
#drawer.process-workspace .dr-hcoverage>.ic { width: 16px; height: 16px; flex: 0 0 auto; margin-top: 1px; color: #287a73; }
#drawer.process-workspace .dr-hcoverage b { color: var(--text-bright); font-weight: 600; }

/* Liminares: números chamam atenção; explicações ficam leves e legíveis. */
#viewLiminares :is(.lim-client,.lim-ops-copy h2,.lim-branch-title strong) { font-weight: 700; }
#viewLiminares :is(.lim-ops-kpis b,.lim-cc-metrics b,.lim-cc-quality b,.lim-cc-load-row b) { font-weight: 700; }
#viewLiminares :is(.lim-ops-kicker,.lim-ops-action>span,.lim-branch-brand,.lim-branch-index,
  .lim-status-peek-pop small,.lim-branch-context-grid small,.lim-cc-detail>summary span,
  .lim-cc-shifts button span,.lim-cc-load-row em) {
  font-size: 11.5px; font-weight: 600; line-height: 1.35; letter-spacing: .025em;
}
#viewLiminares :is(small,.lim-ops-copy p,.lim-cc-quality span,.lim-cc-load-row span,
  .lim-branch-context-grid b) { font-weight: 500; line-height: 1.48; }

/* Julgamentos */
#julgamentosBody .julg-hero h2 {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-weight: 700;
  line-height: 1.25;
}
#viewJulgamentos :is(h1,h2,h3,.jc-client,.jc-title) { font-weight: 700; }
#viewJulgamentos :is(small,.jc-meta,.jc-card-meta,.jc-sub,.jc-context) {
  font-size: 12px; font-weight: 500; line-height: 1.48; letter-spacing: 0;
}
#viewJulgamentos :is(button,label,.jc-badge,.jc-stage) { font-weight: 600; }

/* Esteira */
#viewEsteira :is(.qd-card-client,.dc-cli,.est-report-title,.er-case h4) { font-weight: 700; }
#viewEsteira :is(small,.qd-card-meta,.dc-meta,.est-metric-scope,.comp-hint,
  .er-case-grid small,.er-reasons small,.est-wait-copy) {
  font-size: 12px; font-weight: 500; line-height: 1.48; letter-spacing: 0;
}
#viewEsteira :is(.est-fpill,.qd-vtoggle button,.est-area,.est-b,.er-stage,.er-priority) { font-weight: 600; }
#esteiraBody :is(.qd-coltit,.qd-col.qd-vazia .qd-coltit) {
  font-size: 12px; font-weight: 600; line-height: 1.45; letter-spacing: .015em;
}
#esteiraBody :is(.qd-colcount,.qd-colsla,.qd-colempty,.est5-title > span,
  .est5-field > span,.est5-fields label,.est5-fields select) {
  font-size: var(--alos-meta-size); font-weight: 500; line-height: 1.45;
}
#esteiraBody :is(.est5-signals button,.est5-search-go,.est5-clear,.est-fpill,
  .qd-vtoggle button,.qd-switch button,.est-sel) {
  min-height: 38px; font-size: var(--alos-control-size); font-weight: 600; line-height: 1.4;
}

/* Radar */
#viewRadar .rd6-ledger h2 {
  font-family: 'Manrope', 'Segoe UI', sans-serif;
  font-size: clamp(24px, 2.1vw, 30px);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -.025em;
}
#viewRadar :is(.rd3-main-value,.rd3-total>b,.rd-card-v3 h3,.rd-sec-h b) { font-weight: 700; }
#viewRadar :is(small,.rd-sec-sub,.rd-card-v3 p,.rd-card-v3 em,.rd3-trust,
  .rd3-main-value>span,.rd6-target>span,.rd6-board span,.rd6-command span) {
  font-size: 12px; font-weight: 500; line-height: 1.48; letter-spacing: 0;
}
#viewRadar :is(.rd-tab,.rd-sort,.rd-sort select,.rd-card-more>summary) { font-weight: 600; }

@media (max-width: 760px) {
  :root { --alos-meta-size: 12px; }
  #drawer.process-workspace .dr-hcoverage { margin-top: 0; }
  #viewTarefas :is(.wt-new,.wt-filter,.wt5-clear,.wt4-next > button),
  #esteiraBody :is(.est5-signals button,.est5-search-go,.est5-clear,.est-fpill,.qd-vtoggle button) {
    min-height: 44px;
  }
}
