.nexo-workspace{max-width:1150px;margin:0 auto;padding:20px 0 36px}
.nexo-intro{margin-bottom:18px}
.nexo-muted{opacity:.76;font-size:.91rem}
.nexo-layout{display:grid;grid-template-columns:minmax(0,2fr) minmax(230px,1fr);gap:16px}
.nexo-panel{background:var(--panel-bg,var(--card-bg,transparent));border:1px solid var(--border-color,rgba(127,127,127,.3));border-radius:14px;padding:18px;min-width:0}
.nexo-panel label{display:block;margin:10px 0;font-weight:600}
.nexo-panel select,.nexo-panel textarea{display:block;width:100%;box-sizing:border-box;margin:7px 0 16px;padding:12px;border-radius:8px;border:1px solid #8993a0;background:var(--surface,#fff);color:var(--text-color,inherit);font:inherit}
.nexo-panel textarea{min-height:115px;resize:vertical}
.nexo-status{margin-top:14px;min-height:24px}
.nexo-answer{white-space:pre-wrap;line-height:1.6;overflow-wrap:anywhere}
.nexo-source{padding:12px 0;border-top:1px solid rgba(127,127,127,.35)}
.nexo-source p{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.92rem;line-height:1.5}
.nexo-history{display:flex;flex-direction:column;gap:8px}
.nexo-history button{text-align:left;white-space:normal}
@media(max-width:850px){.nexo-layout{grid-template-columns:1fr}}
/* HF2 — question/answer association and readable history previews. */
.nexo-question-block{margin:14px 0 18px;padding:12px 14px;border:1px solid rgba(127,127,127,.28);border-radius:10px;background:rgba(127,127,127,.06)}
.nexo-question-text{margin:7px 0 0;white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.5}
.nexo-history-item{display:flex;flex-direction:column;gap:7px;align-items:stretch;width:100%;cursor:pointer;overflow-wrap:anywhere}
.nexo-history-question{display:block;font-weight:600;line-height:1.4}
.nexo-history-meta{opacity:.75;font-weight:400;line-height:1.3}
.nexo-history-item:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* P3: compact, accessible optional examples without auto-submitting. */
.nexo-examples{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin:-5px 0 16px}
.nexo-examples button{font-size:.84rem;padding:7px 11px;width:auto;max-width:100%;white-space:normal}

/* P4: reading the answer comes first; references remain available on demand. */
.nexo-details{margin-top:14px;border-top:1px solid rgba(127,127,127,.32);padding-top:12px}
.nexo-details summary{cursor:pointer;font-weight:600;line-height:1.5}
.nexo-details summary:focus-visible{outline:2px solid currentColor;outline-offset:3px}
.nexo-details[open] summary{margin-bottom:10px}

/* P5: documents are never implied to be part of a ticket record. */
.nexo-details .nexo-muted{line-height:1.55}

/* P6: friendly, source-aware citations, without interpreting source HTML. */
.nexo-citation,.nexo-source-tag{display:inline;max-width:100%;padding:2px 7px;margin:0 2px;border-radius:7px;background:rgba(112,158,245,.13);border:1px solid rgba(112,158,245,.4);color:inherit;font-size:.88em;font-weight:600;line-height:1.6;vertical-align:baseline;white-space:normal;overflow-wrap:anywhere;cursor:pointer}
.nexo-citation:hover,.nexo-source-tag:hover{background:rgba(112,158,245,.23)}
.nexo-source-strip{display:flex;align-items:center;flex-wrap:wrap;gap:7px;margin:12px 0 8px;font-size:.87rem}
.nexo-source-strip>span{opacity:.76}
.nexo-source-strip .nexo-source-tag{display:inline-flex;align-items:center;margin:0}
.nexo-source-meta{display:block;opacity:.76;margin:4px 0 6px}
.nexo-source-focused{border-left:3px solid #759df4;padding-left:11px}
.nexo-source-open{margin:4px 0 6px;padding:6px 11px;font-size:.85rem}
.nexo-citation:focus-visible,.nexo-source-tag:focus-visible,.nexo-source-open:focus-visible{outline:2px solid currentColor;outline-offset:2px}

/* P11: evidence status is an attributed record claim, never a verified diagnosis. */
.nexo-resolution-evidence{display:block;margin:6px 0;padding:5px 8px;border-left:3px solid currentColor;opacity:.85;font-size:.83rem;line-height:1.45}

/* P15.2 — single searchable company dropdown */
.nexo-company-picker{position:relative;display:flex;align-items:stretch;width:100%;margin-bottom:12px}
.nexo-company-picker input{width:100%;min-width:0;padding-right:42px}
.nexo-company-picker #nexo-company-toggle{position:absolute;right:2px;top:2px;bottom:2px;padding:0 12px;width:36px;min-height:0;border:0;background:transparent;color:inherit}
#nexo-company-results{position:absolute;z-index:100;left:0;right:0;top:100%;max-height:250px;overflow:auto;border:1px solid var(--border,#888);border-radius:8px;background:var(--card,#fff);box-shadow:0 8px 24px #0002;padding:4px}
#nexo-company-results[hidden]{display:none}
#nexo-company-results .nexo-company-option{display:block;width:100%;text-align:left;padding:9px 12px;margin:0;border:0;border-radius:5px;background:transparent;color:inherit;cursor:pointer;white-space:normal}
#nexo-company-results .nexo-company-option:hover,#nexo-company-results .nexo-company-option:focus{background:var(--surface-hover,#e5e7eb);outline:2px solid var(--accent,#547bba);outline-offset:-2px}
.nexo-company-empty{padding:10px;opacity:.75}

/* P15.3: theme-safe company combobox. Explicit palette prevents a white
   dropdown inheriting nearly-white text from the dark Portal theme. */
.nexo-panel .nexo-company-picker{position:relative;isolation:isolate}
.nexo-panel .nexo-company-picker #nexo-company-search{
  box-sizing:border-box;width:100%;min-width:0;margin:0;
  padding:11px 44px 11px 12px;border:1px solid #354865;border-radius:9px;
  background:#1b2a40;color:#edf3ff;caret-color:#edf3ff;
}
.nexo-panel .nexo-company-picker #nexo-company-search::placeholder{color:#aebdd3;opacity:1}
.nexo-panel .nexo-company-picker #nexo-company-search:focus-visible{
  outline:2px solid #82aaff;outline-offset:1px
}
.nexo-panel .nexo-company-picker #nexo-company-toggle{
  color:#edf3ff;background:transparent;border:0;cursor:pointer;
}
.nexo-panel #nexo-company-results{
  position:absolute;z-index:200;top:calc(100% + 3px);left:0;right:0;
  box-sizing:border-box;max-height:260px;overflow-y:auto;overflow-x:hidden;
  padding:5px;border:1px solid #415778;border-radius:9px;
  background:#19283d;color:#edf3ff;
  box-shadow:0 12px 30px rgba(0,0,0,.38);
  color-scheme:dark;
}
.nexo-panel #nexo-company-results[hidden]{display:none}
.nexo-panel #nexo-company-results .nexo-company-option{
  display:block;box-sizing:border-box;width:100%;margin:0;padding:10px 12px;
  border:0;border-radius:6px;background:transparent;color:#edf3ff;
  text-align:left;font:inherit;line-height:1.4;cursor:pointer;
}
.nexo-panel #nexo-company-results .nexo-company-option:hover,
.nexo-panel #nexo-company-results .nexo-company-option:focus-visible{
  background:#304768;color:#fff;outline:2px solid #82aaff;outline-offset:-2px;
}
.nexo-panel #nexo-company-results .nexo-company-option[aria-selected="true"]{
  background:#28436a;color:#fff;font-weight:600;
}
.nexo-panel #nexo-company-results .nexo-company-empty{color:#c4d0e2;padding:10px 12px}

