/* Portal presentation only. Public profile components and package rights keep
   their shared implementation; this sheet arranges the sales presentation. */
.member-portal .member-main{min-width:0}
.member-portal .member-portal-toolbar{flex-wrap:nowrap;gap:12px;min-height:64px}
.member-portal .member-portal-toolbar .member-page-actions{flex-wrap:nowrap;flex-shrink:0}
.member-portal .member-portal-toolbar .member-page-actions>.button,.member-portal .member-portal-toolbar .member-toolbar-account>summary{min-height:44px}
.member-portal .member-toolbar-account>summary{width:44px}
/* The compact identity wraps according to its own available width, not a
   viewport breakpoint that prematurely pushes the preview into a new row. */
.member-portal .portal-salon-summary{position:static;inset:auto;display:flex;flex-direction:row;flex-wrap:wrap;align-items:center;min-width:0;padding:14px 16px;gap:12px;border-radius:12px;box-shadow:none}
.member-portal .portal-salon-summary>.member-context-photo{flex:0 0 auto}
.member-portal .portal-salon-summary>.portal-salon-identity{flex:1 1 160px;min-width:min(100%,160px);grid-column:auto;grid-row:auto}
.member-portal .portal-salon-summary>.portal-context-actions{flex:0 1 auto;min-width:min-content;max-width:100%;margin-inline-start:auto;grid-column:auto;grid-row:auto;justify-self:auto;justify-content:flex-end;align-self:center}
.member-portal .portal-salon-picker select{min-height:44px}
.member-portal .portal-context-actions{display:flex;align-items:center;flex-wrap:wrap;gap:8px}
.member-portal .portal-context-actions>.button{margin:0;min-height:44px;max-width:100%}
.member-portal .portal-condensed-context{position:static;inset:auto;box-shadow:none;padding:6px 11px;min-height:36px;margin:0 0 12px}
.member-portal .portal-condensed-context .portal-condensed-identity{display:flex;align-items:baseline;flex-wrap:wrap;gap:3px 10px}
.member-portal .portal-condensed-context .portal-condensed-identity>strong{font-size:13px}
.member-portal .portal-condensed-context .portal-condensed-identity>span{font-size:12px}
.member-portal [data-portal-site-activity]{display:flex;align-items:center;min-height:32px;margin:14px 0 0}
.member-portal .member-overview-work{gap:14px}
.member-portal .member-overview-work-panel :is(.button,.member-overview-action){min-height:44px}
.member-portal .portal-overview-offer{gap:14px 20px}
.member-portal .portal-overview-offer .member-overview-rules{margin:0;padding:0;border:0;background:none}
.member-portal .member-performance-locked-metrics{gap:9px;margin-top:16px}
.member-portal .member-performance-locked-metrics>div{gap:5px;align-content:start;padding:12px;min-height:0}
.member-portal .member-performance-locked-metrics strong{font-size:15px;line-height:1.4}
.member-portal .member-performance-locked-metrics span{font-size:14px;line-height:1.5}
.member-portal .member-downloads .downloads-intro{margin-bottom:16px}
.member-portal .member-downloads .downloads-intro p{font-size:15px;line-height:1.5}
.member-portal .package-selection .package-plan-grid{gap:16px;margin-block:16px;align-items:start}
.member-portal .package-selection .package-plan-card{border-radius:12px;padding:20px;gap:10px;align-self:start;align-content:start;justify-content:flex-start}
.member-portal .package-plan-card .package-card-title h3{font-size:24px;line-height:1.15}
.member-portal .package-plan-card .portal-membership-price{margin:4px 0 0;gap:3px 6px}
.member-portal .package-plan-card .portal-membership-price strong{font-size:clamp(28px,3.5vw,38px);line-height:1.1}
.member-portal .package-plan-card .package-benefits{margin:4px 0;gap:8px}
.member-portal .package-plan-card .package-benefits li{font-size:14px;line-height:1.5}
.member-portal .package-plan-card :is(.button,.membership-plan-switch button){min-height:44px}
.member-portal .package-plan-card .button{white-space:normal;max-width:100%;text-align:center}
.member-portal .package-plan-card .package-benefit-details{font-size:14px;line-height:1.5}
.member-portal .package-plan-card .package-benefit-details>summary{min-height:44px;display:flex;align-items:center;gap:8px}

/* These owner dialogs share one protected native close row. Only their
   content scrolls; public cards and the original download teaser keep their
   own layout and the existing viewer widths remain unchanged. */
