/* Secondary desks: actions first, readable records, the same light/dark tokens. */
.alos-secondary-context { margin:12px 0 16px; }
.alos-secondary-context > .alos-visual-details-body { display:grid; gap:12px; }
.docs7-priority .docs3-hero {
  grid-template-columns:minmax(0,1.35fr) minmax(270px,.8fr);
  min-height:0;
}
.docs7-priority .docs3-copy { padding:24px; }
.docs7-priority .docs3-copy > p { margin-bottom:0; }
.docs7-priority .docs3-next { grid-column:auto; margin:14px; padding:18px; }
.docs7-priority .docs3-next > :is(b,small) { display:block; overflow:visible; }
.docs7-priority .docs3-next > b { font-family:Manrope,"Segoe UI",sans-serif; }
.docs7-priority .docs3-next > button { min-height:40px; }
.docs7-priority .docs3-eyebrow { font-size:12px; letter-spacing:.11em; }
.docs7-priority .docs3-kpis {
  max-width:none; gap:8px; padding:0; border:0;
}
.docs7-priority .docs3-kpis button {
  padding:12px; border:1px solid var(--border); border-radius:12px;
  background:var(--card); color:var(--text-bright);
}
.docs7-priority .docs3-kpis button b {
  color:var(--text-bright); font-family:Manrope,"Segoe UI",sans-serif;
  font-variant-numeric:tabular-nums; font-size:25px;
}
.docs7-priority .docs3-kpis button span { color:var(--muted); }
.docs7-priority .docs3-sla {
  justify-content:flex-start; flex-direction:row; align-items:center;
  padding:16px; border:1px solid var(--border); border-radius:12px;
  background:var(--bg2);
}
.docs7-priority .docs3-sla > div:last-child > :is(span,small) { color:var(--muted); max-width:none; }
.docs7-priority .docs3-sla > div:last-child > b { color:var(--text-bright); }
.docs7-priority :is(.docs4-sources,.docs4-route) { margin:0; }
.docs7-priority :is(.docs4-sources b,.docs4-route small,.docs6-accountability em) {
  white-space:normal; overflow:visible; overflow-wrap:anywhere;
}
.docs7-priority :is(.docs3-next > span,.docs3-next > small,.docs3-next > button,
  .docs3-next-ok small,.docs3-kpis span,.docs3-ring span,.docs3-sla > div:last-child > span,
  .docs3-sla small,.docs4-sources b,.docs4-sources small,.docs4-route b,.docs4-route small,
  .docs4-route > aside,.docs3-filters button,.docs3-filters button b,.docs3-sort,.docs3-sort select,
  .docs3-list-head span,.docs3-list-head > div:last-child,.docs4-source,.docs4-status,
  .docs4-pack-main p,.docs4-pack-main > aside > span,.docs4-pack-main > aside > small,
  .docs4-note b,.docs4-note span,.docs4-files > summary,.docs4-files > summary > span,
  .docs4-file b,.docs4-file small,.docs4-ext,.docs4-pack > footer button,.docs4-warning,
  .docs4-warning button,.docs3-empty > span,.docs3-empty > button,.docs5-progress span > b,
  .docs5-progress small,.docs6-command-head span,.docs6-command-head > button,.docs6-actors span,
  .docs6-selects label,.docs6-selects select,.docs6-selects > small,.docs6-accountability small,
  .docs6-accountability b,.docs6-accountability em,.docs6-accountability > strong,
  .docs6-gates small,.docs6-gates b,.docs6-gates em) { font-size:12px; line-height:1.45; }
