/* Persistent application chrome and content-only page transitions. */
body:has(.ds-persistent-shell){overflow:hidden}
.ds-persistent-shell{height:100dvh;min-height:0;overflow:hidden}
.ds-persistent-shell>.main{display:flex;flex-direction:column;height:100dvh;min-height:0;overflow:hidden}
.ds-persistent-shell .topbar{flex:none}
.ds-container-nav{padding:0 44px 22px;flex:none;container:content / inline-size;position:relative;z-index:25}
.ds-container-nav[hidden]{display:none}
.ds-container-nav .chead{margin:0;overflow:visible}
.ds-container-nav .tabs{border-radius:0 0 16px 16px}
.ds-content-region{position:relative;flex:1;min-height:0;display:flex;flex-direction:column}
.ds-content-region>.content{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable}
.ds-content-region>.content:has(>.ds-reference-frame){padding-bottom:0;overflow:hidden;scrollbar-gutter:auto}
.ds-content-region>.content:has(>.ds-reference-frame)>.ds-reference-frame{display:block;width:100%;height:100%;border:0;min-height:0;background:transparent}
.ds-content-region>.content:has(>.ds-reference-frame.ds-reference-modal){overflow:visible;container-type:normal}
.ds-content-region>.content>.ds-reference-frame.ds-reference-modal{position:fixed;inset:0;width:100%;height:100dvh;z-index:11000}
/* All embedded pages share the host scroll with route notices. */
.ds-content-region>.content:has(>.ds-reference-frame[data-embedded-page]){overflow:auto;scrollbar-gutter:stable}
.ds-content-region>.content>.ds-reference-frame[data-embedded-page]:not(.ds-reference-modal){height:var(--ds-reference-height,100%)}
.ds-content-region>.content:has(>.ds-reference-frame[data-embedded-page].ds-reference-modal){overflow:hidden}
.ds-content-region>.content:has(>.ds-reference-frame[data-embedded-page].ds-reference-modal)::after{content:"";display:block;height:var(--ds-reference-height,0px)}
.ds-loading-slot{position:absolute;inset:0 7px 0 0;z-index:30;padding:0 44px 40px;overflow:hidden;background:var(--bg)}
.ds-loading-slot[hidden]{display:none}
.ds-skeleton-view{width:100%;pointer-events:none}
.ds-sk-heading{height:76px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.ds-sk-line{display:block;height:11px;max-width:100%;width:38%;border-radius:5px;background:linear-gradient(90deg,#ececf4,#f5f5fa,#ececf4);background-size:200% 100%;animation:ds-shimmer 1.25s ease-in-out infinite}
.ds-sk-heading>.ds-sk-line:first-child{height:25px;width:210px}.ds-sk-heading>.ds-sk-line:last-child{width:135px;height:38px;border-radius:10px}
.ds-sk-block{padding:18px;margin:0 0 14px;background:#fff;border:1px solid var(--line);border-radius:14px;display:grid;gap:18px}
.ds-sk-row{display:flex;gap:24px;align-items:center;justify-content:space-between;min-height:31px}.ds-sk-row .ds-sk-line{width:24%}
.ds-sk-filter>.ds-sk-line{width:85%;height:32px}.ds-sk-kpis .ds-sk-row{min-height:60px}.ds-sk-people .ds-sk-row{min-height:40px}.ds-sk-history{padding-left:42px}
@keyframes ds-shimmer{to{background-position:-200% 0}}
@media(prefers-reduced-motion:reduce){.ds-sk-line{animation:none}}

/* Reference pages render content only; their original controls and dialogs remain intact. */
.ds-embedded-document,.ds-embedded-document body{height:100%;background:var(--bg);overflow:hidden}
.ds-embedded-document .shell{display:block;min-height:0;height:100%}
.ds-embedded-document .shell>.sidebar,.ds-embedded-document .topbar,.ds-embedded-document .chead,.ds-embedded-document .demo-launcher{display:none!important}
.ds-embedded-document .main{height:100%;min-width:0}
.ds-embedded-document .content{height:100%;overflow:auto;overscroll-behavior:contain;padding:0 0 72px;width:100%;max-width:none;scrollbar-gutter:stable}
.ds-flow-document:not(.ds-reference-dialog-open),.ds-flow-document:not(.ds-reference-dialog-open) body{height:auto;overflow:visible}
.ds-flow-document:not(.ds-reference-dialog-open) :is(.shell,.main,.content){height:auto;min-height:0}
.ds-flow-document:not(.ds-reference-dialog-open) .content{overflow:visible;scrollbar-gutter:auto}
.ds-reference-dialog-open,.ds-reference-dialog-open body{background:transparent}
.ds-reference-dialog-open .shell{position:absolute;left:var(--dialog-page-left);top:var(--dialog-page-top);width:var(--dialog-page-width);height:var(--dialog-page-height);overflow:hidden;visibility:visible;pointer-events:none}
body.ds-child-dialog-open :is(.ds-container-nav,.ds-persistent-shell>.sidebar,.ds-persistent-shell .topbar){filter:blur(4px)}

/* Labels follow the same left edge as their values. Full composition appears on focus/hover. */
.ds-route-context .pt,.ds-route-context .pt.r{text-align:left;align-content:center;gap:4px}
.ds-route-context{outline:none;cursor:default}
.ds-route-context:focus-visible{outline:2px solid var(--p);outline-offset:2px;box-shadow:none;border-radius:8px}
.ds-party-popover{display:none;position:absolute;top:calc(100% - 1px);left:8px;width:380px;max-width:calc(100vw - 40px);max-height:min(420px,calc(100dvh - 200px));overflow:auto;padding:16px;background:#fff;border:1px solid var(--line);border-radius:12px;box-shadow:0 12px 34px #26244520;z-index:50;text-align:left}
.ds-route-context:hover>.ds-party-popover,.ds-route-context:focus-within>.ds-party-popover{display:block}
.ds-party-popover-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.ds-party-popover-head>b{font-size:13px}.ds-party-popover-head>span{border-radius:7px;background:var(--ps);color:var(--p);padding:2px 7px;font-size:11px;font-weight:700}
.ds-party-popover>small{display:block;color:var(--muted);font-size:11px;margin:5px 0 12px}
.ds-party-popover-row{display:grid;grid-template-columns:112px minmax(0,1fr);gap:12px;border-top:1px solid var(--line2);padding:9px 0}.ds-party-popover-row>span{color:var(--muted);font-size:10.5px}.ds-party-popover-row>b{font-size:12px;overflow-wrap:anywhere}

/* One financial grid: fixed column rhythm, subtle bands and uniform rows. */
.cu-financial-caption{display:flex;justify-content:space-between;gap:16px;padding:10px 17px;border-bottom:1px solid var(--line2);color:var(--muted);font-size:10.5px}
.cu-financial-caption>span:first-child{font-weight:600}
.cu-financial-table>.table-wrap>.table{table-layout:fixed;min-width:700px;width:100%;font-variant-numeric:tabular-nums}
.cu-financial-table>.table-wrap>.table>thead>tr>th:first-child{width:40%}
.cu-financial-table>.table-wrap>.table>thead>tr>th:not(:first-child){width:20%;text-align:right}
.cu-financial-table>.table-wrap>.table>thead>tr>th{font-size:10px;font-weight:700;color:var(--muted);padding:11px 20px;background:#f8f9fc}
.cu-financial-table .cu-metric>td{padding:15px 20px!important;font-size:12.5px;border-bottom:1px solid var(--line2)}
.cu-financial-table .cu-metric>td:not(:first-child){text-align:right;font-weight:600;border-left:1px solid var(--line2)}
.cu-financial-table .cu-metric>td:nth-child(2){background:#fbfaff}.cu-financial-table .cu-metric>td:nth-child(3){background:#fafcfc}
.cu-financial-table .cu-metric:hover>td,.cu-financial-table .cu-metric.expanded>td{background:#f3f0ff}



.cu-financial-table .cu-disclosure{gap:10px;font-size:12.5px;line-height:1.45}
.cu-financial-table .cu-detail>td{padding:16px!important;background:#f0eef9}
@layer legacy{.cu-financial-table .cu-detail>td{padding:16px!important;background:#f0eef9}}
.cu-comparison-aligned{border:0;border-radius:0;border-bottom:1px solid var(--line)}
.cu-comparison-aligned .cu-detail-table{min-width:700px}
.cu-comparison-aligned .cu-detail-table th:first-child{width:40%;padding-left:50px}
.cu-comparison-aligned .cu-detail-table th:not(:first-child){width:20%;text-align:right}
.cu-comparison-aligned .cu-detail-table :is(th,td){padding:12px 20px!important}
.cu-comparison-aligned .cu-detail-table :is(th,td):first-child{padding-left:50px!important;text-align:left}
.cu-comparison-aligned .cu-detail-table :is(th,td):not(:first-child){text-align:right;border-left:1px solid var(--line2)}
.cu-comparison-aligned .cu-detail-table th{font-size:9px;background:#f8f7fc}
.cu-comparison-aligned .cu-detail-table td:nth-child(2){background:#fbfaff}
.cu-comparison-aligned .cu-detail-table td:nth-child(3){background:#fafcfc}
.cu-inline-context{margin-top:6px;font-size:10.5px;color:var(--muted);line-height:1.5}.cu-inline-context .cu-context-to{display:inline;margin-left:5px}
.ui-form-error{border:1px solid #ecc6c2;background:#fff6f5;color:#9e3330;border-radius:10px;padding:12px 14px;margin-bottom:14px;font-size:12px;line-height:1.5}
.builder{display:grid;grid-template-columns:minmax(0,1.2fr) minmax(0,1fr);gap:18px;align-items:start}
.builder .canvas,.builder .calc-panel{grid-column:auto;padding:18px;min-width:0;min-height:0;max-height:none;overflow:visible;position:static;top:auto;z-index:auto}
.builder .canvas-head{min-height:32px;gap:12px;margin-bottom:14px}
.builder .canvas-head h2{display:flex;align-items:center;gap:8px;margin:0;font-size:14px}
.builder-back{padding:0;border:0;background:transparent;color:var(--muted);font-size:12px;text-align:left;margin-bottom:6px}
.builder-back:hover{color:var(--p)}
.builder-title{padding-top:6px}.builder-title .actions{flex-wrap:wrap;justify-content:flex-end}
.builder .step-block{max-width:none;margin:0 0 16px;background:#fff;border:1px solid var(--line);border-radius:12px;padding:16px}
.builder .step-block>.top{border-bottom:1px solid var(--line2);margin:0 -16px 14px;padding:0 16px 13px}
.builder .step-block.income>.top{border-left:3px solid #6cbea4}.builder .step-block.conversion>.top{border-left:3px solid #a799ef}.builder .step-block.transfer>.top{border-left:3px solid #90afe2}.builder .step-block.execution>.top{border-left:3px solid #9ac4af}
.builder .block-fields{margin-top:0}.builder .step-block .label{font-size:13px;font-weight:700}
.builder-add-bottom{width:100%;border-style:dashed;background:#faf9ff;color:var(--p)}
.cu-plan-result{padding:18px;border:1px solid #e2ddfa;background:#f7f5ff;border-radius:12px;display:grid;gap:7px}
.cu-plan-result>span{font-size:12px;color:#625b83}.cu-plan-result>strong{font-size:23px;letter-spacing:-.02em;font-weight:800;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}.cu-plan-result>small{font-size:10.5px!important;margin:0;color:var(--muted)}
.cu-plan-caption{display:flex;justify-content:space-between;padding:18px 0 10px;font-size:11px;color:var(--muted)}
.cu-plan-metric{border-top:1px solid var(--line2)}
.cu-plan-metric>summary{list-style:none;display:flex;justify-content:space-between;align-items:center;gap:14px;padding:15px 0;cursor:pointer;font-size:12px}
.cu-plan-metric>summary::-webkit-details-marker{display:none}
.cu-plan-metric>summary>span{display:flex;align-items:center;gap:8px;min-width:0}.cu-plan-metric>summary>b{text-align:right;white-space:nowrap;font-variant-numeric:tabular-nums;font-size:12px;font-weight:700}
.cu-plan-metric>summary .cu-chevron{transform:rotate(-90deg);flex:none}.cu-plan-metric[open]>summary .cu-chevron{transform:rotate(0)}
.cu-plan-metric>summary:hover{color:var(--p)}
.cu-plan-sources{border:1px solid var(--line2);border-radius:8px;background:#fafbfe;padding:2px 12px;margin-bottom:12px}
.cu-plan-sources>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(100px,.7fr);gap:12px;padding:11px 0;border-bottom:1px solid var(--line2)}.cu-plan-sources>div:last-child{border-bottom:0}.cu-plan-sources>div>div:last-child{text-align:right}
.cu-plan-sources b{font-size:11.5px;font-weight:600;overflow-wrap:anywhere}.cu-plan-sources small,.cu-plan-sources>p{font-size:10.5px;line-height:1.5;color:var(--muted);overflow-wrap:anywhere}
.step-type-choices{grid-template-columns:1fr 1fr;gap:12px}.step-type-choices .choice{display:grid;align-content:start;gap:10px;padding:18px;text-align:left}.step-type-choices .choice>span:last-child{font-size:12px;font-weight:400;color:var(--muted);line-height:1.5}.step-type-choices .choice>b{font-size:13px}
@container content (max-width:850px){.builder{grid-template-columns:minmax(0,1fr)}.builder .calc-panel{grid-row:1}.builder .canvas{grid-row:2}}
@media(max-width:760px){.ds-container-nav{padding:0 18px 14px}.ds-loading-slot{padding:0 18px 30px}.ds-persistent-shell .topbar{min-height:56px;padding-top:8px;padding-bottom:8px}.ds-party-popover{left:0;max-width:calc(100vw - 56px)}.builder-title{flex-wrap:wrap}.builder-title .actions{justify-content:flex-start}.builder .canvas,.builder .calc-panel{padding:14px}.step-type-choices{grid-template-columns:1fr}.cu-plan-metric>summary{font-size:11px;gap:8px}.cu-plan-metric>summary>b{font-size:11px}}

.cu-plan-metric>summary>b{white-space:normal;overflow-wrap:anywhere;min-width:0;max-width:55%}.cu-plan-result strong,.cu-plan-sources b{overflow-wrap:anywhere}
@media(max-width:760px){}

/* Compact navigation remains available when the desktop sidebar is hidden. */
.ds-mobile-nav{display:none;position:relative;flex:none}.ds-mobile-nav>summary{display:grid;place-items:center;width:32px;height:32px;list-style:none;cursor:pointer;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--p)}.ds-mobile-nav>summary::-webkit-details-marker{display:none}.ds-mobile-nav>summary .icon{width:17px;height:17px}.ds-mobile-nav>nav{position:absolute;left:0;top:40px;z-index:60;width:212px;padding:6px;background:#fff;border:1px solid var(--line);border-radius:11px;box-shadow:0 8px 24px #26244520;display:grid;gap:3px}.ds-mobile-nav nav button{display:flex;align-items:center;gap:9px;padding:11px 10px;border:0;border-radius:7px;background:transparent;color:var(--ink);font-size:12px;text-align:left}.ds-mobile-nav nav button:hover,.ds-mobile-nav nav button[aria-current="page"]{background:var(--ps);color:var(--p)}.ds-mobile-nav nav .icon{width:16px;height:16px;flex:none}.ds-route-context.ds-popover-dismissed>.ds-party-popover{display:none}
@media(max-width:760px){.ds-mobile-nav{display:block}.ds-persistent-shell .topbar{position:relative;z-index:60;gap:8px}.ds-persistent-shell .crumbs{flex:1;gap:6px}.ds-persistent-shell .crumbs>b{font-size:17px}.ds-persistent-shell .crumbs button{font-size:10.5px}.ds-persistent-shell .avatar{width:30px;height:30px}}
.containers-table tr[role="link"]:focus-visible{outline:2px solid var(--p);outline-offset:-3px;background:#f8f6ff}

@container content (max-width:620px){.part-direction{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;align-items:stretch}.part-direction>.direction-arrow{justify-self:center;transform:rotate(90deg);line-height:1;height:20px}.part-direction>.direction-node,.direction-destinations>.direction-node{width:100%;text-align:left}.direction-destinations{display:grid;grid-template-columns:minmax(0,1fr);gap:8px}}

/* Informational participant tooltip must not intercept actions underneath. */
.ds-party-popover{pointer-events:none}

/* Rendering restores the reading position explicitly, after notices and details. */
.ds-content-region>.content{overflow-anchor:none}
