/*@pf start style id=cortex-rich-text */

html body #panel-cortex .cx-a p { margin: 0 0 12px; }
html body #panel-cortex .cx-a ul, html body #panel-cortex .cx-a ol { margin: 0 0 12px; padding-left: 22px; }
html body #panel-cortex .cx-a li { margin: 0 0 6px; }
html body #panel-cortex .cx-a b { font-weight: 600; }

/*@pf end */
/*@pf start style id=cortex-recording-look */

html body #panel-digests .dg-ask { display: inline-flex; align-items: center; margin: 2px 0 16px; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 14px; font-weight: 500; cursor: pointer; }
html body #panel-cortex .cx-wrap { display: flex; flex-direction: column; min-height: calc(100vh - 170px); max-width: 640px; margin: 0 auto; padding: 4px 0 110px; box-sizing: border-box; }
html body #panel-cortex .cx-top { display: flex; justify-content: flex-start; height: 44px; align-items: center; }
html body #panel-cortex .cx-x { background: none; border: 0; color: var(--text); padding: 6px; margin-left: -6px; cursor: pointer; }
html body #panel-cortex .cx-insight { margin-top: 18px; text-align: center; }
html body #panel-cortex .cx-lbl { font-size: 14px; color: var(--muted); }
html body #panel-cortex .cx-h { font-size: 24px; line-height: 1.3; font-weight: 500; color: var(--text); margin: 8px 0 18px; }
html body #panel-cortex .cx-h .up { color: var(--green-ink); }
html body #panel-cortex .cx-h .dn { color: var(--red-ink); }
html body #panel-cortex .cx-full { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--text); background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
html body #panel-cortex .cx-chips { display: grid; gap: 10px; margin-top: 30px; }
html body #panel-cortex .cx-chips[hidden] { display: none; }
html body #panel-cortex .cx-chip { text-align: left; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line2); background: none; color: var(--text); font: inherit; font-size: 16px; line-height: 1.35; cursor: pointer; }
html body #panel-cortex .cx-log { display: grid; gap: 18px; margin-top: 24px; }
html body #panel-cortex .cx-u { justify-self: end; max-width: 78%; padding: 12px 16px; border-radius: 18px; background: var(--pill); color: var(--text); font-size: 16px; line-height: 1.4; }
html body #panel-cortex .cx-a { font-size: 16px; line-height: 1.55; color: var(--text); }
html body #panel-cortex .cx-err { color: var(--red); }
html body #panel-cortex .cx-pend { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--muted); }
html body #panel-cortex .cx-dots { display: inline-flex; gap: 4px; }
html body #panel-cortex .cx-dots i { width: 5px; height: 5px; border-radius: 50%; background: currentColor; animation: cxDot 1.2s ease-in-out infinite; }
html body #panel-cortex .cx-dots i:nth-child(2) { animation-delay: .15s; }
html body #panel-cortex .cx-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes cxDot { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }
html body #panel-cortex .cx-bar { margin-top: auto; padding-top: 18px; display: flex; align-items: center; gap: 10px; }
html body #panel-cortex .cx-field { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; height: 48px; padding: 0 6px 0 16px; border: 1px solid var(--line2); border-radius: 999px; }
html body #panel-cortex .cx-field input { flex: 1; min-width: 0; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 16px; caret-color: #8a8f98; }
html body #panel-cortex .cx-field input::placeholder { color: var(--muted); opacity: 1; }
html body #panel-cortex .cx-mic, html body #panel-cortex .cx-send, html body #panel-cortex .cx-stop { flex: 0 0 40px; width: 40px; height: 40px; display: grid; place-items: center; border: 0; border-radius: 50%; background: none; color: var(--text); cursor: pointer; }
html body #panel-cortex .cx-send { background: var(--pill); }
html body #panel-cortex .cx-send:disabled { opacity: .4; }
html body #panel-cortex .cx-stop { display: none; background: var(--pill); }
html body #panel-cortex .cx-wave { display: none; flex: 1; height: 24px; align-items: center; justify-content: center; gap: 3px; }
html body #panel-cortex .cx-wave i { width: 2px; height: 100%; border-radius: 2px; background: var(--green); transform-origin: center; animation: cxBar .9s ease-in-out infinite alternate; }
html body #panel-cortex .cx-wave i:nth-child(odd) { animation-duration: 1.1s; }
html body #panel-cortex .cx-wave i:nth-child(3n) { animation-delay: .2s; }
html body #panel-cortex .cx-wave i:nth-child(4n) { animation-delay: .4s; }
@keyframes cxBar { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
html body #panel-cortex .cx-bar.listening .cx-field input { display: none; }
html body #panel-cortex .cx-bar.listening .cx-wave { display: flex; }
html body #panel-cortex .cx-bar.listening .cx-stop { display: grid; }
html body #panel-cortex .cx-bar.listening .cx-mic { display: none; }
@media (prefers-reduced-motion: reduce) { html body #panel-cortex .cx-wave i, html body #panel-cortex .cx-dots i { animation: none; } }

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


html body #panel-digests #rhDigestArt.on { display: flex !important; width: 100%; height: 132px; margin: 2px 0 14px; align-items: center; justify-content: center; overflow: hidden; background: none; border-radius: 0; }
html body #panel-digests #rhDigestArt.on svg { width: 100%; height: 100%; display: block; }
html body #panel-digests .dg-ask { gap: 8px; }
html body #panel-digests .dg-ask .dg-ask-ic { flex: 0 0 16px; }
html body #panel-digests .dgx { margin-top: 34px; }
html body #panel-digests .dgx-fb { display: flex; align-items: center; gap: 2px; padding: 8px 0; border-top: 1px solid var(--line); }
html body #panel-digests .dgx-disc { flex: 1; min-width: 0; font-size: 14px; color: var(--muted); }
html body #panel-digests .dgx-thumb { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
html body #panel-digests .dgx-thumb[aria-pressed="true"] { color: var(--text); }
html body #panel-digests .dgx-thumb svg { width: 24px; height: 24px; fill: currentColor; }
html body #panel-digests .dgx-src { display: grid; grid-template-columns: 32px minmax(0, 1fr); gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; }
html body #panel-digests .dgx-ic { width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line2); display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--muted); }
html body #panel-digests .dgx-t { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; font-size: 16px; font-weight: 500; line-height: 1.35; }
html body #panel-digests .dgx-m { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
html body #panel-digests .dgx-all { margin: 14px 0 0; padding: 6px 0; border: 0; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#dgxToast { position: fixed; left: 50%; bottom: calc(96px + env(safe-area-inset-bottom)); transform: translate(-50%, 8px); z-index: 9700; max-width: calc(100vw - 48px); padding: 12px 18px; border-radius: 999px; background: var(--text); color: var(--bg); font-size: 15px; font-weight: 500; opacity: 0; pointer-events: none; transition: opacity .2s ease, transform .2s ease; }
#dgxToast.on { opacity: 1; transform: translate(-50%, 0); }

html body #panel-cortex .cx-top { position: relative; }
html body #panel-cortex .cx-title { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); font-size: 17px; font-weight: 500; color: var(--text); pointer-events: none; }
html body #panel-cortex .cx-rt { display: flex; align-items: center; }
html body #panel-cortex .cx-disc { margin-top: 10px; text-align: center; font-size: 13px; color: var(--muted); }
html body #panel-cortex .cx-errcard { padding: 14px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
html body #panel-cortex .cx-errcard b { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
html body #panel-cortex .cx-errcard p { margin: 6px 0 0; font-size: 15px; line-height: 1.45; color: var(--muted); }
html body #panel-cortex .cx-errcard small { display: block; margin-top: 8px; font-size: 13px; color: var(--muted); }
html body #panel-cortex .cx-retry { margin-top: 12px; min-height: 40px; padding: 0 18px; border: 1.5px solid var(--text); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 15px; font-weight: 600; cursor: pointer; }
html body #panel-cortex .cx-rate { display: inline-grid; place-items: center; width: 36px; height: 36px; margin: 8px 0 0 -8px; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 0; }
html body #panel-cortex .cx-rate.on { color: var(--text); }
html body #panel-cortex .cx-rate svg { width: 20px; height: 20px; fill: currentColor; }
html body #panel-cortex .cx-h2h { margin: 12px 0 0; font-size: 16px; font-weight: 600; color: var(--text); }
html body #panel-cortex .cx-hn { margin: 14px 0; }
html body #panel-cortex .cx-hn b { display: block; font-size: 16px; font-weight: 600; color: var(--text); }
html body #panel-cortex .cx-hn span { display: block; margin-top: 4px; font-size: 14px; color: var(--muted); }
#cxRate { position: fixed; inset: 0; z-index: 9650; display: flex; align-items: flex-end; pointer-events: none; }
#cxRate[hidden] { display: none; }
#cxRate .bg { position: absolute; inset: 0; background: rgba(0,0,0,.5); opacity: 0; transition: opacity .22s; }
#cxRate .pn { position: relative; width: 100%; padding: 22px 24px calc(24px + env(safe-area-inset-bottom)); border-radius: 20px 20px 0 0; background: var(--bg); color: var(--text); transform: translateY(100%); transition: transform .26s cubic-bezier(.2,.8,.2,1); }
#cxRate.on { pointer-events: auto; }
#cxRate.on .bg { opacity: 1; }
#cxRate.on .pn { transform: none; }
#cxRate h3 { margin: 0 0 16px; font-size: 20px; font-weight: 500; line-height: 1.3; }
#cxRate .row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#cxRate .row button { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; border: 1px solid var(--line2); border-radius: 999px; background: none; color: var(--text); font: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
#cxRate .row button svg { width: 20px; height: 20px; fill: currentColor; }
#cxRate p { margin: 14px 0 0; font-size: 14px; color: var(--muted); text-align: center; }
@media (prefers-reduced-motion: reduce) { #cxRate .pn, #cxRate .bg, #dgxToast { transition: none; } }

/*@pf end */