/* P15.4: the results are in normal flow, never covering the question or examples. */
.nexo-panel .nexo-company-picker{display:block;position:relative;margin-bottom:14px;isolation:auto}
.nexo-panel .nexo-company-picker #nexo-company-search{display:block}
.nexo-panel #nexo-company-results{position:static;inset:auto;z-index:auto;margin-top:4px;max-height:240px;overflow-y:auto;box-shadow:0 5px 16px rgba(0,0,0,.22)}
.nexo-panel #nexo-company-results[hidden]{display:none}
.nexo-panel #nexo-company-results .nexo-company-option{position:static;min-height:38px}

/* P15.8: responsive two-column inventory detail grid. */
.nexo-inventory-fields {display:grid;grid-template-columns:repeat(2,minmax(0,1fr));column-gap:1.25rem;row-gap:.2rem;margin:.85rem 0;min-width:0}
.nexo-inventory-fields dt {grid-column:auto;color:#a9bce0;font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;margin-top:.5rem;overflow-wrap:anywhere}
.nexo-inventory-fields dd {margin:0;min-width:0;overflow-wrap:anywhere;font-weight:500}
@media(max-width:640px){.nexo-inventory-fields{grid-template-columns:minmax(0,1fr)}}

.nexo-inventory-field{min-width:0;display:flex;flex-direction:column;gap:.15rem}
.nexo-inventory-field dt{margin-top:0}

/* P16.2 — paginação progressiva de inventário */
.nexo-inventory-more{margin-left:.6rem;vertical-align:middle}
.nexo-inventory-extra{margin-top:1rem}
.nexo-inventory-extra>h4{margin:.25rem 0 .75rem;font-size:.9rem}
.nexo-inventory-extra-card{margin-top:.65rem}
@media(max-width:700px){.nexo-inventory-more{display:block;margin:.65rem 0 0}}


/* P23/P24 — assisted actions never execute without explicit confirmation. */
.nexo-assisted-actions{margin:.8rem 0 .25rem;padding:.65rem .7rem;border:1px solid rgba(117,157,244,.28);border-radius:9px;background:rgba(117,157,244,.06)}
.nexo-assisted-actions>summary{cursor:pointer;color:#a9bce0;font-weight:600;font-size:.84rem}
.nexo-assisted-actions-body{display:flex;flex-wrap:wrap;gap:.45rem;align-items:center;margin-top:.65rem}
.nexo-assisted-action{width:auto;padding:6px 10px;font-size:.82rem;margin:0}
.nexo-assisted-action-recommended{border-color:#82aaff;box-shadow:0 0 0 1px rgba(130,170,255,.24)}
.nexo-assisted-action:disabled{opacity:.62;cursor:default}
@media(max-width:640px){.nexo-assisted-actions-body{display:grid;grid-template-columns:1fr}.nexo-assisted-action{width:100%}}

/* P25.2 — resumo de renovações: dados verificáveis do Portal, sem HTML do LLM. */
.nexo-renewal-scope{display:block;margin:.35rem 0 0;font-size:.9rem;opacity:.83}
.nexo-renewal-clarification{display:block;margin:.65rem 0 0;padding:.55rem .75rem;
  border-left:3px solid #82aaff;background:rgba(112,158,245,.07);font-size:.9rem;line-height:1.5}
.nexo-renewals{margin:1rem 0 1.15rem;min-width:0}
.nexo-renewals-scroll{max-width:100%;overflow-x:auto;border:1px solid rgba(127,127,127,.28);border-radius:10px}
.nexo-renewals-table{width:100%;min-width:820px;border-collapse:collapse;table-layout:fixed;margin:0;font-size:.89rem;line-height:1.45}
.nexo-renewals-table th,.nexo-renewals-table td{padding:10px 9px;text-align:left;vertical-align:top;
  border-bottom:1px solid rgba(127,127,127,.2);overflow-wrap:anywhere}
.nexo-renewals-table th{font-size:.77rem;letter-spacing:.025em;color:#bcd0f4;background:rgba(112,158,245,.1)}
.nexo-renewals-table tbody tr:last-child td{border-bottom:0}
.nexo-renewals-table tbody tr:hover{background:rgba(112,158,245,.04)}
/* P25.3: incluir Família mantendo a ordem Empresa / Família / Serviço. */
.nexo-renewals-table th:nth-child(1){width:19%}
.nexo-renewals-table th:nth-child(2){width:16%}
.nexo-renewals-table th:nth-child(3){width:23%}
.nexo-renewals-table th:nth-child(4){width:14%}
.nexo-renewals-table th:nth-child(5){width:13%}
.nexo-renewals-table th:nth-child(6){width:15%}
.nexo-renewal-link{display:inline;text-align:left;width:auto;max-width:100%;padding:0;margin:0;border:0;
  background:transparent;color:#a8c5ff;text-decoration:underline;text-decoration-color:rgba(168,197,255,.45);
  text-underline-offset:3px;line-height:inherit;font:inherit;overflow-wrap:anywhere;cursor:pointer}
.nexo-renewal-link:hover{text-decoration-color:currentColor;color:#d0e1ff}
.nexo-renewal-link:focus-visible{outline:2px solid currentColor;outline-offset:2px}
.nexo-renewal-status{display:inline-block;font-size:.82rem;line-height:1.5;font-weight:600}
.nexo-renewal-active{color:#a4e7c2}
.nexo-renewal-inactive{color:#cfced9}
.nexo-renewal-no-renew{color:#f3cf92}
.nexo-renewal-overdue{font-weight:600;color:#ffb4aa}
.nexo-renewals-footer{display:flex;gap:.75rem;align-items:center;justify-content:space-between;flex-wrap:wrap;margin:.65rem 0}
.nexo-renewals-footer button{width:auto;margin:0;padding:7px 11px;font-size:.86rem}
@media(max-width:720px){
  .nexo-renewals-scroll{overflow:visible;border:0}
  .nexo-renewals-table,.nexo-renewals-table tbody,.nexo-renewals-table tr{display:block;width:100%;min-width:0}
  .nexo-renewals-table thead{display:none}
  .nexo-renewals-table tr{box-sizing:border-box;border:1px solid rgba(127,127,127,.3);border-radius:9px;
    padding:6px 11px;margin-bottom:9px;background:rgba(127,127,127,.04)}
  .nexo-renewals-table td{display:grid;grid-template-columns:minmax(100px,38%) minmax(0,1fr);
    gap:8px;padding:6px 0;border:0;overflow-wrap:anywhere}
  .nexo-renewals-table td::before{content:attr(data-label);color:#bcd0f4;font-size:.82rem;font-weight:600}
}

/* P25.6 — responsive, full-width technical workspace. Preserve all other
 * Portal sections; these selectors are scoped to the Nexo workspace. */
#nexo-section.nexo-workspace{box-sizing:border-box;width:100%;max-width:none;margin:0;padding:14px 0 36px}
#nexo-section .nexo-intro{max-width:1250px;margin-bottom:15px}
#nexo-section .nexo-layout{grid-template-columns:minmax(0,1fr) minmax(260px,300px);gap:14px;align-items:start}
#nexo-section .nexo-layout.nexo-history-collapsed{grid-template-columns:minmax(0,1fr)}
#nexo-section .nexo-history-panel[hidden]{display:none!important}
#nexo-section .nexo-panel{padding:16px;min-width:0}
#nexo-section .nexo-panel-toolbar{display:flex;gap:12px;align-items:center;justify-content:space-between;margin-bottom:8px}
#nexo-section .nexo-panel-title{font-weight:700;font-size:.95rem}
#nexo-section .nexo-panel-toolbar button{width:auto;margin:0;padding:7px 11px;font-size:.83rem}
#nexo-section #nexo-question{min-height:78px;max-height:260px;margin-bottom:10px}
#nexo-section .nexo-panel label{margin:7px 0}
#nexo-section .nexo-quick-examples{display:flex;flex-wrap:wrap;gap:6px;margin:0 0 8px}
#nexo-section .nexo-quick-examples button{width:auto;margin:0;padding:5px 9px;font-size:.78rem;line-height:1.3;white-space:normal}
#nexo-section .nexo-examples-accordion{margin:4px 0 12px;border:1px solid rgba(127,127,127,.24);border-radius:8px}
#nexo-section .nexo-examples-accordion>summary{cursor:pointer;font-size:.83rem;font-weight:600;padding:8px 11px;color:#bfcef0}
#nexo-section .nexo-examples-accordion>summary:focus-visible{outline:2px solid #82aaff;outline-offset:2px}
#nexo-section .nexo-examples-accordion .nexo-examples{padding:8px 10px;margin:0;border-top:1px solid rgba(127,127,127,.22)}
#nexo-section .nexo-history-panel h3{margin-top:1px}
#nexo-section .nexo-history{max-height:min(71vh,850px);overflow-y:auto;scrollbar-gutter:stable}
#nexo-section .nexo-history-item{font-size:.87rem;padding:10px}
#nexo-section .nexo-history-meta{font-size:.74rem}
/* P25.6 structured technical results: values come from signed evidence. */
.nexo-technical{margin:13px 0 16px;min-width:0}
.nexo-technical-scroll{max-width:100%;overflow-x:auto;border:1px solid rgba(127,127,127,.28);border-radius:10px}
.nexo-technical-table{width:100%;min-width:760px;border-collapse:collapse;table-layout:auto;font-size:.87rem}
.nexo-technical-table th,.nexo-technical-table td{padding:10px 11px;border-bottom:1px solid rgba(127,127,127,.2);vertical-align:top;text-align:left;overflow-wrap:anywhere}
.nexo-technical-table th{background:rgba(112,158,245,.1);font-size:.78rem;color:#c2d4f5;white-space:nowrap}
.nexo-technical-table tr:last-child td{border-bottom:0}
.nexo-technical-table tbody tr:hover{background:rgba(112,158,245,.06)}
.nexo-technical-table th:nth-child(1){width:19%}
.nexo-technical-table th:nth-child(2){width:18%}
.nexo-technical-table th:nth-child(3){width:28%}
.nexo-technical-table th:nth-child(4){width:17%}
.nexo-technical-table th:nth-child(5){width:12%}
.nexo-technical-secondary{display:block;font-size:.77rem;opacity:.78;margin-top:4px;line-height:1.4}
.nexo-technical-note{display:block;font-size:.82rem;opacity:.86;margin-top:10px;line-height:1.45}
.nexo-technical-link{width:auto;max-width:100%;margin:0;padding:0;background:transparent;border:0;color:#b3ceff;text-decoration:underline;text-underline-offset:2px;font:inherit;font-weight:600;cursor:pointer;text-align:left}
.nexo-technical-link:focus-visible{outline:2px solid #82aaff;outline-offset:2px}
.nexo-technical-footer{display:flex;flex-wrap:wrap;justify-content:space-between;gap:10px;margin-top:9px;align-items:center}
.nexo-technical-footer button{width:auto;margin:0;padding:7px 12px}
#nexo-section .nexo-answer{white-space:normal;line-height:1.52}
#nexo-section .nexo-source-strip{font-size:.82rem}
@media(max-width:1000px){
  #nexo-section .nexo-layout{grid-template-columns:minmax(0,1fr) 250px}
}
@media(max-width:790px){
  #nexo-section .nexo-layout{grid-template-columns:minmax(0,1fr)}
  #nexo-section .nexo-history{max-height:320px}
  #nexo-section .nexo-panel{padding:12px}
  #nexo-section .nexo-technical-scroll{overflow:visible;border:0}
  #nexo-section .nexo-technical-table{min-width:0;display:block}
  #nexo-section .nexo-technical-table thead{display:none}
  #nexo-section .nexo-technical-table tbody{display:block}
  #nexo-section .nexo-technical-table tr{display:block;border:1px solid rgba(127,127,127,.28);border-radius:9px;margin-bottom:9px;padding:5px 11px}
  #nexo-section .nexo-technical-table td{display:grid;grid-template-columns:minmax(100px,32%) minmax(0,1fr);gap:8px;padding:6px 0;border:0}
  #nexo-section .nexo-technical-table td:before{content:attr(data-label);font-size:.8rem;font-weight:600;color:#bcd0f4}
}

/* P25.7 — Ticket reports, read from authenticated Helpdesk data. */
#nexo-section .nexo-ticket-presentation{margin:12px 0 20px;padding:18px;border:1px solid #35455e;border-radius:12px;background:rgba(45,63,92,.16);min-width:0}
#nexo-section .nexo-ticket-header{display:flex;flex-direction:column;gap:8px;margin-bottom:14px}
#nexo-section .nexo-ticket-title{margin:0;font-size:1.18rem;line-height:1.35;overflow-wrap:anywhere}
#nexo-section .nexo-ticket-badges{display:flex;gap:8px;flex-wrap:wrap}
#nexo-section .nexo-ticket-badge{font-size:.82rem;padding:4px 10px;border-radius:20px;border:1px solid #49658b;background:rgba(112,158,245,.1)}
#nexo-section .nexo-ticket-fields{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px 20px;margin:0 0 16px}
#nexo-section .nexo-ticket-field{min-width:0}
#nexo-section .nexo-ticket-field dt{font-size:.76rem;color:#a9bddd;margin:0 0 3px}
#nexo-section .nexo-ticket-field dd{font-weight:600;margin:0;overflow-wrap:anywhere}
#nexo-section .nexo-ticket-subtitle{font-size:1rem;margin:20px 0 8px}
#nexo-section .nexo-ticket-prose{white-space:pre-wrap;overflow-wrap:anywhere;line-height:1.55;margin:6px 0 10px}
#nexo-section .nexo-ticket-list,#nexo-section .nexo-ticket-timeline{list-style:none;padding:0;margin:8px 0;display:grid;gap:10px}
#nexo-section .nexo-ticket-card,#nexo-section .nexo-ticket-event{border:1px solid #3a4d6b;border-radius:9px;padding:13px 15px;background:rgba(117,158,233,.06);min-width:0}
#nexo-section .nexo-ticket-event{border-left:3px solid #759bf3;display:grid;gap:6px}
#nexo-section .nexo-ticket-meta{color:#aebfdc;font-size:.82rem;line-height:1.4;margin:6px 0}
#nexo-section .nexo-ticket-event-details{margin:2px 0 2px 18px;padding:0;display:grid;gap:4px;white-space:pre-wrap;overflow-wrap:anywhere}
#nexo-section .nexo-ticket-note{color:#aebfdc;font-size:.82rem;margin:16px 0 10px}
#nexo-section .nexo-ticket-warning{color:#ffd28b}
#nexo-section .nexo-ticket-more,#nexo-section .nexo-ticket-open{margin:8px 0;padding:9px 12px;width:auto}
@media(max-width:650px){
  #nexo-section .nexo-ticket-presentation{padding:12px}
  #nexo-section .nexo-ticket-fields{grid-template-columns:minmax(0,1fr)}
  #nexo-section .nexo-ticket-card,#nexo-section .nexo-ticket-event{padding:11px}
}

/* P26.1 — monthly reports: explicit company, review-before-export, no automatic sends. */
#nexo-section .nexo-monthly-report{margin:18px 0;border:1px solid rgba(130,170,255,.30);border-radius:11px;background:rgba(110,151,231,.045)}
#nexo-section .nexo-monthly-report>summary{padding:14px 15px;cursor:pointer;font-weight:700;line-height:1.5}
#nexo-section .nexo-monthly-report>summary:focus-visible{outline:2px solid #82aaff;outline-offset:2px}
#nexo-section .nexo-monthly-phase{margin-left:8px;font-size:.79rem;color:#b4c7eb;font-weight:400}
#nexo-section .nexo-monthly-body{padding:0 15px 15px}
#nexo-section .nexo-monthly-controls{display:grid;grid-template-columns:minmax(140px,210px) minmax(180px,1fr) auto;gap:10px;align-items:end}
#nexo-section .nexo-monthly-controls label{margin:0}
#nexo-section #nexo-monthly-month{display:block;width:100%;box-sizing:border-box;margin:6px 0 0;padding:10px;border:1px solid #354865;border-radius:8px;background:#1b2a40;color:#edf3ff;color-scheme:dark;font:inherit}
#nexo-section .nexo-monthly-company-box{display:flex;flex-direction:column;gap:5px;font-size:.88rem;min-width:0;overflow-wrap:anywhere}
#nexo-section .nexo-monthly-company-box span{padding:9px 11px;border:1px solid #354865;border-radius:8px;background:#1b2a40;min-height:22px}
#nexo-section #nexo-monthly-generate,#nexo-section #nexo-monthly-pdf{width:auto;margin:0;padding:10px 14px}
#nexo-section #nexo-monthly-message{min-height:1.5rem;font-size:.89rem;color:#bcd0f4}
#nexo-section .nexo-monthly-report-header h3{margin:3px 0 7px;font-size:1.1rem}
#nexo-section .nexo-monthly-section{padding:13px 0;border-top:1px solid rgba(127,127,127,.23)}
#nexo-section .nexo-monthly-section h4{font-size:.95rem;margin:0 0 10px}
#nexo-section .nexo-monthly-section p{margin:7px 0 0;line-height:1.5}
#nexo-section .nexo-monthly-section ul{padding-left:21px;margin:8px 0}
#nexo-section .nexo-monthly-section li{margin:5px 0;overflow-wrap:anywhere;line-height:1.5}
#nexo-section .nexo-monthly-stat-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px}
#nexo-section .nexo-monthly-stat{display:flex;flex-direction:column;gap:4px;min-width:0;padding:10px;border:1px solid rgba(130,170,255,.22);border-radius:8px;background:rgba(130,170,255,.04)}
#nexo-section .nexo-monthly-stat span{color:#b9cbe9;font-size:.78rem;overflow-wrap:anywhere}
#nexo-section .nexo-monthly-stat strong{font-size:1rem;overflow-wrap:anywhere}
#nexo-section .nexo-monthly-export{padding:13px 0 0;border-top:1px solid rgba(130,170,255,.28)}
#nexo-section .nexo-monthly-export label{display:flex;align-items:flex-start;gap:9px;font-weight:500;margin:0 0 13px}
#nexo-section .nexo-monthly-export input{width:auto;margin:4px 0 0;accent-color:#759df4}
#nexo-section .nexo-monthly-export p{margin:9px 0 0}
@media(max-width:850px){#nexo-section .nexo-monthly-controls{grid-template-columns:1fr 1fr}#nexo-section #nexo-monthly-generate{grid-column:1/-1;width:100%}}
@media(max-width:540px){#nexo-section .nexo-monthly-controls,#nexo-section .nexo-monthly-stat-grid{grid-template-columns:1fr}#nexo-section .nexo-monthly-phase{display:block;margin-left:0}}

/* P26.2 — read-only trends and rules grounded in company records. */
#nexo-section .nexo-monthly-trends-scroll{overflow-x:auto;max-width:100%;border:1px solid rgba(130,170,255,.23);border-radius:9px}
#nexo-section table.nexo-monthly-trends{width:100%;min-width:600px;border-collapse:collapse;font-size:.86rem}
#nexo-section .nexo-monthly-trends th,#nexo-section .nexo-monthly-trends td{padding:9px 11px;border-bottom:1px solid rgba(130,170,255,.15);text-align:left;vertical-align:top}
#nexo-section .nexo-monthly-trends th{color:#c9d9f7;font-weight:700;background:rgba(130,170,255,.08)}
#nexo-section .nexo-monthly-trends tr:last-child td{border-bottom:0}
#nexo-section .nexo-monthly-risk{padding:12px 14px;margin:9px 0;background:rgba(130,170,255,.055);border:1px solid rgba(130,170,255,.22);border-radius:9px;overflow-wrap:anywhere}
#nexo-section .nexo-monthly-risk-head{display:flex;gap:10px;align-items:center;flex-wrap:wrap}
#nexo-section .nexo-monthly-risk-level{padding:3px 7px;border-radius:6px;font-size:.71rem;font-weight:700;letter-spacing:.03em;border:1px solid #77869f;color:#dbe3f3}
#nexo-section .nexo-risk-alta{color:#ffd0bf;border-color:#995b4b}
#nexo-section .nexo-risk-media{color:#f5dda5;border-color:#96733f}
#nexo-section .nexo-monthly-risk p{margin:6px 0 0;line-height:1.48}
#nexo-section .nexo-monthly-risk small{display:block;margin-top:7px}
/* P26.3 — final monthly report, company-contact only, supervised dispatch. */
#nexo-section .nexo-monthly-delivery{margin-top:16px;padding:16px;border:1px solid rgba(125,164,238,.34);border-radius:12px;background:rgba(120,153,217,.035)}
#nexo-section .nexo-monthly-delivery h4{margin:0 0 8px;font-size:1.02rem}
#nexo-section .nexo-monthly-delivery-grid{display:grid;grid-template-columns:1fr 1fr;gap:12px}
#nexo-section .nexo-monthly-delivery label{display:block;margin:10px 0;font-size:.88rem;font-weight:600}
#nexo-section .nexo-monthly-delivery input:not([type=checkbox]),#nexo-section .nexo-monthly-delivery textarea,#nexo-section .nexo-monthly-delivery select{display:block;width:100%;box-sizing:border-box;margin:5px 0 0;padding:10px;border:1px solid #354865;border-radius:8px;background:#1b2a40;color:#edf3ff;font:inherit}
#nexo-section .nexo-monthly-delivery textarea{resize:vertical;min-height:72px}
#nexo-section .nexo-monthly-delivery .nexo-monthly-check{display:flex;align-items:start;gap:9px}
#nexo-section .nexo-monthly-ready-summary{margin:10px 0;color:#c9d8f5;overflow-wrap:anywhere}
#nexo-section #nexo-monthly-ready{border-top:1px solid rgba(125,164,238,.30);margin-top:15px;padding-top:12px}
#nexo-section #nexo-monthly-delivery-message{min-height:1.3rem;overflow-wrap:anywhere}
#nexo-section #nexo-monthly-send{background:#6e95ea;color:#08192c}
@media(max-width:750px){#nexo-section .nexo-monthly-delivery-grid{grid-template-columns:minmax(0,1fr)}}
#nexo-section .nexo-monthly-history-list{padding-left:20px;margin:8px 0 0;overflow-wrap:anywhere}
#nexo-section .nexo-monthly-history-list li{margin:8px 0;line-height:1.35}

/* P22.2.1 — document inventory and explicit reindexation queue */
.nexo-document-index{border:1px solid #364a67;border-radius:11px;margin:16px 0;padding:12px;background:rgba(92,123,173,.06)}
.nexo-document-index summary{cursor:pointer;font-weight:650;line-height:1.55}
.nexo-document-index summary .nexo-muted{font-size:.82rem;font-weight:400;margin-left:8px}
.nexo-document-body{padding-top:12px}
.nexo-doc-toolbar{display:flex;justify-content:flex-end;gap:10px;margin:8px 0}
.nexo-doc-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(116px,1fr));gap:9px}
.nexo-doc-stat{display:flex;flex-direction:column;gap:4px;border:1px solid #384b67;border-radius:9px;padding:10px;background:#1b2a40;color:#edf3ff}
.nexo-doc-stat small{color:#b7c4d8;font-size:.82rem}
.nexo-doc-stat strong{font-size:1.13rem}
.nexo-doc-table-wrap{overflow-x:auto;max-width:100%}
.nexo-doc-table{border-collapse:collapse;width:100%;font-size:.9rem;min-width:570px;color:inherit}
.nexo-doc-table th,.nexo-doc-table td{padding:11px 9px;text-align:left;vertical-align:top;border-bottom:1px solid #36445c;overflow-wrap:anywhere}
.nexo-doc-table td:first-child{max-width:340px}
.nexo-doc-table td:first-child strong,.nexo-doc-table td:first-child small{display:block}
.nexo-doc-table td:first-child small{color:#b7c4d8;margin-top:5px}
.nexo-doc-table button{width:auto;font-size:.85rem;padding:6px 10px}
#nexo-doc-more{margin-top:14px}
@media(max-width:600px){.nexo-document-index{padding:10px}.nexo-doc-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}


/* P28.9 — hierarchy, provenance and responsive reading of structured answers. */
#nexo-section .nexo-answer-toolbar{display:flex;align-items:center;justify-content:space-between;gap:10px;flex-wrap:wrap;margin:20px 0 9px}
#nexo-section .nexo-answer-toolbar h3{font-size:1.07rem;line-height:1.4;margin:0}
#nexo-section .nexo-copy-answer{width:auto;margin:0;padding:7px 12px;font-size:.86rem}
#nexo-section .nexo-answer-context{display:flex;flex-wrap:wrap;gap:6px 16px;align-items:center;margin:0 0 13px;padding:10px 12px;border:1px solid var(--border-color,rgba(127,127,127,.28));border-radius:10px;background:rgba(127,127,127,.05);font-size:.82rem;line-height:1.5;overflow-wrap:anywhere}
#nexo-section .nexo-answer-context strong{font-weight:650}
#nexo-section .nexo-answer-context span{opacity:.78}
#nexo-section .nexo-answer{white-space:normal;overflow-wrap:anywhere;line-height:1.65;min-width:0}
#nexo-section .nexo-answer-paragraph{margin:0 0 .78rem;white-space:pre-wrap;line-height:1.65}
#nexo-section .nexo-answer-list{margin:.45rem 0 1rem;padding-left:1.55rem;white-space:normal}
#nexo-section .nexo-answer-list li{padding-left:.2rem;margin:.4rem 0;line-height:1.65;white-space:pre-wrap}
#nexo-section .nexo-answer .nexo-citation{display:inline;vertical-align:baseline}
#nexo-section .nexo-answer .nexo-inventory-more{white-space:normal}
@media(max-width:600px){
 #nexo-section .nexo-answer-toolbar{align-items:flex-start}
 #nexo-section .nexo-answer-context{display:grid;gap:4px}
 #nexo-section .nexo-answer-list{padding-left:1.3rem}
}

/* P28.9.1 — intervenção/monitorização em linhas separadas e referências fora do texto. */
#nexo-section .nexo-answer-list{list-style-position:outside;display:grid;gap:8px;margin:8px 0 13px}
#nexo-section .nexo-answer-list li{padding:10px 12px;margin:0;border:1px solid var(--border-color,rgba(127,127,127,.25));border-radius:9px;background:rgba(127,127,127,.04);line-height:1.65;white-space:normal;overflow-wrap:anywhere}
#nexo-section .nexo-answer-refs{display:flex;gap:6px;flex-wrap:wrap;align-items:center;margin-top:7px;white-space:normal}
#nexo-section .nexo-answer-refs .nexo-citation{display:inline-flex;align-items:center;margin:0;padding:3px 8px;line-height:1.4;max-width:100%;white-space:normal;text-align:left}
@media(max-width:600px){#nexo-section .nexo-answer-list li{padding:9px 10px}}

/* P28.9.2 — cartões factuais: temas claro/escuro por herança de cor do Portal. */
#nexo-section .nexo-p2892-view{display:grid;gap:12px;min-width:0;margin-bottom:14px}
#nexo-section .nexo-p2892-headline{margin:0;line-height:1.6;font-weight:550;max-width:90ch}
#nexo-section .nexo-p2892-kpis{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}
#nexo-section .nexo-p2892-kpi{display:grid;gap:5px;border:1px solid var(--border-color,rgba(127,127,127,.26));border-radius:10px;padding:13px;background:rgba(127,127,127,.045)}
#nexo-section .nexo-p2892-kpi strong{font-size:1.8rem;line-height:1.2;font-variant-numeric:tabular-nums}
#nexo-section .nexo-p2892-kpi span{font-size:.85rem;font-weight:550}
#nexo-section .nexo-p2892-kpi .nexo-p2892-source{justify-self:start}
#nexo-section .nexo-p2892-cards{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:10px}
#nexo-section .nexo-p2892-card{min-width:0;display:flex;flex-direction:column;gap:9px;padding:13px;border:1px solid var(--border-color,rgba(127,127,127,.28));border-radius:10px;background:rgba(127,127,127,.035);overflow-wrap:anywhere}
#nexo-section .nexo-p2892-card-top{display:flex;flex-wrap:wrap;align-items:baseline;justify-content:space-between;gap:5px 14px}
#nexo-section .nexo-p2892-card-top strong{font-size:.96rem;line-height:1.45}
#nexo-section .nexo-p2892-date{font-size:.81rem;opacity:.82;white-space:normal;font-variant-numeric:tabular-nums}
#nexo-section .nexo-p2892-company{font-size:.8rem;opacity:.75;overflow-wrap:anywhere}
#nexo-section .nexo-p2892-ticket{font-size:.82rem;font-weight:600;opacity:.85}
#nexo-section .nexo-p2892-card p{margin:0;line-height:1.55;font-size:.9rem;overflow-wrap:anywhere}
#nexo-section .nexo-p2892-actions{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:auto;padding-top:4px}
#nexo-section .nexo-p2892-source,#nexo-section .nexo-p2892-actions button{width:auto;margin:0;padding:5px 9px;font-size:.8rem;line-height:1.4}
#nexo-section .nexo-p2892-note{font-size:.84rem;line-height:1.55;opacity:.84;border-left:2px solid var(--border-color,rgba(127,127,127,.4));padding-left:10px;margin:0}
@media(max-width:620px){
 #nexo-section .nexo-p2892-kpis{grid-template-columns:1fr}
 #nexo-section .nexo-p2892-cards{grid-template-columns:minmax(0,1fr)}
 #nexo-section .nexo-p2892-card{padding:11px}
}

/* P28.9.4 — compact, accessible read-only history table; scoped to Nexo only. */
#nexo-section .nexo-p2894-toolbar{display:grid;grid-template-columns:minmax(160px,1.5fr) minmax(165px,1fr) auto auto;gap:9px;align-items:end}
#nexo-section .nexo-p2894-control{display:grid;gap:4px;font-size:.83rem;font-weight:550;min-width:0}
#nexo-section .nexo-p2894-control input,#nexo-section .nexo-p2894-control select{display:block;box-sizing:border-box;width:100%;min-height:42px;padding:8px 10px;margin:0;background:var(--input-bg,rgba(127,127,127,.07));border:1px solid var(--border-color,rgba(127,127,127,.38));border-radius:8px;color:inherit;font:inherit}
#nexo-section .nexo-p2894-check{display:flex;align-items:center;gap:6px;min-height:42px;font-size:.81rem;line-height:1.3}
#nexo-section .nexo-p2894-check input{width:auto;margin:0;accent-color:#7098ed}
#nexo-section .nexo-p2894-direction{margin:0;width:auto;min-height:42px;padding:6px 12px}
#nexo-section .nexo-p2894-caption{font-size:.81rem;opacity:.8;line-height:1.5;margin:0}
#nexo-section .nexo-p2894-table-wrap{max-width:100%;overflow-x:auto;border:1px solid var(--border-color,rgba(127,127,127,.28));border-radius:10px}
#nexo-section .nexo-p2894-table{width:100%;min-width:790px;border-collapse:collapse;font-size:.84rem;font-variant-numeric:tabular-nums}
#nexo-section .nexo-p2894-table th,#nexo-section .nexo-p2894-table td{padding:9px 10px;text-align:left;vertical-align:middle;border-bottom:1px solid var(--border-color,rgba(127,127,127,.18));white-space:normal}
#nexo-section .nexo-p2894-table th{font-weight:650;background:rgba(127,127,127,.08);white-space:nowrap}
#nexo-section .nexo-p2894-table tr:last-child td{border-bottom:0}
#nexo-section .nexo-p2894-table tbody tr:hover{background:rgba(127,127,127,.045)}
#nexo-section .nexo-p2894-table .nexo-p2894-monitor strong{display:block;max-width:250px;overflow-wrap:anywhere;line-height:1.3}
#nexo-section .nexo-p2894-table .nexo-p2894-monitor small{display:block;opacity:.78;margin-top:4px}
#nexo-section .nexo-p2894-num{white-space:nowrap!important;text-align:right!important}
#nexo-section .nexo-p2894-date{white-space:nowrap!important}
#nexo-section .nexo-p2894-actions button,#nexo-section .nexo-p2894-group-row button{width:auto;margin:0;padding:5px 9px;font-size:.8rem}
#nexo-section .nexo-p2894-group-row{background:rgba(127,127,127,.09);font-weight:600}
#nexo-section .nexo-p2894-pager{display:flex;gap:10px;align-items:center;justify-content:space-between;flex-wrap:wrap}
#nexo-section .nexo-p2894-more{margin:0;width:auto;padding:8px 12px}
@media(max-width:900px){#nexo-section .nexo-p2894-toolbar{grid-template-columns:minmax(0,1fr) minmax(0,1fr)}#nexo-section .nexo-p2894-check{justify-self:start}}
@media(max-width:560px){#nexo-section .nexo-p2894-toolbar{grid-template-columns:minmax(0,1fr)}#nexo-section .nexo-p2894-direction{justify-self:start}}
