/* Keep keyboard focus visible without framing text actions in a rectangle. */
html:has(dialog:modal),
body:has(dialog:modal) {
  overflow: hidden;
  overscroll-behavior: none;
}
dialog:modal {
  box-sizing: border-box;
  max-height: 100dvh;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
}
#profile-notice.success .alert-symbol,
.reset-notice .error-symbol,
.recovery .field:has(input[readonly])::after {
  content: "";
  border: 0;
  border-radius: 0;
  background: currentColor;
  mask: url("/static/42a86f11e215/brand/success-check.svg") center / contain no-repeat;
}
:is(a,button,[role="button"]):focus-visible {
  outline: none !important;
  text-decoration: underline 2px currentColor;
  text-underline-offset: .22em;
}
:is(button,a):focus-visible:has(svg:only-child),
:is(.eye,.dismiss-error,.dialog-x,.nav-close):focus-visible {
  border-radius: 999px;
  box-shadow: 0 0 0 2px currentColor;
}
@media (forced-colors: active) {
  :is(a,button,[role="button"]):focus-visible { outline: 2px solid Highlight !important; }
}


dialog button:focus-visible, dialog a:focus-visible, dialog button:hover {
  text-decoration: none !important;
}
dialog button:focus-visible, dialog a:focus-visible {
  outline: 2px solid currentColor !important;
  outline-offset: 2px;
}

