/*@pf start style id=pf-back-static */


html body .op-back, html body #ctHistory .ch-close,
html body:not(#lgfa):not(#lgfb) .op-back, html body:not(#lgfa):not(#lgfb) #ctHistory .ch-close { position: relative !important; top: auto !important; }

/*@pf end */
/*@pf start style id=pf-cortex-size */


html body #panel-holding #hpCortex h2 { font-size: 26px !important; line-height: 34px !important; }
html body #panel-holding #hpCortex p { font-size: 17px !important; line-height: 26px !important; }
html body #panel-holding #hpCortex::after { font-size: 13px !important; line-height: 19px !important; }

/*@pf end */
/*@pf start style id=cortex-chat-composer-css */

/* 1. Link-setup field on Digests: no green focus box */
html body #aiBox .ai-setup input,
html body #aiBox .ai-setup input:focus,
html body #aiBox .ai-setup input:focus-visible,
html body #aiBox .ai-setup input:focus:not(:focus-visible) { outline: 0 !important; outline-offset: 0 !important; box-shadow: none !important; border-color: var(--line) !important; }

/* 2. No bottom navbar while the Cortex chat is open */
html body:not(#lgfa):not(#lgfb):has(#panel-cortex:not([hidden])) #m1Tabs { display: none !important; }

/* 3. Composer pinned to the bottom of the screen, disclaimer beneath it, chat scrolls behind a solid strip */
html body #panel-cortex { --cxb: max(10px, calc(env(safe-area-inset-bottom, 0px) - 8px)); }
html body #panel-cortex .cx-wrap { padding-bottom: calc(var(--cxb) + 120px); }
html body #panel-cortex .cx-bar { bottom: calc(var(--cxb) + 24px); }
html body #panel-cortex .cx-disc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 29; margin: 0; pointer-events: none;
  box-sizing: border-box; height: calc(var(--cxb) + 92px); padding: 0 0 var(--cxb); display: flex; align-items: flex-end; justify-content: center; line-height: 18px;
  background: linear-gradient(to top, var(--bg) calc(100% - 22px), transparent); }

/*@pf end */
/*@pf start style id=pf-cards-apk */

/* APK portfolio-blocks illustration slot: 16deg rotation as on the summary screen (the loading layout has none) */
html body #pcSec .pc-art .pfb-wrap{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;overflow:hidden;background:#D4D0C9}
html body #pcSec .pc-art .pfb{display:block;width:96%;height:auto;aspect-ratio:1/1;transform:rotate(16deg)}
/* APK instrument card (include_instrument_card.xml): name small on top (3 lines max), symbol large bold, change large bold below */
html body #pcSec .pc-stage .pc-row .pc-art.pc-inst{display:flex;flex-direction:column;box-sizing:border-box;padding:16px;background:var(--card);border-right:1px solid var(--line2);overflow:hidden}
html body #pcSec .pc-inst .pc-nm{flex:1;min-height:0;font-size:14px;line-height:1.3;font-weight:400;color:var(--text);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}
html body #pcSec .pc-inst .pc-sym{font-size:18px;line-height:1.25;font-weight:700;letter-spacing:-.01em;color:var(--text);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
html body #pcSec .pc-inst .pc-chg{font-size:20px;line-height:1.2;font-weight:700;font-variant-numeric:tabular-nums;white-space:nowrap}
html body #pcSec .pc-inst .pc-chg.up{color:var(--green-ink,#00761c)}
html body #pcSec .pc-inst .pc-chg.dn{color:var(--red-ink,#c43000)}
html body #pcSec .pc-stage .pc-row .v-inst .pc-s{font-size:17px;line-height:1.35;margin-top:10px;-webkit-line-clamp:5}

/*@pf end */
/*@pf start style id=rh-cortex-extras-css */

.cx-brk{display:inline-block;margin:0 8px 0 0;padding:1px 7px;border-radius:999px;font-size:12px;font-weight:600;line-height:1.5;color:var(--red-ink,var(--red));background:color-mix(in srgb,currentColor 14%,transparent);vertical-align:middle}
.cx-dot{display:inline-block;width:8px;height:8px;margin-left:2px;border-radius:50%;background:var(--green)}
.cx-ic12{width:12px;height:12px;flex:none;margin-right:2px}
.cx-pict{display:block;width:80px;height:80px;margin:8px 0 10px;color:var(--muted);opacity:.5}
html body #panel-digests .dgx-upd{margin:0 0 6px;font-size:14px;color:var(--muted)}
html body #panel-digests .dgx-stk{display:block;width:100%;margin:0;padding:12px 0;border:0;border-top:1px solid var(--line);background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer}
html body #panel-digests .dgx-stt{display:flex;align-items:center;gap:8px}
html body #panel-digests .dgx-stt b{font-size:17px;font-weight:600}
html body #panel-digests .dgx-stt small{margin-left:auto;font-size:13px;color:var(--muted)}
html body #panel-digests .dgx-sth{display:block;margin-top:2px;font-size:15px;line-height:1.4;color:var(--text2,var(--muted))}
.m1-tab.has-unread{position:relative}
.m1-tab.has-unread::after{content:"";position:absolute;top:6px;left:calc(50% + 8px);width:8px;height:8px;border-radius:50%;background:var(--green)}
.ai-busy .ai-lt{display:inline-block;width:150px;height:33px}
@property --rts{syntax:"<angle>";inherits:false;initial-value:0deg}
@property --rte{syntax:"<angle>";inherits:false;initial-value:10.8deg}
@property --rto{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes rhTs{to{--rts:270deg}}
@keyframes rhTe{to{--rte:280.8deg}}
@keyframes rhTo{to{--rto:90deg}}
@keyframes rhRot{to{transform:rotate(720deg)}}
html body :is(.btn-primary,.addbtn,.pfg-btn,.cp-save,.ch-contribute,.hp-buy,.hp-sell,.btn2,.cls-btn,#txFlow .tx-glass)[aria-busy="true"]::after,html body :is(.btn-primary,.addbtn,.pfg-btn,.cp-save,.ch-contribute,.hp-buy,.hp-sell,.btn2,.cls-btn,#txFlow .tx-glass).rh-loading::after{width:20px;height:20px;margin:-10px 0 0 -10px;border:0;border-radius:0;background:currentColor;-webkit-mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 2.5px),#000 calc(100% - .5px),transparent 100%),conic-gradient(from calc(var(--rto) + var(--rts)),#000 0,#000 calc(var(--rte) - var(--rts)),transparent 0);-webkit-mask-composite:source-in;mask:radial-gradient(farthest-side,transparent calc(100% - 2.5px),#000 calc(100% - 2.5px),#000 calc(100% - .5px),transparent 100%),conic-gradient(from calc(var(--rto) + var(--rts)),#000 0,#000 calc(var(--rte) - var(--rts)),transparent 0);mask-composite:intersect;animation:rhTs 1333ms cubic-bezier(.4,0,1,1) infinite,rhTe 1333ms cubic-bezier(0,0,.2,1) infinite,rhTo 1333ms linear infinite,rhRot 4444ms linear infinite}
html body :is(.linkbtn,.rh-titlebtn,.chart-currency-btn):active:not(:disabled):not([aria-disabled="true"]){opacity:.6}
html body .btn2{border-radius:999px;border-width:1px}

/*@pf end */
