/* Presença central do Nexus; a agenda continua logo abaixo. */
.command-card { grid-template-columns:minmax(0,1fr) minmax(220px,320px) minmax(0,1fr); gap:24px; padding:28px; }
.command-card .nexus-home-orb-wrap { width:280px; height:280px; transition:width .35s,height .35s; }
.command-card.nexus-in-conversation .nexus-home-orb-wrap { width:320px; height:320px; }
.command-card .command-body, .command-card .answer-panel { grid-column:1/-1; min-width:0; }
.nexus-side-summary { align-self:center; min-width:0; }
.nexus-side-summary h3 { color:#ffab70; font-size:.8rem; letter-spacing:.08em; text-transform:uppercase; }
.nexus-side-summary p { color:#b8b8b8; font-size:.9rem; line-height:1.6; }
.nexus-side-summary button { display:block; width:100%; text-align:left; margin:8px 0; padding:10px 12px; border-left:2px solid #ff8a3d; overflow-wrap:anywhere; }
.nexus-console-tools { display:flex; flex-wrap:wrap; align-items:center; gap:12px; margin:12px 0; }
.nexus-console-tools label { display:flex; align-items:center; gap:7px; font-size:.85rem; }
.nexus-console-tools input[type=checkbox] { width:auto; }
.nexus-console-tools button, .nexus-side-summary button, #nexusSearchProposals button { border:1px solid #414141; border-radius:10px; background:#292929; color:#e3e3e3; padding:10px 14px; cursor:pointer; }
.command-card.nexus-has-response { grid-template-columns:minmax(240px, .8fr) minmax(0,1.4fr); }
.command-card.nexus-has-response .nexus-side-summary { display:none; }
.command-card.nexus-has-response .nexus-home-orb-wrap { grid-column:1; grid-row:1/3; }
.command-card.nexus-has-response .command-body { grid-column:2; grid-row:1; }
.command-card.nexus-has-response .answer-panel { grid-column:2;grid-row:2; }
.command-card.nexus-has-response .suggestions, .command-card.nexus-has-response .assistant-history, .command-card.nexus-has-response #nexusMemoryPanel { display:none; }
.nexus-transcript { color:#e4e4e4; overflow-wrap:anywhere; }
#nexusNewsPanel { grid-column:1/-1;padding:22px;background:#191919;border:1px solid #414141;border-radius:20px;color:#f3f3f3;display:flex;flex-direction:column; }
#nexusNewsPanel[hidden] { display:none; }
#nexusNewsPanel>small { color:#ff9b55;font-weight:700;letter-spacing:.1em;font-size:.7rem; }
#nexusNewsPanel h2 { margin:8px 0 16px; }
.nexus-news-list { padding-left:24px;padding-right:8px;display:grid;gap:14px;min-height:0;overflow:auto;flex:1;margin:0; }
.nexus-news-list li { padding:4px 10px;min-width:0;overflow-wrap:anywhere; }
.nexus-news-list h3 { font-size:1rem;margin:0 0 6px; }
.nexus-news-list p { font-size:.9rem;line-height:1.45;margin:0 0 8px;color:#dedede; }
.nexus-news-list a { color:#ffad72;font-size:.8rem;text-underline-offset:3px; }
.nexus-news-actions { display:flex;flex-wrap:wrap;gap:12px;flex-shrink:0; }
.nexus-news-actions button { padding:10px 16px;border-radius:12px;background:#262626;border:1px solid #ff8a3d55;color:#f4f4f4;cursor:pointer; }
.nexus-news-actions button:first-child { background:#ff8a3d;color:#171717;border-color:#ff8a3d;font-weight:700; }
.nexus-news-actions button:focus-visible { outline:2px solid #ffc79f;outline-offset:3px; }
body.nexus-presidential #commandCard.nexus-expanded.nexus-news-active #nexusDecisionDeck { display:none; }
body.nexus-presidential #commandCard.nexus-expanded.nexus-news-active #nexusNewsPanel { position:absolute;z-index:4;right:4vw;top:18vh;width:36vw;max-height:74dvh;overflow:hidden;box-sizing:border-box; }
@media(min-width:901px) { body.nexus-presidential #commandCard.nexus-expanded.nexus-news-active .nexus-home-orb-wrap { position:absolute;top:48%;left:32%;width:min(52vw,74dvh);height:min(52vw,74dvh);transform:translate(-50%,-50%); } }
@media(max-width:900px) { body.nexus-presidential #commandCard.nexus-expanded.nexus-news-active #nexusNewsPanel { top:auto;bottom:calc(18px + env(safe-area-inset-bottom));left:18px;right:18px;width:auto;max-height:50dvh;padding:18px; }.nexus-news-list { gap:10px; } }
.nexus-search-answer { white-space:pre-wrap; overflow-wrap:anywhere; }
#nexusSearchResult a { color:#ffab70; text-decoration:underline; }
#nexusSearchDialog input { width:100%; box-sizing:border-box; }
#nexusSearchDialog button { margin:8px 0; }
#nexusSearchDialog { max-height:85vh; overflow:auto; }
.nexus-diagnostics-list { display:grid; grid-template-columns:repeat(auto-fit,minmax(220px,1fr)); gap:12px; margin:16px 0; }
#nexusDiagnosticsPanel { padding:20px; }
.nexus-console-tools button:disabled { opacity:.45; cursor:not-allowed; }
.nexus-diagnostics-list p { margin:0; padding:14px; border:1px solid #414141; border-radius:10px; overflow-wrap:anywhere; }
.nexus-diagnostics-list strong, .nexus-diagnostics-list span { display:block; }
.nexus-diagnostics-list strong { color:#ffab70; margin-bottom:7px; }
.nexus-diagnostics-list span { color:#b8b8b8; line-height:1.5; font-size:.9rem; }
.nexus-diagnostics-list .nexus-check-pending { border-color:#716143; }
@media(max-width:900px) { .command-card { grid-template-columns:1fr 1fr;gap:16px;padding:18px; } .command-card .nexus-home-orb-wrap { grid-column:1/-1;grid-row:1; width:220px;height:220px; } .command-card.nexus-in-conversation .nexus-home-orb-wrap { width:260px;height:260px; } .nexus-side-summary { grid-row:2;align-self:start; } }
@media(max-width:900px) { .command-card.nexus-has-response { grid-template-columns:1fr; } .command-card.nexus-has-response .nexus-home-orb-wrap { grid-column:1;grid-row:1; } .command-card.nexus-has-response .command-body { grid-column:1;grid-row:2; } .command-card.nexus-has-response .answer-panel { grid-column:1;grid-row:3; } }
@media(max-width:480px) { .command-card { grid-template-columns:1fr; } .nexus-side-summary { grid-row:auto; } .command-card .nexus-home-orb-wrap { width:210px;height:210px; } .command-card.nexus-in-conversation .nexus-home-orb-wrap { width:240px;height:240px; } }
@media(prefers-reduced-motion:reduce) { .command-card .nexus-home-orb-wrap { transition:none; } }

/* Presença imersiva: um núcleo holográfico; a conversa acontece em voz. */
.nexus-focus-header { display:none; }
.nexus-focus-options > summary { display:none; }
.nexus-immersive-launch { min-height:48px; margin:12px 0 4px; padding:12px 24px; color:#0d0d0d; background:linear-gradient(110deg,#ff8a3d,#ff8a3d); border:1px solid #ffb781; border-radius:999px; font-weight:700; cursor:pointer; box-shadow:0 6px 28px #ff8a3d22; }
.nexus-immersive-launch[hidden] { display:none; }
.nexus-launch-voice { display:flex; align-items:center; flex-wrap:wrap; gap:12px; margin:14px 0 0; color:#d5d5d5; font-size:.9rem; }
.nexus-launch-voice[hidden] { display:none; }
.nexus-launch-voice select { width:auto; min-width:150px; max-width:100%; min-height:44px; border:1px solid #ffab704d; border-radius:10px; padding:8px 12px; background:#292929; color:#f4f4f4; }
body.nexus-focus-open { overflow:hidden; }
.command-card.nexus-expanded, .command-card.nexus-expanded.nexus-has-response {
  position:fixed; inset:0; z-index:200; width:100%; height:100vh; height:100dvh; box-sizing:border-box;
  display:grid; place-items:center; grid-template-columns:1fr; grid-template-rows:1fr; gap:0; padding:0;
  overflow:hidden; overscroll-behavior:contain; border:0; border-radius:0; isolation:isolate;
  color:#f4f4f4; background:radial-gradient(ellipse at 50% 46%,#2a211b 0,#161616 38%,#0d0d0d 75%);
}
.command-card.nexus-expanded::before { content:''; position:absolute; inset:0; pointer-events:none; opacity:.22; background:radial-gradient(ellipse at 50% 50%,transparent 38%,#ff8a3d19 39%,transparent 39.2%),url('nexus-circuits.svg') center/1100px 825px no-repeat; mask-image:radial-gradient(ellipse,#0000 22%,#000 72%); }
.command-card.nexus-expanded::after { content:''; position:absolute; width:80vmin; height:80vmin; border-radius:50%; pointer-events:none; background:radial-gradient(circle,#ff8a3d0a,transparent 65%); box-shadow:0 0 150px 35px #ff8a3d09; }
.command-card.nexus-expanded > .nexus-side-summary, .command-card.nexus-expanded > .command-body, .command-card.nexus-expanded > .answer-panel { display:none !important; }
.command-card.nexus-expanded .nexus-home-orb-wrap, .command-card.nexus-expanded.nexus-in-conversation .nexus-home-orb-wrap, .command-card.nexus-expanded.nexus-has-response .nexus-home-orb-wrap {
  position:relative; z-index:1; grid-column:1; grid-row:1; align-self:center; justify-self:center;
  width:min(86vw,78vh,78dvh,820px); height:min(86vw,78vh,78dvh,820px); max-width:none; transform:translateY(-3vh); transition:none;
}
.nexus-expanded .nexus-orb-core { display:none; }
.command-card.nexus-expanded .nexus-focus-header { display:contents; }
.nexus-expanded .nexus-focus-brand { position:absolute; bottom:calc(8vh + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); z-index:2; color:#f4f4f4; font:500 clamp(17px,2.5vw,27px)/1.2 ui-sans-serif,system-ui,sans-serif; letter-spacing:.58em; margin:0; padding-left:.58em; text-shadow:0 0 26px #ff8a3d66; }
.nexus-expanded .nexus-focus-subtitle { display:none; }
.nexus-expanded .nexus-focus-state { position:absolute; width:1px; height:1px; overflow:hidden; clip-path:inset(50%); }
.nexus-expanded .nexus-focus-actions { position:absolute; z-index:4; right:max(20px,env(safe-area-inset-right)); top:calc(20px + env(safe-area-inset-top)); display:flex; gap:10px; }
.nexus-expanded .nexus-focus-actions button { display:grid; place-items:center; width:46px; height:46px; padding:0; border:1px solid #ffbd8f33; border-radius:50%; background:#14141488; color:#f4f4f4; font-size:24px; cursor:pointer; opacity:.55; transition:opacity .2s,background .2s; }
.nexus-expanded .nexus-focus-actions button:hover, .nexus-expanded .nexus-focus-actions button:focus-visible { opacity:1; background:#202020; }
.nexus-expanded button:focus-visible { outline:2px solid #ffab70; outline-offset:4px; }
#nexusFocusRecovery { display:none; }
.nexus-expanded #nexusFocusRecovery:not([hidden]) { display:flex; flex-wrap:wrap; justify-content:center; gap:10px; position:absolute; z-index:5; bottom:calc(15vh + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); width:min(540px,calc(100% - 36px)); box-sizing:border-box; padding:16px; border:1px solid #ffab7033; border-radius:16px; background:#141414ee; box-shadow:0 8px 50px #0006; }
#nexusFocusHint { width:100%; margin:0 0 4px; text-align:center; color:#d5d5d5; font-size:.9rem; overflow-wrap:anywhere; }
#nexusFocusRecovery button { min-height:44px; border:1px solid #ffab704d; border-radius:24px; padding:10px 18px; background:#363636; color:#f4f4f4; cursor:pointer; }
#nexusFocusRecovery button[hidden] { display:none; }
#nexusFocusTestBadge { position:absolute; z-index:2; bottom:calc(4vh + env(safe-area-inset-bottom)); left:50%; transform:translateX(-50%); white-space:nowrap; font-size:.75rem; color:#adadad; }
#nexusFocusTestBadge[hidden] { display:none; }
#nexusRealtimeControl { flex-wrap:wrap; }
#nexusRealtimeControl select { max-width:100%; }
#nexusRealtimeClock { position:absolute;left:20px;top:24px;z-index:3;color:#ffbd8f;font-size:.8rem;max-width:calc(100% - 210px); }
#nexusRealtimeClock[hidden] { display:none; }
.nexus-expanded[data-realtime-active] #nexusFocusTestBadge { display:none; }
@media(max-width:520px) { .nexus-expanded #nexusRealtimeClock { top:82px;right:20px;max-width:none; } }
@media(max-width:480px) { .nexus-expanded .nexus-focus-brand { bottom:calc(12vh + env(safe-area-inset-bottom)); } .nexus-expanded #nexusFocusRecovery:not([hidden]) { bottom:calc(21vh + env(safe-area-inset-bottom)); } #nexusFocusTestBadge { bottom:calc(8vh + env(safe-area-inset-bottom)); } }
@media(prefers-reduced-motion:reduce) { .nexus-expanded .nexus-focus-actions button { transition:none; } }

.nexus-research-reference { grid-column: 1 / -1; min-width: 0; padding: 12px; border: 1px solid #2f2f2f; border-radius: 10px; overflow-wrap: anywhere; }
.nexus-research-reference summary { cursor: pointer; color: #ff8a3d; font-weight: 700; }
.nexus-research-reference p, .nexus-search-answer { white-space: pre-wrap; overflow-wrap: anywhere; }
.nexus-research-reference a, #nexusSearchResult a { color: #ffab70; overflow-wrap: anywhere; }

#nexusClapMonitor { display:flex; align-items:center; flex-wrap:wrap; gap:12px; color:#b8b8b8; font-size:.85rem; margin:8px 0; }
#nexusClapMonitor[hidden] { display:none; }
#nexusClapMonitor label { display:flex; align-items:center; flex-wrap:wrap; gap:10px; }
#nexusClapLevel { width:140px; max-width:100%; height:18px; accent-color:#ff8a3d; }
#nexusClapResume { padding:10px 14px; border:1px solid #414141; border-radius:10px; color:#e3e3e3; background:#292929; cursor:pointer; }

/* Joaquim vê assuntos e decisões; o mantenedor vê os controles técnicos. */
body:not(.nexus-maintainer) #nexusLaunchVoiceControl,
body:not(.nexus-maintainer) #nexusFocusOptions,
body:not(.nexus-maintainer) #nexusFocusVoiceOptions,
body:not(.nexus-maintainer) #nexusMemoryPanel,
body:not(.nexus-maintainer) .nexus-voice-settings,
body:not(.nexus-maintainer) #nexusRecordToggle,
body:not(.nexus-maintainer) #nexusRecordDisclosure { display:none !important; }
.nexus-presidential #commandCard .command-body > :not(#nexusFocusOpen):not(#nexusFocusDisclosure),
.nexus-presidential #commandCard #answerPanel,
.nexus-presidential #commandCard .nexus-side-summary { display:none !important; }
.nexus-presidential #commandCard .command-body { grid-column:1/-1;grid-row:auto;text-align:center; }
.nexus-presidential #commandCard #nexusFocusDisclosure { display:none; }
.nexus-presidential #commandCard:not(.nexus-expanded) { grid-template-columns:1fr; }
.nexus-presidential #commandCard:not(.nexus-expanded) .nexus-home-orb-wrap { grid-column:1;grid-row:1;justify-self:center; }
#nexusPresidentSettings { margin:18px 0;padding:16px;border:1px solid #363636;border-radius:12px; }
#nexusPresidentSettings[hidden], #nexusDecisionDeck[hidden] { display:none !important; }
#nexusPresidentSettings summary { cursor:pointer;color:#ffab70; }
#nexusPresidentSettings form { display:grid;grid-template-columns:1fr 1fr;gap:12px;margin-top:16px; }
#nexusPresidentSettings label { display:flex;align-items:center;flex-wrap:wrap;gap:8px; }
#nexusPresidentSettings input[type=checkbox] { width:auto; }
#nexusPresidentSettings button { padding:12px;border:1px solid #363636;border-radius:10px;background:#141414;color:#f4f4f4;cursor:pointer; }
#nexusDecisionDeck { display:grid;grid-template-columns:1fr 1fr;gap:18px;grid-column:1/-1;min-width:0;width:100%;color:#f4f4f4; }
#nexusDecisionDeck h2 { margin:6px 0 12px;font-size:1.15rem;line-height:1.4;overflow-wrap:anywhere; }
#nexusDecisionDeck p { font-size:.86rem;line-height:1.6;margin:10px 0;color:#b8b8b8;overflow-wrap:anywhere; }
.nexus-decision-list,.nexus-decision-detail { padding:20px;border:1px solid #363636;border-radius:16px;background:#141414e8;min-width:0; }
.nexus-decision-list { max-height:380px;overflow:auto; }
.nexus-decision-list button { display:block;width:100%;min-height:58px;padding:12px 14px;margin:10px 0;text-align:left;color:#f4f4f4;border:1px solid #363636;border-radius:10px;background:#202020;cursor:pointer;overflow-wrap:anywhere;line-height:1.5; }
.nexus-decision-list button.selected { border-color:#ffab70;border-left-width:3px;box-shadow:0 0 24px #ffab700a; }
#nexusDecisionDeck small { display:block;margin-bottom:5px;color:#ffab70;text-transform:capitalize;font-size:.74rem; }
#nexusDecisionDeck .nexus-decision-facts { color:#f4f4f4;font-size:1.02rem;font-variant-numeric:tabular-nums; }
#nexusDecisionDeck .nexus-decision-state { color:#ffc07a;padding-block:12px;border-block:1px solid #363636; }
.nexus-presidential .nexus-expanded #nexusDecisionDeck { display:contents; }
.nexus-presidential .nexus-expanded .nexus-decision-list,.nexus-presidential .nexus-expanded .nexus-decision-detail { position:absolute;z-index:3;width:min(25vw,340px);top:32%;box-sizing:border-box;max-height:52dvh;overflow:auto; }
.nexus-presidential .nexus-expanded .nexus-decision-list { left:3vw; }
.nexus-presidential .nexus-expanded .nexus-decision-detail { right:3vw; }
.nexus-presidential .nexus-expanded .nexus-home-orb-wrap { width:min(52vw,72dvh,720px);height:min(52vw,72dvh,720px); }
.nexus-expanded #nexusFocusClose { width:auto;padding-inline:18px;border-radius:24px;font-size:.85rem;opacity:1; }
.nexus-expanded #nexusRealtimeDecide { width:auto;padding-inline:12px;border-radius:24px;font-size:.75rem;opacity:1; }
.nexus-expanded #nexusRealtimeDecide[hidden] { display:none; }
.nexus-presidential .nexus-expanded #nexusFocusRecovery:not([hidden]) { bottom:calc(5vh + env(safe-area-inset-bottom)); }
@media(max-width:900px) {
  .nexus-presidential .nexus-expanded .nexus-home-orb-wrap { width:46dvh;height:46dvh;align-self:start;margin-top:5dvh;transform:none; }
  .nexus-presidential .nexus-expanded #nexusDecisionDeck { position:absolute;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:12px;z-index:3;bottom:calc(18px + env(safe-area-inset-bottom));left:18px;right:18px;width:auto;max-height:43dvh;overflow:auto; }
  .nexus-presidential .nexus-expanded .nexus-decision-list,.nexus-presidential .nexus-expanded .nexus-decision-detail { position:static;width:auto;max-height:none;padding:14px; }
  .nexus-presidential .nexus-expanded .nexus-focus-brand { top:45dvh;bottom:auto; }
  .nexus-presidential .nexus-expanded #nexusFocusRecovery:not([hidden]) { bottom:auto;top:12dvh; }
}
@media(max-width:520px) {
  #nexusDecisionDeck,#nexusPresidentSettings form { grid-template-columns:1fr; }
  .nexus-presidential .nexus-expanded #nexusDecisionDeck { grid-template-columns:1fr;max-height:46dvh;gap:10px; }
  .nexus-presidential .nexus-expanded .nexus-decision-list { max-height:16dvh;overflow:auto; }
  .nexus-presidential .nexus-expanded .nexus-home-orb-wrap { width:min(82vw,40dvh);height:min(82vw,40dvh); }
  .nexus-presidential .nexus-expanded .nexus-focus-brand { top:42dvh;font-size:18px; }
}
/* Maior especificidade mantém a esfera acima das fichas mesmo durante fala/resposta. */
@media(max-width:900px) {
  body.nexus-presidential #commandCard.nexus-expanded .nexus-home-orb-wrap { position:absolute;top:72px;margin:0;align-self:auto;width:32dvh;height:32dvh;transform:none; }
  body.nexus-presidential #commandCard.nexus-expanded .nexus-focus-brand { top:43dvh;bottom:auto; }
}
@media(max-width:520px) {
  body.nexus-presidential #commandCard.nexus-expanded .nexus-home-orb-wrap { width:min(82vw,30dvh);height:min(82vw,30dvh); }
  body.nexus-presidential #commandCard.nexus-expanded .nexus-focus-brand { top:39dvh; }
  body.nexus-presidential #commandCard.nexus-expanded #nexusDecisionDeck { max-height:50dvh; }
  body.nexus-presidential #commandCard.nexus-expanded .nexus-decision-list { max-height:20dvh; }
  body.nexus-presidential #commandCard.nexus-expanded .nexus-decision-detail p { margin:8px 0;line-height:1.45; }
}

/* Proposta de decisão por voz: a ação em destaque, dois botões de mesmo tamanho, confirmação só por toque. */
#nexusProposalCard { box-sizing:border-box;margin:14px auto 0;padding:18px 20px;width:min(100%,560px);border:1px solid #ffab70;border-radius:16px;background:#141414;color:#f4f4f4;box-shadow:0 0 32px #ffab701a; }
#nexusRecordCard { box-sizing:border-box;margin:14px auto 0;padding:18px 20px;width:min(100%,560px);border:1px solid #ffab70;border-radius:16px;background:#141414;color:#f4f4f4;box-shadow:0 0 32px #ffab701a; }
#nexusProposalCard[hidden] { display:none; }
#nexusRecordCard[hidden] { display:none; }
#nexusProposalCard small { color:#bdbdbd;letter-spacing:.04em; }
#nexusRecordCard small { color:#bdbdbd;letter-spacing:.04em; }
#nexusProposalCard h2 { margin:6px 0;font-size:1.15rem;overflow-wrap:anywhere; }
#nexusRecordCard h2 { margin:6px 0;font-size:1.15rem;overflow-wrap:anywhere; }
#nexusProposalCard p { margin:6px 0;overflow-wrap:anywhere; }
#nexusRecordCard p { margin:6px 0;overflow-wrap:anywhere; }
.nexus-proposal-action { display:block;margin:8px 0 4px;font-size:1.9rem;letter-spacing:.06em;line-height:1.15; }
.nexus-proposal-action.is-approve { color:#6fe3a5; }
.nexus-proposal-action.is-reject { color:#ff7a7a; }
.nexus-proposal-action.is-hold { color:#c9c9c9; }
.nexus-proposal-facts { font-variant-numeric:tabular-nums;font-size:1.05rem; }
.nexus-proposal-timer { color:#bdbdbd;font-size:.9rem; }
.nexus-proposal-notice { color:#ffc07a;min-height:1.4em; }
.nexus-proposal-notice[data-kind="success"] { color:#6fe3a5; }
.nexus-proposal-buttons { display:flex;gap:12px;margin-top:12px; }
.nexus-proposal-buttons button { flex:1 1 0;min-height:56px;padding:10px 14px;border-radius:12px;font:inherit;font-weight:600;cursor:pointer;overflow-wrap:anywhere;line-height:1.3; }
.nexus-proposal-confirm { color:#141414;background:#ffab70;border:1px solid #ffab70; }
.nexus-proposal-confirm:disabled { opacity:.45;cursor:not-allowed; }
.nexus-proposal-cancel { color:#f4f4f4;background:#202020;border:1px solid #4a4a4a; }
.nexus-expanded #nexusProposalCard { position:absolute;z-index:6;left:50%;transform:translateX(-50%);bottom:calc(4dvh + env(safe-area-inset-bottom));max-height:58dvh;overflow:auto; }
@media(max-width:520px) {
  .nexus-expanded #nexusProposalCard { width:calc(100vw - 24px);padding:14px; }
  .nexus-proposal-action { font-size:1.5rem; }
  .nexus-proposal-buttons { flex-direction:column; }
  /* Empilhado, a base de altura 0 do flex cortaria o rótulo da demanda: cada botão cresce com o texto. */
  .nexus-proposal-buttons button { flex:0 0 auto;height:auto; }
}

/* Texto de demanda vem de terceiros: isolamento de direção para que texto bidirecional não embaralhe o restante da linha. */
#nexusProposalCard h2, #nexusProposalCard p { unicode-bidi:isolate; }
#nexusRecordCard h2, #nexusProposalCard p { unicode-bidi:isolate; }
/* Modo imersivo: os botões ficam sempre visíveis, mesmo com rolagem interna do cartão. */
.nexus-expanded .nexus-proposal-buttons { position:sticky;bottom:0;padding-top:10px;background:#141414; }
/* Com "Retomar conversa" visível em telas largas, o cartão sobe para não cobri-lo. */
@media(min-width:901px) {
  .nexus-presidential .nexus-expanded #nexusFocusRecovery:not([hidden]) ~ #nexusProposalCard { bottom:calc(5vh + 110px + env(safe-area-inset-bottom));max-height:calc(95dvh - 110px - 5vh); }
}
/* Telas baixas (celular na horizontal): mais altura para o cartão e botões lado a lado. */
@media(max-height:520px) {
  .nexus-expanded #nexusProposalCard { max-height:80dvh;padding:12px 16px;bottom:calc(2dvh + env(safe-area-inset-bottom)); }
  .nexus-proposal-action { font-size:1.3rem;margin:4px 0 2px; }
  .nexus-proposal-buttons { flex-direction:row; }
  .nexus-proposal-buttons button { min-height:48px;flex:1 1 0;height:auto; }
}

/* Prioridade do BackOffice (envios para a Presidência): faixa própria acima das decisões; escondida durante a conversa expandida. */
#nexusBoPriority { grid-column:1/-1;width:100%;box-sizing:border-box;margin:0 0 14px;padding:16px 20px;border:1px solid #ffab70;border-left-width:4px;border-radius:14px;background:#1a1410e8;color:#f4f4f4;min-width:0; }
#nexusBoPriority[hidden] { display:none !important; }
#nexusBoPriority h2 { margin:0 0 10px;font-size:1.05rem;color:#ffc07a;overflow-wrap:anywhere; }
.nexus-bo-item { padding:10px 0;border-top:1px solid #363636;min-width:0; }
.nexus-bo-item.seen { opacity:.65; }
.nexus-bo-item small { display:block;color:#ffab70;font-size:.74rem;overflow-wrap:anywhere; }
.nexus-bo-item strong { display:block;margin:2px 0 4px;overflow-wrap:anywhere; }
.nexus-bo-item p { margin:4px 0;font-size:.86rem;line-height:1.5;color:#d6d6d6;overflow-wrap:anywhere; }
.nexus-bo-actions { display:flex;flex-wrap:wrap;gap:8px;margin-top:8px; }
.nexus-bo-actions button { min-height:36px;padding:6px 12px;color:#f4f4f4;border:1px solid #4a4a4a;border-radius:8px;background:#202020;cursor:pointer; }
#commandCard.nexus-expanded #nexusBoPriority { display:none; }
