/* Scope everything under .psoo-bp so the dark dashboard styles
               don't bleed into surrounding Youzify chrome. Specificity (0,1,0)
               beats Youzify's (0,1,1) when paired with !important on the
               touch points that matter. */
            .psoo-bp { background:#0b0e14; color:#fff; font-family: Inter, system-ui, sans-serif; padding: 32px 0 80px; min-height: 80vh; }

            .psoo-bp__tabs { display: flex; gap: 4px; padding: 0 32px; max-width: 1300px; margin: 0 auto 24px; border-bottom: 1px solid rgba(255,255,255,0.08); }
            .psoo-bp__tab { background: transparent; border: 0; color:#94a3b8; padding: 14px 22px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; }
            .psoo-bp__tab:hover { color:#e2e8f0; }
            .psoo-bp__tab.is-active { color:#fff; border-bottom-color:#6366f1; }
            .psoo-bp__panel { display: none; padding: 0 32px; max-width: 1300px; margin: 0 auto; }
            .psoo-bp__panel.is-active { display: block; }

            /* ── Plan layout: sticky side-nav + body ── */
            .psoo-bp__plan-layout { display: grid; grid-template-columns: minmax(220px, 260px) minmax(0, 1fr); gap: 36px; align-items: flex-start; }
            @media (max-width: 900px) { .psoo-bp__plan-layout { grid-template-columns: 1fr; } }

            /* `top` is large enough to clear the sticky group nav bar that
               sits at the top of the viewport (Business Plan / Contracts /
               Marketing / Organization / Payments). max-height subtracts the
               same offset + a 24px breathing gap so the sidenav scrolls
               inside its own column when there are many chapters. */
            .psoo-bp__sidenav { position: sticky; top: 120px; align-self: flex-start; max-height: calc(100vh - 140px); overflow-y: auto; padding: 22px 0 18px; border-right: 1px solid rgba(255,255,255,0.06); }
            @media (max-width: 900px) { .psoo-bp__sidenav { position: relative; top: auto; max-height: none; border-right: 0; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; margin-bottom: 16px; } }
            .psoo-bp__sidenav-eyebrow { font-size: 10px; text-transform: uppercase; letter-spacing: .14em; color:#64748b; margin: 0 18px 12px; font-weight: 700; }
            .psoo-bp__sidenav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 2px; }
            .psoo-bp__sidenav-link { display: block; padding: 9px 16px; margin: 0 8px; color:#94a3b8; text-decoration: none; font-size: 13px; font-weight: 500; border-radius: 8px; border-left: 2px solid transparent; transition: all .15s; }
            .psoo-bp__sidenav-link:hover { color:#e2e8f0; background: rgba(255,255,255,0.03); }
            .psoo-bp__sidenav-link.is-active { color:#fff; background: rgba(99,102,241,0.12); border-left-color:#6366f1; }

            .psoo-bp__plan-body { display: flex; flex-direction: column; gap: 32px; }
            /* scroll-margin-top matches the sticky-nav offset so jumping to
               a chapter via the sidenav lands below the sticky bar. */
            .psoo-bp__section { scroll-margin-top: 120px; padding: 24px 28px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; }
            .psoo-bp__section-title { font-size: 1.4rem; font-weight: 800; margin: 0 0 16px; color:#fff; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 12px; }
            .psoo-bp__section .gdc-foundation { padding: 0; background: transparent; border: 0; }

            /* ── Sidenav divider above Appendix ── */
            .psoo-bp__sidenav-divider { list-style: none; height: 1px; background: rgba(255,255,255,0.08); margin: 12px 18px; }
            .psoo-bp__sidenav-link--appendix { color: #a5b4fc; font-style: italic; font-weight: 400; }
            .psoo-bp__sidenav-link--appendix.is-active { background: rgba(167,139,250,0.12); border-left-color: #a78bfa; color: #fff; font-style: normal; }

            /* ── Live Store widget under Service/Product Line ── */
            .psoo-bp__store { margin-top: 28px; padding: 24px 24px 22px; background: rgba(11,14,20,0.65); border: 1px solid rgba(167,139,250,0.18); border-radius: 16px; }
            .psoo-bp__store--empty { text-align: center; padding: 36px 24px; color: #94a3b8; }
            .psoo-bp__store--empty a { color: #a5b4fc; }
            .psoo-bp__store-header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
            .psoo-bp__store-title { font-size: 1.05rem; font-weight: 800; margin: 0 0 4px; color: #fff; letter-spacing: .01em; }
            .psoo-bp__store-help { margin: 0; font-size: 12px; color: #94a3b8; }
            .psoo-bp__store-help a { color: #a5b4fc; }

            .psoo-bp__store-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 22px; }
            .psoo-bp__stat { padding: 16px 18px; background: linear-gradient(155deg, rgba(99,102,241,0.10), rgba(11,14,20,0.6)); border: 1px solid rgba(99,102,241,0.18); border-radius: 12px; position: relative; overflow: hidden; }
            .psoo-bp__stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent, #6366f1); opacity: 0.85; }
            .psoo-bp__stat--customers { --accent: #38bdf8; }
            .psoo-bp__stat--sales     { --accent: #fbbf24; }
            .psoo-bp__stat--recurring { --accent: #a78bfa; }
            .psoo-bp__stat--basket    { --accent: #34d399; }
            .psoo-bp__stat-label { margin: 0 0 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__stat-value { margin: 0; font-size: 1.55rem; font-weight: 900; color: #fff; line-height: 1.1; }
            .psoo-bp__stat-foot  { margin: 6px 0 0; font-size: 11px; color: #64748b; }

            .psoo-bp__store-toolbar { display: flex; gap: 10px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
            .psoo-bp__store-search { position: relative; flex: 1 1 280px; display: inline-flex; align-items: center; }
            .psoo-bp__store-search svg { position: absolute; left: 12px; color: #64748b; pointer-events: none; }
            .psoo-bp__store-search input { width: 100%; padding: 10px 12px 10px 36px; background: rgba(15,23,42,0.75); border: 1px solid rgba(255,255,255,0.10); color: #e2e8f0; font-size: 13px; border-radius: 10px; outline: none; transition: border-color .15s; }
            .psoo-bp__store-search input:focus { border-color: rgba(99,102,241,0.55); }
            .psoo-bp__store-toolbar select { padding: 10px 14px; background: rgba(15,23,42,0.75); border: 1px solid rgba(255,255,255,0.10); color: #e2e8f0; font-size: 13px; border-radius: 10px; cursor: pointer; }

            .psoo-bp__product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
            .psoo-bp__product-grid.is-loading { opacity: 0.55; transition: opacity .15s; }
            .psoo-bp__store-empty { grid-column: 1/-1; padding: 30px 16px; text-align: center; color: #94a3b8; font-size: 13px; }
            .psoo-bp__product-card { position: relative; padding: 14px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
            .psoo-bp__product-card:hover { border-color: rgba(99,102,241,0.45); transform: translateY(-1px); }
            .psoo-bp__product-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #1e293b center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
            .psoo-bp__product-img-fallback { font-size: 1.3rem; font-weight: 900; color: rgba(255,255,255,0.55); letter-spacing: -.04em; }
            .psoo-bp__product-meta { flex: 1; display: flex; flex-direction: column; gap: 4px; }
            .psoo-bp__product-name { font-size: 13px; font-weight: 700; color: #f1f5f9; margin: 0; line-height: 1.3; }
            .psoo-bp__product-sku  { font-size: 10.5px; color: #64748b; margin: 0; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
            .psoo-bp__product-price { font-size: 13px; font-weight: 800; color: #fbbf24; margin: 4px 0 0; }
            .psoo-bp__product-stock { font-size: 10px; text-transform: uppercase; letter-spacing: .08em; color: #64748b; margin: 0; }
            .psoo-bp__product-stock--instock    { color: #34d399; }
            .psoo-bp__product-stock--outofstock { color: #f87171; }
            .psoo-bp__product-link { font-size: 11px; color: #a5b4fc; text-decoration: none; align-self: flex-start; font-weight: 600; }
            .psoo-bp__product-link:hover { color: #fff; }
            .psoo-bp__store-status { margin-top: 10px; font-size: 11px; color: #94a3b8; text-align: right; min-height: 14px; }

            /* ── Marketing & Sales Strategy: 5-tab widget ──
               Lives under the Marketing & Sales Strategy chapter. Each tab
               shows live data from the linked web app + a per-item editor. */
            .psoo-bp__mks { margin-top: 28px; padding: 22px 24px 24px; background: rgba(11,14,20,0.65); border: 1px solid rgba(244,114,182,0.14); border-radius: 16px; }
            .psoo-bp__mks-tabs { display: flex; flex-wrap: wrap; gap: 2px; margin-bottom: 16px; border-bottom: 1px solid rgba(255,255,255,0.08); padding-bottom: 2px; }
            .psoo-bp__mks-tab { background: transparent; border: 0; padding: 10px 14px; color: #94a3b8; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; cursor: pointer; border-bottom: 2px solid transparent; transition: all .15s; }
            .psoo-bp__mks-tab:hover { color: #e2e8f0; }
            .psoo-bp__mks-tab.is-active { color: #fff; border-bottom-color: #f472b6; }
            .psoo-bp__mks-pane { display: none; animation: psooMksFade .18s ease-out; }
            .psoo-bp__mks-pane.is-active { display: block; }
            @keyframes psooMksFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
            .psoo-bp__mks-description { color: #94a3b8; font-size: 13px; line-height: 1.55; margin: 0 0 16px; max-width: 720px; }
            .psoo-bp__mks-empty { padding: 24px 16px; text-align: center; color: #94a3b8; font-size: 13px; background: rgba(15,23,42,0.45); border: 1px dashed rgba(255,255,255,0.08); border-radius: 12px; }

            .psoo-bp__mks-grid { display: grid; gap: 12px; }
            .psoo-bp__mks-grid--image, .psoo-bp__mks-grid--social, .psoo-bp__mks-grid--post { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }
            .psoo-bp__mks-grid--kpi { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); }

            .psoo-bp__mks-card { position: relative; padding: 14px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; cursor: pointer; transition: border-color .15s, transform .15s; display: flex; flex-direction: column; gap: 8px; min-height: 100px; }
            .psoo-bp__mks-card:hover { border-color: rgba(244,114,182,0.45); transform: translateY(-1px); }
            .psoo-bp__mks-card.is-active { border-color: rgba(244,114,182,0.85); box-shadow: 0 0 0 1px rgba(244,114,182,0.45); }
            .psoo-bp__mks-card.has-note { border-color: rgba(167,139,250,0.45); }
            .psoo-bp__mks-card-img { width: 100%; aspect-ratio: 4 / 3; border-radius: 8px; background: #1e293b center/cover no-repeat; display: flex; align-items: center; justify-content: center; }
            .psoo-bp__mks-card-img-fallback { font-size: 1.3rem; font-weight: 900; color: rgba(255,255,255,0.45); letter-spacing: -.04em; text-transform: uppercase; }
            .psoo-bp__mks-card-title { margin: 0; font-size: 13.5px; font-weight: 700; color: #f1f5f9; line-height: 1.3; }
            .psoo-bp__mks-card-sublabel { margin: 0; font-size: 11px; color: #94a3b8; }
            .psoo-bp__mks-card-flag { position: absolute; top: 8px; right: 10px; color: #a78bfa; font-size: 14px; line-height: 1; text-shadow: 0 0 8px rgba(167,139,250,0.7); }
            .psoo-bp__mks-grid--kpi .psoo-bp__mks-card-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .08em; color: #94a3b8; font-weight: 700; }
            .psoo-bp__mks-grid--kpi .psoo-bp__mks-card-sublabel { font-size: 1.4rem; font-weight: 900; color: #fff; }

            .psoo-bp__mks-editor { margin-top: 18px; padding: 18px 20px 16px; background: rgba(15,23,42,0.6); border: 1px solid rgba(244,114,182,0.30); border-radius: 14px; animation: psooMksFade .2s ease-out; }
            .psoo-bp__mks-editor-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
            .psoo-bp__mks-editor-eyebrow { margin: 0; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #f472b6; font-weight: 700; }
            .psoo-bp__mks-editor-title { margin: 4px 0 0; font-size: 1.1rem; font-weight: 800; color: #fff; }
            .psoo-bp__mks-editor-close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
            .psoo-bp__mks-editor-close:hover { color: #fff; }
            .psoo-bp__mks-editor-body { min-height: 140px; max-height: 480px; overflow-y: auto; padding: 14px 16px; background: rgba(11,14,20,0.6); border: 1px solid rgba(255,255,255,0.08); border-radius: 10px; color: #e2e8f0; font-size: 13.5px; line-height: 1.6; outline: none; }
            .psoo-bp__mks-editor-body:empty::before { content: attr(placeholder); color: #475569; }
            .psoo-bp__mks-editor-body:focus { border-color: rgba(244,114,182,0.55); }
            .psoo-bp__mks-editor-body--readonly { background: rgba(11,14,20,0.4); color: #cbd5e1; }
            .psoo-bp__mks-editor-actions { margin-top: 10px; display: flex; gap: 10px; align-items: center; }
            .psoo-bp__mks-editor-save { padding: 8px 18px; background: linear-gradient(135deg, #f472b6, #a78bfa); color: #fff; border: 0; border-radius: 8px; font-size: 12px; font-weight: 700; cursor: pointer; }
            .psoo-bp__mks-editor-save:hover { filter: brightness(1.1); }
            .psoo-bp__mks-editor-saved { font-size: 11px; color: #34d399; }
            .psoo-bp__mks-editor-status { font-size: 11px; color: #94a3b8; margin-bottom: 8px; min-height: 14px; }
            .psoo-bp__mks-editor-readonly-note { margin: 8px 0 0; font-size: 11px; color: #64748b; font-style: italic; }

            /* ── Financial Projections widget ── */
            .psoo-bp__fp { margin-top: 28px; padding: 22px 24px 24px; background: rgba(11,14,20,0.65); border: 1px solid rgba(52,211,153,0.18); border-radius: 16px; }
            .psoo-bp__fp-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 18px; flex-wrap: wrap; }
            .psoo-bp__fp-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__fp-help { margin: 0; font-size: 13px; color: #94a3b8; max-width: 720px; line-height: 1.55; }
            .psoo-bp__fp-edit-btn { background: linear-gradient(135deg, #34d399, #fbbf24); color: #0b0e14; border: 0; padding: 9px 18px; font-size: 12px; font-weight: 800; letter-spacing: .03em; border-radius: 10px; cursor: pointer; flex-shrink: 0; transition: filter .15s; }
            .psoo-bp__fp-edit-btn:hover { filter: brightness(1.1); }

            .psoo-bp__fp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin-bottom: 14px; }
            .psoo-bp__fp-card { padding: 16px 18px; background: linear-gradient(155deg, rgba(255,255,255,0.03), rgba(11,14,20,0.55)); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; position: relative; overflow: hidden; }
            .psoo-bp__fp-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent, #6366f1); opacity: 0.95; }
            .psoo-bp__fp-card-label { margin: 0 0 10px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fp-card-actual, .psoo-bp__fp-card-projected { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin: 0 0 4px; }
            .psoo-bp__fp-amount { font-size: 1.4rem; font-weight: 900; color: #fff; line-height: 1.1; font-variant-numeric: tabular-nums; }
            .psoo-bp__fp-amount--projected { color: var(--accent, #34d399); }
            .psoo-bp__fp-card-tag { font-size: 10px; text-transform: uppercase; letter-spacing: .1em; color: #64748b; font-weight: 700; }
            .psoo-bp__fp-spark { margin-top: 10px; height: 28px; }
            .psoo-bp__fp-spark svg { display: block; width: 100%; height: 100%; overflow: visible; }
            .psoo-bp__fp-spark path { fill: none; stroke: var(--accent, #34d399); stroke-width: 1.6; }
            .psoo-bp__fp-spark .area { fill: var(--accent, #34d399); fill-opacity: 0.16; stroke: none; }

            .psoo-bp__fp-assumptions { font-size: 12px; color: #94a3b8; line-height: 1.6; padding: 10px 14px; background: rgba(15,23,42,0.45); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; }
            .psoo-bp__fp-assumptions span { color: #34d399; font-weight: 700; font-variant-numeric: tabular-nums; }

            /* Monthly Profit summary — full-width card below the grid.
               Derived from every other card; no editable inputs. Two big
               numbers (Baseline → 12 Mo Projected) with a divider arrow. */
            .psoo-bp__fp-profit {
                margin-top: 14px;
                padding: 22px 26px;
                background: linear-gradient(135deg, rgba(167,139,250,0.10), rgba(52,211,153,0.10), rgba(11,14,20,0.65));
                border: 1px solid rgba(167,139,250,0.32);
                border-radius: 14px;
                display: grid;
                grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1.8fr);
                gap: 22px;
                align-items: center;
                position: relative;
                overflow: hidden;
            }
            .psoo-bp__fp-profit::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #38bdf8, #a78bfa, #fbbf24, #34d399); }
            .psoo-bp__fp-profit-eyebrow { margin: 0 0 6px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #fff; }
            .psoo-bp__fp-profit-help { margin: 0; font-size: 12px; color: #94a3b8; line-height: 1.5; max-width: 380px; }
            .psoo-bp__fp-profit-values { display: flex; align-items: center; justify-content: flex-end; gap: 16px; flex-wrap: wrap; }
            .psoo-bp__fp-profit-value { display: flex; flex-direction: column; align-items: flex-end; min-width: 140px; }
            .psoo-bp__fp-profit-label { margin: 0 0 4px; font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fp-profit-num { margin: 0; font-size: 2.1rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.05; }
            /* Solid green for the projected number — the background-clip:text
               gradient was rendering broken on some browser/font combos due
               to the parent's own gradient + tabular-nums. Solid colour is
               bulletproof and still visually distinct from the baseline. */
            .psoo-bp__fp-profit-num--projected { color: #34d399; text-shadow: 0 0 18px rgba(52,211,153,0.35); }
            .psoo-bp__fp-profit-arrow { font-size: 1.8rem; color: rgba(255,255,255,0.30); font-weight: 300; }
            @media (max-width: 760px) {
                .psoo-bp__fp-profit { grid-template-columns: 1fr; }
                .psoo-bp__fp-profit-values { justify-content: flex-start; }
            }

            /* Per-card edit pencil — sits next to the label, only visible
               on hover so cards stay clean for non-edit viewers. */
            .psoo-bp__fp-card { position: relative; }
            .psoo-bp__fp-card-label { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
            .psoo-bp__fp-card-edit { background: transparent; border: 1px solid rgba(255,255,255,0.10); color: #94a3b8; width: 24px; height: 24px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; cursor: pointer; opacity: 0.4; transition: opacity .15s, color .15s, border-color .15s, background .15s; padding: 0; }
            .psoo-bp__fp-card:hover .psoo-bp__fp-card-edit { opacity: 1; }
            .psoo-bp__fp-card-edit:hover, .psoo-bp__fp-card-edit:focus { color: #fff; border-color: var(--accent, #6366f1); background: rgba(255,255,255,0.04); outline: none; }

            /* Shared modal for per-card assumption edit. */
            .psoo-bp__fp-modal { position: fixed; inset: 0; z-index: 1200; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
            .psoo-bp__fp-modal[hidden] { display: none; }
            .psoo-bp__fp-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
            .psoo-bp__fp-dialog { position: relative; width: 100%; max-width: 480px; background: #0b0e14; border: 1px solid rgba(52,211,153,0.30); border-radius: 14px; box-shadow: 0 40px 80px rgba(0,0,0,0.6); padding: 20px 22px 16px; animation: psooMksFade .2s ease-out; }
            .psoo-bp__fp-modal-header { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
            .psoo-bp__fp-modal-eyebrow { margin: 0 0 4px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #34d399; }
            .psoo-bp__fp-modal-header h4 { margin: 0; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__fp-modal-close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
            .psoo-bp__fp-modal-close:hover { color: #fff; }
            .psoo-bp__fp-modal-body { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
            .psoo-bp__fp-modal-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__fp-modal-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fp-modal-input { position: relative; display: flex; align-items: center; }
            .psoo-bp__fp-modal-input input { width: 100%; padding: 10px 44px 10px 12px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 14px; font-weight: 700; border-radius: 9px; outline: none; font-variant-numeric: tabular-nums; }
            .psoo-bp__fp-modal-input input:focus { border-color: rgba(52,211,153,0.65); box-shadow: 0 0 0 1px rgba(52,211,153,0.30); }
            .psoo-bp__fp-modal-input > span { position: absolute; right: 12px; color: #64748b; font-size: 11px; font-weight: 700; pointer-events: none; }
            .psoo-bp__fp-modal-hint { display: block; font-size: 10.5px; color: #64748b; line-height: 1.4; margin-top: 2px; }
            .psoo-bp__fp-modal-hint.is-clamped { color: #fbbf24; }
            .psoo-bp__fp-modal-footer { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 16px; }
            .psoo-bp__fp-modal-status { font-size: 11px; color: #34d399; font-weight: 700; }
            .psoo-bp__fp-modal-save { background: linear-gradient(135deg, #34d399, #fbbf24); color: #0b0e14; border: 0; padding: 10px 22px; font-size: 12px; font-weight: 800; letter-spacing: .03em; border-radius: 9px; cursor: pointer; }
            .psoo-bp__fp-modal-save:hover { filter: brightness(1.1); }

            .psoo-bp__fp-modal { position: fixed; inset: 0; z-index: 1100; display: flex; align-items: center; justify-content: center; padding: 4vh 4vw; }
            .psoo-bp__fp-modal[hidden] { display: none; }
            .psoo-bp__fp-backdrop { position: absolute; inset: 0; background: rgba(2,6,23,0.75); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
            .psoo-bp__fp-dialog { position: relative; width: 100%; max-width: 540px; background: #0b0e14; border: 1px solid rgba(52,211,153,0.30); border-radius: 16px; box-shadow: 0 40px 80px rgba(0,0,0,0.55); padding: 22px 24px 18px; animation: psooMksFade .2s ease-out; }
            .psoo-bp__fp-modal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
            .psoo-bp__fp-modal-header h4 { margin: 0; font-size: 16px; font-weight: 800; color: #fff; }
            .psoo-bp__fp-modal-close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
            .psoo-bp__fp-modal-close:hover { color: #fff; }
            .psoo-bp__fp-modal-help { color: #94a3b8; font-size: 12.5px; line-height: 1.55; margin: 0 0 16px; }
            .psoo-bp__fp-modal-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
            .psoo-bp__fp-modal-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__fp-modal-field > span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fp-input-wrap { position: relative; display: flex; align-items: center; }
            .psoo-bp__fp-input-wrap input { width: 100%; padding: 10px 38px 10px 12px; background: rgba(15,23,42,0.75); border: 1px solid rgba(255,255,255,0.10); color: #e2e8f0; font-size: 14px; font-weight: 700; border-radius: 10px; outline: none; }
            .psoo-bp__fp-input-wrap input:focus { border-color: rgba(52,211,153,0.55); }
            .psoo-bp__fp-input-suffix { position: absolute; right: 12px; color: #64748b; font-size: 11px; font-weight: 700; pointer-events: none; }
            .psoo-bp__fp-modal-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
            .psoo-bp__fp-modal-status { font-size: 11px; color: #94a3b8; }
            .psoo-bp__fp-modal-save { background: linear-gradient(135deg, #34d399, #fbbf24); color: #0b0e14; border: 0; padding: 10px 22px; font-size: 12px; font-weight: 800; border-radius: 10px; cursor: pointer; }
            .psoo-bp__fp-modal-save:hover { filter: brightness(1.1); }

            /* ── Profit Share Token chapter widget ── */
            .psoo-bp__pst { margin-top: 28px; padding: 22px 24px 26px; background: radial-gradient(ellipse at top right, rgba(167,139,250,0.08), rgba(11,14,20,0) 60%), rgba(11,14,20,0.7); border: 1px solid rgba(167,139,250,0.20); border-radius: 16px; position: relative; overflow: hidden; }
            .psoo-bp__pst::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 70%, rgba(244,114,182,0.06)); pointer-events: none; }
            .psoo-bp__pst > * { position: relative; }
            .psoo-bp__pst-header h3 { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__pst-help { margin: 0 0 18px; font-size: 13px; color: #94a3b8; max-width: 760px; line-height: 1.55; }

            .psoo-bp__pst-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 18px; }
            .psoo-bp__pst-stat { padding: 15px 16px 14px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; position: relative; overflow: hidden; }
            .psoo-bp__pst-stat::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: var(--accent, #a78bfa); }
            .psoo-bp__pst-stat-label { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__pst-stat-value { margin: 0; font-size: 1.45rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
            .psoo-bp__pst-stat-foot  { margin: 6px 0 0; font-size: 11px; color: #64748b; }

            /* Economics editor */
            .psoo-bp__pst-econ-panel { padding: 16px 18px; background: rgba(15,23,42,0.55); border: 1px solid rgba(167,139,250,0.30); border-radius: 12px; margin-bottom: 18px; }
            .psoo-bp__pst-econ-eyebrow { margin: 0 0 12px; font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: #a78bfa; }
            .psoo-bp__pst-econ-hint { color: #64748b; font-weight: 500; text-transform: none; letter-spacing: 0; margin-left: 6px; }
            .psoo-bp__pst-econ-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; align-items: flex-end; }
            .psoo-bp__pst-econ-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__pst-econ-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__pst-econ-input { position: relative; display: flex; align-items: center; }
            .psoo-bp__pst-econ-input input { width: 100%; padding: 10px 38px 10px 12px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 14px; font-weight: 700; border-radius: 9px; outline: none; font-variant-numeric: tabular-nums; }
            .psoo-bp__pst-econ-input input:focus { border-color: rgba(167,139,250,0.65); box-shadow: 0 0 0 1px rgba(167,139,250,0.30); }
            .psoo-bp__pst-econ-suffix { position: absolute; right: 12px; color: #64748b; font-size: 11px; font-weight: 700; pointer-events: none; }
            .psoo-bp__pst-econ-actions { display: flex; align-items: center; gap: 10px; }
            .psoo-bp__pst-econ-save { background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; border: 0; padding: 10px 18px; font-size: 12px; font-weight: 800; letter-spacing: .03em; border-radius: 9px; cursor: pointer; transition: filter .15s; }
            .psoo-bp__pst-econ-save:hover { filter: brightness(1.1); }
            .psoo-bp__pst-econ-status { font-size: 11px; color: #34d399; font-weight: 700; }

            /* Animated chart */
            .psoo-bp__pst-chart-wrap { margin-bottom: 18px; padding: 16px 18px 12px; background: rgba(11,14,20,0.7); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
            .psoo-bp__pst-chart-header h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: #fff; }
            .psoo-bp__pst-chart-header p { margin: 0 0 12px; font-size: 11.5px; color: #64748b; }
            .psoo-bp__pst-chart { display: block; width: 100%; height: 220px; }
            .psoo-bp__pst-chart [data-pst-grid] line { stroke: rgba(255,255,255,0.05); stroke-dasharray: 2 4; }
            .psoo-bp__pst-chart .psoo-bp__pst-chart-line { filter: drop-shadow(0 0 6px rgba(167,139,250,0.55)); stroke-dasharray: 1600; stroke-dashoffset: 1600; animation: psooPstDraw 1.8s cubic-bezier(0.65, 0.05, 0.36, 1) forwards; }
            @keyframes psooPstDraw { to { stroke-dashoffset: 0; } }
            .psoo-bp__pst-chart [data-pst-points] circle { fill: #fff; stroke: #a78bfa; stroke-width: 1.5; opacity: 0; animation: psooPstPop .35s cubic-bezier(0.16, 1, 0.3, 1) forwards; }
            @keyframes psooPstPop { from { transform: scale(0.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
            .psoo-bp__pst-chart [data-pst-points] circle:hover { fill: #a78bfa; r: 5; }

            /* Calculator */
            .psoo-bp__pst-calc { padding: 18px 20px; background: rgba(15,23,42,0.55); border: 1px solid rgba(56,189,248,0.22); border-radius: 12px; margin-bottom: 18px; }
            .psoo-bp__pst-calc-header h4 { margin: 0 0 4px; font-size: 13px; font-weight: 800; color: #fff; }
            .psoo-bp__pst-calc-header p { margin: 0 0 14px; font-size: 12px; color: #94a3b8; }
            .psoo-bp__pst-calc-input-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin-bottom: 14px; }
            .psoo-bp__pst-calc-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__pst-calc-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__pst-calc-input { position: relative; display: flex; align-items: center; }
            .psoo-bp__pst-calc-input input { width: 100%; padding: 12px 70px 12px 14px; background: rgba(11,14,20,0.78); border: 1px solid rgba(56,189,248,0.22); color: #fff; font-size: 1.05rem; font-weight: 800; border-radius: 10px; outline: none; font-variant-numeric: tabular-nums; }
            .psoo-bp__pst-calc-input input:focus { border-color: rgba(56,189,248,0.7); box-shadow: 0 0 0 1px rgba(56,189,248,0.30); }
            .psoo-bp__pst-calc-input > span { position: absolute; right: 14px; color: #64748b; font-size: 11px; font-weight: 700; pointer-events: none; }
            .psoo-bp__pst-calc-outputs { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
            .psoo-bp__pst-calc-out { padding: 13px 15px; background: linear-gradient(135deg, rgba(56,189,248,0.12), rgba(11,14,20,0.55)); border: 1px solid rgba(56,189,248,0.20); border-radius: 10px; }
            .psoo-bp__pst-calc-out-label { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__pst-calc-out-value { margin: 0; font-size: 1.4rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
            .psoo-bp__pst-calc-out-foot { margin: 4px 0 0; font-size: 10px; color: #64748b; }

            /* Investment contract */
            .psoo-bp__pst-contract { background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; overflow: hidden; }
            .psoo-bp__pst-contract-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: rgba(0,0,0,0.20); border-bottom: 1px solid rgba(255,255,255,0.06); }
            .psoo-bp__pst-contract-header h4 { margin: 0; font-size: 13px; font-weight: 800; color: #fff; }
            .psoo-bp__pst-contract-header p { margin: 0; font-size: 11px; color: #64748b; }
            .psoo-bp__pst-contract-status { font-size: 11px; color: #34d399; font-weight: 700; min-width: 50px; text-align: right; }
            .psoo-bp__pst-contract-save { background: linear-gradient(135deg, #a78bfa, #f472b6); color: #fff; border: 0; padding: 9px 16px; font-size: 11.5px; font-weight: 800; letter-spacing: .03em; border-radius: 9px; cursor: pointer; transition: filter .15s; }
            .psoo-bp__pst-contract-save:hover { filter: brightness(1.1); }
            .psoo-bp__pst-contract-body { padding: 22px 26px; font-size: 13.5px; line-height: 1.65; color: #cbd5e1; outline: none; min-height: 220px; max-height: 540px; overflow-y: auto; }
            .psoo-bp__pst-contract-body.is-editable:focus { background: rgba(167,139,250,0.04); }
            .psoo-bp__pst-contract-body h3 { font-size: 16px; color: #fff; margin: 0 0 12px; }
            .psoo-bp__pst-contract-body h4 { font-size: 13px; color: #a78bfa; margin: 20px 0 6px; text-transform: uppercase; letter-spacing: .04em; }
            .psoo-bp__pst-contract-body p  { margin: 0 0 12px; }
            .psoo-bp__pst-contract-body strong { color: #f1f5f9; }

            /* ── Appendix body section: softer, with separator above ── */
            .psoo-bp__appendix-divider { height: 1px; background: linear-gradient(90deg, transparent, rgba(167,139,250,0.5), transparent); margin: 16px 0 4px; }
            .psoo-bp__section--appendix { background: rgba(15,23,42,0.40); border-color: rgba(167,139,250,0.15); }
            .psoo-bp__section-eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: 10px; font-weight: 700; color: #a78bfa; margin: 0 0 8px; }
            .psoo-bp__section-subtitle { font-size: 1.1rem; font-weight: 800; margin: 0 0 8px; color: #e2e8f0; }
            .psoo-bp__section-help { color: #94a3b8; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }

            /* ── Competitor Analysis: Industries + Competitors ── */
            .psoo-bp__ind-list { display: flex; flex-direction: column; gap: 16px; }
            .psoo-bp__ind-empty { color: #64748b; font-size: 13px; font-style: italic; margin: 4px 0; }
            .psoo-bp__ind-card { background: linear-gradient(155deg, rgba(255,255,255,0.035), rgba(11,14,20,0.5)); border: 1px solid rgba(255,255,255,0.08); border-radius: 14px; padding: 18px 18px 16px; }
            .psoo-bp__ind-card-head, .psoo-bp__ind-comp-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
            .psoo-bp__ind-card-badge { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #818cf8; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); border-radius: 999px; padding: 3px 10px; }
            .psoo-bp__ind-title { font-size: 1.05rem; font-weight: 800; color: #f1f5f9; margin: 0 0 6px; }
            .psoo-bp__ind-desc { color: #cbd5e1; font-size: 13px; line-height: 1.6; margin: 0 0 12px; }
            .psoo-bp__ind-comps { margin-top: 12px; border-top: 1px solid rgba(255,255,255,0.07); padding-top: 12px; display: flex; flex-direction: column; gap: 12px; }
            .psoo-bp__ind-comp-eyebrow { font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #94a3b8; margin: 0; }
            .psoo-bp__ind-comp { background: rgba(2,6,23,0.4); border: 1px solid rgba(255,255,255,0.07); border-radius: 11px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; }
            .psoo-bp__ind-comp-badge { font-size: 10px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; color: #64748b; }
            .psoo-bp__ind-comp-title { font-size: 0.95rem; font-weight: 700; color: #e2e8f0; margin: 0 0 4px; }
            .psoo-bp__ind-comp-desc { color: #cbd5e1; font-size: 12.5px; line-height: 1.55; margin: 0 0 8px; }
            .psoo-bp__ind-comp-diff-label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #34d399; margin: 0 0 2px; }
            .psoo-bp__ind-comp-diff { color: #d1fae5; font-size: 12.5px; line-height: 1.55; margin: 0; }
            /* editor fields */
            .psoo-bp__ind-field { display: flex; flex-direction: column; gap: 5px; }
            .psoo-bp__ind-field-label { font-size: 11px; font-weight: 600; color: #cbd5e1; }
            .psoo-bp__ind-input { background: rgba(2,6,23,0.45); border: 1px solid rgba(255,255,255,0.10); border-radius: 9px; color: #f1f5f9; font-size: 13px; padding: 9px 11px; outline: none; width: 100%; font-family: inherit; resize: vertical; }
            .psoo-bp__ind-input:focus { border-color: #6366f1; }
            .psoo-bp__ind-add { align-self: flex-start; background: rgba(99,102,241,0.12); color: #c7d2fe; border: 1px solid rgba(99,102,241,0.30); border-radius: 9px; font-size: 12px; font-weight: 700; padding: 8px 14px; cursor: pointer; transition: background .15s, color .15s; }
            .psoo-bp__ind-add:hover { background: rgba(99,102,241,0.22); color: #fff; }
            .psoo-bp__ind-add--sm { font-size: 11.5px; padding: 6px 12px; }
            .psoo-bp__ind-remove { background: transparent; color: #fca5a5; border: 1px solid rgba(248,113,113,0.30); border-radius: 8px; font-size: 11px; font-weight: 700; padding: 4px 10px; cursor: pointer; transition: background .15s, color .15s; }
            .psoo-bp__ind-remove:hover { background: rgba(248,113,113,0.14); color: #fff; }
            .psoo-bp__ind-remove--sm { font-size: 10.5px; padding: 3px 8px; }
            .psoo-bp__ind-foot { display: flex; align-items: center; gap: 14px; margin-top: 16px; }
            .psoo-bp__ind-savestate { font-size: 12px; font-weight: 700; color: #64748b; }

            /* ── Brain: full-bleed cinematic video backdrop + glassmorphism ──
               The stylized Business Brain video is an absolute child of the
               stage (which always has height via min-height:580px), so it covers
               the whole content area. The content containers (graph / empty-state)
               are themselves the frosted glass and sit above the video (z1 > z0),
               so the video can never paint over the content. The entrance reveal
               (clip-path print, chromatic glitch, scanline, grid, flicker) plays
               on each tab open, then settles into a slow Ken-Burns cinematic
               drift. */
            .psoo-bp__panel[data-panel="brain"] { position: relative; }
            .psoo-bp__brain-bg { position: absolute; inset: 0; z-index: 0; overflow: hidden; border-radius: 18px; pointer-events: none; }
            .psoo-bp__brain-bg-inner { position: absolute; inset: 0; overflow: hidden; }
            .psoo-bp__brain-bg-vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: center 30%; opacity: 0; will-change: opacity, transform, filter; background: #0a0e1c; }
            .psoo-bp__brain-bg-scan { position: absolute; left: -10%; right: -10%; height: 26%; top: -30%; background: linear-gradient(180deg, rgba(99,102,241,0) 0%, rgba(129,140,248,0.55) 45%, rgba(224,231,255,0.95) 50%, rgba(129,140,248,0.55) 55%, rgba(99,102,241,0) 100%); mix-blend-mode: screen; opacity: 0; filter: blur(1px); }
            .psoo-bp__brain-bg-grid { position: absolute; inset: 0; opacity: 0; background-image: linear-gradient(rgba(99,102,241,0.18) 1px, transparent 1px), linear-gradient(90deg, rgba(99,102,241,0.18) 1px, transparent 1px); background-size: 34px 34px; -webkit-mask-image: radial-gradient(80% 70% at 50% 35%, #000 0%, rgba(0,0,0,0) 75%); mask-image: radial-gradient(80% 70% at 50% 35%, #000 0%, rgba(0,0,0,0) 75%); }
            .psoo-bp__brain-bg-veil { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 30%, rgba(11,14,20,0) 30%, rgba(11,14,20,0.55) 100%), linear-gradient(180deg, rgba(11,14,20,0) 40%, rgba(11,14,20,0.85) 100%); }

            /* ── Brain stage (empty state + live graph) ── */
            .psoo-bp__brain-stage { position: relative; z-index: 1; min-height: 580px; display: flex; align-items: stretch; justify-content: center; padding: 24px; overflow: hidden; background: #0a0e1c; border: 1px solid rgba(255,255,255,0.14); border-radius: 18px; box-shadow: 0 24px 60px rgba(0,0,0,0.45), inset 0 1px 0 rgba(255,255,255,0.08); }
            /* The content containers ARE the frosted glass — each sits above the
               video (z0) with its own backdrop blur + translucent tint. */
            .psoo-bp__brain-stage > .psoo-bp__brain-empty,
            .psoo-bp__brain-stage > .psoo-bp__brain-canvas-wrap { position: relative; z-index: 1; -webkit-backdrop-filter: blur(13px) saturate(140%); backdrop-filter: blur(13px) saturate(140%); }
            .psoo-bp__brain-empty { text-align: center; max-width: 460px; color:#cbd5e1; align-self: center; margin: 60px auto; padding: 36px 32px; background: rgba(15,23,42,0.42); border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; box-shadow: 0 18px 50px rgba(0,0,0,0.4); }
            .psoo-bp__brain-empty-icon { color:#a5b4fc; margin: 0 auto 16px; display: inline-flex; }
            .psoo-bp__brain-empty h3 { font-size: 1.4rem; font-weight: 800; color:#fff; margin: 0 0 10px; }
            .psoo-bp__brain-empty p { line-height: 1.6; margin: 0; }

            /* Entrance choreography — restarted by toggling .is-entered in JS. */
            .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-vid  { animation: psooBrainPrint 1.5s cubic-bezier(.16,.84,.34,1) forwards, psooBrainGlitch 1.5s steps(1) forwards, psooBrainFlicker 2.2s steps(1) forwards; }
            .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-scan { animation: psooBrainScan 1.35s cubic-bezier(.5,0,.2,1) forwards; }
            .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-grid { animation: psooBrainGrid 1.8s ease-out forwards; }
            @keyframes psooBrainPrint {
                0%   { opacity: 0; clip-path: inset(0 0 100% 0); transform: scale(1.12) translate3d(-1.5%, -1%, 0); }
                8%   { opacity: 1; }
                55%  { clip-path: inset(0 0 0 0); transform: scale(1.10) translate3d(-1.5%, -1%, 0); }
                100% { opacity: 0.92; clip-path: inset(0 0 0 0); transform: scale(1.08) translate3d(-1.5%, -1%, 0); }
            }
            @keyframes psooBrainGlitch {
                0%   { filter: brightness(1.9) contrast(1.35) drop-shadow(18px 0 rgba(244,63,94,0.85)) drop-shadow(-18px 0 rgba(56,189,248,0.85)); }
                12%  { filter: brightness(1.4) contrast(1.2) drop-shadow(-12px 2px rgba(244,63,94,0.7)) drop-shadow(12px -2px rgba(56,189,248,0.7)); }
                28%  { filter: brightness(1.3) contrast(1.15) drop-shadow(8px 0 rgba(244,63,94,0.6)) drop-shadow(-8px 0 rgba(56,189,248,0.6)); }
                55%  { filter: brightness(1.15) contrast(1.08) drop-shadow(3px 0 rgba(244,63,94,0.4)) drop-shadow(-3px 0 rgba(56,189,248,0.4)); }
                100% { filter: brightness(1) contrast(1) drop-shadow(0 0 rgba(0,0,0,0)); }
            }
            @keyframes psooBrainFlicker {
                0%,100% { }
                62% { opacity: 0.4; } 64% { opacity: 0.92; }
                72% { opacity: 0.5; } 74% { opacity: 0.85; }
                86% { opacity: 0.65; } 88% { opacity: 0.92; }
            }
            @keyframes psooBrainScan {
                0%   { opacity: 0; top: -30%; }
                10%  { opacity: 1; }
                90%  { opacity: 1; }
                100% { opacity: 0; top: 110%; }
            }
            @keyframes psooBrainGrid {
                0%   { opacity: 0; transform: translateY(18px) scale(1.04); }
                60%  { opacity: 0.5; }
                100% { opacity: 0.22; transform: translateY(0) scale(1); }
            }
            /* Cinematic Ken-Burns drift once the entrance settles. */
            .psoo-bp__brain-bg.is-settled .psoo-bp__brain-bg-vid { animation: psooBrainCinematic 34s ease-in-out infinite; }
            @keyframes psooBrainCinematic {
                0%   { opacity: 0.85; transform: scale(1.08) translate3d(-1.5%, -1.0%, 0); }
                25%  { opacity: 0.92; transform: scale(1.13) translate3d(1.2%, -1.6%, 0); }
                50%  { opacity: 0.99; transform: scale(1.17) translate3d(1.6%,  1.2%, 0); }
                75%  { opacity: 0.92; transform: scale(1.13) translate3d(-1.2%, 1.6%, 0); }
                100% { opacity: 0.85; transform: scale(1.08) translate3d(-1.5%, -1.0%, 0); }
            }
            @media (prefers-reduced-motion: reduce) {
                .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-vid,
                .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-scan,
                .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-grid,
                .psoo-bp__brain-bg.is-settled .psoo-bp__brain-bg-vid { animation: none !important; }
                .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-vid { opacity: 0.92; clip-path: none; filter: none; }
                .psoo-bp__brain-bg.is-entered .psoo-bp__brain-bg-grid { opacity: 0.22; }
            }

            /* ── Live graph ── */
            .psoo-bp__brain-canvas-wrap { position: relative; flex: 1; min-height: 580px; border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,0.08); background: radial-gradient(ellipse at 50% 0%, rgba(99,102,241,0.12) 0%, rgba(15,23,42,0) 70%), rgba(13,17,31,0.34); }
            .psoo-bp__brain-svg { display: block; width: 100%; height: 100%; min-height: 580px; cursor: grab; user-select: none; }
            .psoo-bp__brain-svg:active { cursor: grabbing; }
            .psoo-bp__brain-edge { stroke: rgba(148, 163, 184, 0.18); stroke-width: 1; fill: none; pointer-events: none; }
            .psoo-bp__brain-edge--hierarchy { stroke: rgba(99, 102, 241, 0.30); stroke-width: 1.3; }
            .psoo-bp__brain-node { cursor: pointer; transition: filter .15s; }
            .psoo-bp__brain-node:hover { filter: brightness(1.4) drop-shadow(0 0 12px currentColor); }
            .psoo-bp__brain-node-ring { fill: none; stroke: currentColor; stroke-width: 1.5; opacity: 0.45; }
            .psoo-bp__brain-node-core { fill: currentColor; }
            .psoo-bp__brain-node--unfilled .psoo-bp__brain-node-core { fill: rgba(15,23,42,0.95); stroke: currentColor; stroke-width: 1.6; }
            .psoo-bp__brain-label { fill: #cbd5e1; font: 600 11px Inter, system-ui, sans-serif; pointer-events: none; paint-order: stroke; stroke: rgba(10,14,28,0.85); stroke-width: 3; }
            .psoo-bp__brain-label--hover { fill: #fff; }

            .psoo-bp__brain-legend { position: absolute; bottom: 14px; left: 14px; display: flex; flex-wrap: wrap; gap: 10px 14px; padding: 8px 12px; background: rgba(10,14,28,0.78); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
            .psoo-bp__brain-legend-item { display: inline-flex; align-items: center; gap: 6px; font-size: 11px; color: #94a3b8; }
            .psoo-bp__brain-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--c, #94a3b8); box-shadow: 0 0 8px var(--c, #94a3b8); }

            .psoo-bp__brain-popover { position: absolute; top: 16px; right: 16px; max-width: 320px; padding: 14px 16px 16px; background: rgba(11,14,20,0.96); border: 1px solid rgba(99,102,241,0.30); border-radius: 14px; box-shadow: 0 20px 48px rgba(0,0,0,0.55); color: #e2e8f0; backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); animation: psooBrainPopIn .18s ease-out; }
            @keyframes psooBrainPopIn { from { opacity: 0; transform: translateY(-4px) scale(0.97); } to { opacity: 1; transform: none; } }
            .psoo-bp__brain-popover[hidden] { display: none; }
            .psoo-bp__brain-popover-close { position: absolute; top: 6px; right: 8px; background: transparent; border: 0; color: #94a3b8; font-size: 20px; line-height: 1; cursor: pointer; padding: 4px 6px; }
            .psoo-bp__brain-popover-close:hover { color: #fff; }
            .psoo-bp__brain-popover-title { margin: 0 24px 4px 0; font-size: 14px; font-weight: 800; color: #fff; }
            .psoo-bp__brain-popover-type { margin: 0 0 8px; font-size: 10px; text-transform: uppercase; letter-spacing: .12em; color: #a5b4fc; font-weight: 700; }
            .psoo-bp__brain-popover-body { font-size: 12.5px; line-height: 1.55; color: #cbd5e1; }
            .psoo-bp__brain-popover-body em { color: #94a3b8; font-style: italic; }

            /* ── Wireframe sub-tab ──
               Renders the saved [aipa_wireframe] HTML pulled from the
               linked subsite via the gdc-app-manager wireframe-html mirror.
               Visitors get a chrome-less iframe; group admins get a toolbar
               with Replace + Add-On (section/page) regenerate actions that
               deep-link to the customer subsite where the chatflow lives. */
            .psoo-bp__wf-stage { display: flex; flex-direction: column; min-height: 640px; padding: 0; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 18px; overflow: hidden; }
            .psoo-bp__wf-empty { text-align: center; max-width: 480px; color: #94a3b8; margin: 80px auto; padding: 0 20px; }
            .psoo-bp__wf-empty-icon { color: #a5b4fc; margin: 0 auto 16px; display: inline-flex; }
            .psoo-bp__wf-empty h3 { font-size: 1.4rem; font-weight: 800; color: #fff; margin: 0 0 10px; }
            .psoo-bp__wf-empty p { line-height: 1.6; margin: 0; }
            .psoo-bp__wf-cta { display: inline-flex; align-items: center; padding: 11px 18px; background: linear-gradient(135deg, #6366f1, #a78bfa); color: #fff; font-size: 13px; font-weight: 700; letter-spacing: .02em; border-radius: 10px; text-decoration: none; transition: filter .15s, transform .15s; }
            .psoo-bp__wf-cta:hover { filter: brightness(1.1); transform: translateY(-1px); color: #fff; }

            .psoo-bp__wf-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px; background: rgba(10,14,28,0.85); border-bottom: 1px solid rgba(255,255,255,0.08); flex-wrap: wrap; }
            .psoo-bp__wf-toolbar-meta { display: inline-flex; align-items: center; gap: 12px; flex-wrap: wrap; }
            .psoo-bp__wf-toolbar-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 4px 10px; background: rgba(99,102,241,0.18); color: #c7d2fe; font-size: 10.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; border-radius: 999px; }
            .psoo-bp__wf-toolbar-eyebrow::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #34d399; box-shadow: 0 0 8px #34d399; }
            .psoo-bp__wf-toolbar-stamp { font-size: 11.5px; color: #64748b; }

            .psoo-bp__wf-toolbar-actions { display: inline-flex; gap: 8px; position: relative; }
            .psoo-bp__wf-btn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; font-size: 12px; font-weight: 700; letter-spacing: .02em; border-radius: 8px; text-decoration: none; border: 1px solid transparent; cursor: pointer; background: transparent; transition: background .15s, color .15s, border-color .15s; }
            .psoo-bp__wf-btn--replace { color: #fca5a5; background: rgba(239,68,68,0.12); border-color: rgba(239,68,68,0.35); }
            .psoo-bp__wf-btn--replace:hover { color: #fff; background: rgba(239,68,68,0.22); }
            .psoo-bp__wf-btn--addon { color: #a5b4fc; background: rgba(99,102,241,0.18); border-color: rgba(99,102,241,0.40); }
            .psoo-bp__wf-btn--addon:hover { color: #fff; background: rgba(99,102,241,0.28); }

            .psoo-bp__wf-addon { position: relative; }
            .psoo-bp__wf-addon-menu { position: absolute; top: calc(100% + 6px); right: 0; min-width: 200px; padding: 4px; background: #0f172a; border: 1px solid rgba(255,255,255,0.12); border-radius: 8px; box-shadow: 0 16px 36px rgba(0,0,0,0.55); z-index: 10; }
            .psoo-bp__wf-addon-menu[hidden] { display: none; }
            .psoo-bp__wf-addon-menu a { display: block; padding: 9px 12px; color: #e2e8f0; font-size: 12.5px; text-decoration: none; border-radius: 6px; transition: background .12s; }
            .psoo-bp__wf-addon-menu a:hover { background: rgba(99,102,241,0.18); color: #fff; }

            .psoo-bp__wf-frame { flex: 1; width: 100%; min-height: 620px; border: 0; display: block; background: #fff; }

            /* ── Investment Contract (Funding Request) ── */
            .psoo-bp__ic { margin-top: 22px; padding: 24px 24px 26px; background: radial-gradient(ellipse at top left, rgba(34,211,238,0.08), rgba(11,14,20,0) 60%), rgba(11,14,20,0.7); border: 1px solid rgba(34,211,238,0.20); border-radius: 16px; position: relative; overflow: hidden; }
            .psoo-bp__ic::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 70%, rgba(167,139,250,0.06)); pointer-events: none; }
            .psoo-bp__ic > * { position: relative; }
            .psoo-bp__ic-header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 18px; }
            .psoo-bp__ic-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__ic-help { margin: 0; font-size: 13px; color: #94a3b8; max-width: 700px; line-height: 1.55; }
            .psoo-bp__ic-save { padding: 9px 16px; background: linear-gradient(135deg, #22d3ee, #a78bfa); color: #0a0e1c; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: filter .15s, transform .15s; white-space: nowrap; }
            .psoo-bp__ic-save:hover { filter: brightness(1.1); transform: translateY(-1px); }
            .psoo-bp__ic-save:disabled { opacity: 0.55; cursor: progress; }

            .psoo-bp__ic-card { padding: 16px 18px 18px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; margin-bottom: 14px; }
            .psoo-bp__ic-card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
            .psoo-bp__ic-card-eyebrow { margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: #22d3ee; }
            .psoo-bp__ic-card-header .psoo-bp__ic-card-eyebrow { margin: 0; }

            .psoo-bp__ic-proposal { color: #cbd5e1; font-size: 13.5px; line-height: 1.65; outline: none; min-height: 80px; }
            .psoo-bp__ic-proposal h4 { color: #fff; font-size: 13px; font-weight: 800; letter-spacing: .02em; margin: 14px 0 6px; text-transform: uppercase; }
            .psoo-bp__ic-proposal h4:first-child { margin-top: 0; }
            .psoo-bp__ic-proposal p { margin: 0 0 10px; }
            .psoo-bp__ic-proposal.is-editable { border: 1px dashed rgba(34,211,238,0.25); border-radius: 9px; padding: 12px 14px; transition: border-color .15s; }
            .psoo-bp__ic-proposal.is-editable:focus { border-color: rgba(34,211,238,0.65); }

            .psoo-bp__ic-add { padding: 7px 12px; background: rgba(34,211,238,0.12); color: #22d3ee; border: 1px solid rgba(34,211,238,0.35); border-radius: 8px; font-size: 11px; font-weight: 700; letter-spacing: .04em; cursor: pointer; transition: background .15s, color .15s; }
            .psoo-bp__ic-add:hover { background: rgba(34,211,238,0.20); color: #fff; }

            .psoo-bp__ic-milestones { display: flex; flex-direction: column; gap: 12px; }
            .psoo-bp__ic-milestone { display: flex; flex-direction: column; gap: 12px; padding: 14px 16px; background: rgba(11,14,20,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; }
            .psoo-bp__ic-milestone-head { display: grid; grid-template-columns: 18px 1fr auto; gap: 12px; align-items: flex-start; }
            .psoo-bp__ic-milestone-grip { color: #475569; font-size: 12px; line-height: 1.6; user-select: none; padding-top: 2px; }
            .psoo-bp__ic-milestone-body { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__ic-milestone-title { width: 100%; padding: 7px 10px; background: rgba(15,23,42,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 13px; font-weight: 700; border-radius: 7px; outline: none; }
            .psoo-bp__ic-milestone-title:focus { border-color: rgba(34,211,238,0.55); }
            .psoo-bp__ic-milestone-desc { width: 100%; padding: 7px 10px; background: rgba(15,23,42,0.78); border: 1px solid rgba(255,255,255,0.08); color: #cbd5e1; font-size: 12.5px; border-radius: 7px; outline: none; resize: vertical; font-family: inherit; line-height: 1.5; }
            .psoo-bp__ic-milestone-desc:focus { border-color: rgba(34,211,238,0.40); }
            .psoo-bp__ic-milestone-del { width: 26px; height: 26px; padding: 0; background: transparent; border: 1px solid rgba(248,113,113,0.30); color: #fca5a5; border-radius: 6px; cursor: pointer; font-size: 16px; line-height: 1; transition: background .15s, color .15s; align-self: center; }
            .psoo-bp__ic-milestone-del:hover { background: rgba(248,113,113,0.18); color: #fff; }

            .psoo-bp__ic-milestone-tasks { padding: 10px 12px 12px; background: rgba(15,23,42,0.55); border: 1px dashed rgba(34,211,238,0.18); border-radius: 9px; display: flex; flex-direction: column; gap: 8px; }
            .psoo-bp__ic-milestone-tasks-label { margin: 0; font-size: 9.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__ic-milestone-chips { display: flex; flex-wrap: wrap; gap: 6px; min-height: 6px; }
            .psoo-bp__ic-chip { display: inline-flex; align-items: center; gap: 8px; padding: 5px 10px 5px 12px; background: rgba(34,211,238,0.10); border: 1px solid rgba(34,211,238,0.30); border-radius: 999px; font-size: 12px; color: #e2e8f0; }
            .psoo-bp__ic-chip-name { font-weight: 600; }
            .psoo-bp__ic-chip-credits { font-size: 11px; font-weight: 700; color: #22d3ee; font-variant-numeric: tabular-nums; }
            .psoo-bp__ic-chip-del { width: 18px; height: 18px; padding: 0; background: transparent; border: 0; color: #94a3b8; border-radius: 50%; font-size: 14px; line-height: 1; cursor: pointer; transition: background .15s, color .15s; }
            .psoo-bp__ic-chip-del:hover { background: rgba(248,113,113,0.20); color: #fff; }
            .psoo-bp__ic-milestone-add-row { display: flex; }
            .psoo-bp__ic-milestone-add-select { width: 100%; padding: 7px 10px; background: rgba(11,14,20,0.78); border: 1px solid rgba(34,211,238,0.20); color: #22d3ee; font-size: 12px; font-weight: 600; border-radius: 7px; outline: none; cursor: pointer; }
            .psoo-bp__ic-milestone-add-select:focus { border-color: rgba(34,211,238,0.55); }
            .psoo-bp__ic-milestone-total { margin: 2px 0 0; display: flex; justify-content: space-between; align-items: baseline; font-size: 11px; color: #94a3b8; padding-top: 6px; border-top: 1px solid rgba(255,255,255,0.05); }
            .psoo-bp__ic-milestone-total strong { color: #fff; font-size: 13px; font-weight: 800; font-variant-numeric: tabular-nums; }
            .psoo-bp__ic-no-products { margin: 10px 0 0; padding: 10px 14px; background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.20); border-radius: 8px; color: #fbbf24; font-size: 12px; line-height: 1.5; }

            .psoo-bp__ic-field-hint { display: block; font-size: 10.5px; color: #64748b; line-height: 1.45; margin-top: 4px; }

            .psoo-bp__ic-pricing-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
            .psoo-bp__ic-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__ic-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__ic-input { position: relative; display: flex; align-items: center; }
            .psoo-bp__ic-input input { width: 100%; padding: 10px 38px 10px 12px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 14px; font-weight: 700; border-radius: 9px; outline: none; font-variant-numeric: tabular-nums; }
            .psoo-bp__ic-input input:focus { border-color: rgba(34,211,238,0.55); box-shadow: 0 0 0 1px rgba(34,211,238,0.30); }
            .psoo-bp__ic-input > span { position: absolute; right: 12px; font-size: 11px; font-weight: 700; color: #64748b; pointer-events: none; }
            .psoo-bp__ic-field select { width: 100%; padding: 10px 12px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 13px; font-weight: 600; border-radius: 9px; outline: none; cursor: pointer; }
            .psoo-bp__ic-field select:focus { border-color: rgba(34,211,238,0.55); box-shadow: 0 0 0 1px rgba(34,211,238,0.30); }

            .psoo-bp__ic-totals { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin-top: 6px; }
            .psoo-bp__ic-total { padding: 16px 18px 14px; background: rgba(11,14,20,0.65); border: 1px solid rgba(34,211,238,0.20); border-radius: 12px; position: relative; overflow: hidden; }
            .psoo-bp__ic-total::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #22d3ee, #a78bfa); }
            .psoo-bp__ic-total-label { margin: 0 0 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__ic-total-value { margin: 0; font-size: 1.5rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.1; }
            .psoo-bp__ic-total-value--money { color: #34d399; text-shadow: 0 0 18px rgba(52,211,153,0.30); }
            .psoo-bp__ic-total-value--token { color: #22d3ee; text-shadow: 0 0 18px rgba(34,211,238,0.30); }
            .psoo-bp__ic-total-foot { margin: 6px 0 0; font-size: 11px; color: #64748b; }

            .psoo-bp__ic-status { margin-top: 12px; min-height: 18px; font-size: 12px; color: #64748b; }
            .psoo-bp__ic-status.is-ok { color: #34d399; }
            .psoo-bp__ic-status.is-err { color: #fca5a5; }

            @media (max-width: 720px) {
                .psoo-bp__ic-milestone { grid-template-columns: 1fr; }
                .psoo-bp__ic-milestone-grip { display: none; }
                .psoo-bp__ic-milestone-del { align-self: flex-start; }
            }

            /* ── Fund Stake widget (member-facing Buy/Stake) ── */
            .psoo-bp__fs { margin-top: 22px; padding: 24px 24px 26px; background: radial-gradient(ellipse at top right, rgba(52,211,153,0.10), rgba(11,14,20,0) 60%), rgba(11,14,20,0.7); border: 1px solid rgba(52,211,153,0.22); border-radius: 16px; position: relative; overflow: hidden; }
            .psoo-bp__fs::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 70%, rgba(34,211,238,0.06)); pointer-events: none; }
            .psoo-bp__fs > * { position: relative; }
            .psoo-bp__fs-header { margin-bottom: 16px; }
            .psoo-bp__fs-title { margin: 0 0 6px; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__fs-help { margin: 0; font-size: 12.5px; color: #94a3b8; max-width: 760px; line-height: 1.6; }

            .psoo-bp__fs-progress { margin-bottom: 18px; padding: 14px 16px 12px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
            .psoo-bp__fs-progress-bar { height: 8px; background: rgba(11,14,20,0.78); border-radius: 999px; overflow: hidden; position: relative; margin-bottom: 8px; }
            .psoo-bp__fs-progress-bar::before { content: ""; position: absolute; inset: 0; width: var(--p, 0%); background: linear-gradient(90deg, #34d399, #22d3ee); transition: width .4s ease; border-radius: 999px; box-shadow: 0 0 16px rgba(52,211,153,0.40); }
            .psoo-bp__fs-progress-labels { display: flex; justify-content: space-between; font-size: 12px; color: #94a3b8; font-variant-numeric: tabular-nums; }
            .psoo-bp__fs-progress-labels strong { color: #fff; font-weight: 800; }

            .psoo-bp__fs-bal { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 16px; }
            .psoo-bp__fs-bal-item { padding: 14px 16px 12px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; position: relative; overflow: hidden; }
            .psoo-bp__fs-bal-item::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px; background: linear-gradient(90deg, #34d399, #22d3ee); }
            .psoo-bp__fs-bal-label { margin: 0 0 4px; font-size: 9.5px; font-weight: 700; letter-spacing: .10em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fs-bal-value { margin: 0; font-size: 1.1rem; font-weight: 900; color: #fff; font-variant-numeric: tabular-nums; line-height: 1.15; }

            .psoo-bp__fs-stake { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: stretch; padding: 16px 18px; background: rgba(15,23,42,0.55); border: 1px solid rgba(34,211,238,0.18); border-radius: 12px; }
            .psoo-bp__fs-stake-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__fs-stake-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fs-stake-input { position: relative; display: flex; align-items: center; }
            .psoo-bp__fs-stake-input input { width: 100%; padding: 12px 56px 12px 14px; background: rgba(11,14,20,0.78); border: 1px solid rgba(34,211,238,0.22); color: #fff; font-size: 16px; font-weight: 700; border-radius: 10px; outline: none; font-variant-numeric: tabular-nums; }
            .psoo-bp__fs-stake-input input:focus { border-color: rgba(34,211,238,0.65); box-shadow: 0 0 0 1px rgba(34,211,238,0.30); }
            .psoo-bp__fs-stake-input > span { position: absolute; right: 14px; color: #64748b; font-size: 11px; font-weight: 700; pointer-events: none; }
            .psoo-bp__fs-stake-btn { margin-top: 8px; padding: 12px 14px; background: linear-gradient(135deg, #34d399, #22d3ee); color: #0a0e1c; border: 0; border-radius: 10px; font-size: 13px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: filter .15s, transform .15s; }
            .psoo-bp__fs-stake-btn:hover { filter: brightness(1.10); transform: translateY(-1px); }
            .psoo-bp__fs-stake-btn:disabled { opacity: .55; cursor: progress; }
            .psoo-bp__fs-stake-status { margin: 6px 0 0; min-height: 16px; font-size: 12px; color: #64748b; }
            .psoo-bp__fs-stake-status.is-ok { color: #34d399; }
            .psoo-bp__fs-stake-status.is-err { color: #fca5a5; }

            .psoo-bp__fs-preview { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; background: rgba(11,14,20,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 10px; }
            .psoo-bp__fs-preview-row { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; color: #94a3b8; padding: 4px 0; }
            .psoo-bp__fs-preview-row strong { color: #fff; font-weight: 800; font-variant-numeric: tabular-nums; }
            .psoo-bp__fs-preview-row--total { margin-top: 4px; padding-top: 8px; border-top: 1px solid rgba(52,211,153,0.18); }
            .psoo-bp__fs-preview-row--total strong { color: #34d399; }

            .psoo-bp__fs-unavailable { margin: 0; padding: 12px 16px; background: rgba(251,191,36,0.06); border: 1px solid rgba(251,191,36,0.22); border-radius: 10px; color: #fbbf24; font-size: 13px; }

            @media (max-width: 720px) {
                .psoo-bp__fs-stake { grid-template-columns: 1fr; }
            }

            /* ── Appendix ── */
            .psoo-bp__appendix-wrap { background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 14px; padding: 26px 28px; }
            .psoo-bp__appendix-help { color:#94a3b8; font-size: 13px; line-height: 1.6; margin: 0 0 18px; }

            /* ── Prompt Sequences widget (Organization & Management) ── */
            .psoo-bp__seq { margin-top: 22px; padding: 24px 24px 26px; background: radial-gradient(ellipse at top left, rgba(167,139,250,0.10), rgba(11,14,20,0) 60%), rgba(11,14,20,0.7); border: 1px solid rgba(167,139,250,0.22); border-radius: 16px; position: relative; overflow: hidden; }
            .psoo-bp__seq::before { content: ""; position: absolute; inset: 0; background: linear-gradient(135deg, transparent 70%, rgba(34,211,238,0.05)); pointer-events: none; }
            .psoo-bp__seq > * { position: relative; }
            .psoo-bp__seq-header { display: flex; gap: 16px; justify-content: space-between; align-items: flex-start; margin-bottom: 16px; }
            .psoo-bp__seq-title { margin: 0 0 4px; font-size: 1.05rem; font-weight: 800; color: #fff; }
            .psoo-bp__seq-help { margin: 0; font-size: 12.5px; color: #94a3b8; max-width: 760px; line-height: 1.6; }
            .psoo-bp__seq-new { padding: 9px 14px; background: linear-gradient(135deg, #a78bfa, #f472b6); color: #0a0e1c; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; transition: filter .15s, transform .15s; white-space: nowrap; }
            .psoo-bp__seq-new:hover { filter: brightness(1.1); transform: translateY(-1px); }

            .psoo-bp__seq-chart { padding: 18px; min-height: 220px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; margin-bottom: 16px; overflow-x: auto; }
            .psoo-bp__seq-empty { margin: 30px auto; max-width: 480px; text-align: center; color: #94a3b8; font-size: 13.5px; line-height: 1.6; }
            .psoo-bp__seq-tree { display: flex; justify-content: center; }
            .psoo-bp__seq-tree ul { list-style: none; padding: 0 12px 0 12px; margin: 0; display: flex; gap: 14px; position: relative; }
            .psoo-bp__seq-tree li { position: relative; padding-top: 18px; display: flex; flex-direction: column; align-items: center; }
            .psoo-bp__seq-tree li::before { content: ""; position: absolute; top: 0; left: 50%; width: 1px; height: 12px; background: rgba(167,139,250,0.30); transform: translateX(-50%); }
            .psoo-bp__seq-tree li:only-child::before { display: block; }
            .psoo-bp__seq-tree ul > li:not(:only-child)::after { content: ""; position: absolute; top: 0; height: 1px; background: rgba(167,139,250,0.30); }
            .psoo-bp__seq-tree ul > li:not(:only-child):first-child::after { left: 50%; right: -7px; }
            .psoo-bp__seq-tree ul > li:not(:only-child):last-child::after { left: -7px; right: 50%; }
            .psoo-bp__seq-tree ul > li:not(:only-child):not(:first-child):not(:last-child)::after { left: -7px; right: -7px; }
            .psoo-bp__seq-tree li > ul { margin-top: 8px; }

            .psoo-bp__seq-node { display: flex; flex-direction: column; gap: 4px; padding: 12px 16px; background: rgba(11,14,20,0.65); border: 1px solid rgba(255,255,255,0.10); border-radius: 10px; min-width: 160px; max-width: 220px; text-align: center; cursor: pointer; transition: border-color .15s, transform .15s; position: relative; }
            .psoo-bp__seq-node:hover { border-color: rgba(167,139,250,0.55); transform: translateY(-1px); }
            .psoo-bp__seq-node-name { margin: 0; font-size: 13.5px; font-weight: 800; color: #fff; }
            .psoo-bp__seq-node-role { margin: 0; font-size: 11px; color: #a78bfa; font-weight: 600; letter-spacing: .02em; }
            .psoo-bp__seq-node-dept { margin: 0; font-size: 10px; color: #64748b; text-transform: uppercase; letter-spacing: .08em; }
            .psoo-bp__seq-node-meta { margin: 0; font-size: 10.5px; color: #94a3b8; }

            .psoo-bp__seq-all { padding: 18px 20px; background: rgba(15,23,42,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 12px; }
            .psoo-bp__seq-all-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; margin-bottom: 12px; }
            .psoo-bp__seq-all-head h4 { margin: 0; font-size: 13px; font-weight: 800; color: #fff; letter-spacing: .02em; }
            .psoo-bp__seq-filters { display: flex; gap: 10px; flex-wrap: wrap; }
            .psoo-bp__seq-filter { display: flex; flex-direction: column; gap: 4px; min-width: 180px; }
            .psoo-bp__seq-filter > span { font-size: 9.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__seq-filter input, .psoo-bp__seq-filter select { width: 100%; padding: 8px 10px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 13px; border-radius: 8px; outline: none; }
            .psoo-bp__seq-filter input:focus, .psoo-bp__seq-filter select:focus { border-color: rgba(167,139,250,0.55); box-shadow: 0 0 0 1px rgba(167,139,250,0.30); }
            .psoo-bp__seq-list { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 10px; }
            .psoo-bp__seq-row { padding: 10px 14px; background: rgba(11,14,20,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 9px; cursor: pointer; transition: border-color .15s; }
            .psoo-bp__seq-row:hover { border-color: rgba(167,139,250,0.40); }
            .psoo-bp__seq-row-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
            .psoo-bp__seq-row-name { margin: 0; font-size: 13px; font-weight: 700; color: #fff; }
            .psoo-bp__seq-row-dept { margin: 0; font-size: 10px; padding: 2px 8px; background: rgba(167,139,250,0.10); color: #c4b5fd; border-radius: 999px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
            .psoo-bp__seq-row-role { margin: 4px 0 0; font-size: 11px; color: #94a3b8; }
            .psoo-bp__seq-row-meta { margin: 4px 0 0; font-size: 10.5px; color: #64748b; }
            .psoo-bp__seq-list-empty { padding: 20px; text-align: center; color: #94a3b8; font-size: 12.5px; grid-column: 1 / -1; }

            /* Edit modal */
            .psoo-bp__seq-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: center; justify-content: center; }
            .psoo-bp__seq-modal[hidden] { display: none; }
            .psoo-bp__seq-backdrop { position: absolute; inset: 0; background: rgba(2,6,12,0.78); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
            .psoo-bp__seq-dialog { position: relative; max-width: 540px; width: calc(100% - 32px); max-height: calc(100vh - 80px); display: flex; flex-direction: column; background: linear-gradient(180deg, rgba(15,23,42,0.98), rgba(11,14,20,0.98)); border: 1px solid rgba(167,139,250,0.30); border-radius: 16px; box-shadow: 0 30px 70px rgba(0,0,0,0.7); overflow: hidden; }
            .psoo-bp__seq-dialog-head { display: flex; justify-content: space-between; align-items: center; padding: 14px 18px; border-bottom: 1px solid rgba(255,255,255,0.06); }
            .psoo-bp__seq-dialog-head h4 { margin: 0; font-size: 14px; font-weight: 800; color: #fff; }
            .psoo-bp__seq-dialog-close { background: transparent; border: 0; color: #94a3b8; font-size: 22px; line-height: 1; cursor: pointer; padding: 4px 8px; }
            .psoo-bp__seq-dialog-close:hover { color: #fff; }
            .psoo-bp__seq-dialog-body { padding: 16px 18px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
            .psoo-bp__seq-field { display: flex; flex-direction: column; gap: 5px; }
            .psoo-bp__seq-field > span { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__seq-field input, .psoo-bp__seq-field select, .psoo-bp__seq-field textarea { width: 100%; padding: 9px 11px; background: rgba(11,14,20,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 13px; border-radius: 8px; outline: none; font-family: inherit; }
            .psoo-bp__seq-field input:focus, .psoo-bp__seq-field select:focus, .psoo-bp__seq-field textarea:focus { border-color: rgba(167,139,250,0.55); box-shadow: 0 0 0 1px rgba(167,139,250,0.30); }
            .psoo-bp__seq-field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
            .psoo-bp__seq-prompts-label { margin: 4px 0 0; font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__seq-prompts { display: flex; flex-direction: column; gap: 8px; }
            .psoo-bp__seq-prompt { display: grid; grid-template-columns: 1fr auto; gap: 6px; padding: 10px 12px; background: rgba(11,14,20,0.55); border: 1px solid rgba(255,255,255,0.06); border-radius: 8px; }
            .psoo-bp__seq-prompt textarea { width: 100%; padding: 7px 9px; background: rgba(15,23,42,0.78); border: 1px solid rgba(255,255,255,0.10); color: #fff; font-size: 12.5px; border-radius: 6px; outline: none; resize: vertical; font-family: inherit; line-height: 1.5; }
            .psoo-bp__seq-prompt-del { width: 26px; height: 26px; padding: 0; background: transparent; border: 1px solid rgba(248,113,113,0.30); color: #fca5a5; border-radius: 6px; cursor: pointer; font-size: 15px; line-height: 1; align-self: start; }
            .psoo-bp__seq-prompt-del:hover { background: rgba(248,113,113,0.18); color: #fff; }
            .psoo-bp__seq-prompt-add { align-self: flex-start; padding: 6px 12px; background: rgba(167,139,250,0.10); color: #c4b5fd; border: 1px solid rgba(167,139,250,0.30); border-radius: 8px; font-size: 11px; font-weight: 700; cursor: pointer; }
            .psoo-bp__seq-prompt-add:hover { background: rgba(167,139,250,0.20); color: #fff; }
            .psoo-bp__seq-dialog-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; border-top: 1px solid rgba(255,255,255,0.06); }
            .psoo-bp__seq-save { padding: 9px 16px; background: linear-gradient(135deg, #a78bfa, #f472b6); color: #0a0e1c; border: 0; border-radius: 10px; font-size: 12px; font-weight: 800; letter-spacing: .04em; cursor: pointer; }
            .psoo-bp__seq-save:disabled { opacity: 0.5; cursor: progress; }
            .psoo-bp__seq-delete { padding: 8px 14px; background: transparent; color: #fca5a5; border: 1px solid rgba(248,113,113,0.35); border-radius: 9px; font-size: 11.5px; font-weight: 700; cursor: pointer; }
            .psoo-bp__seq-delete:hover { background: rgba(248,113,113,0.12); color: #fff; }
            .psoo-bp__seq-modal-status { font-size: 12px; color: #64748b; }
            .psoo-bp__seq-modal-status.is-ok { color: #34d399; }
            .psoo-bp__seq-modal-status.is-err { color: #fca5a5; }

            /* ════════════════════════════════════════════════════════
               FINANCIAL PROJECTIONS DASHBOARD
               ════════════════════════════════════════════════════════ */
            .psoo-bp__fpd { margin-bottom: 8px; }
            .psoo-bp__fpd-header { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 16px; }
            .psoo-bp__fpd-title { margin: 0 0 4px; font-size: 18px; font-weight: 800; color: #f1f5f9; letter-spacing: .01em; }
            .psoo-bp__fpd-help { margin: 0; max-width: 760px; color: #94a3b8; font-size: 13px; line-height: 1.6; }
            .psoo-bp__fpd-savestate { flex: none; font-size: 12px; font-weight: 700; color: #64748b; white-space: nowrap; }

            /* KPI strip */
            .psoo-bp__fpd-kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 18px; }
            .psoo-bp__fpd-kpi { padding: 14px 16px; background: linear-gradient(155deg, rgba(255,255,255,0.04), rgba(11,14,20,0.55)); border: 1px solid rgba(255,255,255,0.07); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__fpd-kpi--accent { border-color: rgba(244,114,182,0.35); background: linear-gradient(155deg, rgba(244,114,182,0.10), rgba(11,14,20,0.55)); }
            .psoo-bp__fpd-kpi-label { font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fpd-kpi-val { font-size: 20px; font-weight: 800; color: #f1f5f9; }
            .psoo-bp__fpd-kpi--accent .psoo-bp__fpd-kpi-val { color: #f9a8d4; }

            /* Inner tab strip */
            .psoo-bp__fpd-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 1px solid rgba(255,255,255,0.08); margin-bottom: 18px; }
            .psoo-bp__fpd-tab { background: transparent; border: 0; color: #94a3b8; padding: 11px 18px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; cursor: pointer; border-bottom: 2px solid transparent; transition: color .15s, border-color .15s; }
            .psoo-bp__fpd-tab:hover { color: #e2e8f0; }
            .psoo-bp__fpd-tab.is-active { color: #fff; border-bottom-color: #6366f1; }

            /* Panels */
            .psoo-bp__fpd-panel { display: none; animation: psooFpdFade .2s ease-out; }
            .psoo-bp__fpd-panel.is-active { display: block; }
            @keyframes psooFpdFade { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }

            .psoo-bp__fpd-section { margin-bottom: 22px; }
            .psoo-bp__fpd-section-title { margin: 0 0 4px; font-size: 14px; font-weight: 800; color: #e2e8f0; }
            .psoo-bp__fpd-section-help { margin: 0 0 12px; color: #94a3b8; font-size: 12.5px; line-height: 1.55; max-width: 720px; }

            /* Fields */
            .psoo-bp__fpd-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
            .psoo-bp__fpd-field { display: flex; flex-direction: column; gap: 6px; }
            .psoo-bp__fpd-field-label { font-size: 11.5px; font-weight: 600; color: #cbd5e1; }
            .psoo-bp__fpd-field-input { display: flex; align-items: stretch; background: rgba(2,6,23,0.45); border: 1px solid rgba(255,255,255,0.10); border-radius: 9px; overflow: hidden; }
            .psoo-bp__fpd-field-input:focus-within { border-color: #6366f1; }
            .psoo-bp__fpd-field-input input { flex: 1; min-width: 0; background: transparent; border: 0; color: #f1f5f9; font-size: 13px; padding: 9px 11px; outline: none; }
            .psoo-bp__fpd-field-input input:disabled { color: #cbd5e1; -webkit-text-fill-color: #cbd5e1; opacity: 0.85; }
            .psoo-bp__fpd-field-suffix { display: flex; align-items: center; padding: 0 11px; background: rgba(255,255,255,0.04); color: #94a3b8; font-size: 12px; font-weight: 700; border-left: 1px solid rgba(255,255,255,0.08); }

            /* Channels */
            .psoo-bp__fpd-channel { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; margin-bottom: 10px; }
            .psoo-bp__fpd-channel-name { flex: 1 1 160px; font-size: 13px; font-weight: 700; color: #e2e8f0; }
            .psoo-bp__fpd-channel-fields { display: flex; flex-wrap: wrap; gap: 10px; flex: 2 1 320px; }
            .psoo-bp__fpd-channel-fields .psoo-bp__fpd-field { flex: 1 1 120px; }

            /* Category drill-down */
            .psoo-bp__fpd-cat { border: 1px solid rgba(255,255,255,0.07); border-radius: 11px; margin-bottom: 10px; overflow: hidden; }
            .psoo-bp__fpd-cat.is-open { border-color: rgba(99,102,241,0.30); }
            .psoo-bp__fpd-cat-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; padding: 10px 12px; background: rgba(255,255,255,0.02); }
            .psoo-bp__fpd-cat-toggle { flex: 1 1 220px; display: flex; align-items: center; gap: 10px; background: transparent; border: 0; color: #e2e8f0; font-size: 13px; font-weight: 700; cursor: pointer; text-align: left; padding: 0; }
            .psoo-bp__fpd-cat-caret { display: inline-block; transition: transform .15s; color: #818cf8; }
            .psoo-bp__fpd-cat.is-open .psoo-bp__fpd-cat-caret { transform: rotate(90deg); }
            .psoo-bp__fpd-cat-count { font-size: 11px; font-weight: 600; color: #64748b; }
            .psoo-bp__fpd-cat-sum { font-size: 10.5px; font-weight: 700; color: #818cf8; background: rgba(99,102,241,0.10); border: 1px solid rgba(99,102,241,0.22); border-radius: 999px; padding: 2px 9px; white-space: nowrap; }
            .psoo-bp__fpd-cat-sum:empty { display: none; }
            .psoo-bp__fpd-cat-head .psoo-bp__fpd-field { flex: 0 1 220px; }
            .psoo-bp__fpd-cat-body { padding: 12px 14px; border-top: 1px solid rgba(255,255,255,0.06); display: flex; flex-direction: column; gap: 10px; }
            .psoo-bp__fpd-product { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }
            .psoo-bp__fpd-product-name { flex: 1 1 220px; font-size: 12.5px; color: #cbd5e1; }
            .psoo-bp__fpd-product-fields { display: flex; gap: 10px; flex: 0 1 260px; }
            .psoo-bp__fpd-product-fields .psoo-bp__fpd-field { flex: 1 1 110px; }

            /* Commission programs */
            .psoo-bp__fpd-program { padding: 14px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.06); border-radius: 11px; margin-bottom: 12px; }
            .psoo-bp__fpd-program-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
            .psoo-bp__fpd-program-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: #e2e8f0; cursor: pointer; }
            .psoo-bp__fpd-program-head .psoo-bp__fpd-field { flex: 0 1 180px; }
            .psoo-bp__fpd-tiers { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
            .psoo-bp__fpd-tier-set { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
            .psoo-bp__fpd-tier-setname { font-size: 11.5px; font-weight: 700; color: #94a3b8; }
            .psoo-bp__fpd-tier { font-size: 11px; font-weight: 600; color: #c7d2fe; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); border-radius: 999px; padding: 3px 9px; }

            /* Readouts */
            .psoo-bp__fpd-readouts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
            .psoo-bp__fpd-readout { display: flex; flex-direction: column; gap: 3px; padding: 10px 14px; background: rgba(2,6,23,0.4); border: 1px solid rgba(255,255,255,0.07); border-radius: 10px; min-width: 140px; }
            .psoo-bp__fpd-readout.is-accent { border-color: rgba(52,211,153,0.30); }
            .psoo-bp__fpd-readout-label { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: #94a3b8; }
            .psoo-bp__fpd-readout-val { font-size: 16px; font-weight: 800; color: #f1f5f9; }

            /* Derived-card affordance on the output engine */
            .psoo-bp__fp-card.is-derived::after { content: ""; position: absolute; inset: 0; pointer-events: none; box-shadow: inset 0 0 0 1px rgba(99,102,241,0.18); border-radius: 12px; }
            .psoo-bp__fp-card-driven { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; margin-left: 6px; border-radius: 5px; color: #818cf8; font-size: 12px; font-weight: 800; background: rgba(99,102,241,0.12); border: 1px solid rgba(99,102,241,0.25); vertical-align: middle; }

            @media (max-width: 720px) {
                .psoo-bp__fpd-header { flex-direction: column; }
                .psoo-bp__fpd-channel-fields, .psoo-bp__fpd-product-fields { flex-basis: 100%; }
            }

            /* ── "Builds itself" — staggered entrance + dynamic polish ── */
            @keyframes psooFpdBuildIn {
                0%   { opacity: 0; transform: translateY(14px) scale(.975); filter: blur(3px); }
                60%  { filter: blur(0); }
                100% { opacity: 1; transform: none; filter: blur(0); }
            }
            @keyframes psooFpdSheen {
                0%   { transform: translateX(-120%); }
                100% { transform: translateX(220%); }
            }
            .psoo-bp__fpd .fpd-in {
                animation: psooFpdBuildIn .58s cubic-bezier(.22,.61,.36,1) both;
                animation-delay: calc(var(--i, 0) * 48ms);
                will-change: opacity, transform;
            }
            /* The panel-level fade is replaced by per-item staggering. */
            .psoo-bp__fpd-panel.is-active { animation: none; }

            /* KPI strip — lift on hover + an accent sweep on entrance. */
            .psoo-bp__fpd-kpi { position: relative; overflow: hidden; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease; }
            .psoo-bp__fpd-kpi::after { content: ""; position: absolute; top: 0; bottom: 0; width: 40%; background: linear-gradient(100deg, transparent, rgba(255,255,255,0.08), transparent); transform: translateX(-120%); pointer-events: none; }
            .psoo-bp__fpd-kpi.fpd-in::after { animation: psooFpdSheen 1.1s ease-out .25s 1 both; }
            .psoo-bp__fpd-kpi:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,0,0,0.38); border-color: rgba(99,102,241,0.40); }
            .psoo-bp__fpd-kpi-val { transition: color .25s ease; font-variant-numeric: tabular-nums; }
            .psoo-bp__fpd-kpi.is-pulsing .psoo-bp__fpd-kpi-val { color: #fff; }

            /* Readouts, channels, categories, programs — gentle hover lift. */
            .psoo-bp__fpd-readout, .psoo-bp__fpd-channel, .psoo-bp__fpd-program { transition: transform .16s ease, border-color .16s ease; }
            .psoo-bp__fpd-readout:hover, .psoo-bp__fpd-channel:hover { transform: translateY(-2px); border-color: rgba(99,102,241,0.30); }
            .psoo-bp__fpd-tab { transition: color .15s, border-color .15s, transform .15s; }
            .psoo-bp__fpd-tab:active { transform: scale(.97); }
            .psoo-bp__fp-card { transition: transform .18s ease, box-shadow .18s ease; }
            .psoo-bp__fp-card:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(0,0,0,0.30); }

            @media (prefers-reduced-motion: reduce) {
                .psoo-bp__fpd .fpd-in { animation: none !important; }
                .psoo-bp__fpd-kpi.fpd-in::after { animation: none !important; }
            }