.bg-otp{display:inline-block;position:relative;box-sizing:border-box;width:304px;max-width:100%;min-width:0;vertical-align:middle;flex:0 1 304px;line-height:1.2}
.bg-otp-track{position:relative;display:block;width:100%}.bg-otp-cells{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:8px;pointer-events:none}
.bg-otp-cell{box-sizing:border-box;display:flex;align-items:center;justify-content:center;aspect-ratio:1;min-height:40px;min-width:0;border:1px solid #cbd6df;border-radius:10px;background:#fff;color:#1f4152;font:500 24px/1 ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;box-shadow:0 1px 2px #193c4c08}
.bg-otp-cell.is-active{border-color:#1684ad;box-shadow:0 0 0 2px #1684ad24}.bg-otp.is-error .bg-otp-cell{border-color:#c74646}.bg-otp.is-valid .bg-otp-cell{border-color:#559b83}.bg-otp.is-busy .bg-otp-cell{background:#f3f7f9}.bg-otp.is-disabled{opacity:.6}
body .bg-otp .bg-otp-track input.bg-otp-input{position:absolute!important;inset:0!important;display:block!important;box-sizing:border-box!important;width:100%!important;max-width:none!important;min-width:0!important;height:100%!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;outline:0!important;box-shadow:none!important;background:transparent!important;color:transparent!important;-webkit-text-fill-color:transparent!important;caret-color:transparent!important;text-shadow:none!important;font-size:24px!important;letter-spacing:0!important;text-align:left!important;z-index:1;opacity:1!important}
body .bg-otp .bg-otp-track input.bg-otp-input::placeholder{color:transparent!important;-webkit-text-fill-color:transparent!important}
/* Retire each old single-field width:0 rule while this SMS input is inside six cells. */
body .bg-otp .bg-otp-track #bgca-code,body .bg-otp .bg-otp-track #bdsg-code,body .bg-otp .bg-otp-track #bgl-code,body .bg-otp .bg-otp-track #bg-sms-code,body .bg-otp .bg-otp-track #bgrc-code{width:100%!important}
body button.bg-otp-retry{display:block;margin:6px 0 0 auto;padding:2px 0;border:0;background:none;color:#1684ad;font:inherit;font-size:12px;cursor:pointer}body button.bg-otp-retry[hidden]{display:none!important}
body .bg-otp-row{display:flex!important;align-items:flex-start;gap:12px;flex-wrap:wrap}body .bg-otp-row>.bg-otp{flex:1 1 240px;max-width:304px}body .bg-otp-row>button{flex:0 0 auto;margin-top:0}
body .bg-otp-auto-action{display:none!important}
@media(max-width:600px){.bg-otp-cells{gap:6px}.bg-otp-cell{font-size:22px;border-radius:9px}body .bg-otp-row>.bg-otp{flex-basis:100%;width:304px}body .bg-otp-row>button{width:100%;max-width:304px;margin:0}.bg-otp{max-width:100%}}
@media(forced-colors:active){.bg-otp-cell{background:Canvas;color:CanvasText;border-color:CanvasText}.bg-otp-cell.is-active{outline:2px solid Highlight}}
body dialog.bg-sms-code-dialog{box-sizing:border-box;width:410px;max-width:calc(100% - 32px);max-height:calc(100dvh - 32px);padding:28px;border:1px solid #d6e0e6;border-radius:16px;background:#fff;color:#1f4152;box-shadow:0 18px 70px #163a5040;text-align:center;overflow:auto}
body dialog.bg-sms-code-dialog:not([open]){display:none!important}body dialog.bg-sms-code-dialog[open]{display:block;visibility:visible}
/* Keep the phone verification state, while displaying only the current SMS step. */
body dialog.bdt-phone-dialog:has(.bg-sms-code-dialog[open]){visibility:hidden}
body dialog.bdt-phone-dialog:has(.bg-sms-code-dialog[open])::backdrop{background:transparent}
body dialog.bg-sms-code-dialog::backdrop{background:#163a5066}body dialog.bg-sms-code-dialog h2{margin:0 0 12px;font-size:24px;line-height:1.4}body .bg-sms-target{margin:0 0 24px;color:#5c7482;font-size:14px;line-height:1.6}body .bg-sms-dialog-status{margin:18px 0 12px;font-size:13px;line-height:1.7;color:#5c7482;min-height:22px}
body button.bg-sms-back,body button.bg-sms-resume{background:none;border:0;color:#1684ad;font:inherit;font-size:14px;padding:8px;cursor:pointer}body button.bg-sms-resume[hidden]{display:none!important}
body .bg-sms-old-label[hidden]{display:none!important}
body button.bg-sms-continue{width:auto!important;min-width:126px;min-height:44px;height:auto!important;margin:0!important;padding:10px 24px!important;border:0!important;border-radius:8px!important;background:#1478a6!important;color:white!important;font-size:15px!important;line-height:1.5!important;flex:0 0 auto!important}body button.bg-sms-continue:disabled{background:#b8d1e1!important;color:white!important;cursor:not-allowed}
body dialog.bg-sms-inline-graphic{position:static;inset:auto;display:block;box-sizing:border-box;width:100%;max-width:none;max-height:none;margin:0 0 20px;padding:0;border:0;border-radius:0;box-shadow:none;background:transparent;overflow:visible;color:inherit}
body .bg-sms-inline-graphic>[hidden]{display:none!important}body .bg-sms-graphic-row{display:grid;grid-template-columns:minmax(0,1fr) 122px;align-items:start;gap:10px;min-width:0}
/* Scope first-step controls explicitly: old page/form rules also style these IDs. */
body :is(#bgca-form,#bdsl-sms-form) :is(#bgca-phone,#bgca-graphic,#bdsg-phone,#bdsg-answer){box-sizing:border-box;width:100%;min-width:0;height:44px;min-height:44px;margin:0;padding:0 12px;border:1px solid #d6e0e6;border-radius:8px;background:#fff;color:#1f4152;font:inherit;font-size:15px!important;text-align:left;letter-spacing:0;line-height:normal}
body :is(#bgca-form,#bdsl-sms-form) :is(#bgca-phone,#bgca-graphic,#bdsg-phone,#bdsg-answer):focus{border-color:#1684ad;outline:0;box-shadow:0 0 0 3px #1684ad20}
/* Match the graphic input column, excluding its 122px picture and 10px gap. */
body :is(#bgca-form,#bdsl-sms-form) :is(#bgca-phone,#bdsg-phone){width:calc(100% - 132px)}
body #bdsl-sms-form #bdsg-phone{margin-bottom:20px}body #bdsl-sms-form .bdsg-code-row{margin-top:0}
body .bg-sms-graphic-row>.bgca-dialog-picture,body .bg-sms-graphic-row>.bdsg-picture-row{display:grid;grid-template-columns:minmax(0,1fr);align-items:start;gap:8px;width:122px;max-width:122px;margin:0}
/* Preserve the original 160:56 picture ratio inside a 44px bordered control. */
body .bg-sms-graphic-row :is(#bgca-picture,#bdsg-picture){box-sizing:border-box;display:block;width:122px;height:44px;min-height:44px;max-height:44px;margin:0;padding:0;border:1px solid #d6e0e6;border-radius:8px;background:#f7fafb;overflow:hidden;cursor:pointer}
body .bg-sms-graphic-row :is(#bgca-image,#bdsg-image){display:block;width:120px;height:42px;max-width:100%;margin:0;border:0;border-radius:0;object-fit:contain}body .bg-sms-graphic-row img[hidden]{display:none}
body .bg-sms-graphic-row :is(#bgca-refresh,#bdsg-refresh){justify-self:start;width:auto;min-height:0;height:auto;margin:0;padding:0;border:0;background:none;color:#1684ad;font:inherit;font-size:12px;line-height:1.6;cursor:pointer}
body .bg-sms-inline-graphic #bgca-graphic-status,body .bg-sms-inline-graphic #bdsg-status{margin:6px 0 0;font-size:13px;line-height:1.6}body .bg-sms-inline-graphic #bgca-graphic-status:empty,body .bg-sms-inline-graphic #bdsg-status:empty{display:none}
@media(max-width:600px){body dialog.bg-sms-code-dialog{padding:24px 18px}body dialog.bg-sms-inline-graphic{margin-bottom:20px}}
