/* Shared form ergonomics. Load after each frontend's theme. These base rules
   preserve its colors and layout; the royal customer overrides are below. */
:root{
  --form-focus:#f6d98a;
  --form-help:inherit;
  --form-edge:rgba(160,143,184,.46);
  --form-group-fill:rgba(142,116,171,.07);
  --form-success:#8ee4b5;
  --form-error:#ffb3c1;
}
:where(form,.form-section,.form-actions,.dialog-actions,.modal-actions) :is(button,input:not([type=hidden]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=color]),select,textarea):not(.account-add-balance):not(.primary-star):not(.score-amount-field input){
  box-sizing:border-box;min-height:44px!important;touch-action:manipulation;
}
:where(form,.form-section) :is(input,select,textarea){min-width:0;max-width:100%;scroll-margin-block:24px}
:where(form,.form-section) :is(input:not([type=checkbox]):not([type=radio]):not([type=range]),select,textarea){font-size:16px}
:where(form){row-gap:16px}
:where(form,.form-section) > :is(.form-field,.customer-manual-field,label:has(input,select,textarea)){margin-bottom:16px}
:where(form,.form-section) > label:not(:has(input,select,textarea)){display:block;margin-bottom:6px}
:where(form,.form-section) label{line-height:1.4}
:where(form,.form-section) :is(.field-help,.form-help,.small-note){display:block;margin:6px 0 0;line-height:1.5;color:var(--form-help)}
.form-section{min-width:0;margin:18px 0;padding:16px;border:1px solid var(--form-edge);border-radius:14px;background:var(--form-group-fill)}
.form-section-title{margin:0 0 8px;font-weight:800;line-height:1.35}
legend.form-section-title{padding-inline:7px}
.form-section-description{margin:0 0 16px;line-height:1.5}
.form-actions{display:flex;flex-wrap:wrap;align-items:center;justify-content:flex-end;gap:12px;margin-top:20px;padding-top:16px;border-top:1px solid var(--form-edge)}
.form-actions>*{min-width:0}
.form-actions :is(button,a){min-height:44px;white-space:normal}
.form-dialog{box-sizing:border-box;width:min(560px,calc(100vw - 28px));max-height:calc(100dvh - 32px);margin:auto;padding:24px;overflow:auto;color:#f5f0ff;border:1px solid #89669e;border-radius:18px;background:linear-gradient(145deg,#281635,#151724);box-shadow:0 24px 80px #0009,inset 0 1px 0 #ffffff12;color-scheme:dark}
.form-dialog::backdrop{background:rgba(6,8,18,.78)}
.form-dialog>form{margin:0}
.form-dialog .form-section-heading{display:flex;align-items:flex-start;justify-content:space-between;gap:16px;margin-bottom:22px;padding-bottom:16px;border-bottom:1px solid var(--form-edge)}
.form-dialog .form-section-heading>div{min-width:0}
.form-dialog .form-section-heading h2{margin:0;font-size:22px;line-height:1.25;font-weight:800;overflow-wrap:anywhere}
.form-dialog .form-section-heading .eyebrow{margin:0 0 6px;color:#d9bae9;font-size:11px;line-height:1.4;font-weight:750;letter-spacing:.09em}
.form-dialog .form-section-heading>button{flex:none}
.form-dialog :is(input,select,textarea){box-sizing:border-box;width:100%;padding:11px 12px;color:#fff;border:1px solid #896b9b;border-radius:10px;background:#110c20}
.form-dialog>form>label{margin-top:16px;color:#f3e8fa;font-size:14px;font-weight:700}
.form-dialog .form-actions{margin-bottom:0}
:where(form,.form-section,.form-actions,[role=dialog],dialog) :is(button,a,input,select,textarea,[tabindex]):focus-visible{
  outline:3px solid var(--form-focus)!important;outline-offset:3px!important;
}
:where(form,.form-section) :is(input,select,textarea)[aria-invalid=true]{border-color:var(--form-error)!important;box-shadow:0 0 0 1px var(--form-error)}
:where(form,.form-actions,.dialog-actions) :is(button,input,select,textarea):disabled{
  cursor:not-allowed;opacity:.6;filter:none;
}
:where(form,.form-actions) button[aria-busy=true]{cursor:progress}
.credential-tool-button,.password-toggle,[data-profile-password-toggle],#customer-manual-password-toggle{
  box-sizing:border-box;min-width:44px!important;min-height:44px!important;touch-action:manipulation;
}
:where(.credential-input-row){display:flex;align-items:center;gap:8px;min-width:0}
:where(.credential-input-row)>input{flex:1 1 0;min-width:0}
:where(.credential-input-row)>.credential-tool-button{flex:0 0 auto}
.credential-tool-button{display:inline-flex;align-items:center;justify-content:center;padding:9px 12px;border:1px solid var(--form-edge);border-radius:10px;background:linear-gradient(135deg,#513064,#33203f);color:#fff;font-family:inherit;font-size:13px;font-weight:700;line-height:1.25;cursor:pointer}
.credential-tool-button:hover:not(:disabled){border-color:var(--form-focus);filter:brightness(1.08)}
.btn,.button-primary,.button-secondary{min-height:44px!important;touch-action:manipulation}
:where(dialog,[role=dialog]) :is(.icon-button,.modal-close,.api-modal-close,.drawer-close,.close-button,[data-close]){min-width:44px!important;min-height:44px!important;touch-action:manipulation}
.password-guidance{
  box-sizing:border-box;min-width:0;margin:9px 0 4px;padding:12px 13px;
  border:1px solid var(--form-edge);border-radius:11px;background:var(--form-group-fill);
  font-size:13px;line-height:1.5;text-align:left;
}
.password-guidance-heading{display:flex;align-items:baseline;justify-content:space-between;flex-wrap:wrap;gap:5px 12px;margin:0 0 8px}
.password-guidance-title{font-size:13px;font-weight:750;line-height:1.4}
.password-length{font-size:12px;font-variant-numeric:tabular-nums;white-space:nowrap;opacity:.88}
.password-rule-list{display:grid;gap:7px;list-style:none;margin:0;padding:0}
.password-rule{display:flex;align-items:flex-start;gap:9px;margin:0;min-width:0;line-height:1.45}
.password-rule>span:last-child{min-width:0;overflow-wrap:anywhere}
.password-rule-marker{display:inline-grid;place-items:center;flex:0 0 18px;min-height:18px;margin-top:1px;border:1px solid var(--form-edge);border-radius:50%;font:700 12px/1 system-ui,sans-serif}
.password-rule[data-state=met] .password-rule-marker{color:var(--form-success);border-color:currentColor}
.password-rule[data-state=unmet] .password-rule-marker{color:var(--form-error);border-color:currentColor}
.password-field-error{margin:7px 0 0;font-size:13px;font-weight:650;line-height:1.5;color:var(--form-error);overflow-wrap:anywhere}
.password-guidance[hidden],.password-field-error[hidden],.password-field-error:empty{display:none!important}
@media(max-width:359px){.form-section{padding:12px}.form-actions{gap:10px}.form-actions>button{flex:1 1 120px}.form-dialog{padding:16px}.form-dialog .form-section-heading{gap:10px}.form-dialog .form-section-heading h2{font-size:20px}}
@media(prefers-reduced-motion:reduce){
  :where(form,.form-section,.form-actions,.dialog-actions) :is(button,input,select,textarea){transition:none!important;animation:none!important}
}

/* The main site declares this layer immediately after customer-auth-boundary.
   Earlier historical popup layers use !important, so this deliberate layer
   order replaces their undersized targets without touching visibility gates. */
@layer form-clarity{
  body[data-page=home]{
    --form-focus:#ffe3a0;--form-help:#dec8e9;--form-edge:#89669e;
    --form-group-fill:linear-gradient(135deg,#351246,#260c38);
    --form-success:#9af0bc;--form-error:#ffb5c3;
  }
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card){scroll-padding-block:18px!important}
  /* Use the selected app's live rules, never a CSS-generated password policy. */
  body[data-page=home] :is(#create-account-rule-note,#reset-password-rule-note)::before{content:none!important;display:none!important}
  body[data-page=home] :is(#create-account-rule-note,#reset-password-rule-note)>*{display:block!important}
  body[data-page=home] :is(#create-account-rule-note,#reset-password-rule-note)>strong{margin-bottom:4px!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) h2{margin-inline:46px!important;min-height:44px!important;line-height:1.2!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) h3{font-size:16px!important;line-height:1.35!important;margin-bottom:12px!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) label{font-size:14px!important;font-weight:700!important;line-height:1.45!important;color:#fff4e4!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) :is(p,small){line-height:1.5!important}
  body[data-page=home] :is(.create-account-description,.account-rule-note span,.withdrawal-help,#score-amount-note,#score-game-username-help,#customer-manual-criteria,#customer-profile-password-note,.profile-phone-editor>small,.profile-referral-box>small){font-size:13px!important;line-height:1.5!important;color:var(--form-help)!important;margin-top:7px!important}

  /* Related fields have a clear shared surface and a consistent vertical rhythm. */
  body[data-page=home] :is(#create-account-form,#reset-password-form,#customer-manual-auth-form,#customer-profile-password-form,.score-flat-section,.score-route-section,.profile-phone-editor,.profile-referral-box,.form-section){
    box-sizing:border-box!important;min-width:0!important;padding:15px!important;margin:16px 0!important;
    border:1px solid var(--form-edge)!important;border-radius:13px!important;background:var(--form-group-fill)!important;
    box-shadow:inset 0 1px 0 #e6bbf81a,0 3px 8px #10001933!important;
  }
  body[data-page=home] :is(#create-account-form,#reset-password-form,#customer-profile-password-form)>label{display:block!important;margin:0 0 18px!important}
  body[data-page=home] :is(.customer-manual-field,.customer-manual-referral){margin:0 0 18px!important}
  body[data-page=home] :is(.score-flat-section,.score-route-section) :is(label,.score-conditional-field){margin-top:10px!important}
  body[data-page=home] :is(.profile-phone-actions,.credential-result-actions,.form-actions){display:flex!important;flex-wrap:wrap!important;gap:12px!important;margin-top:20px!important;padding-top:16px!important;border-top:1px solid #866095!important}
  body[data-page=home] :is(.profile-phone-actions,.form-actions)>button{flex:1 1 130px!important;margin:0!important}
  body[data-page=home] :is(#create-account-form,#reset-password-form,#customer-manual-auth-form,#score-route-form)>button[type=submit]{margin-top:22px!important}
  body[data-page=home] .account-rule-note{padding:12px 13px!important;margin:14px 0!important;border-color:#99764e!important;background:linear-gradient(120deg,#43283e,#2f183b)!important}
  body[data-page=home] .account-rule-note strong{font-size:14px!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) :is(input:not([type=radio]):not([type=checkbox]):not([type=hidden]),select,textarea){
    box-sizing:border-box!important;min-width:0!important;min-height:46px!important;height:auto!important;
    padding:11px 12px!important;margin-top:6px!important;border:1px solid #a581b8!important;border-radius:10px!important;
    background:linear-gradient(120deg,#230b35,#1b082b)!important;color:#fff7ff!important;-webkit-text-fill-color:#fff7ff!important;
    font-size:16px!important;line-height:1.35!important;caret-color:#d2ffe1!important;
  }
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) input::placeholder{color:#c8b2d8!important;-webkit-text-fill-color:#c8b2d8!important;opacity:1!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) input[readonly]{background:linear-gradient(120deg,#30203e,#24152f)!important;color:#e4d4ed!important;-webkit-text-fill-color:#e4d4ed!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) :is(input,select,textarea)[aria-invalid=true]{border-color:#ffb5c3!important;box-shadow:0 0 0 1px #ffb5c3!important}
  body[data-page=home] :is(#score-amount,#customer-wallet-share-amount,.score-profile-amount,.royal-amount-input){padding-left:34px!important;background:linear-gradient(110deg,#093a2d,#082b25)!important;color:#adf3c9!important;-webkit-text-fill-color:#adf3c9!important;border-color:#5fa98b!important}
  body[data-page=home] .score-amount-field::after{bottom:15px!important}

  /* Labeled utility controls replace the tiny icon-only targets. */
  body[data-page=home] .credential-input-row{display:grid!important;position:static!important;grid-template-columns:minmax(0,1fr) auto!important;gap:8px!important;align-items:center!important;margin-top:7px!important}
  body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button){grid-template-columns:minmax(0,1fr) auto auto!important}
  body[data-page=home] .credential-input-row:not(:has(>.credential-copy-button)):has(>.credential-toggle-button){grid-template-columns:minmax(0,1fr) auto!important}
  body[data-page=home] .credential-input-row input{grid-column:1!important;grid-row:1!important;min-width:0!important;margin:0!important;padding-right:12px!important}
  body[data-page=home] .customer-profile-password-row{overflow:visible!important;border:0!important;border-radius:0!important;background:none!important}
  body[data-page=home] :is(.credential-tool-button,[data-profile-password-toggle],#customer-manual-password-toggle){
    display:inline-flex!important;position:static!important;inset:auto!important;transform:none!important;
    align-items:center!important;justify-content:center!important;flex:0 0 auto!important;
    grid-column:auto!important;grid-row:1!important;width:auto!important;height:44px!important;min-width:52px!important;min-height:44px!important;max-height:none!important;
    padding:9px 10px!important;margin:0!important;border:1px solid #ba92ce!important;border-radius:10px!important;
    background:linear-gradient(155deg,#62337b,#3c1c55)!important;color:#fff5ff!important;-webkit-text-fill-color:#fff5ff!important;
    font:700 14px/1.25 Arial,sans-serif!important;letter-spacing:0!important;white-space:nowrap!important;
    box-shadow:inset 0 1px 0 #edceff33,0 2px 0 #15071f!important;
  }
  body[data-page=home] .credential-tool-button::before{display:none!important;content:none!important}
  body[data-page=home] :is([data-profile-password-toggle],#customer-manual-password-toggle){min-width:46px!important;width:46px!important}
  body[data-page=home] :is([data-profile-password-toggle],#customer-manual-password-toggle) svg{width:21px!important;height:21px!important;stroke-width:1.8!important}
  body[data-page=home] .customer-manual-password-row{display:grid!important;grid-template-columns:minmax(0,1fr) 46px!important;gap:8px!important;align-items:center!important}
  body[data-page=home] .customer-manual-password-row input{margin:0!important;padding-right:12px!important}
  body[data-page=home] .credential-result-row{display:grid!important;grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;align-items:center!important;margin:14px 0!important}
  body[data-page=home] .credential-result-value{min-width:0!important;min-height:48px!important;padding:10px 12px!important;border:1px solid #9871ae!important;border-radius:10px!important;background:linear-gradient(120deg,#2c123e,#210c32)!important}
  body[data-page=home] .credential-result-value small{font-size:13px!important;color:#d6bfe5!important}
  body[data-page=home] .credential-result-value strong{font-size:16px!important;line-height:1.4!important;overflow-wrap:anywhere!important}
  body[data-page=home] .credential-result-tools{display:flex!important;position:static!important;gap:8px!important;align-items:center!important;justify-content:flex-end!important;min-width:0!important;margin:0!important}
  body[data-page=home] .credential-result-row:has(.credential-toggle-button) .credential-result-value{padding-right:12px!important}
  body[data-page=home] .credential-inline-status{font-size:13px!important;color:#a3ecc1!important}

  /* The primary action is green, secondary actions are royal purple, and
     withdrawals/destructive actions retain their explicit red treatment. */
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) :is(.request-edit-button,.context-guide-button,.customer-profile-tab-button,.customer-manual-auth-back,.score-account-mode button){
    min-height:44px!important;padding:10px 13px!important;font-size:14px!important;font-weight:700!important;line-height:1.3!important;
    border:1px solid #b487ca!important;background:linear-gradient(155deg,#5a2b75,#37164f)!important;color:#fff4ff!important;-webkit-text-fill-color:#fff4ff!important;
    box-shadow:inset 0 1px 0 #eac5ff30,0 2px 0 #180822!important;
  }
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) .score-submit{
    min-height:50px!important;padding:12px 16px!important;font-size:19px!important;line-height:1.3!important;font-weight:750!important;
    background:linear-gradient(165deg,#147e56,#0a573b)!important;border:1px solid #65d4a0!important;color:#f3fff7!important;-webkit-text-fill-color:#f3fff7!important;
    box-shadow:inset 0 1px 1px #d8ffe84d,0 3px 0 #042a1b,0 5px 12px #0a001c55!important;
  }
  body[data-page=home] :is(#withdrawal-submit,.request-cancel-button,.profile-logout-button,.button-danger,[data-button-variant=destructive]){
    min-height:44px!important;border:1px solid #e28ba4!important;background:linear-gradient(165deg,#8b3252,#58213b)!important;
    color:#fff2f5!important;-webkit-text-fill-color:#fff2f5!important;box-shadow:inset 0 1px 0 #ffdbe62e,0 2px 0 #290d1e!important;
  }
  body[data-page=home] :is(.add-score-close,.contact-message-close,.modal-back-button,.royal-popup-back,.royal-dialog-close,.phone-modal-close){
    box-sizing:border-box!important;width:44px!important;height:44px!important;min-width:44px!important;min-height:44px!important;max-height:none!important;
    padding:0!important;font-size:27px!important;line-height:1!important;border:1px solid #d3b979!important;border-radius:12px!important;
    background:linear-gradient(145deg,#533367,#2c173f)!important;color:#fff3d7!important;-webkit-text-fill-color:#fff3d7!important;
  }
  body[data-page=home] :is(.add-score-close,.contact-message-close){inset:12px 12px auto auto!important}
  body[data-page=home] :is(.modal-back-button,.royal-popup-back){inset:12px auto auto 12px!important}
  body[data-page=home] .customer-profile-titlebar{min-height:50px!important;padding-inline:48px!important}
  body[data-page=home] .customer-profile-titlebar #customer-auth-close{inset:3px 0 auto auto!important}
  body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) button:disabled{
    opacity:.6!important;filter:none!important;cursor:not-allowed!important;box-shadow:inset 0 1px 0 #ffffff12!important;transform:none!important;
  }
  body[data-page=home] :is(.customer-manual-mode button,.score-account-mode button,.customer-profile-tab-button){min-height:44px!important;font-size:14px!important;white-space:normal!important}
  body[data-page=home] :is(.customer-manual-mode button,.score-account-mode button,.customer-profile-tab-button)[aria-selected=true]{
    border-color:#e8c475!important;background:linear-gradient(155deg,#694483,#472258)!important;color:#fff3cf!important;-webkit-text-fill-color:#fff3cf!important;
    box-shadow:inset 0 -3px 0 #e8c475,inset 0 1px 0 #f7d9ff44!important;
  }
  body[data-page=home] #customer-copy-profile-id{
    width:auto!important;min-width:52px!important;height:44px!important;min-height:44px!important;padding:9px 10px!important;
    font:700 14px/1.25 Arial,sans-serif!important;border:1px solid #ba92ce!important;border-radius:10px!important;
    background:linear-gradient(155deg,#62337b,#3c1c55)!important;color:#fff5ff!important;-webkit-text-fill-color:#fff5ff!important;
  }
  body[data-page=home] #customer-copy-profile-id::before{display:none!important;content:none!important}
  body[data-page=home] .my-profile-id-box{grid-template-columns:minmax(0,1fr) auto!important;gap:10px!important;padding:8px 10px!important;min-height:60px!important}

  body[data-page=home] .password-guidance{margin:10px 0 4px!important;padding:12px!important;border:1px solid #88699d!important;background:linear-gradient(135deg,#2b173c,#21102f)!important;font:400 13px/1.5 Arial,sans-serif!important;color:#e6d8ef!important}
  body[data-page=home] .password-guidance-title{font:700 13px/1.4 Arial,sans-serif!important;color:#fff0cf!important}
  body[data-page=home] .password-length{font:400 12px/1.4 Arial,sans-serif!important;color:#d8c4e4!important}
  body[data-page=home] .password-rule-list{margin:0!important;padding:0!important;list-style:none!important}
  body[data-page=home] .password-rule{font:400 13px/1.45 Arial,sans-serif!important;color:#e6d8ef!important}
  body[data-page=home] .password-rule-marker{font:700 12px/1 Arial,sans-serif!important}
  body[data-page=home] .password-field-error{font:650 13px/1.5 Arial,sans-serif!important;color:#ffb5c3!important;margin-top:8px!important}
  body[data-page=home] :is(.score-form-message,.customer-auth-message):not(:empty){font-size:14px!important;line-height:1.5!important;margin-top:14px!important;padding:10px 12px!important;border-left:3px solid currentColor!important;border-radius:7px!important;background:#1e0e2a!important}

  @media(max-width:430px){
    body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button){grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
    body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button)>input{grid-column:1/-1!important;grid-row:1!important}
    body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button)>button{grid-row:2!important;width:100%!important}
    body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button)>.credential-toggle-button{grid-column:1!important}
    body[data-page=home] .credential-input-row:has(>.credential-toggle-button):has(>.credential-copy-button)>.credential-copy-button{grid-column:2!important}
    body[data-page=home] .credential-result-row:has(.credential-toggle-button){grid-template-columns:minmax(0,1fr)!important}
    body[data-page=home] .credential-result-row:has(.credential-toggle-button) .credential-result-tools{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr))!important;width:100%!important}
    body[data-page=home] .credential-result-row:has(.credential-toggle-button) .credential-tool-button{width:100%!important}
  }
  @media(max-width:359px){
    body[data-page=home] :is(#create-account-form,#reset-password-form) .credential-input-row:has(>.credential-toggle-button){display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr)!important}
    body[data-page=home] :is(#create-account-form,#reset-password-form) .credential-input-row:has(>.credential-toggle-button)>input{grid-column:1/-1!important;grid-row:1!important;width:100%!important}
    body[data-page=home] :is(#create-account-form,#reset-password-form) .credential-input-row:has(>.credential-toggle-button)>button{position:static!important;grid-row:2!important;grid-column:auto!important;width:100%!important}
    body[data-page=home] :is(#create-account-form,#reset-password-form) .credential-input-row:has(>.credential-toggle-button)>.credential-toggle-button{grid-column:1!important}
    body[data-page=home] :is(#create-account-form,#reset-password-form) .credential-input-row:has(>.credential-toggle-button)>.credential-copy-button{grid-column:2!important}
    body[data-page=home] :is(#create-account-form,#reset-password-form,#customer-manual-auth-form,#customer-profile-password-form,.score-flat-section,.score-route-section,.profile-phone-editor,.profile-referral-box,.form-section){padding:12px!important}
    body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) h2{font-size:20px!important;margin-inline:42px!important}
    body[data-page=home] .credential-result-row{gap:8px!important}
    body[data-page=home] .credential-tool-button{min-width:48px!important;padding-inline:8px!important}
  }
  @media(hover:hover){
    body[data-page=home] :is(.credential-tool-button,.request-edit-button,.context-guide-button,.score-submit):hover:not(:disabled){filter:brightness(1.12)!important;border-color:#ffe4ab!important}
  }
  @media(prefers-reduced-motion:reduce){
    body[data-page=home] :is(.add-score-card,.create-account-request-card,.royal-popup-card) :is(button,input,select,textarea){animation:none!important;transition:none!important}
    body[data-page=home] :is(.credential-tool-button,.request-edit-button,.context-guide-button,.score-submit):active{transform:none!important}
  }
}

/* Preserve the existing highest-priority authentication hiding rules, but do
   not let their pointer-focus reset suppress a real :focus-visible indicator. */
@layer customer-auth-boundary{
  body[data-page=home] :is(.add-score-modal,.create-account-request-modal,.royal-customer-modal) :is(input,select,textarea,button,a):focus-visible:focus{
    outline:3px solid #ffe3a0!important;outline-offset:3px!important;
  }
}
