/* Content hierarchy only. Existing brand, surfaces, theme and navigation remain. */
.portal-preview{margin:0 0 22px;color:var(--bn-muted,#666B60);font-size:13px;line-height:1.5;max-width:760px}
.portal-preview>summary{display:flex;align-items:center;flex-wrap:wrap;gap:8px 10px;cursor:pointer;list-style:none}
.portal-preview>summary::-webkit-details-marker{display:none}
.portal-preview-badge{padding:5px 10px;border:1px solid var(--ps-line,#D9DDCF);border-radius:999px;background:var(--ps-inset,#F0F2E9);color:var(--bn-ink,#161914);font-weight:700}
.portal-preview[open]>summary{margin-bottom:10px}
.portal-preview>p{margin:0;max-width:65ch}
.portal-preview>summary:focus-visible,.portal-checklist>summary:focus-visible{outline:2px solid currentColor;outline-offset:5px;border-radius:6px}
.portal-checklist{margin:16px 0;min-width:0}
.portal-checklist>summary{cursor:pointer;font-size:14px;font-weight:700;line-height:1.5;padding:8px 0}
.portal-checklist[open]>summary{margin-bottom:12px}
.portal-checklist>ol,.portal-checklist>div{margin-top:12px}
.bn-ui .portal-task-layout{gap:24px;align-items:start}
.bn-ui .portal-task-layout :is(.bn-task-reading,.bn-task-working){display:flex;flex-direction:column;gap:18px;min-width:0}
.bn-ui .portal-task-layout .bn-task-working>div{margin-top:0;width:100%}
.bn-ui .portal-task-layout .td-panel{margin:0}
.bn-ui .portal-task-summary{display:block;background:var(--ps-card,#fff)}
.bn-ui .portal-period-form{margin:0 0 18px;padding:0;border:0;background:none}
.bn-ui .portal-period-form>label{font-size:14px;font-weight:600;color:var(--bn-ink,#141615)}
.bn-ui .portal-period-form>div{display:flex;gap:12px;align-items:stretch;flex-wrap:wrap;margin-top:9px}
.bn-ui .portal-period-form :is(select,input){flex:1 1 140px;min-width:0;width:auto;max-width:100%;font-size:16px}
.bn-ui .portal-period-form select{appearance:auto;cursor:pointer}
.bn-ui .portal-period-form .td-button{flex:0 1 auto;display:inline-flex;align-items:center;justify-content:center;gap:9px;text-align:center;min-height:48px;padding:11px 16px;font-size:14px}
.bn-ui .portal-period-form>p{font-size:13px;line-height:1.55;margin-top:9px}
.portal-summary-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px 16px;margin:0}
.portal-summary-facts>div{min-width:0;display:grid;grid-template-rows:minmax(2.9em,auto) auto;align-content:start;row-gap:8px;font-size:14px}
.portal-summary-facts dt{font-size:14px;line-height:1.45;margin:0;color:var(--ps-muted,#65695D)}
.portal-summary-facts dd{margin:0;font-size:20px;line-height:1.4;font-weight:700;color:var(--bn-ink,#141615);overflow-wrap:anywhere}
.portal-summary-facts dd>span{font-size:14px;font-weight:500}
.portal-summary-links{display:flex;flex-wrap:wrap;gap:12px 24px;margin-top:20px}
.bn-ui .portal-summary-links .td-text-link{display:inline-flex;align-items:center;font-size:14px;line-height:1.5;margin:0}
.bn-ui .portal-brief{margin:0;border-radius:24px;border:1px solid var(--ps-rim,#fff);background:var(--ps-quiet,#F5F6EF);box-shadow:var(--ps-small-shadow);overflow:visible}
.bn-ui .portal-brief>summary{padding:20px;display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:16px;line-height:1.5;font-weight:700;cursor:pointer}
.portal-brief-body{padding:0 20px 20px}
.bn-ui .portal-brief .td-brief-panel{display:flex;gap:20px;align-items:center;background:none;border:0;box-shadow:none;padding:0;margin-bottom:20px}
.bn-ui .portal-brief .td-brief-art{width:100px;min-width:0;flex:0 0 100px}
.bn-ui .portal-brief .td-product-art{height:auto}
.bn-ui .portal-brief .td-requirements{padding:0;margin:0}
.bn-ui .portal-brief .td-requirements :is(li,p){font-size:14px;line-height:1.65}
.bn-ui .portal-brief .td-brief-meta{min-width:0;gap:14px}
.bn-ui .portal-task-layout .td-lock-amount{display:flex;align-items:center;flex-wrap:wrap;gap:14px;padding:18px;margin:18px 0}
.portal-lock-value{display:flex;flex-direction:column;gap:6px;min-width:0}
.bn-ui .portal-lock-value>strong{display:block;font-size:30px;line-height:1.2}
.portal-lock-value>span{display:block;font-size:14px;line-height:1.5;color:var(--ps-muted,#65695D)}
.bn-ui .portal-action-terms{font-size:14px;line-height:1.65;margin:18px 0;color:var(--bn-ink,#141615)}
.bn-ui .portal-task-layout :is(.td-check,.td-footnote,.td-side-details dt,.td-side-details dd){font-size:14px;line-height:1.6}
.bn-ui .portal-task-layout .td-side-details>div{display:flex;flex-wrap:wrap;gap:6px 18px;justify-content:space-between}
.bn-ui .portal-task-layout .td-duration-pending{font-size:14px;line-height:1.6;padding:12px 14px;border-radius:14px;margin:16px 0 0}
.bn-ui .portal-task-layout .td-join-panel>form{margin-top:18px}
.bn-ui .portal-task-layout .td-join-panel .td-button{margin-top:14px;width:100%}
.bn-ui :is(.wh-footer nav,.pt-form-actions,.pn-settlement-links){gap:12px 20px;flex-wrap:wrap}
.bn-ui .wh-footer nav{display:flex}
.bn-ui .bn-flow-kyb-checklist .portal-checklist{margin-bottom:0}
.bn-ui .pn-practice-confirm>.pt-button{white-space:normal;overflow-wrap:anywhere;max-width:100%;height:auto;text-align:left}
.bn-ui .bn-account-settings{width:100%;max-width:1040px;min-width:0}
.bn-ui .bn-account-settings :is(.au-settings-main,.au-form-panel,.au-form,.au-field,.au-input-wrap,.bn-account-help){min-width:0;max-width:100%}
.bn-ui .bn-account-settings .au-readonly-field{display:flex;flex-wrap:wrap;gap:8px 14px}
.bn-ui .bn-account-settings .au-readonly-field>strong{margin-left:auto}
.bn-ui .bn-account-settings .au-readonly-field>p{flex-basis:100%;min-width:0}
.bn-ui .bn-account-settings .au-verification-list li{flex-wrap:wrap}
.bn-ui .bn-account-settings .au-verification-list strong{white-space:normal}
.bn-ui .cw-brand .bn-account{min-width:0;max-width:100%;white-space:normal;overflow-wrap:anywhere}
.bn-ui .cw-brand .bn-account>span{min-width:0;overflow-wrap:anywhere}
.bn-ui .bn-flow .bn-flow-stepnav>:is(a,button){flex-wrap:wrap}
html[data-participant-theme=dark] .portal-preview{color:#BEC2B6}
html[data-participant-theme=dark] .portal-preview-badge{background:#262C26;color:#F4F4F0;border-color:#444C40}
@media(max-width:700px){
 .portal-preview{margin-bottom:20px}
 .portal-preview>summary{font-size:12px;gap:8px}
 .bn-ui .portal-task-layout{grid-template-columns:minmax(0,1fr);gap:18px}
 .portal-summary-facts{gap:18px 14px}
 .bn-ui .portal-task-layout .td-panel{padding:20px}
 .bn-ui .portal-brief>summary{padding:18px 20px}
 .portal-brief-body{padding:0 20px 20px}
 .bn-ui .portal-brief .td-brief-panel{gap:16px}
 .bn-ui .portal-task-layout .td-task-heading h1{overflow-wrap:break-word}
 .bn-ui .bn-account-settings .bn-account-grid{grid-template-columns:minmax(0,1fr)}
}
@media(prefers-reduced-motion:reduce){.portal-task-layout *{scroll-behavior:auto}}

/* Brand overview, optional detail and action confirmation use the same hierarchy. */
.bn-ui .bn-flow .portal-brand-review-layout{grid-template-columns:minmax(0,1fr)}
.bn-ui .portal-brand-facts{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px 22px;margin:20px 0}
.bn-ui .portal-brand-facts>div{min-width:0;display:grid;grid-template-rows:minmax(2.9em,auto) auto;align-content:start;gap:8px;font-size:14px}
.bn-ui .portal-brand-facts dt{color:var(--bn-muted);font-size:14px;line-height:1.45;margin:0}
.bn-ui .portal-brand-facts dd{font-size:16px;line-height:1.5;font-weight:600;overflow-wrap:anywhere;margin:0}
.bn-ui .portal-brand-full-brief{padding:14px 18px;border:1px solid var(--bn-line);border-radius:18px;background:var(--bn-white)}
.bn-ui .portal-brand-full-brief .be-review-group{margin-top:16px}
.bn-ui .bn-flow .portal-brand-action-terms{font-size:14px;line-height:1.65;margin-top:20px;color:var(--bn-ink)}
.bn-ui .bn-flow .kyb-submit-area p{font-size:14px;line-height:1.65}
.bn-ui .portal-brand-guide-actions{display:flex;align-items:center;flex-wrap:wrap;gap:14px 24px;margin:24px 0}
.bn-ui .portal-brand-rules{display:grid;gap:16px}
.bn-ui .portal-brand-rules>details{padding:20px;border:1px solid var(--bn-line);border-radius:20px;background:var(--bn-white)}
.bn-ui .portal-brand-rules summary{cursor:pointer;font-size:16px;font-weight:600;line-height:1.5}
.bn-ui .portal-brand-rules details>div{margin-top:14px;font-size:14px;line-height:1.7}
@media(max-width:600px){.bn-ui .portal-brand-facts{grid-template-columns:minmax(0,1fr);gap:16px}}

.bn-ui .mt-page .mt-entry-panel>.mt-amount-label{margin-top:0;font-size:16px;font-weight:600}
.bn-ui .mt-page .mt-amount-input>span{font-size:20px;font-weight:600}
.bn-ui .mt-page .mt-conversion>.mt-payment-quotes{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px;margin-top:18px;padding-top:16px;border-top:1px solid var(--bn-line)}
.bn-ui .mt-payment-quotes>div{min-width:0;display:flex;flex-direction:column;gap:8px}
.bn-ui .mt-payment-quotes strong{text-align:left}
.bn-ui .mt-page .mt-conversion>.mt-point-value{flex-wrap:wrap}
.bn-ui .mt-page .mt-pay-currency{margin-top:22px}
.bn-ui .mt-pay-currency>legend{padding:0 0 10px;font-size:14px;font-weight:600}
.bn-ui .mt-page .mt-pay-currency label>span{min-height:52px;padding:10px;text-align:center;white-space:normal}
.bn-ui .mt-page .mt-presets button{white-space:normal;flex-wrap:wrap;overflow-wrap:anywhere}
.bn-ui .mt-page .mt-conversion p{margin-top:12px;font-size:13px;line-height:1.6}
.bn-ui .mt-page .mt-steps li{flex-wrap:wrap}

/* Read-only task terms share one label/value grid, including the saved post period. */
.portal-summary-facts dd small{display:block;font-size:13px;font-weight:400;line-height:1.5;color:var(--ps-muted,#65695D);margin-top:5px}
.bn-ui .portal-period-form .td-button .td-icon{width:18px;height:18px;flex:none}
/* Equal first-line baselines and predictable wrapping for shared account/task facts. */
.bn-ui .bn-participant :is(.td-side-details,.td-brief-meta,.pt-detail-fields,.pn-summary-list,.pn-fact-list,.pn-details,.pf-detail-list,.ms-plan-facts,.ms-account-summary,.ms-order-reference)>div{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1fr);align-items:baseline;gap:8px 16px}
.bn-ui .bn-participant :is(.td-side-details,.td-brief-meta,.pt-detail-fields,.pn-summary-list,.pn-fact-list,.pn-details,.pf-detail-list,.ms-plan-facts,.ms-account-summary,.ms-order-reference)>div>:is(dt,dd){min-width:0;margin:0;line-height:1.5;overflow-wrap:anywhere}
.bn-ui .bn-participant :is(.td-side-details,.td-brief-meta,.pt-detail-fields,.pn-summary-list,.pn-fact-list,.pn-details,.pf-detail-list,.ms-plan-facts,.ms-account-summary,.ms-order-reference)>div>dd{max-width:none;text-align:right}
@media(max-width:600px){.bn-ui .portal-brand-facts>div{grid-template-rows:auto auto}}
/* Standalone save/apply/search actions should never look like adjacent input fields. */
.bn-ui .cw-shell:is(.wh-shell-participant,.wh-shell-brand) .portal-commit-action:not(:disabled):not([aria-disabled=true]){display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:48px;padding:12px 18px;border:1px solid #D6D81C;border-radius:16px;background:#F7F700;background-image:linear-gradient(180deg,#FAFB62,#F7F700);color:#141615;box-shadow:inset 0 1px 0 #FFFFB7,0 3px 0 #14161518;font-weight:700;text-align:center;cursor:pointer}
.bn-ui .cw-shell .portal-secondary-action:not(:disabled):not([aria-disabled=true]){display:inline-flex;align-items:center;justify-content:center;gap:9px;min-height:44px;padding:10px 16px;border:1px solid var(--portal-control,#858D79);border-radius:14px;background:var(--ps-card,#fff);color:var(--bn-ink,#141615);font-weight:600;text-decoration:none;box-shadow:0 2px 0 #14161518;cursor:pointer}
.bn-ui .cw-shell :is(.td-button-secondary,.pt-button-secondary,.pf-button-light,.rf-button-secondary,.mt-button-secondary):not(:disabled):not([aria-disabled=true]){text-align:center;justify-content:center;box-shadow:var(--ps-small-shadow),inset 0 -2px 0 #14161514}
.bn-ui .cw-shell :is(.portal-commit-action,.portal-secondary-action):focus-visible{outline:3px solid var(--bn-ink,#141615);outline-offset:4px}
.bn-ui .cw-shell :is(.portal-commit-action,.portal-secondary-action):active:not(:disabled):not([aria-disabled=true]){transform:translateY(1px);box-shadow:none}
.bn-ui .cw-shell :is(.portal-commit-action,.portal-secondary-action):is(:disabled,[aria-disabled=true]){background:var(--ps-inset,#eff1e9);background-image:none;color:var(--ps-muted,#62685d);border-color:var(--ps-line,#dce0d3);box-shadow:none;cursor:not-allowed;transform:none}
@media(hover:hover){.bn-ui .cw-shell :is(.portal-commit-action,.portal-secondary-action):hover:not(:disabled):not([aria-disabled=true]){filter:brightness(1.04)}}
@media(forced-colors:active){.bn-ui .cw-shell :is(.portal-commit-action,.portal-secondary-action){border:2px solid ButtonText;background:ButtonFace;color:ButtonText;box-shadow:none}}