.docs7-priority .docs6-actors span { overflow:visible; white-space:normal; }
.docs7-priority .docs4-pack-main :is(h3,p) { white-space:normal; overflow-wrap:anywhere; }
.docs7-priority .docs6-gates b { flex-wrap:wrap; }
.docs7-priority .docs4-pack > header { flex-wrap:wrap; }
.docs7-priority .docs6-accountability { align-items:flex-start; flex-wrap:wrap; }
.docs7-priority .docs4-pack > footer { flex-wrap:wrap; }
.docs7-priority .docs4-file { grid-template-columns:36px minmax(0,1fr) 14px; }
.docs7-priority .docs4-ext { width:34px; }
.docs7-priority :is(.docs4-file b,.docs4-file small) { white-space:normal; overflow-wrap:anywhere; }
.docs7-priority .docs6-selects { grid-template-columns:repeat(3,minmax(0,1fr)); }
.docs7-priority .docs6-selects > small { grid-column:1/-1; }
.docs7-priority .docs6-gates { grid-template-columns:1fr 1fr auto; }
body.dark .docs7-priority :is(.docs3-list-head span,.docs4-ext,.docs4-pack-main > aside > b,
  .docs4-pack > footer button.context,.docs5-progress span > b,.docs6-gates b > .ic) { color:#82cbd2; }
body.dark .docs7-priority :is(.docs4-note,.docs4-pack > footer button.missing,.docs4-warning) { color:#f0a58f; }
body.dark .docs7-priority .docs6-accountability.cliente :is(small,.ic) { color:#e5bd7c; }
body.dark .docs7-priority .docs6-accountability.concluido :is(small,.ic) { color:#87cda8; }

/* Diary keeps its editorial navy introduction but uses shared desk surfaces. */
#despachosBody { background:var(--bg); }
.desp5-priority { --d4-ink:var(--text-bright); --d4-paper:var(--card); }
.desp5-priority :is(.desp4-last > b,.desp4-register-head b,.desp4-date b) { font-family:Manrope,"Segoe UI",sans-serif; }
.desp5-priority .desp4-hero {
  min-height:0; grid-template-columns:92px minmax(0,1fr); gap:22px; padding:24px;
}
.desp5-priority .desp4-copy h2 { font-size:36px; line-height:1.06; }
.desp5-priority .desp4-copy p { max-width:760px; font-size:13px; color:#c3d0d5; }
.desp5-priority .desp4-copy > div { margin-top:10px; }
.desp5-priority .desp4-stamp { width:82px; height:82px; font-size:10px; }
.desp5-priority .desp5-new {
  display:inline-flex; align-items:center; gap:7px; min-height:40px; margin-top:14px;
  padding:9px 13px; border:1px solid #dbb795; border-radius:9px;
  background:#e4c3a2; color:#172b3a; font:800 12px Manrope,"Segoe UI",sans-serif; cursor:pointer;
}
.desp5-new .ic { width:15px; height:15px; }
.desp5-priority .despv-launch { margin:12px 0; padding:18px; gap:16px; }
.desp5-priority .despv-launch h3 { font-size:23px; }
.desp5-priority .despv-launch p { color:#c4dadc; font-size:12.5px; }
.desp5-priority .despv-launch > button { min-height:42px; }
.desp5-priority .desp4-last {
  display:block; padding:16px; border-color:var(--border); background:var(--bg2);
}
.desp5-priority .desp4-last > b {
  color:var(--text-bright); white-space:normal; font-size:20px;
}
.desp5-priority .desp4-last > :is(small,p) { color:var(--muted); }
.desp5-priority .desp4-last > p { display:block; min-height:0; overflow:visible; }
.desp5-priority .desp4-last > span { color:var(--primary); }
.desp5-priority .desp4-stats { margin:0; }
.desp5-priority .desp4-stats article { padding:14px; box-shadow:none; }
.desp5-priority .desp4-stats b { font-family:Manrope,"Segoe UI",sans-serif; font-size:26px; font-variant-numeric:tabular-nums; }
.desp5-priority :is(.desp4-copy > span,.desp4-copy > div,.desp4-last > span,.desp4-last > small,
  .desp4-last > p,.desp4-stats span,.desp4-stats small,.despv-launch span,.despv-launch > button,
  .desp4-register-head small,.desp4-register-head em,.desp4-form .desp-fld > span,
  .desp4-form .desp-fld input,.desp4-form .desp-fld select,.desp4-form .desp-fld textarea,
  .desp4-form .desp-mic,.desp4-form-foot > small,.desp4-form .desp-save,.desp4-ledger > header span,
  .desp4-ledger > header > small,.desp4-tools > label input,.desp4-tools > div button,.desp4-reset,
  .desp4-date span,.desp4-type,.desp4-entry-main > header em,.desp4-meta span,.desp4-outcome span,
  .desp4-outcome p,.desp4-entry footer > span,.desp4-entry footer button,
  .desp4-empty small,.desp4-empty button) { font-size:12px; line-height:1.45; }
.desp5-priority .desp4-entry blockquote { font-size:13px; line-height:1.6; }
.desp5-priority .desp4-entry-main h4 { font-size:19px; }
.desp5-priority :is(.desp4-copy > span,.desp4-last > span,.desp4-stats span,.desp4-type,.desp4-outcome span) { letter-spacing:.06em; }
.desp5-priority :is(.desp4-stats article,.desp4-register,.desp4-ledger,.desp4-form,.desp4-tools,
  .desp4-tools > label,.desp4-tools > div button,.desp4-entry-main,.desp4-entry footer) { border-color:var(--border); }
.desp5-priority :is(.desp4-stats span,.desp4-stats small,.desp4-register-head small,
  .desp4-form .desp-fld > span,.desp4-form-foot > small,.desp4-ledger > header > small,
  .desp4-tools > label > .ic,.desp4-date span,.desp4-entry-main > header em,.desp4-meta span,
  .desp4-entry footer > span,.desp4-empty,.desp4-loading) { color:var(--muted); }
.desp5-priority :is(.desp4-register-head:hover,.desp4-form,.desp4-tools > label) { background:var(--bg2); }
.desp5-priority :is(.desp4-entry-main,.desp4-form .desp-fld input,.desp4-form .desp-fld select,
  .desp4-form .desp-fld textarea,.desp4-tools > div button,.desp4-empty button) { background:var(--card); color:var(--text); }
.desp5-priority .desp4-tools > label { min-height:40px; }
.desp5-priority .desp4-tools > div button { min-height:36px; }
.desp5-priority .desp4-tools > div button.active { background:var(--primary); color:var(--on-primary); }
.desp5-priority .desp4-tools > div button.active b { color:inherit; }
.desp5-priority .desp4-entry blockquote { color:var(--text); border-color:var(--border); }
.desp5-priority .desp4-outcome { background:color-mix(in srgb,#b8822e 10%,var(--card)); }
.desp5-priority .desp4-outcome p { color:var(--text); }
.desp5-priority .desp4-timeline:before { background:var(--border); }
.desp5-priority .desp4-entry footer button { min-height:32px; }
body.dark .desp5-priority { --d4-red:#e8a18c; --d4-blue:#86bfce; --d4-ochre:#dfb876; }
body.dark .desp5-priority :is(.desp4-outcome span,.desp4-form .desp-mic) { color:#e1bd88; }
body.dark .desp5-priority :is(.desp4-register-head > span,.desp4-form .desp-mic) { background:#322d29; }
body.dark .desp5-priority .desp4-node { background:#392b2d; }
body.dark .desp5-priority .desp4-entry.visita .desp4-node { background:#203b32; color:#8cc4ab; }
body.dark .desp5-priority .desp4-entry.ligacao .desp4-node { background:#203641; color:#8cc2db; }
body.dark .desp5-priority .desp4-entry.comunicacao .desp4-node { background:#3c3225; color:#e1bd88; }

/* Secondary list metadata stays readable without changing status semantics. */
.ct3-card :is(.ct3-name p,.ct3-state,.ct3-opme,.ct3-fields > label > span,.ct3-purpose > span,
  .ct3-purpose label,.ct3-check b,.ct3-check small,.ct3-save),
.av3-card :is(.av3-rail > span,.av3-rail > small,.av3-person p,.av3-message strong,.av3-message p,
  .av3-badge,.av3-side time,.av3-actions button,.av3-fix,.av3-block,.av3-block b),
.rd6-hero :is(.rd6-eye,.rd6-main-value > span,.rd6-main-value > small,.rd6-target > span,.rd6-target > small,
  .rd6-board span,.rd6-board small,.rd6-command span,.rd6-command b,.rd6-command small,.rd6-command > button),
.rd6-flow :is(b,small) { font-size:12px; line-height:1.45; }
.av3-card .av3-purpose { font-size:12px!important; }
.ct5-context :is(b,span,nav button),.av5-case :is(b,nav button),
:is(.ct5-command-head,.av5-command-head) :is(span,button),
:is(.ct5-signals,.av5-signals) span,:is(.ct5-scopes,.av5-scopes) :is(label,select) {
  font-size:12px; line-height:1.45;
}
:is(.ct5-context,.av5-case) :is(b,span) { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
:is(.ct5-context,.av5-case) nav { flex-wrap:wrap; }
:is(.ct5-context,.av5-case) nav button { min-height:34px; height:auto; }
body.dark .ct5-context nav button { color:#8bc9aa; }
/* The shared small-text rule is !important; preserve a 12px floor in these desks. */
:is(.docs7-priority,.desp5-priority,.ct3-card,.av3-card,.rd6-hero,.rd6-flow) small {
  font-size:max(12px,.8em)!important;
}
.ct3-card :is(.ct3-name p,.ct3-check b,.ct3-check small),
.av3-card :is(.av3-person p,.av3-message strong),.rd6-flow small { white-space:normal; overflow:visible; overflow-wrap:anywhere; }
.av3-card .av3-actions button { min-height:34px; height:auto; }
.rd6-board button { padding-bottom:27px; }
body.dark .ct3-state.processual { color:#8bc9aa; }
body.dark .ct3-state.revisao { color:#e1b27a; }
body.dark :is(.ct3-state.operacional,.ct3-opme) { color:#9ebfe0; }
body.dark .av3-badge.draft { color:#e1b27a; }
body.dark .av3-badge.approved { color:#9ebfe0; }
body.dark .av3-badge.sent { color:#8bc9aa; }
body.dark .av3-badge.error { color:#f1a29c; }
body.dark :is(.av3-badge.quarantine,.av3-block) { color:#cbb0e4; }
.docs7-priority :is(button,summary):focus-visible,
.desp5-priority :is(button,summary):focus-visible { outline:3px solid var(--primary); outline-offset:3px; }
.docs7-priority .docs3-hero button:focus-visible,
.desp5-priority :is(.desp4-hero,.despv-launch) button:focus-visible { outline-color:#f2d397; }

@media(max-width:1000px) {
  .docs7-priority .docs3-hero { grid-template-columns:minmax(0,1fr) minmax(240px,.8fr); }
  .docs7-priority .docs4-route { grid-template-columns:repeat(4,minmax(0,1fr)); }
  .docs7-priority .docs4-route > em { display:none; }
  .docs7-priority .docs4-route > aside { grid-column:1/-1; padding:10px 0 0; border-left:0; border-top:1px solid var(--border); }
}
@media(max-width:640px) {
  .docs7-priority .docs3-hero { grid-template-columns:minmax(0,1fr); }
  .docs7-priority .docs3-copy { padding:20px 18px 16px; }
  .docs7-priority .docs3-next { margin:0 12px 12px; padding:16px; }
  .docs7-priority .docs3-kpis { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docs7-priority .docs3-sla { flex-wrap:wrap; }
  .docs7-priority .docs4-sources { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docs7-priority .docs4-route { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docs7-priority .docs6-command-head { align-items:flex-start; flex-direction:column; }
  .docs7-priority .docs6-actors { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .docs7-priority .docs6-selects { grid-template-columns:minmax(0,1fr); }
  .docs7-priority .docs6-gates { grid-template-columns:minmax(0,1fr) auto; }
  .docs7-priority .docs6-gates > span { grid-column:1; }
  .docs7-priority .docs6-gates > span + span { padding:8px 0 0; border-left:0; border-top:1px solid var(--border); }
  .docs7-priority .docs6-gates > .ic { grid-column:2; grid-row:1/3; }
  .docs7-priority .docs4-pack-main { flex-wrap:wrap; }
  .docs7-priority .docs4-pack-main > aside { display:flex; align-items:baseline; gap:6px; flex-wrap:wrap; text-align:left; }
  .docs7-priority .docs3-list-head { align-items:flex-start; flex-direction:column; }
  .docs7-priority .docs3-list-head > div:last-child { display:flex; }
  .desp5-priority .desp4-hero { grid-template-columns:minmax(0,1fr); padding:20px; }
  .desp5-priority .desp4-copy h2 { font-size:31px; }
  .desp5-priority .despv-launch { grid-template-columns:minmax(0,1fr); gap:12px; padding:16px; }
  .desp5-priority .despv-wave { display:none; }
  .desp5-priority .despv-launch h3 { font-size:22px; }
  .desp5-priority .desp4-ledger { padding:13px; }
  .desp5-priority .desp4-entry { grid-template-columns:29px 15px minmax(0,1fr); gap:5px; }
  .desp5-priority .desp4-node { width:15px; height:15px; }
  .desp5-priority .desp4-timeline:before { left:41px; }
  .desp5-priority .desp4-entry-main { padding:12px; }
  .desp5-priority .desp4-meta { gap:6px; }
  .desp5-priority .desp4-meta span { overflow-wrap:anywhere; min-width:0; }
  .desp5-priority .desp4-entry footer { flex-wrap:wrap; }
  .docs7-priority :is(input,select,textarea),.desp5-priority .desp4-form .desp-fld :is(input,select,textarea),
  .desp5-priority .desp4-tools > label input { font-size:16px; }
  .docs7-priority button,.desp5-priority .desp4-tools > div button { min-height:40px; }
}
