/** RR Card 2.1.0 — visual polish only. Loaded after legacy styles, scoped to MLS UI.
 * Does not hide actions, alter form submissions, change roles, or force a palette. */
body.mls-ui-skin{
  --mls-polish-radius:var(--mls-radius-card,18px);
  --mls-polish-focus:var(--mls-primary,#D6A64F);
  --mls-polish-shadow:0 15px 36px -31px rgba(0,0,0,.46);
  font-synthesis:none;
}
body.mls-ui-skin :where(.mls-front-shell,.mls-dashboard-panel,.mls-console-panel,.mls-console-section,.mls-offer-card,.mls-action-card,.mls-scanner-shell,.mls-profile-shell,.mls-auth-shell,.mls-mobile-app-settings){
  min-width:0;max-width:100%;box-sizing:border-box;
}
body.mls-ui-skin :where(.mls-dashboard-panel,.mls-console-panel,.mls-console-section,.mls-offer-card,.mls-action-card,.mls-mobile-app-settings){
  border-radius:var(--mls-polish-radius)!important;
  box-shadow:var(--mls-polish-shadow)!important;
}
/* Respect the configured branding; no forced palette or extra management cards. */
body.mls-ui-skin :where(.mls-primary,.mls-secondary,.mls-link-button,button,input,select,textarea,a){
  -webkit-tap-highlight-color:transparent;
}
body.mls-ui-skin :where(a,button,input,select,textarea,[role="tab"]):focus-visible{
  outline:3px solid var(--mls-polish-focus)!important;
  outline-offset:3px!important;
}
body.mls-ui-skin :where(input,select,textarea){
  max-width:100%;box-sizing:border-box;
}
body.mls-ui-skin :where(.mls-primary,.mls-secondary,.mls-link-button){
  display:inline-flex;align-items:center;justify-content:center;gap:7px;
  max-width:100%;box-sizing:border-box;text-decoration:none;
  font-weight:700;transition:box-shadow .15s ease,filter .15s ease,transform .15s ease;
}
body.mls-ui-skin :where(.mls-primary,.mls-secondary,.mls-link-button):not(:disabled):active{
  transform:translateY(1px);
}
body.mls-ui-skin :where(button,[role="button"])[aria-disabled="true"],
body.mls-ui-skin :where(button,input[type="submit"]):disabled{cursor:wait;opacity:.65}
body.mls-ui-skin :where(.mls-dashboard-title,.mls-section-head,.mls-panel-head) :where(h1,h2,h3){
  letter-spacing:-.02em;line-height:1.24;text-wrap:balance;
}
body.mls-ui-skin :where(.mls-front-shell,.mls-dashboard-panel,.mls-profile-shell,.mls-auth-shell) :where(p,small){line-height:1.56}
body.mls-ui-skin :where(.mls-offer-grid,.mls-action-grid,.mls-kpi-grid) > *{min-width:0}
body.mls-ui-skin :where(.mls-table-wrap,.mls-responsive-table){max-width:100%;-webkit-overflow-scrolling:touch}
body.mls-ui-skin :where(.mls-table-wrap,.mls-responsive-table) :where(td,th){overflow-wrap:anywhere}
body.mls-ui-skin :where(.mls-offer-card,.mls-action-card,.mls-kpi-card) :where(h2,h3,h4,strong){overflow-wrap:anywhere}
body.mls-ui-skin :where(.mls-mobile-web-nav,.mls-mobile-app-nav) :where(a,button):focus-visible{
  outline-offset:-3px!important;border-radius:13px;
}
/* Installed PWA: retain all nav actions, improve touch size / bottom safe area. */
@media(max-width:782px){
 body.mls-mobile-web :where(.mls-mobile-web-nav,.mls-mobile-app-nav){
   padding-bottom:max(7px,env(safe-area-inset-bottom))!important;
 }
 body.mls-mobile-web :where(.mls-mobile-web-nav,.mls-mobile-app-nav) :where(a,button){
   min-height:49px!important;min-width:0!important;
 }
 body.mls-mobile-web :where(.mls-dashboard-panel,.mls-console-panel,.mls-console-section){
   margin-top:12px;box-sizing:border-box;
 }
 body.mls-mobile-web :where(.mls-primary,.mls-secondary,.mls-link-button,button){touch-action:manipulation}
 body.mls-mobile-web .mls-mobile-app-settings-row{gap:12px;flex-wrap:wrap}
 body.mls-mobile-web .mls-member360-tabs [role="tab"]{min-height:44px;touch-action:manipulation}
 body.mls-mobile-web .mls-member360-back{min-width:44px;min-height:44px}
 body.mls-mobile-web .mls-member360-page{max-height:100vh;max-height:100dvh}
 body.mls-mobile-web .mls-member360-body{overscroll-behavior-y:contain}
 body.mls-mobile-web :where(.mls-action-grid,.mls-offer-grid,.mls-dashboard-split){min-width:0;max-width:100%}
}
/* v2.2.3: per-account Light/System appearance removed; installed PWA uses one stable RR Card palette. */
/* Do not animate sensitive payment/scanner UI when reduced motion is requested. */
@media(prefers-reduced-motion:reduce){
 body.mls-ui-skin :where(.mls-primary,.mls-secondary,.mls-link-button){transition:none!important;transform:none!important}
 body.mls-ui-skin :where(.mls-mobile-web-nav,.mls-mobile-app-nav){transition:none!important}
}
/* Assisted registration: show existing stages without splitting/reposting the form. */
body.mls-ui-skin .mls-premium-assisted-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;margin:0 0 16px}
body.mls-ui-skin .mls-premium-assisted-progress span{display:flex;align-items:center;gap:7px;min-width:0;padding:10px 8px;border:1px solid var(--mls-border,#D6A64F);border-radius:12px;color:var(--mls-text,inherit);font-size:12px;font-weight:700;overflow-wrap:anywhere}
body.mls-ui-skin .mls-premium-assisted-progress b{display:grid;place-items:center;flex:0 0 24px;width:24px;height:24px;border-radius:50%;background:var(--mls-primary,#D6A64F);color:#121212;font-size:12px}
body.mls-ui-skin .mls-premium-assisted-plan{grid-column:1/-1;margin:0 0 8px;font-size:12px;line-height:1.5;font-weight:700;color:var(--mls-primary,#D6A64F)}
body.mls-ui-skin :where(.mls-assisted-payment-quote,.mls-assisted-payment-qr){min-width:0;max-width:100%;border-radius:16px;overflow-wrap:anywhere}
body.mls-ui-skin .mls-assisted-payment-qr img{max-width:min(100%,280px);height:auto;object-fit:contain}
/* Manual offer builder: read-only preview; original fields, publish and delete are unchanged. */
body.mls-ui-skin .mls-premium-offer-preview{max-width:100%;min-width:0;margin:18px 0;padding:14px;border:1px solid var(--mls-border,#D6A64F);border-radius:17px;background:var(--mls-surface,#171717);color:var(--mls-text,inherit)}
body.mls-ui-skin .mls-premium-preview-head{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:8px;margin-bottom:10px}
body.mls-ui-skin .mls-premium-preview-head>span{font-size:10px;font-weight:850;letter-spacing:.12em;color:var(--mls-primary,#D6A64F)}
body.mls-ui-skin .mls-premium-preview-head>small{font-size:11px;color:var(--mls-muted,#9ca3af)}
body.mls-ui-skin .mls-premium-preview-card{padding:16px;border:1px solid var(--mls-border,#D6A64F);border-radius:14px;background:var(--mls-surface-alt,var(--mls-surface,#191919));overflow-wrap:anywhere}
body.mls-ui-skin .mls-premium-preview-type{display:block;font-size:12px;font-weight:800;color:var(--mls-primary,#D6A64F)}
body.mls-ui-skin .mls-premium-preview-title{margin:7px 0!important;font-size:clamp(17px,3vw,21px)!important;line-height:1.2}
body.mls-ui-skin .mls-premium-preview-description{margin:0 0 10px;white-space:pre-wrap;font-size:13px}
body.mls-ui-skin .mls-premium-preview-meta{margin-top:10px;color:var(--mls-muted,#9ca3af);font-size:12px;line-height:1.5}
body.mls-ui-skin .mls-premium-preview-status{display:inline-flex;align-items:center;margin-top:12px;padding:5px 10px;border-radius:99px;border:1px solid var(--mls-border,#D6A64F);font-size:11px;font-weight:750}
@media(max-width:480px){body.mls-ui-skin .mls-premium-assisted-progress span{flex-direction:column;justify-content:center;text-align:center;font-size:10px;gap:5px}body.mls-ui-skin .mls-premium-assisted-progress b{flex-basis:24px}}
