body.gr-app[aria-busy="true"] .dash-main{visibility:hidden}
body.gr-app [hidden]{display:none!important}
body.gr-app .stat .gr-spark{display:none!important}
body.gr-app .gr-progress-ring,body.gr-app .gr-ring{display:none!important}
body.gr-app .gr-hello{display:none!important}
.gr-toast-own{position:fixed;right:16px;bottom:16px;z-index:200;max-width:360px;padding:12px 14px;border-radius:var(--gr-r,14px);background:var(--gr-ink,#0b1233);color:#fff;font-size:.9rem;box-shadow:var(--gr-sh-2)}
.gr-error-banner{display:flex;gap:12px;align-items:center;justify-content:space-between;background:var(--gr-red-50,#fdecef)!important;color:var(--gr-red,#e0425a)!important}
.gr-modal{position:fixed;inset:0;z-index:150;display:grid;place-items:center;padding:16px;background:rgba(11,18,51,.45)}
.gr-modal>.gr-modal-card{width:min(560px,100%);max-height:90dvh;overflow:auto;background:var(--gr-surface,#fff);border-radius:var(--gr-r-lg,20px);padding:24px;box-shadow:var(--gr-sh-3)}
.gr-modal h2{margin-top:0}
.gr-field-error{color:var(--gr-red,#e0425a);font-size:.82rem;margin-top:4px}
.gr-field-error:empty{display:none}
.dash-title .btn{white-space:nowrap}
.gr-empty{padding:18px;color:var(--gr-muted);text-align:center}
.more-signout{background:none;border:0;width:100%;text-align:left;padding:10px 14px;font:inherit;color:inherit;cursor:pointer}
.setup-checklist li.done a::before,.setup-checklist li.done .gr-check-row::before{background:linear-gradient(135deg,#0fae7a,#13c4e8);color:#fff}
.setup-checklist li:first-child:not(.done) a::before,.setup-checklist li:first-child:not(.done) .gr-check-row::before{background:var(--gr-bg-2);color:var(--gr-muted)}
.setup-checklist .gr-check-row{display:flex;align-items:center;gap:12px;padding:11px 4px;border-bottom:1px dashed var(--gr-line);border-radius:8px;font-size:.9rem;color:var(--gr-ink-2)}
.setup-checklist .gr-check-row::before{content:counter(s);width:26px;height:26px;flex:none;border-radius:8px;display:grid;place-items:center;font-size:.74rem;font-weight:800;background:var(--gr-bg-2);color:var(--gr-muted)}
html[data-theme="dark"] .setup-checklist li:first-child:not(.done) a::before,html[data-theme="dark"] .setup-checklist .gr-check-row::before{background:var(--gr-surface-2)}
html[data-theme="dark"] .setup-checklist li.done a::before,html[data-theme="dark"] .setup-checklist li.done .gr-check-row::before{background:linear-gradient(135deg,#0fae7a,#13c4e8)}
.volume-bars.gr-dense{gap:3px!important}
.volume-bars.gr-dense small{font-size:.66rem;overflow:visible}
@media(min-width:1100px){body.gr-app .merchant-dash #ov-stats{grid-template-columns:repeat(4,minmax(0,1fr))}}
.gr-dl{display:grid;grid-template-columns:max-content 1fr;gap:6px 16px}
button.inline-link{background:none;border:0;padding:0;font:inherit;font-weight:700;cursor:pointer}
.gr-more:not(:has(button:not([hidden]))){display:none}
.gr-nowrap{white-space:nowrap}
#wh-rows td.gr-nowrap:last-child{white-space:normal;min-width:190px}
.btn.gr-compact{padding:7px 12px;font-size:.8rem;min-height:0;white-space:nowrap}
table.gr-tight th,table.gr-tight td{padding-left:10px!important;padding-right:10px!important}table.gr-tight{min-width:0}
.gr-click{cursor:pointer}
#rv-candidates button{text-align:left}#rv-candidates,#rv-audit{margin:8px 0;padding-left:20px}
#rv-candidates button[aria-pressed=true]{background:#eaf0ff;outline:2px solid #245bd4;outline-offset:2px;border-radius:8px;padding:4px 8px}#rv-detail{margin-top:20px}
.gr-qr-box{display:grid;place-items:center;max-width:280px;margin:12px 0;padding:12px;background:#fff;border:1px solid var(--gr-line);border-radius:var(--gr-r,14px)}.gr-qr-box svg{width:100%;height:auto}

#ov-bars span{min-height:2px}
.gr-secret{word-break:break-all;white-space:pre-wrap;user-select:all;margin:12px 0}
.gr-events{border:0;padding:0;margin:0;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px 16px}
.gr-events legend{padding:0;margin-bottom:8px;color:#49637f;font-size:14px}
.op-fields .gr-events label{display:flex;gap:8px;align-items:center}
.op-fields input[readonly]{background:var(--gr-bg-2,#f3f6fb);color:var(--gr-muted,#71819a)}
.gr-sub{display:block;font-size:.78rem;margin-top:2px}
#wl-payload{max-height:420px;overflow:auto;word-break:break-all}
@media(max-width:600px){.gr-events{grid-template-columns:1fr}}
#wl-rows td.gr-ellip{max-width:220px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
#wl-rows td.gr-nowrap:last-child{white-space:nowrap}
/* Form spacing: never let a field sit flush against the button under it (min 14px). */
@media(max-width:600px){.payment-filter-grid .payment-filter-submit{margin-top:2px}}
.gr-modal form :is(input,select,textarea) + :is(button,.btn){margin-top:14px}
@media(max-width:600px){.merchant-dash .dash-title>.btn{margin-top:14px}}