/* Shared account, member and owner dialogs use the original member notice dimensions. */
dialog:is(#feedback,.login-error){
 box-sizing:border-box;width:min(384px,calc(100% - 32px));max-width:none;max-height:100dvh;
 inset:0;margin:auto;border:0;border-radius:24px;padding:24px 24px 20px;
 text-align:center;background:#fff;color:#484848;font:400 14px/20px "IBM Plex Sans",sans-serif;
}
dialog:is(#feedback,.login-error):focus{outline:0}
dialog:is(#feedback,.login-error)::backdrop{background:rgba(17,17,17,.91)}
dialog:is(#feedback,.login-error) form{margin:0}
dialog:is(#feedback,.login-error) h2{margin:14px 0 8px;font:800 18px/22px "Sofia Sans Condensed",sans-serif;text-transform:uppercase}
dialog:is(#feedback,.login-error) p{margin:0;color:#555;font:400 14px/20px "IBM Plex Sans",sans-serif}
dialog:is(#feedback,.login-error) :is(.feedback-symbol,.auth-success-icon,.error-symbol,img){width:40px;height:40px;box-sizing:border-box;margin:0 auto}
dialog:is(#feedback,.login-error) :is(.feedback-close,.secondary,.confirm-clear){
 display:block;width:100%;min-height:48px;margin:24px 0 0;padding:10px;border:0;border-radius:32px;
 background:#f2f2f2;color:#484848;font:800 16px/20px "Sofia Sans Condensed",sans-serif;text-transform:uppercase;cursor:pointer;
}
dialog:is(#feedback,.login-error) .feedback-x{
 appearance:none;display:grid;place-items:center;position:absolute;inset:10px 10px auto auto;
 width:34px;height:34px;min-height:0;min-width:0;padding:0;margin:0;border:0;border-radius:50%;
 color:#484848;background:transparent;box-shadow:none;cursor:pointer;
}
dialog:is(#feedback,.login-error) button:focus-visible{outline:2px solid #555!important;outline-offset:2px;box-shadow:none;text-decoration:none!important}
dialog:is(#feedback,.login-error) .feedback-x:hover{background:#f4f4f4}
dialog#clear-log-dialog .confirm-clear{margin-top:6px;background:#bb1c33;color:white}
@media(max-width:767px){
 dialog:is(#feedback,.login-error){width:100%;inset:auto 0 0;margin:0;border-radius:24px 24px 0 0;padding:24px 20px max(20px,env(safe-area-inset-bottom))}
 dialog:is(#feedback,.login-error) .feedback-x{display:none}
 dialog:is(#feedback,.login-error) :is(.feedback-close,.secondary){margin-top:48px;min-height:64px}
}

/* Keep the surrounding menu and controls steady while replacing their contents. */
.fetching-section{position:relative;min-height:180px}
.fetching-section>*{visibility:hidden}
.fetching-section::after{content:"";display:block;position:absolute;top:min(100px,35%);left:calc(50% - 14px)}
.fetching-section::after,.workspace .live-chart .spinner{width:28px;height:28px;border:2px solid #dedede;border-top-color:#393539;border-radius:50%;animation:rotate .75s linear infinite}
.workspace .live-chart .spinner{left:calc(50% - 14px);top:calc(50% - 14px)}
.switching-period .chart-scroll{visibility:hidden}
.workspace [data-copy].is-copied{color:#c91332}
.workspace .panel #profile-form .fieldbox{display:flex;align-items:center;justify-content:space-between;gap:10px;min-height:46px;padding:0 12px;border:1px solid #b5b5b5;border-radius:10px;background:#fff}
.workspace .panel #profile-form .fieldbox input{min-width:0;flex:1;width:0;margin:0;padding:10px 3px;border:0;background:transparent;font:inherit;color:inherit}
.workspace .panel #profile-form .fieldbox:focus-within{outline:2px solid #323232;outline-offset:-1px}
.workspace #profile-form .row{display:grid;gap:4px}
.workspace .panel #profile-form .locked{color:#777;background:#f3f3f3}.locked>span{white-space:nowrap;color:#777}
.name-check{display:grid;place-items:center;width:23px;height:23px;border:1.5px solid #999;color:#777;border-radius:50%}.verify-state,.workspace [data-copy]{font:800 16px "Sofia Sans Condensed",sans-serif;text-transform:uppercase}.verify-state{color:#bc1934}
.workspace .panel .fieldbox button[data-copy]{padding:4px 2px;background:transparent;border:0}
.workspace .logout-row{padding-block:20px 0}.logout-row a{display:block;max-width:440px;border-radius:30px;background:#f3f3f3;text-align:center;text-decoration:none;padding:14px;color:#bc1833;font:800 16px "Sofia Sans Condensed",sans-serif;text-transform:uppercase}
.sec-switch{display:inline-flex;align-items:center;width:40px;height:24px;border-radius:24px;background:#c9c9c9;padding:3px;box-sizing:border-box}.sec-switch::after{content:"";width:18px;height:18px;background:#fff;border-radius:50%}.sec-switch.on{background:#3c373a;justify-content:flex-end}
.workspace [data-pane=security] .signin-checks{display:block;width:min(100%,440px);margin:24px 0}.workspace [data-pane=security] .sec-check{display:flex;align-items:center;gap:9px;margin:20px 0 8px;font-weight:500}.workspace .signin-checks p{margin:0 0 24px;color:#585558;line-height:1.5}.workspace .signin-checks button{width:100%}
.workspace .panel .history-block article strong{font-weight:500}.history-block article p{line-height:1.55}
.bonus-panel .bonus-steps{list-style:none;margin:22px 0;padding:0 0 0 34px;position:relative}
.bonus-steps::before{content:"";position:absolute;left:9px;top:32px;bottom:30px;width:2px;background:#e4e3e4}
.bonus-steps li{position:relative;border:1px solid #dedde0;border-radius:15px;padding:14px 17px;margin-bottom:6px}
.bonus-steps li::before{content:"";position:absolute;left:-32px;top:calc(50% - 7px);background:white;width:12px;height:12px;border-radius:50%;border:2px solid #b3afb1}
.bonus-steps li.current{background:#fff0f2;border-color:#cf2345}.bonus-steps li.current::before,.bonus-steps li.complete::before{border-color:#cf2345}
.bonus-steps li>div{display:flex;justify-content:space-between;gap:12px;font:800 20px/1.2 "Sofia Sans Condensed",sans-serif}
.bonus-steps progress{display:block;appearance:none;width:100%;height:7px;border:0;background:#fff;border-radius:6px;margin-top:12px;color:#d42543;accent-color:#d42543}.bonus-steps progress::-webkit-progress-bar{background:white;border-radius:6px}.bonus-steps progress::-webkit-progress-value{background:#d42543;border-radius:6px}
.bonus-panel .bonus-reset{text-align:center;margin:20px 0}.bonus-reset time{display:inline-block;margin-top:8px;font-weight:600;font-variant-numeric:tabular-nums}
.bonus-current{display:grid;gap:6px;background:#f4f3f4;border-radius:16px;padding:18px;text-align:center;text-transform:uppercase;font:800 17px "Sofia Sans Condensed",sans-serif}.bonus-current strong{font-size:24px}
.bonus-panel form button.primary{width:100%;margin-top:9px}.workspace .level-ring{display:flex;align-items:center;gap:clamp(14px,4vw,38px);margin:24px 0 28px;min-height:145px}.level-legend{min-width:100px}
.workspace .level-legend p{margin:0;padding:10px 0;border-bottom:1px solid #eee}.level-legend p:last-child{border:0}.level-legend p strong{display:block;margin-top:2px;font:800 20px "Sofia Sans Condensed",sans-serif}
.level-legend p span::before{content:"";display:inline-block;width:10px;height:10px;margin-right:5px;border-radius:50%;background:var(--level-color,#c69aff)}.level-legend p:nth-child(2){--level-color:#78d9ef}.level-legend p:nth-child(3){--level-color:#ff9276}
.level-ring .donut{margin:0;flex:0 1 160px;max-width:45%;aspect-ratio:1;height:auto}
.workspace .referral-details>.spread .segments{display:flex;width:min(52%,300px)}.workspace .referral-details>.spread .segments a{flex:1;text-align:center}
.workspace .contest-hero{background:radial-gradient(ellipse at top left,#632b39,transparent 48%),radial-gradient(ellipse at bottom right,#4d222f,transparent 42%),#110e10;border-radius:24px}
.workspace .contest-hero h1{color:#fff;font:800 30px/1.1 "Sofia Sans Condensed",sans-serif;margin:0}.workspace .contest-hero p{color:#fff}
@media(prefers-reduced-motion:reduce){.fetching-section::after,.workspace .live-chart .spinner{animation-duration:2s}}

.workspace .panel .sec-card button.sec-switch{display:inline-flex;align-items:center;min-height:24px;height:24px;width:40px;padding:3px;border:0;background:#b8b6b8;cursor:pointer}
.workspace .panel .sec-card button.sec-switch.on{background:#333}.workspace .sec-card>div>form{margin:0}

.report-filters{display:flex;align-items:end;flex-wrap:wrap;gap:12px;padding:15px 0 22px}
.report-filters label{display:grid;gap:5px;min-width:0;flex:1 1 145px;margin:0}
.report-filters input,.report-filters select{box-sizing:border-box;width:100%;min-width:0;height:44px;padding:0 10px;border:1px solid #bebcc0;border-radius:10px;background:white;color:#201c1e;font:inherit}
.report-filters button,.report-filters a{display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0 16px;border-radius:24px}
.report-filters button{background:#201c1e;color:white;border:0;cursor:pointer}.report-filters a{color:#981a39}

.workspace .verify-notice{display:flex;align-items:center;justify-content:space-between;gap:16px;background:#fff4be;color:#28251b;border-radius:24px;padding:20px;margin:0 0 8px;font-size:16px;line-height:1.45}
.workspace .verify-notice button{flex:none;width:auto;min-width:100px;min-height:44px;border:1px solid #484132;border-radius:999px;background:transparent;color:#211c18;padding:8px 16px;font:800 16px "Sofia Sans Condensed",sans-serif;text-transform:uppercase}
.workspace .signin-checks .verify-notice{margin-bottom:16px}
.workspace .verify-inline{background:transparent;border:0;color:#ac1934}
@media(max-width:600px){.workspace .verify-notice{gap:12px;padding:16px}.workspace .verify-notice button{min-width:84px}}

.verify-retry:not([hidden]){display:inline-block;margin-left:5px;font:500 13px/1.15 "IBM Plex Sans",sans-serif;font-variant-numeric:tabular-nums}