#dialog:has(.portal-sales-dialog){width:960px;max-width:calc(100% - 24px)}
#dialog:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog){max-height:calc(100vh - 24px);max-height:calc(100dvh - 24px);padding:0;overflow:hidden;overscroll-behavior:contain}
#dialog[open]:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog){display:block}
#dialog:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog)>.dialog-shell{display:grid;grid-template-columns:minmax(0,1fr);grid-template-rows:auto minmax(0,1fr);min-height:0;max-height:calc(100vh - 26px);max-height:calc(100dvh - 26px);overflow:hidden}
#dialog:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog)>.dialog-shell>.dialog-close{position:static;grid-column:1;grid-row:1;align-self:center;justify-self:end;width:44px;height:44px;min-width:44px;min-height:44px;margin:calc(8px + env(safe-area-inset-top,0px)) 16px 8px;padding:10px;background:var(--bf-theme-surface,#fffefa)}
#dialog:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog)>.dialog-shell>#dialog-content{grid-column:1;grid-row:2;min-height:0;min-width:0;max-height:calc(100vh - 86px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - 86px - env(safe-area-inset-top,0px) - env(safe-area-inset-bottom,0px));overflow-y:auto;overflow-x:hidden;overscroll-behavior:contain;scroll-padding-block:16px;touch-action:pan-y pinch-zoom}
.modal-body.portal-sales-dialog{--portal-sales-green:var(--bf-forest,#163d32);--portal-sales-gold:#b59049;--portal-sales-muted:var(--bf-muted,#58665f);container:portal-sales/inline-size;padding:8px 24px calc(24px + env(safe-area-inset-bottom,0px));color:var(--bf-ink,#173d32);font-family:var(--bf-font);font-size:16px;min-width:0}
.portal-sales-dialog #dialog-title{max-width:100%;margin:0 0 12px;padding:0;font-size:32px;font-weight:750;line-height:1.1;letter-spacing:-.04em;color:var(--portal-sales-green);overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-intro{margin:0 0 16px;font-size:16px;line-height:1.5;color:var(--portal-sales-muted)}
.portal-sales-dialog .portal-sales-feature{margin:0 0 16px;font-size:15px;line-height:1.5;color:var(--portal-sales-green)}
.portal-sales-dialog .portal-sales-interval{display:flex;gap:4px;padding:4px;width:fit-content;max-width:100%;margin:16px 0;border:1px solid var(--bf-border,#dce3d8);border-radius:12px;background:var(--bf-surface-soft,#f1f4ec)}
.portal-sales-dialog .portal-sales-interval button{display:flex;align-items:center;justify-content:center;gap:8px;min-height:44px;min-width:112px;margin:0;padding:8px 16px;border:0;border-radius:8px;background:transparent;color:var(--portal-sales-green);font:600 16px/1.4 var(--bf-font);cursor:pointer;white-space:normal;overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-interval button[aria-pressed="true"]{background:var(--portal-sales-green);color:#fffefa}
/* The interval choice shows only the saving supplied by the current offer.
   Both buttons share its height; the existing price calculation is untouched. */
.portal-sales-dialog .portal-sales-interval,
.package-selection>.membership-plan-switch{align-items:stretch;grid-template-columns:repeat(2,minmax(0,1fr))}
.portal-sales-dialog .portal-sales-interval button,
.package-selection>.membership-plan-switch button{display:flex;flex-direction:column;align-items:center;justify-content:center;gap:3px;min-height:44px;min-width:0;padding:8px 12px;white-space:normal;overflow-wrap:anywhere}
.package-selection>.membership-plan-switch button{min-height:49px}
.portal-sales-dialog .portal-sales-interval button>span.package-plan-label,
.package-selection>.membership-plan-switch button>span.package-plan-label{display:block;max-width:100%;margin:0;padding:0;border:0;border-radius:0;background:transparent;color:inherit;font:600 16px/1.4 var(--bf-font);white-space:normal}
.portal-sales-dialog .portal-sales-interval .package-plan-saving,
.package-selection>.membership-plan-switch .package-plan-saving{display:grid;gap:2px;max-width:100%;margin:0;padding:0;color:inherit;font:500 14px/1.4 var(--bf-font);text-align:center;white-space:normal;overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-interval .package-yearly-saving,
.package-selection>.membership-plan-switch .package-yearly-saving{display:block;max-width:100%;margin:0;padding:0;white-space:normal;overflow-wrap:anywhere}

.portal-sales-dialog .portal-sales-packages{display:grid;grid-template-columns:minmax(0,1fr);gap:16px;margin:0;align-items:start}
.portal-sales-dialog .portal-sales-plan{display:grid;align-content:start;gap:12px;min-width:0;padding:24px;border:1px solid var(--bf-border,#dce3d8);border-radius:12px;background:#fff}
.portal-sales-dialog .portal-sales-plan.is-basis{background:var(--bf-surface-soft,#f5f7f1);border-color:#cddbcc}
.portal-sales-dialog .portal-sales-plan.is-premium{border-color:#b59049;background:var(--bf-theme-gold-surface,#fff4d7);box-shadow:inset 0 3px 0 #b59049}
.portal-sales-dialog .portal-sales-plan :is(h3,h4){display:flex;align-items:center;gap:8px;margin:0;font-size:26px;line-height:1.2;letter-spacing:-.025em;color:var(--portal-sales-green);overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-plan h3 svg{width:24px;height:24px;flex:0 0 auto;color:#9a7027}
.portal-sales-dialog .portal-sales-plan .portal-sales-plan-summary{margin:0;font-size:16px;line-height:1.5;font-weight:500;color:var(--portal-sales-green)}
.portal-sales-dialog .portal-sales-plan :is(ul,p){margin-block:0}
.portal-sales-dialog .portal-sales-plan>p:not([class]),.portal-sales-dialog .portal-sales-plan>.small-muted{font-size:14px;line-height:1.5;color:var(--portal-sales-muted)}
.portal-sales-dialog .portal-sales-plan ul,.portal-sales-dialog .portal-sales-plan-list{display:grid;gap:8px;padding:0;list-style:none;font-size:16px;line-height:1.5;color:var(--portal-sales-muted)}
.portal-sales-dialog .portal-sales-plan li{display:flex;align-items:flex-start;gap:8px;min-width:0;overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-plan li>svg{width:20px;height:20px;margin-top:2px;flex:0 0 auto;color:var(--portal-sales-green)}
.portal-sales-dialog .portal-sales-plan.is-premium li>svg{color:#957027}
.portal-sales-dialog .portal-sales-plan li>span{min-width:0}
.portal-sales-dialog .portal-sales-plan-includes{color:#77531f;font-size:16px;line-height:1.5;font-weight:600}
.portal-sales-dialog .portal-sales-price{display:flex;flex-wrap:wrap;align-items:baseline;gap:4px 8px;margin:4px 0 0;padding:0;color:var(--portal-sales-green);min-width:0}
.portal-sales-dialog .portal-sales-price>strong{font-size:36px;line-height:1.1;letter-spacing:-.04em;overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-price>span{font-size:16px;line-height:1.5}
.portal-sales-dialog :is(.portal-sales-price>.tax-note,.portal-sales-price>.portal-sales-tax-note,.portal-sales-plan>.tax-note,.portal-sales-plan>.portal-sales-tax-note){flex-basis:100%;font-size:14px;line-height:1.5;color:var(--portal-sales-muted);overflow-wrap:anywhere}
.portal-sales-dialog .portal-sales-plan-action{margin:0}
/* Extend the existing premium-opportunity.css gold action unchanged to
   private sales/download dialogs. The existing pl-premium-sheen animation
   remains in the common sheet; component dimensions and type stay local. */
:is(.member-portal.member-workspace,.portal-sales-dialog,.downloads-premium-dialog) .button.premium-gold-button{background:linear-gradient(125deg,var(--bf-theme-soft,#fff4d7) 0%,var(--bf-theme-gold-surface,#efdbac) 48%,var(--bf-theme-gold-surface,#d6b878) 100%);border-color:var(--member-gold-accent,var(--bf-membership-gold-line));color:var(--bf-theme-gold,#4f3917);position:relative;isolation:isolate;overflow:hidden}
:is(.member-portal.member-workspace,.portal-sales-dialog,.downloads-premium-dialog) .button.premium-gold-button:hover{background:linear-gradient(125deg,var(--bf-theme-soft,#fff8e7) 0%,var(--bf-theme-gold-surface,#f2e1bb) 48%,var(--bf-theme-gold-surface,#dfc48d) 100%);border-color:var(--bf-theme-gold-line,#967139);color:var(--bf-theme-gold,#432f11);filter:none}
@media(prefers-reduced-motion:no-preference){:is(.member-portal,.portal-sales-dialog,.package-selection) .button.premium-choice-nudge:not(:disabled){animation:landing-booking-nudge 7s ease-in-out infinite}}
@media(prefers-reduced-motion:reduce){:is(.member-portal,.portal-sales-dialog,.package-selection) .button.premium-choice-nudge{animation:none;transform:none}}
/* Sales choices retain the shared gold Premium action. Basis is a separate
   green choice; these surfaces never apply to public salon cards or marks. */
.portal-sales-dialog .portal-sales-plan.is-basis,
.member-portal .package-plan-card.is-basis{background:var(--bf-surface-soft,#f1f4ec);border-color:#cddbcc}
.member-portal .package-plan-card.is-premium{background:var(--bf-theme-gold-surface,#fff4d7);border-color:var(--bf-membership-gold-line,#b59049)}
.portal-sales-dialog .portal-sales-plan.is-basis .portal-sales-plan-action.primary,
.member-portal .package-plan-card.is-basis .button.primary{background:var(--bf-forest,#163d32);border-color:var(--bf-forest,#163d32);color:#fffefa}
.portal-sales-dialog .portal-sales-plan.is-basis .portal-sales-plan-action.primary:hover,
.member-portal .package-plan-card.is-basis .button.primary:hover{background:var(--bf-forest-hover,#245242);border-color:var(--bf-forest-hover,#245242);color:#fffefa}
.portal-sales-dialog .portal-sales-plan-pricing,
.member-portal .package-plan-pricing{display:grid;align-content:start;gap:8px;min-width:0}
.portal-sales-dialog .portal-sales-plan-pricing>.small-muted,
.member-portal .package-plan-pricing>:is(.tax-note,.small-muted){margin:0;font-size:14px;line-height:1.5;color:var(--bf-muted,#435443)}
.member-portal .package-plan-notes{display:grid;align-content:start;gap:8px;min-width:0}
.member-portal .package-plan-notes>p{margin:0}
.member-portal .package-plan-card>.button{display:flex;align-items:center;justify-content:center;min-height:48px;margin:0}
.member-portal .package-selection{container:portal-package-choice/inline-size}
.member-portal .package-selection .package-plan-grid{grid-template-columns:minmax(0,1fr)}
@container portal-sales (min-width:640px){
 .portal-sales-dialog .portal-sales-packages{align-items:stretch}
 .portal-sales-dialog .portal-sales-plan{display:flex;flex-direction:column;align-self:stretch}
 .portal-sales-dialog .portal-sales-plan-pricing{margin-top:auto}
 .portal-sales-dialog .portal-sales-plan.is-current .portal-sales-plan-action{margin-top:auto}
}
@container portal-package-choice (min-width:640px){
 .member-portal .package-selection .package-plan-grid{grid-template-columns:repeat(2,minmax(0,1fr));align-items:stretch}
 .member-portal .package-selection .package-plan-card{align-self:stretch}
 .member-portal .package-plan-pricing{margin-top:auto}
}
/* Subgrid aligns corresponding rows without fixed card heights. Browsers
   without subgrid keep the readable natural flex layout above. */
@supports(grid-template-rows:subgrid){
 @container portal-sales (min-width:640px){
  .portal-sales-dialog .portal-sales-plan:not(.is-current){display:grid;grid-row:span 4;grid-template-rows:subgrid;align-content:start}
  .portal-sales-dialog .portal-sales-plan-heading{grid-row:1}
  .portal-sales-dialog .portal-sales-plan>.portal-sales-plan-list{grid-row:2}
  .portal-sales-dialog .portal-sales-plan-pricing{grid-row:3;margin-top:0}
  .portal-sales-dialog .portal-sales-plan>.portal-sales-plan-action{grid-row:4}
  .portal-sales-dialog .portal-sales-packages:has(.is-current)>.portal-sales-plan{grid-row:span 5}
  .portal-sales-dialog .portal-sales-upgrade-note{grid-row:5}
 }
 @container portal-package-choice (min-width:640px){
  .member-portal .package-selection .package-plan-grid>.package-plan-card{display:grid;grid-row:span 6;grid-template-rows:subgrid;align-content:start}
  .member-portal .package-plan-card>.package-card-title{grid-row:1}
  .member-portal .package-plan-card>.package-plan-summary{grid-row:2;margin:0}
  .member-portal .package-plan-card>.package-visible-benefits{grid-row:3}
  .member-portal .package-plan-pricing{grid-row:4;margin-top:0}
  .member-portal .package-plan-card>.button{grid-row:5}
  .member-portal .package-plan-notes{grid-row:6}
 }
}

.portal-sales-dialog .portal-sales-plan :is(button.button,a.button){display:flex;align-items:center;justify-content:center;gap:8px;min-height:48px;max-width:100%;width:100%;margin:0;padding:12px 16px;font-size:16px;line-height:1.4;white-space:normal;text-align:center;overflow-wrap:anywhere}

.portal-sales-dialog .portal-sales-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px 16px;margin:16px 0 0}
.portal-sales-dialog .portal-sales-footer>p{margin:0;font-size:14px;line-height:1.5;color:var(--portal-sales-muted)}
.portal-sales-dialog .portal-sales-footer :is(.text-button,.button){display:inline-flex;align-items:center;justify-content:center;min-height:44px;margin:0;padding:8px 0;font-size:16px;line-height:1.4}
.portal-sales-dialog :is(button,a,summary):focus-visible{outline:3px solid var(--bf-focus,#b88b2c);outline-offset:3px}
.portal-sales-dialog :is(button,a,summary){scroll-margin-block:16px}

/* The approved opportunity banner keeps premium-opportunity.css intact.
   The dialog uses its existing basis-chance-native context, without a new skin. */
.portal-sales-dialog .portal-sales-banner{min-width:0;margin:16px 0}
.portal-sales-dialog .portal-sales-banner.member-workspace{padding:0}
.portal-sales-dialog .portal-sales-profile-links{display:flex;align-items:center;gap:8px 16px;flex-wrap:wrap;margin:16px 0 0;min-width:0}
.portal-sales-dialog .portal-sales-profile-links :is(button,a){display:inline-flex;align-items:center;justify-content:center;gap:8px;min-height:44px;max-width:100%;margin:0;font-size:14px;line-height:1.5;white-space:normal;text-align:center}

/* One coherent overview of the existing Premium functions in Mein Salon. */
.member-portal .portal-premium-features{container:portal-features/inline-size;display:grid;gap:20px;min-width:0;margin:24px 0;padding:0;border:0;background:transparent;box-shadow:none}
.member-portal .portal-feature-heading{display:grid;gap:8px;min-width:0}
.member-portal .portal-feature-heading>div{display:grid;gap:8px;min-width:0}
.member-portal .portal-feature-heading h2{margin:0;font-size:26px;line-height:1.2;letter-spacing:-.025em;color:var(--bf-forest,#163d32)}
.member-portal .portal-feature-heading p{margin:0;font-size:16px;line-height:1.5;color:var(--bf-muted,#435443);max-width:68ch}
.member-portal .portal-feature-heading>.portal-feature-upgrade{display:inline-flex;align-items:center;justify-content:center;gap:8px;justify-self:start;min-height:48px;max-width:100%;margin:4px 0 0;padding:12px 20px;font-size:16px;line-height:1.4;white-space:normal;text-align:center}
.member-portal .portal-feature-grid{display:grid;grid-template-columns:minmax(0,1fr);gap:12px;min-width:0}
.member-portal .portal-feature-grid>.portal-feature-item{display:grid;grid-template-columns:40px minmax(0,1fr) 20px;align-items:center;gap:12px;min-width:0;min-height:100px;width:100%;margin:0;padding:16px;border:1px solid var(--bf-border,#dce3d8);border-radius:12px;background:var(--bf-surface,#fff);color:var(--bf-forest,#163d32);box-shadow:none;text-align:left;text-decoration:none;font-family:var(--bf-font);cursor:pointer;white-space:normal}
.member-portal .portal-feature-grid>.portal-feature-item:hover{background:var(--bf-surface-soft,#f1f4ec);border-color:#aebdaf;color:var(--bf-forest,#163d32);box-shadow:none;transform:none}
.member-portal .portal-feature-icon{display:grid;place-items:center;align-self:center;width:40px;height:40px;min-width:40px;border:1px solid #e5dcc4;border-radius:10px;background:#faf5e9;color:var(--bf-gold-text,#765728)}
.member-portal .portal-feature-icon>svg{display:block;width:22px;height:22px;flex:none}
.member-portal .portal-feature-copy{display:grid;gap:4px;min-width:0;overflow-wrap:anywhere}
.member-portal .portal-feature-copy>strong{font-size:16px;line-height:1.4;font-weight:700;color:var(--bf-forest,#163d32)}
.member-portal .portal-feature-copy>small{font-size:14px;line-height:1.5;font-weight:400;color:var(--bf-muted,#435443)}
.member-portal .portal-feature-item>svg{display:block;width:20px;height:20px;justify-self:end;flex:none;color:var(--bf-forest,#163d32)}
.member-portal .portal-premium-features :is(.portal-feature-item,.portal-feature-upgrade):focus-visible{outline:3px solid var(--bf-focus,#b88b2c);outline-offset:3px}
@container portal-features (max-width:639px){
 .member-portal .portal-feature-heading>.portal-feature-upgrade{width:100%;justify-self:stretch}
}
@container portal-features (min-width:640px){
 .member-portal .portal-feature-heading{grid-template-columns:minmax(0,1fr) auto;gap:8px 24px;align-items:start}
 .member-portal .portal-feature-heading>.portal-feature-upgrade{grid-column:2;grid-row:1;align-self:center;margin:0}
 .member-portal .portal-feature-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
 .member-portal .portal-feature-grid>.portal-feature-item:last-child:nth-child(odd){grid-column:1/-1}
}
.member-portal.member-workspace-uebersicht .portal-salon-summary{padding:12px 16px;gap:12px;align-items:center}
.member-portal.member-workspace-uebersicht .portal-salon-summary .portal-salon-title>strong{font-size:22px;line-height:1.25}
.member-portal.member-workspace-uebersicht .member-tab-body{margin-top:16px}
.member-portal.member-workspace-uebersicht .member-overview-layout{gap:16px}
.member-portal.member-workspace-uebersicht .member-main>.member-page-title h1{font-size:30px;line-height:1.2}
.member-portal.member-workspace-uebersicht .member-main>.member-page-title :is(.eyebrow,p){font-size:14px;line-height:1.5}
.member-portal .portal-overview-next{display:grid;gap:12px}
.member-portal .portal-overview-next h2{margin:0;font-size:26px;line-height:1.2}
.member-portal .portal-overview-next>p{margin:0;font-size:16px;line-height:1.5}
.member-portal .portal-overview-next .member-overview-actions{margin:0;gap:8px 16px}
.member-portal .portal-overview-next .button{min-height:48px;font-size:16px;padding:12px 16px}
.member-portal .portal-overview-sell{display:grid;grid-template-columns:minmax(0,1fr) 104px;gap:24px;padding:24px;border:1px solid var(--bf-border,#dce3d8);border-radius:12px;background:#fffefa}
.member-portal .portal-overview-sell-copy{display:grid;gap:16px;min-width:0}
.member-portal .portal-overview-sell-copy>h2{font-size:30px;line-height:1.2;letter-spacing:-.025em;margin:0}
.member-portal .portal-overview-sell-copy>p{font-size:16px;line-height:1.5;margin:0;color:var(--bf-muted,#58665f)}
.member-portal .portal-overview-sell-copy>.eyebrow{font-size:14px;line-height:1.5;margin:0}
.member-portal .portal-overview-sell .member-overview-actions{margin:0;gap:8px 16px}
.member-portal .portal-overview-sell .member-overview-actions .button{min-height:48px;font-size:16px;padding:12px 16px}
.member-portal .portal-overview-sell-seal{display:grid;gap:8px;align-content:start;justify-items:center;min-width:0}
.member-portal .portal-overview-sell-seal svg{width:104px;max-width:100%;height:auto}
.member-portal .portal-overview-sell-seal>span{font-size:14px;line-height:1.4;text-align:center;color:var(--bf-muted,#58665f)}
.member-portal .portal-overview-service{display:flex;flex-wrap:wrap;gap:8px 16px;margin:0}
.member-portal .portal-overview-service .text-button{font-size:14px;line-height:1.5;min-height:44px}
.member-portal .portal-overview-benefits{display:grid;grid-template-columns:minmax(0,1fr);gap:8px;margin:0;padding:0;list-style:none;font-size:16px;line-height:1.5}
.member-portal .portal-overview-benefits>li{display:flex;align-items:flex-start;gap:8px;min-width:0}
.member-portal .portal-overview-benefits svg{flex:0 0 auto;width:20px;height:20px;margin-top:2px;color:#957027}
.member-portal .portal-overview-benefits>li>span{min-width:0}
.member-portal .member-editor-gated-list{gap:8px}
.member-portal .member-editor-gated-list>button{font-size:16px;line-height:1.5;min-height:48px;padding:12px 16px}

@container portal-sales (min-width:640px){
 .portal-sales-dialog .portal-sales-packages{grid-template-columns:repeat(2,minmax(0,1fr))}
 .portal-sales-dialog #dialog-title{font-size:38px}
}
@media(max-width:900px){
 .member-portal.member-workspace .member-layout{gap:16px}
 .member-portal .member-portal-toolbar{margin-bottom:16px}
 .member-portal.member-workspace .member-sidebar:has(.member-workspace-menu){padding:0;border:0;background:transparent;box-shadow:none}
 .member-portal .member-workspace-menu>summary{min-height:44px;padding:12px 16px;font-size:16px;line-height:1.5}
}
@media(max-width:700px){
 .member-portal .member-portal-context-label{display:none}
 .member-portal .member-portal-toolbar .member-page-actions{gap:4px}
 .member-portal .member-portal-toolbar .member-page-actions>.button span{display:none}
 .member-portal .member-portal-toolbar .member-page-actions>.button,.member-portal .member-portal-toolbar .member-page-actions>button.button{width:44px;padding-inline:0;justify-content:center}
 .member-portal .member-portal-wordmark{flex-basis:134px;min-width:82px}
 .member-portal .member-performance-locked-metrics{grid-template-columns:minmax(0,1fr)}
 .member-portal .member-performance-locked-metrics>div{grid-template-columns:24px minmax(0,1fr);gap:4px 8px}
 .member-portal .member-performance-locked-metrics>div>svg{grid-row:1/3}
 .member-portal .member-performance-locked-metrics>div>span{grid-column:2}
 .member-portal .package-selection .package-plan-card{padding:16px}
 .member-portal .portal-overview-sell{grid-template-columns:minmax(0,1fr);gap:16px;padding:16px}
 .member-portal .portal-overview-sell-copy>h2{font-size:26px}
 .member-portal .portal-overview-sell-seal{grid-template-columns:56px minmax(0,1fr);align-items:center;justify-items:start;gap:12px}
 .member-portal .portal-overview-sell-seal svg{width:56px}
 .member-portal .portal-overview-sell-seal>span{text-align:left}
 .member-portal .portal-overview-sell .member-overview-actions{display:grid;grid-template-columns:minmax(0,1fr)}
 .modal-body.portal-sales-dialog{padding:8px 16px calc(24px + env(safe-area-inset-bottom,0px))}
 .portal-sales-dialog .portal-sales-plan{padding:16px}
 .portal-sales-dialog .portal-sales-interval{width:100%;box-sizing:border-box}
 .portal-sales-dialog .portal-sales-interval button{flex:1;min-width:0;padding-inline:12px}
 .portal-sales-dialog .portal-sales-footer{display:grid;gap:8px}
 .portal-sales-dialog .portal-sales-footer :is(.text-button,.button){justify-content:flex-start}
}
@media(max-width:620px){
 .member-portal .member-portal-toolbar{min-height:56px;gap:8px}
 .member-portal .portal-salon-summary{display:flex;flex-direction:row;align-items:center;gap:12px;padding:12px;margin-bottom:16px}
 .member-portal .portal-salon-summary .portal-salon-title>strong{font-size:20px;line-height:1.25}
 .member-portal .portal-salon-summary .portal-salon-progress{gap:4px 8px;font-size:14px;line-height:1.5}
 .member-portal .portal-condensed-context{display:block}
 .member-portal .portal-condensed-context .portal-condensed-identity{font-size:14px;line-height:1.4}
}
@media(max-width:359px){
 .member-portal .member-portal-toolbar{gap:4px}
 .member-portal .member-portal-wordmark{flex-basis:112px}
 .member-portal .member-portal-toolbar .member-page-actions{gap:4px}
}
@media(max-height:540px){
 #dialog:has(.portal-sales-dialog,.member-profile-preview,.downloads-premium-dialog)>.dialog-shell>.dialog-close{margin-top:calc(8px + env(safe-area-inset-top,0px));margin-bottom:8px}
}
@media(forced-colors:active){
 .portal-sales-dialog .portal-sales-plan.is-premium{border:2px solid CanvasText;box-shadow:none}
 .member-portal .portal-feature-grid>.portal-feature-item,.member-portal .portal-feature-icon{background:Canvas;color:CanvasText;border-color:CanvasText}
 .member-portal .portal-feature-grid>.portal-feature-item :is(strong,small,svg){color:CanvasText}
 .portal-sales-dialog .portal-sales-plan{background:Canvas;color:CanvasText}
}

/* On a phone the existing collapsible menu stays with the compact toolbar.
   Only the open menu scrolls within its available height; the salon card
   remains in the document flow. Normal tablet/desktop navigation is unchanged. */
@media(max-width:700px), (max-width:1024px) and (max-height:500px){
 .member-portal .member-portal-toolbar{padding-top:env(safe-area-inset-top,0px)}
 .member-portal.member-workspace .member-layout{grid-template-columns:minmax(0,1fr)}
 .member-portal.member-workspace .member-sidebar:has(.member-workspace-menu){position:sticky;top:var(--member-header-offset);z-index:19;align-self:start;display:block;max-height:none;overflow:visible;padding:0;border:0;background:var(--bf-theme-surface,#fffefa);border-radius:9px;box-shadow:0 3px 12px #163d3210}
 .member-portal .member-workspace-menu{max-height:calc(100vh - var(--member-header-offset) - 16px - env(safe-area-inset-bottom,0px));max-height:calc(100dvh - var(--member-header-offset) - 16px - env(safe-area-inset-bottom,0px));overflow-y:auto;overscroll-behavior:contain;scroll-padding-block:60px 12px;border-radius:9px;touch-action:pan-y pinch-zoom}
 .member-portal .member-workspace-menu>summary{position:sticky;top:0;z-index:1;display:flex;align-items:center;gap:9px;min-height:48px;margin:0;padding:12px 16px;box-sizing:border-box;border:1px solid var(--bf-border);border-radius:9px;background:var(--bf-theme-surface,#fffefa);font-size:16px;line-height:1.5;list-style:none;cursor:pointer}
 .member-portal .member-workspace-menu>summary>svg:last-child{margin-inline-start:auto;flex-shrink:0}
 .member-portal .member-workspace-menu>summary::-webkit-details-marker{display:none}
 .member-portal .member-workspace-menu[open]>summary{margin-bottom:8px}
 .member-portal .member-workspace-menu[open]{padding-bottom:8px}
 .member-portal.member-workspace .member-sidebar .member-identity,.member-portal.member-workspace .member-sidebar .member-nav-label{display:none}
 .member-portal .member-main :is([id],a,button,input,select,textarea,[tabindex]){scroll-margin-top:calc(var(--member-header-offset) + var(--portal-mobile-menu-height,64px) + 16px)}
 .member-portal.member-workspace-profil .member-profile-body .member-editor-nav,.member-portal.member-workspace-profil .portal-editor-mobile-select{top:calc(var(--member-header-offset) + var(--portal-mobile-menu-height,64px) + var(--portal-condensed-height,0px))}
}
@media(max-width:1024px) and (max-height:500px){
 .member-portal .member-portal-toolbar{min-height:56px;gap:8px}
 .member-portal .member-portal-context-label{display:none}
 .member-portal.member-workspace .member-sidebar .member-sidebar-actions{margin-top:8px;padding-top:8px}
 .member-portal.member-workspace-profil .member-profile-body .member-editor-nav,.member-portal.member-workspace-profil .portal-editor-mobile-select{position:static}
}

.portal-sales-dialog .portal-sales-packages.is-premium-only{grid-template-columns:minmax(0,1fr);max-width:44rem;margin-inline:auto}

/* The sales dialog alone presents the original placement banner in its short
   form. Keep the shared seal, orbit frame and reduced-motion treatment. */
#dialog [data-portal-sales-dialog] .portal-sales-banner{margin:12px 0}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact]{padding:12px;margin:0}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .premium-opportunity-membership-layout{grid-template-columns:48px minmax(0,1fr);gap:8px 12px}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .member-basis-premium-seal{width:48px}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .premium-opportunity-headline{margin:0;font-size:clamp(20px,3.5vw,26px);line-height:1.2}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .premium-opportunity-stamp{margin:4px 0 0;font-size:12px;line-height:1.4}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .premium-opportunity-member-actions{grid-column:1/-1;flex-direction:column;gap:0}
#dialog [data-portal-sales-dialog] .premium-opportunity[data-opportunity-sales-compact] .premium-opportunity-member-actions .button{width:100%;min-height:44px;padding:9px 12px}
#dialog [data-portal-sales-dialog] .portal-sales-interval{width:fit-content;margin:12px 0;padding:3px;align-items:stretch}
#dialog [data-portal-sales-dialog] .portal-sales-interval button{flex:1 1 auto;flex-direction:row;gap:6px;min-height:44px;padding:6px 10px}
#dialog [data-portal-sales-dialog] .portal-sales-interval button>span.package-plan-label{font-size:14px}
#dialog [data-portal-sales-dialog] .portal-sales-interval .package-plan-saving{display:block;font-size:13px}
