/* Shared controls and Brand mappings use the Participant surface tokens. */
.bn-ui :is(.cw-shell,.cw-brand,.bn-account-settings){--portal-control:#858D79}
html[data-participant-theme=dark] .bn-ui :is(.cw-shell,.cw-brand,.bn-account-settings){--portal-control:#7D8471}
.bn-ui .cw-shell:is(.wh-shell-participant,.wh-shell-brand){--ps-control:var(--portal-control)}
.bn-ui .cw-shell .wh-menu>summary{border-radius:50%;border-color:var(--portal-control)}
.bn-ui :is(.cw-shell,.cw-brand,.bn-account-settings) :is(.wh-button:not(.wh-button-primary),.wh-inline-action,.bn-button-secondary,.bn-flow-button-secondary,.button-outline):not(:disabled):not([aria-disabled=true]){border-color:var(--portal-control)}
.bn-ui .cw-shell.wh-shell-participant :is(.td-queue-filter,.pt-tab,.pf-view-switch>a,.pf-ledger-filters>a,.ew-switch,.td-duration-presets button,.mt-presets button,.mt-edit,.mt-state-link,.pf-search>button):focus-visible{outline:3px solid var(--bn-ink);outline-offset:3px}
.bn-ui .cw-shell.wh-shell-participant :is(.td-queue-filter,.pt-tab,.mt-presets button,.mt-state-link){line-height:1.5;min-height:44px}
.bn-ui .cw-shell .ew-guide-section>summary>span:not(.ew-icon){display:block;min-width:0}
.bn-ui .cw-shell .ew-guide-section>summary small{margin-right:8px}
.bn-ui .cw-shell .ew-guide-section>summary em{display:block;margin-top:4px}
.bn-ui .cw-shell .ew-guide-section>summary :is(strong,em){min-width:0;overflow-wrap:break-word}
.bn-ui .cw-shell .ew-guide-section>summary>.ew-icon{display:flex;align-items:center;justify-content:center;flex:0 0 32px;width:32px;height:32px}
.bn-ui .cw-shell .ew-earned-breakdown>div{flex:1 1 10em;min-width:0;grid-template-columns:minmax(0,1fr)}
.bn-ui .cw-shell .ew-earned-breakdown>div+div{border-left:0;padding-left:0}
.bn-ui .cw-shell .ew-split-visual{display:flex;flex-wrap:wrap;gap:12px;padding:12px}
.bn-ui .cw-shell .ew-split-visual>div{display:flex;flex-direction:column;flex:1 1 6em;min-width:0;padding:12px;border-radius:12px}
.bn-ui .cw-shell.wh-shell-brand{padding-bottom:calc(var(--wh-dock-height,82px) + 24px)}
.bn-ui .cw-shell.wh-shell-brand :is(.bn-flow,.bn-utility,.bn-account-page){max-width:1100px;margin-inline:auto;padding:22px 20px 32px}
.bn-ui .cw-shell.wh-shell-brand .portal-preview{margin-bottom:24px}
.bn-ui .cw-shell.wh-shell-brand .wh-main>.portal-preview{max-width:1060px;margin:0 auto 8px;padding-inline:20px}
.bn-ui .cw-shell.wh-shell-brand :is(.bn-flow-heading h1,.bn-u-heading h1,.ws-title,.au-heading h1){font-size:28px;line-height:1.2;letter-spacing:-.6px}
.bn-ui .cw-shell.wh-shell-brand :is(.bn-flow-heading,.ws-heading,.bn-u-heading){margin-bottom:22px}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-heading>div{margin-top:0}
.bn-ui .cw-shell.wh-shell-brand .wh-header{background:transparent;border-bottom:0}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-focus,.wh-list,.wh-disclosure,.bn-flow-empty,.bn-flow-info,.bn-flow-readiness,.bn-flow-brief-item,.bn-flow-kyb-state,.be-form,#kyb-form,.kyb-campaign-submit,.portal-brand-rules>details,.bn-u-support-row,.au-form-panel){
 border:1px solid var(--ps-rim);border-radius:24px;background-color:var(--ps-card);background-image:linear-gradient(150deg,var(--ps-card),var(--ps-card-end));box-shadow:var(--ps-shadow);
}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-focus,.bn-flow-info,.bn-flow-readiness,.bn-flow-kyb-state,.bn-flow-brief-item,.be-form,#kyb-form,.kyb-campaign-submit,.bn-u-support-row,.au-form-panel){padding:20px}
.bn-ui .cw-shell.wh-shell-brand .wh-focus{background-image:linear-gradient(115deg,var(--ps-card) 35%,var(--ps-warm-end))}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-disclosure,.portal-brand-full-brief,.bn-flow-gate,.bn-flow-draft-summary,.bn-flow-kyb-checklist){padding:16px 18px;border:1px solid var(--ps-line);border-radius:20px;background:var(--ps-inset);box-shadow:var(--ps-small-shadow)}
.bn-ui .cw-shell.wh-shell-brand .wh-disclosure>summary{padding:0;min-height:44px}
.bn-ui .cw-shell.wh-shell-brand .wh-disclosure>div{padding:12px 0 0}
.bn-ui .cw-shell.wh-shell-brand .wh-disclosure>.wh-list{padding:0}
.bn-ui .cw-shell.wh-shell-brand .wh-check-groups{margin-top:0!important}
.bn-ui .cw-shell.wh-shell-brand .wh-condition{font-size:13px;line-height:1.65}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-status,.bn-flow-tag,.kyb-chip,.be-small-tag){border-radius:999px;background:var(--ps-inset);border-color:var(--ps-line);padding:6px 10px;white-space:normal}
.bn-ui .cw-shell.wh-shell-brand .wh-status{white-space:nowrap}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-brief-list{display:grid;gap:16px;border:0}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-brief-item{margin:0}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-detail-groups{gap:18px}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-info+.bn-flow-info{margin-top:0}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-edit-layout{gap:20px}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-button-primary,.bn-flow-button,.button,.bn-button):not(.bn-flow-button-secondary):not(.button-outline):not(.bn-button-secondary):not(:disabled):not([aria-disabled=true]){
 border:1px solid var(--ps-primary-border);border-radius:17px;background-color:var(--ps-primary);background-image:linear-gradient(180deg,var(--ps-primary-top),var(--ps-primary));color:var(--ps-primary-ink);box-shadow:var(--ps-primary-shadow);
}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-button,.bn-flow-button,.button,.bn-button){min-height:48px;font-size:14px;line-height:1.5;padding:12px 16px;gap:12px}
.bn-ui .cw-shell.wh-shell-brand :is(.wh-button:not(.wh-button-primary),.bn-flow-button-secondary,.button-outline,.bn-button-secondary):not(:disabled):not([aria-disabled=true]){border:1px solid var(--portal-control);border-radius:17px;background:var(--ps-inset);color:var(--bn-ink);box-shadow:var(--ps-small-shadow)}
.bn-ui .cw-shell.wh-shell-brand :is(.button,.bn-flow-button,.bn-button):is(:disabled,[aria-disabled=true]){border-radius:17px;background:var(--ps-inset);background-image:none;color:var(--ps-muted);border-color:var(--ps-line);box-shadow:none;cursor:not-allowed;transform:none}
.bn-ui .cw-shell.wh-shell-brand :is(input:not([type=checkbox]):not([type=radio]):not([type=file]):not([type=hidden]),select,textarea):not(:disabled):not([readonly]):not([aria-invalid=true]){border-color:var(--portal-control);border-radius:15px;background:var(--ps-inset);box-shadow:inset 0 1px 2px #14161506}
.bn-ui .cw-shell.wh-shell-brand :is(input,select,textarea)[aria-invalid=true]{border-color:var(--bn-error)}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-stepnav{gap:8px;margin:20px 0}
.bn-ui .cw-shell.wh-shell-brand :is(.bn-flow-stepnav>a,.bn-flow-stepnav>button,.bn-flow-tabs>a){border:1px solid var(--portal-control);border-radius:16px;background:var(--ps-card);color:var(--bn-ink);min-height:48px;line-height:1.5;padding:10px 12px;white-space:normal}
.bn-ui .cw-shell.wh-shell-brand :is(.bn-flow-stepnav>[aria-current],.bn-flow-tabs>[aria-current]){background:var(--ps-selected);border-color:var(--ps-selected);color:var(--ps-selected-ink);box-shadow:none}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-tabs{display:flex;flex-wrap:wrap;gap:8px;border:0}
.bn-ui .cw-shell.wh-shell-brand .bn-flow-tabs>a{flex:1 1 110px;text-align:center;justify-content:center}
.bn-ui .cw-shell.wh-shell-brand .bn-user-nav{display:grid;grid-template-columns:repeat(3,minmax(0,1fr))}
.bn-ui .cw-shell.wh-shell-brand .bn-work-footer{padding-inline:20px}
@media(min-width:800px){
 .bn-ui .cw-shell.wh-shell-brand :is(.wh-focus,.bn-flow-info,.bn-flow-readiness,.bn-flow-kyb-state,.bn-flow-brief-item,.be-form,#kyb-form,.kyb-campaign-submit,.bn-u-support-row,.au-form-panel){padding:24px}
}
@media(hover:hover) and (pointer:fine){
 .bn-ui .cw-shell :is(.mt-presets button,.mt-state-link,.td-queue-filter,.pt-tab):not([aria-pressed=true]):not(.is-current):not(.is-active):not(:disabled):hover{background:var(--ps-hover);border-color:var(--bn-ink)}
 .bn-ui .cw-shell.wh-shell-brand :is(.wh-button,.bn-flow-button,.button):not(:disabled):not([aria-disabled=true]):hover{filter:brightness(.98)}
}
@media(forced-colors:active){.bn-ui .cw-shell :is(.mt-presets button,.td-queue-filter,.pt-tab,.ew-switch,.bn-flow-stepnav>a,.bn-flow-stepnav>button,.bn-flow-tabs>a,.mt-button,.wh-button){border:1px solid ButtonText;box-shadow:none;background-image:none}}
