/* partner-portal-v1: the one partner-application pop-up (partner-apply.js). One layer.
   Phone: bottom sheet, top radius 28, padding 20, max-height 92%. Desktop (>=641): centred 440, radius 28, padding 32.
   sheet-standard-v1 (size D 确认): phone (<768) bottom sheet r24 top, padding 20, max 70dvh; desktop (>=768) centred 440,
   r24, padding 24, max min(640px, 100dvh - 48px), side gap 24; glass skin = panel glass + glass scrim.
   Colours: bigbit-theme-colors.css variables only (fallbacks = the light theme values); glass via --glass-* only. */
.pa-scrim{position:fixed;inset:0;z-index:2147482000;display:flex;align-items:flex-end;justify-content:center;
  background:rgba(var(--bb-theme-shadow-rgb,0,0,0),.48);opacity:0;transition:opacity .25s ease;
  font-family:inherit;-webkit-tap-highlight-color:transparent}
.pa-scrim[hidden]{display:none!important}
.pa-scrim.pa-open{opacity:1}
.pa-sheet{box-sizing:border-box;width:100%;max-height:70vh;max-height:70dvh;/* sheet-standard-v1: size D */overflow-y:auto;overscroll-behavior:contain;
  display:grid;gap:16px;align-content:start;
  padding:20px;padding-bottom:calc(20px + env(safe-area-inset-bottom,0px));
  border-radius:24px 24px 0 0;/* sheet-standard-v1: size D */background:var(--bb-theme-surface,#fff);color:var(--bb-theme-ink,#111);
  color-scheme:var(--bb-theme-color-scheme,light);
  box-shadow:0 24px 64px rgba(var(--bb-theme-shadow-rgb,0,0,0),.18);
  transform:translateY(24px);transition:transform .25s ease;outline:none;
  font-size:16px;line-height:1.5;text-align:left}
.pa-scrim.pa-open .pa-sheet{transform:none}
.pa-sheet *{box-sizing:border-box}
@media (min-width:768px){/* sheet-standard-v1: size D — desktop from 768 (was 641) */
  .pa-scrim{align-items:center;padding:24px}/* sheet-standard-v1: size D — side gap 24 */
  .pa-sheet{width:440px;max-width:100%;max-height:min(640px,calc(100vh - 48px));max-height:min(640px,calc(100dvh - 48px));
    padding:24px;border-radius:24px;border:1px solid var(--bb-theme-line,#e3e3e6)}/* sheet-standard-v1: size D */
}
@media (prefers-reduced-motion:reduce){.pa-scrim,.pa-sheet{transition:none}}
/* sheet-standard-v1: size D — panel glass like the login panel / account sheets; scrim from the glass tokens. The veil blur sits
   on a ::before sibling of the sheet (never on .pa-scrim itself, or the sheet's own blur would have nothing to frost). */
html[data-bigbit-skin=glass] .pa-sheet{background:var(--glass-bg-panel);-webkit-backdrop-filter:var(--glass-filter-panel);backdrop-filter:var(--glass-filter-panel);border:1px solid var(--glass-edge-soft)}
html[data-bigbit-skin=glass] .pa-scrim{background:var(--glass-scrim)}
html[data-bigbit-skin=glass] .pa-scrim::before{content:"";position:absolute;inset:0;z-index:-1;pointer-events:none;-webkit-backdrop-filter:var(--glass-veil-filter);backdrop-filter:var(--glass-veil-filter)}

.pa-sheet :is(h3,p){margin:0}
.pa-sheet button{font:inherit;color:inherit;cursor:pointer;border:0;background:none;padding:0;margin:0}
.pa-sheet :is(button,a,input):focus-visible{outline:2px solid var(--bb-theme-ink,#111);outline-offset:2px}
.pa-head{display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:40px}
.pa-title{font-size:20px;line-height:28px;font-weight:700;min-width:0;overflow-wrap:anywhere}
.pa-x{flex:none;width:40px;height:40px;border-radius:50%;display:grid;place-items:center;
  background:var(--bb-theme-inset,#f5f5f7);color:var(--bb-theme-ink,#111);font-size:20px;line-height:1}
.pa-sec{display:grid;gap:8px}
.pa-lab{font-size:12px;line-height:16px;color:var(--bb-theme-muted,#666)}
.pa-rows{border:1px solid var(--bb-theme-line,#e3e3e6);border-radius:20px;overflow:hidden}
.pa-row{min-height:60px;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:10px 14px}
.pa-row+.pa-row{border-top:1px solid var(--bb-theme-line,#e3e3e6)}
.pa-row-text{min-width:0}
.pa-row strong{display:block;font-size:15px;line-height:22px;font-weight:600}
.pa-row small{display:block;font-size:12px;line-height:16px;color:var(--bb-theme-muted,#666)}
.pa-go{flex:none;display:inline-flex;align-items:center;justify-content:center;height:36px;padding:0 16px;border-radius:999px;
  border:1px solid var(--bb-theme-line,#e3e3e6)!important;background:var(--bb-theme-surface,#fff)!important;color:var(--bb-theme-ink,#111)!important;
  font-size:14px;font-weight:600;white-space:nowrap;text-decoration:none}
.pa-go[aria-disabled=true]{opacity:.4;pointer-events:none}
.pa-tag{flex:none;display:inline-flex;align-items:center;gap:4px;height:24px;padding:0 10px;border-radius:999px;font-size:12px;font-weight:500;white-space:nowrap;
  background:rgba(var(--bb-theme-accent-rgb,184,255,61),.4);color:var(--bb-theme-ink,#111)}
.pa-agree{display:flex;gap:10px;align-items:flex-start;font-size:14px;line-height:20px;cursor:pointer}
.pa-agree input{flex:none;width:20px;height:20px;margin:0;accent-color:var(--bb-theme-ink,#111)}
.pa-agree a{color:var(--bb-theme-ink,#111);font-weight:600;text-decoration:underline;text-underline-offset:2px}
.pa-note{font-size:14px;line-height:20px;color:var(--bb-theme-muted,#666)}
.pa-why{font-size:14px;line-height:20px;color:var(--bb-theme-down,#d64545)}
.pa-why-box{display:grid;gap:8px;justify-items:start}
.pa-reason{background:var(--bb-theme-inset,#f5f5f7);border-radius:12px;padding:12px 14px;font-size:14px;line-height:20px;overflow-wrap:anywhere}
.pa-reason span{display:block;font-size:12px;line-height:16px;color:var(--bb-theme-muted,#666)}
.pa-main{display:flex;align-items:center;justify-content:center;width:100%;height:48px;padding:0 24px;border-radius:999px;
  background:var(--bb-theme-inverse,#111)!important;color:var(--bb-theme-inverse-ink,#fff)!important;font-size:16px;font-weight:600;
  text-decoration:none;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.pa-main:disabled{opacity:.4;cursor:not-allowed}
.pa-done{display:grid;gap:12px;justify-items:start}
.pa-dot{width:48px;height:48px;border-radius:50%;display:grid;place-items:center;font-size:22px;font-weight:700;
  background:var(--bb-theme-accent,#b8ff3d);color:var(--bb-theme-accent-ink,#111)}

/* Loading: a title pill and a few big blocks, no words (UI standard). */
.pa-skeleton{display:grid;gap:12px}
.pa-sk-pill,.pa-sk-block,.pa-sk-btn{display:block;background:var(--bb-theme-inset,#f5f5f7);animation:pa-breathe 1.4s ease-in-out infinite}
.pa-sk-pill{width:160px;height:24px;border-radius:999px}
.pa-sk-block{height:60px;border-radius:12px}
.pa-sk-btn{height:48px;border-radius:999px;margin-top:4px}
@keyframes pa-breathe{0%,100%{opacity:1}50%{opacity:.55}}
@media (prefers-reduced-motion:reduce){.pa-sk-pill,.pa-sk-block,.pa-sk-btn{animation:none}}
