/* PRISM Phase 2AR.2: presentation-only glass consistency + chat scroll affordance.
 * All rules are opt-in Glass, except the neutral chat 'latest' control.
 * No procurement or permission logic changes. */
.prismChatLatestButton{
 position:absolute;right:21px;bottom:100px;z-index:8;
 padding:9px 15px;border-radius:999px;cursor:pointer;
 color:#fff;font:750 12px/1.2 Inter,'Segoe UI',sans-serif;
 border:1px solid rgba(231,255,255,.87);
 background:linear-gradient(120deg,#067d93,#168fc0 50%,#7859c7);
 box-shadow:inset 0 2px 1px #ffffff8c,0 5px 19px #022735a6,0 0 12px #13d7ffd0;
}
.prismChatLatestButton[hidden]{display:none!important}
.prismChatLatestButton:focus-visible{outline:3px solid #ffda79;outline-offset:2px}
/* Full-window modal is already in the PRISM dialog system; use it for Unsend.
 * Only Glass mode gets the optical dark treatment. */
html.prismThemeGlass .prismDlgBackdrop{
 background:rgba(2,5,22,.77);backdrop-filter:blur(13px) saturate(130%);
 -webkit-backdrop-filter:blur(13px) saturate(130%);
}
html.prismThemeGlass .prismDlg{
 color:#f0f9ff;border:2px solid transparent;
 background:
  radial-gradient(ellipse at 4% 1%,rgba(75,208,255,.24),transparent 58%) padding-box,
  radial-gradient(ellipse at 100% 100%,rgba(196,88,255,.22),transparent 52%) padding-box,
  linear-gradient(158deg,rgba(64,78,115,.94),rgba(16,25,51,.97) 51%,rgba(38,33,66,.97)) padding-box,
  linear-gradient(125deg,#faffff,#8fdcff 30%,#9185ff 60%,#f9b8ff 86%,#ffffff) border-box!important;
 border-radius:28px;
 backdrop-filter:blur(25px) saturate(150%);
 box-shadow:inset 0 2px 2px #fff8,inset 0 -4px 6px #060d27c0,0 25px 85px #01041bd6,0 0 31px #6b91ff66!important;
}
html.prismThemeGlass .prismDlgHead .prismDlgTitle{color:#fff;text-shadow:0 2px 8px #000c}
html.prismThemeGlass .prismDlgEyebrow{color:#9ee6ff}
html.prismThemeGlass .prismDlgDescription{color:#e0edff}
html.prismThemeGlass .prismDlgSymbol{
 color:#ffbdce;background:radial-gradient(circle at 27% 18%,#ffcbd7ba,#97396c88 50%,#341735cc);
 border:1px solid #ffd4e8a6;box-shadow:inset 0 2px 1px #fff9,0 0 24px #f764bc74;
}
html.prismThemeGlass .prismDlgActions{
 border-top:1px solid #d6e7ff4d;background:linear-gradient(90deg,#152c4c88,#392b5680);
}
html.prismThemeGlass .prismDlgCancel{
 color:#e8f5ff;border:1px solid #c5e9ff9c;
 background:linear-gradient(140deg,#7c96bd60,#13243ec4);
 box-shadow:inset 0 1px 2px #fffc,0 3px 9px #020b25ab;
}
html.prismThemeGlass .prismDlgApprove--danger{
 color:#fff;border:1px solid #ffb0c4c4;
 background:linear-gradient(130deg,#ef678d,#ba305b 48%,#773e9c);
 box-shadow:inset 0 2px 2px #fffc,0 6px 18px #b2286a80,0 0 13px #fb5e8880;
}
html.prismThemeGlass .prismDlgFacts,
html.prismThemeGlass .prismDlgBusyHint{background:#142847c9;color:#e7f0ff;border-color:#a4bcff6b}
html.prismThemeGlass .prismDlgFacts :is(dt,dd),html.prismThemeGlass .prismDlgBusyMessage{color:#e7f0ff}
/* Full-application glass surfaces, same luminous material family as dashboard.
 * A bright, solid inset is intentionally used for dense tables and form fields. */
html.prismThemeGlass #app section.stack:not(#homePage) > .card,
html.prismThemeGlass #app #opsCaseCard{
 --prism-pane-glow:65 187 255;
 color:#ecf6ff;
 border:2px solid transparent!important;border-radius:26px!important;
 background:
   radial-gradient(ellipse at 0% 0%,rgb(var(--prism-pane-glow)/.18),transparent 55%) padding-box,
   linear-gradient(156deg,rgba(66,87,122,.93),rgba(22,33,62,.95) 40%,rgba(30,27,54,.97)) padding-box,
   linear-gradient(117deg,#f8feff,rgb(var(--prism-pane-glow)/.86) 22%,#a3b3ef 54%,rgb(var(--prism-pane-glow)/.76) 82%,#fff) border-box!important;
 box-shadow:inset 0 2px 2px #ffffff9c,inset 0 -4px 8px #0009,0 14px 30px #030924bd,0 0 20px rgb(var(--prism-pane-glow)/.22)!important;
 backdrop-filter:blur(20px) saturate(150%);-webkit-backdrop-filter:blur(20px) saturate(150%);
}
html.prismThemeGlass #app #appPage>.card{--prism-pane-glow:38 222 172}
html.prismThemeGlass #app #minePage>.card{--prism-pane-glow:90 173 255}
html.prismThemeGlass #app #draftPage>.card{--prism-pane-glow:255 179 71}
html.prismThemeGlass #app #inboxPage>.card{--prism-pane-glow:176 119 255}
html.prismThemeGlass #app #sourcingPage>.card{--prism-pane-glow:239 109 184}
html.prismThemeGlass #app #documentsPage>.card{--prism-pane-glow:53 219 227}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(h2,h3){color:#fff!important;text-shadow:0 2px 7px #020b28b8}
html.prismThemeGlass #app section.stack:not(#homePage)>.card .sub,
html.prismThemeGlass #app section.stack:not(#homePage)>.card>.phase2Muted{color:#d9eafa!important}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(.toolbar,.phase2Toolbar){border-color:#c6e9ff43}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(.btn,.prismQuickGrid button){
 border:1px solid #c4efffb5;border-radius:16px;
 background:
  linear-gradient(180deg,rgba(255,255,255,.40),transparent 29%),
  linear-gradient(130deg,rgba(31,116,173,.87),rgba(35,52,106,.96) 53%,rgba(102,55,163,.9));
 box-shadow:inset 0 2px 1px #fffc,inset 0 -3px 5px #030f26a8,0 4px 14px #071b4999;
 color:#f6fcff!important;text-shadow:0 1px 2px #020715;
}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(.btn,.prismQuickGrid button):hover:not(:disabled){filter:brightness(1.12)}
/* Tables: deliberately opaque and readable, while their chrome stays glossy. */
html.prismThemeGlass #app .tableArea{
 border:1px solid #b9dbf3c4;border-radius:15px;
 background:#f3f8ff!important;box-shadow:inset 0 2px 3px #fff,0 8px 24px #030e2880;
 color:#17334b;
}
html.prismThemeGlass #app .tableArea :is(td,th){color:#153750}
html.prismThemeGlass #app .tableArea :is(input,select,textarea){color:#17334b;background:#fff}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(.input,input,textarea,select){
 border-radius:10px;border-color:#9ec7e3;
}
html.prismThemeGlass #app section.stack:not(#homePage)>.card :is(.input,input,textarea,select):focus-visible{
 outline:3px solid #35b6e8;outline-offset:1px;
}
/* Modal/quick forms and official status colors keep their functional meanings.
 * Do not restyle requirement-specific checklist colors or badges. */
/* Glossy, readable PR-scoped chat. Do not change Classic presentation. */
html.prismThemeGlass .prismChatPanel{
 border:2px solid #a9f3f4b5;
 background:linear-gradient(153deg,#4a7296d9,#172845f5 25%,#1b2246fa 77%,#554071e3);
 box-shadow:inset 0 2px 2px #fffc,0 14px 43px #030b25da,0 0 18px #39c5ff73;
 backdrop-filter:blur(26px);-webkit-backdrop-filter:blur(26px);
}
html.prismThemeGlass .prismChatHeader{
 border-bottom:1px solid #c8f9ff91;
 background:linear-gradient(115deg,#0a8497dd,#186f9cdb 54%,#7657b6d9);
 box-shadow:inset 0 2px 1px #ffffffa8,inset 0 -3px 5px #0613388e;
}
html.prismThemeGlass .prismChatPick{background:#182d4cef;border-color:#a3d1ed59}
html.prismThemeGlass .prismChatPick label{color:#c2f4ff}
html.prismThemeGlass .prismChatPick :is(select,button){background:#1c3452;color:#e7f8ff;border-color:#a1d9e9a1}
html.prismThemeGlass .prismChatMessages{background:linear-gradient(170deg,#263952,#172745 70%,#242b4b)}
html.prismThemeGlass .prismChatMsg{
 background:#203d58e8;border:1px solid #9dcdec74;
 box-shadow:inset 0 1px 1px #ffffff35,0 5px 12px #020a25ad;
}
html.prismThemeGlass .prismChatMsg.own{background:#185968ed;border-color:#85f2e6bd}
html.prismThemeGlass .prismChatMsg.error{background:#5b293eed;border-color:#ff9ba3}
html.prismThemeGlass .prismChatMsg .who{color:#a5ffff}
html.prismThemeGlass .prismChatMsg :is(.body,.meta){color:#e9f7ff}
html.prismThemeGlass .prismChatMsg .unsend{color:#ffc0d5}
html.prismThemeGlass .prismChatAttachment{background:#e7f7ffed;border-color:#79e5f0}
html.prismThemeGlass .prismChatAttachment :is(.name,.attachmentSize){color:#183b55}
html.prismThemeGlass .prismChatStatus{background:#192b49;color:#daf8ff}
html.prismThemeGlass .prismChatStatus.error{color:#ffc0cd}
html.prismThemeGlass .prismChatComposer{background:#14243f;border-color:#95c3e881}
html.prismThemeGlass .prismChatComposer textarea{background:#f1fbff;color:#12354a;border:1px solid #a5e6ec}
html.prismThemeGlass .prismChatLatestButton{border-color:#f7feff}
/* Exact P-R-I-S-M expansion from the more recent Project PRISM naming context. */
html.prismThemeGlass #app .side .brand::after{
 content:"Procurement Records,\A Information, and\A Status Management"!important;
 white-space:pre;font-size:10px!important;line-height:1.31!important;
 font-weight:680!important;letter-spacing:0!important;
}
@media(max-width:690px){
 html.prismThemeGlass #app section.stack:not(#homePage)>.card{border-radius:19px!important;padding:15px!important}
 .prismChatLatestButton{right:15px;bottom:92px}
}
@media(prefers-reduced-motion:reduce){
 html.prismThemeGlass .prismDlg,html.prismThemeGlass .prismChatPanel{transition:none!important;animation:none!important}
}
