:root {
  --pa-red: #e81717;
  --pa-red-dark: #b80916;
  --pa-ink: #101114;
  --pa-muted: #70757e;
  --pa-line: #e4e5e8;
  --pa-soft: #f5f5f7;
  --pa-green: #168151;
}

body.paOpen { overflow: hidden !important; }
.paPortal { position: fixed; z-index: 90000; inset: 0; display: none; color: var(--pa-ink); font-family: Arial, Helvetica, sans-serif; }
.paPortal.show { display: block; }
.paBackdrop { position: absolute; inset: 0; background: rgba(12, 13, 16, .52); backdrop-filter: blur(14px) saturate(.85); animation: paFade .2s ease both; }
.paPanel { position: absolute; inset: 22px; display: grid; grid-template-rows: auto minmax(0, 1fr) auto; max-width: 1420px; margin: auto; overflow: hidden; border: 1px solid rgba(255,255,255,.82); border-radius: 30px; background: #fafafa; box-shadow: 0 42px 120px rgba(5, 6, 8, .3); animation: paEnter .38s cubic-bezier(.2,.86,.25,1) both; }
.paTop { display: flex; align-items: center; justify-content: space-between; min-height: 72px; padding: 0 22px; border-bottom: 1px solid var(--pa-line); background: rgba(255,255,255,.92); backdrop-filter: blur(22px); }
.paBrand { display: flex; align-items: center; gap: 11px; }
.paBrand > span { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--pa-red); box-shadow: 0 8px 22px rgba(232,23,23,.18); }
.paBrand img { width: 28px; height: 28px; filter: brightness(0) invert(1); }
.paBrand div { display: flex; flex-direction: column; gap: 2px; }
.paBrand small, .paEyebrow { color: var(--pa-red); font-size: 9px; font-weight: 900; letter-spacing: .18em; }
.paBrand b { font-size: 15px; letter-spacing: -.02em; }
.paTopActions { display: flex; align-items: center; gap: 12px; }
.paPrivate { display: inline-flex; align-items: center; gap: 7px; padding: 8px 11px; border: 1px solid #e4e5e8; border-radius: 99px; color: #626771; background: #f7f7f8; font-size: 10px; font-weight: 800; }
.paPrivate i, .paFooter i { width: 7px; height: 7px; border-radius: 50%; background: #1cb873; box-shadow: 0 0 0 4px rgba(28,184,115,.1); }
.paTopActions > button { display: grid; place-items: center; width: 40px; height: 40px; border: 0; border-radius: 13px; color: #62666d; background: #f0f1f3; font-size: 24px; line-height: 1; cursor: pointer; transition: .16s ease; }
.paTopActions > button:hover { color: var(--pa-ink); background: #e7e8eb; transform: rotate(3deg); }
.paPanel > main { overflow: auto; padding: 38px clamp(22px, 4vw, 60px) 60px; }
.paIntro { display: flex; align-items: end; justify-content: space-between; gap: 30px; max-width: 1240px; margin: 0 auto; }
.paIntro h1 { margin: 11px 0 10px; font-size: clamp(40px, 5vw, 68px); line-height: .91; letter-spacing: -.075em; }
.paIntro p { max-width: 650px; margin: 0; color: var(--pa-muted); font-size: 14px; line-height: 1.55; }
.paJumpButton { flex: 0 0 auto; min-height: 49px; padding: 0 19px; border: 1px solid var(--pa-ink); border-radius: 15px; color: #fff; background: var(--pa-ink); font-size: 12px; font-weight: 900; cursor: pointer; box-shadow: 0 14px 35px rgba(16,17,20,.14); transition: transform .16s ease, box-shadow .16s ease; }
.paJumpButton:hover { transform: translateY(-2px); box-shadow: 0 18px 42px rgba(16,17,20,.2); }
.paMetrics { display: grid; grid-template-columns: repeat(3, 1fr); max-width: 1240px; margin: 30px auto 16px; overflow: hidden; border: 1px solid var(--pa-line); border-radius: 20px; background: #fff; }
.paMetrics article { display: grid; grid-template-columns: 1fr auto; gap: 5px 14px; padding: 19px 21px; }
.paMetrics article + article { border-left: 1px solid var(--pa-line); }
.paMetrics span { color: #8a8f97; font-size: 8px; font-weight: 900; letter-spacing: .16em; }
.paMetrics b { grid-row: 1 / 3; grid-column: 2; align-self: center; font-size: 31px; letter-spacing: -.06em; }
.paMetrics small { color: #626872; font-size: 10px; }
.paGrid { display: grid; grid-template-columns: minmax(380px, .82fr) minmax(480px, 1.18fr); align-items: start; gap: 16px; max-width: 1240px; margin: 0 auto; }
.paCard { border: 1px solid var(--pa-line); border-radius: 24px; background: #fff; box-shadow: 0 8px 28px rgba(18,20,25,.035); }
.paCard > header { padding: 24px 24px 19px; border-bottom: 1px solid #ececef; }
.paCard > header h2 { margin: 6px 0 6px; font-size: 24px; letter-spacing: -.045em; }
.paCard > header p { max-width: 520px; margin: 0; color: var(--pa-muted); font-size: 11px; line-height: 1.5; }
.paCreateCard > header { position: relative; padding-right: 102px; }
.paSecureBadge { position: absolute; top: 23px; right: 22px; padding: 6px 8px; border-radius: 7px; color: var(--pa-green); background: #e9f8f1; font-size: 7px; font-style: normal; font-weight: 900; letter-spacing: .13em; }
.paCreateCard form { padding: 21px 24px 24px; }
.paNameField { display: grid; gap: 8px; }
.paNameField > span, .paCreateCard legend, .paDrawer legend { color: #5d626b; font-size: 9px; font-weight: 900; letter-spacing: .08em; text-transform: uppercase; }
.paNameField input { width: 100%; height: 48px; padding: 0 14px; border: 1px solid #dfe0e4; border-radius: 13px; outline: none; color: var(--pa-ink); background: #fafafa; font: 700 13px/1 Arial, sans-serif; transition: border-color .15s ease, box-shadow .15s ease, background .15s ease; box-sizing: border-box; }
.paNameField input:focus { border-color: rgba(232,23,23,.62); background: #fff; box-shadow: 0 0 0 4px rgba(232,23,23,.075); }
.paCreateCard fieldset, .paDrawer fieldset { min-width: 0; margin: 21px 0 0; padding: 0; border: 0; }
.paCreateCard legend, .paDrawer legend { margin-bottom: 9px; }
.paTemplateGrid { display: grid; gap: 8px; }
.paTemplate { display: grid; grid-template-columns: 40px minmax(0,1fr) 23px; align-items: center; gap: 11px; width: 100%; padding: 11px; border: 1px solid #e3e4e7; border-radius: 15px; color: var(--pa-ink); background: #fff; text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease, transform .15s ease; }
.paTemplate:hover { border-color: #bfc2c8; transform: translateX(2px); }
.paTemplate.selected { border-color: rgba(232,23,23,.38); background: #fff7f7; box-shadow: inset 3px 0 var(--pa-red); }
.paTemplate > i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; color: #50555d; background: #f1f2f4; font-size: 16px; font-style: normal; font-weight: 900; }
.paTemplate.selected > i { color: #fff; background: var(--pa-red); }
.paTemplate > span { display: grid; gap: 3px; min-width: 0; }
.paTemplate b { font-size: 11px; }
.paTemplate small { overflow: hidden; color: #777c84; font-size: 9px; line-height: 1.4; }
.paTemplate > em { display: grid; place-items: center; width: 21px; height: 21px; border: 1px solid #d7d9dd; border-radius: 50%; color: transparent; font-size: 10px; font-style: normal; }
.paTemplate.selected > em { border-color: var(--pa-red); color: #fff; background: var(--pa-red); }
.paAdvancedToggle { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-top: 14px; padding: 12px 13px; border: 1px solid #e5e6e9; border-radius: 13px; color: var(--pa-ink); background: #f8f8f9; text-align: left; cursor: pointer; }
.paAdvancedToggle > span { display: grid; gap: 2px; }
.paAdvancedToggle b { font-size: 10px; }
.paAdvancedToggle small { color: #81868e; font-size: 8px; }
.paAdvancedToggle > i { display: grid; place-items: center; width: 25px; height: 25px; border-radius: 8px; background: #e9eaec; font-size: 16px; font-style: normal; }
.paPermissions { max-height: 330px; margin-top: 10px; overflow: auto; padding: 3px 4px 3px 0; }
.paPermissions.always { max-height: none; }
.paPermissionGroup + .paPermissionGroup { margin-top: 14px; }
.paPermissionGroup h4 { margin: 0 0 6px; color: #8a8f97; font-size: 8px; letter-spacing: .13em; text-transform: uppercase; }
.paPermissionGroup > div { display: grid; gap: 6px; }
.paPermission { display: grid; grid-template-columns: minmax(0,1fr) 29px; gap: 12px; align-items: center; padding: 10px 11px; border: 1px solid #e6e7ea; border-radius: 12px; background: #fff; cursor: pointer; }
.paPermission.selected { border-color: #cfd2d7; background: #f8f8f9; }
.paPermission input { position: absolute; opacity: 0; pointer-events: none; }
.paPermission span { display: grid; gap: 2px; }
.paPermission b { font-size: 10px; }
.paPermission small { color: #7b8088; font-size: 8px; line-height: 1.4; }
.paPermission > i { position: relative; width: 28px; height: 17px; border-radius: 99px; background: #d9dbe0; transition: background .15s ease; }
.paPermission > i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 11px; height: 11px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.2); transition: transform .15s ease; }
.paPermission.selected > i { background: var(--pa-red); }
.paPermission.selected > i::after { transform: translateX(11px); }
.paPermissionEmpty { margin: 6px 0; color: #7b8088; font-size: 10px; }
.paCreateFoot { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 20px; }
.paCreateFoot p { display: flex; align-items: center; gap: 6px; margin: 0; color: #7a7f87; font-size: 8px; }
.paCreateFoot p i { color: var(--pa-green); font-size: 8px; font-style: normal; }
.paPrimary, .paDanger { min-height: 43px; padding: 0 15px; border: 0; border-radius: 12px; color: #fff; background: linear-gradient(135deg, #f11c25, #bf0919); box-shadow: 0 9px 22px rgba(232,23,23,.18); font-size: 10px; font-weight: 900; cursor: pointer; }
.paPrimary span { margin-left: 9px; }
.paPrimary:disabled, .paDanger:disabled { opacity: .55; cursor: wait; }
.paPrimary.wide { width: 100%; }
.paDanger { background: #bd101b; }
.paPeopleCard { min-width: 0; overflow: hidden; }
.paSectionHead { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.paSectionHead > div > p { max-width: 430px; margin: 7px 0 0; color: var(--pa-muted); font-size: 9px; line-height: 1.45; }
.paSectionHead > button { padding: 8px 10px; border: 1px solid #dedfe3; border-radius: 10px; color: #5d626a; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.paListSection { padding: 18px 21px 5px; }
.paListSection + .paListSection { border-top: 1px solid #ececef; }
.paListTitle { display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.paListTitle b { font-size: 10px; letter-spacing: .02em; }
.paListTitle span { display: grid; place-items: center; min-width: 19px; height: 19px; padding: 0 4px; border-radius: 7px; color: #757a82; background: #eff0f2; font-size: 8px; font-weight: 900; }
.paList { display: grid; }
.paListRow { display: grid; grid-template-columns: 39px minmax(0,1fr) auto auto; align-items: center; gap: 11px; min-height: 66px; border-top: 1px solid #f0f0f2; }
.paListRow:first-child { border-top: 0; }
.paAvatar { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; color: #fff; background: #15161a; font-size: 10px; font-weight: 900; }
.paAvatar.code { color: var(--pa-red); background: #fff0f1; font-size: 15px; }
.paListIdentity { display: grid; gap: 3px; min-width: 0; }
.paListIdentity > b { display: flex; align-items: center; gap: 6px; overflow: hidden; font-size: 11px; text-overflow: ellipsis; white-space: nowrap; }
.paListIdentity small { overflow: hidden; color: #7c8189; font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.paYou { padding: 3px 4px; border-radius: 5px; color: var(--pa-red); background: #fff0f1; font-size: 6px; font-style: normal; letter-spacing: .1em; }
.paStatus { display: inline-flex; align-items: center; gap: 5px; padding: 6px 8px; border-radius: 9px; color: #6d727b; background: #f1f2f3; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.paStatus i { width: 6px; height: 6px; border-radius: 50%; background: #969ba3; }
.paStatus.active, .paStatus.pending { color: #137248; background: #ebf8f2; }
.paStatus.active i, .paStatus.pending i { background: #20ad6d; }
.paStatus.suspended, .paStatus.revoked, .paStatus.expired { color: #a4232b; background: #fff0f1; }
.paStatus.suspended i, .paStatus.revoked i, .paStatus.expired i { background: var(--pa-red); }
.paStatus.unapproved { color: #8a6811; background: #fff7dd; }
.paStatus.unapproved i { background: #d69b00; }
.paQuietDanger, .paRowActions button { min-height: 31px; padding: 0 9px; border: 1px solid #dedfe3; border-radius: 9px; color: #555b64; background: #fff; font-size: 8px; font-weight: 800; cursor: pointer; }
.paQuietDanger, .paRowActions button.danger { color: #b5121d; border-color: #f0cfd2; }
.paRowActions { display: flex; gap: 5px; }
.paRoleLocked { align-self: center; padding: 7px 9px; border-radius: 9px; color: #777c84; background: #f1f2f3; font-size: 7px; font-weight: 900; text-transform: uppercase; }
.paEmpty { display: grid; justify-items: center; padding: 30px; color: #777c84; text-align: center; }
.paEmpty i { display: grid; place-items: center; width: 42px; height: 42px; margin-bottom: 8px; border-radius: 14px; background: #f1f2f4; font-size: 18px; font-style: normal; }
.paEmpty b { color: var(--pa-ink); font-size: 11px; }
.paEmpty span { margin-top: 4px; font-size: 9px; }
.paFooter { display: flex; align-items: center; justify-content: space-between; min-height: 45px; padding: 0 23px; border-top: 1px solid var(--pa-line); color: #777c84; background: #fff; font-size: 8px; }
.paFooter > span { display: flex; align-items: center; gap: 7px; font-weight: 800; }
.paOverlay { position: absolute; z-index: 5; inset: 0; display: grid; place-items: center; padding: 20px; background: rgba(15,16,19,.43); backdrop-filter: blur(10px); animation: paFade .17s ease both; }
.paCreated, .paConfirm { width: min(480px, 100%); padding: 33px; border: 1px solid rgba(255,255,255,.9); border-radius: 25px; background: #fff; box-shadow: 0 32px 100px rgba(0,0,0,.28); text-align: center; animation: paPop .26s cubic-bezier(.2,.9,.25,1.12) both; }
.paSuccessMark, .paConfirm > i { display: grid; place-items: center; width: 54px; height: 54px; margin: 0 auto 18px; border-radius: 18px; color: #fff; background: var(--pa-green); box-shadow: 0 11px 26px rgba(22,129,81,.2); font-size: 22px; font-style: normal; font-weight: 900; }
.paCreated h2, .paConfirm h2 { margin: 8px 0; font-size: 27px; letter-spacing: -.05em; }
.paCreated > p, .paConfirm > p { margin: 0 auto; color: #737881; font-size: 11px; line-height: 1.5; }
.paCode { display: grid; grid-template-columns: 1fr auto; gap: 8px; margin: 22px 0 13px; padding: 8px; border: 1px dashed rgba(232,23,23,.35); border-radius: 16px; background: #fff8f8; }
.paCode code { align-self: center; overflow: auto; padding: 0 10px; color: #b80d18; font: 900 18px/1.2 ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .05em; white-space: nowrap; }
.paCode button { min-height: 43px; padding: 0 13px; border: 0; border-radius: 11px; color: #fff; background: var(--pa-ink); cursor: pointer; }
.paCode button span { font-size: 9px; font-weight: 900; }
.paCode button i { margin-left: 8px; color: #aeb2b8; font-size: 7px; font-style: normal; }
.paCode button.copied { background: var(--pa-green); }
.paCreated > aside { display: flex; gap: 10px; margin-bottom: 18px; padding: 12px; border-radius: 13px; color: #725f28; background: #fff7de; text-align: left; }
.paCreated > aside > i { display: grid; place-items: center; flex: 0 0 23px; height: 23px; border-radius: 8px; color: #fff; background: #bc8e10; font-size: 11px; font-style: normal; font-weight: 900; }
.paCreated > aside span { display: grid; gap: 2px; font-size: 8px; line-height: 1.45; }
.paDrawerOverlay { place-items: stretch end; padding: 0; }
.paDrawer { display: grid; grid-template-rows: auto minmax(0,1fr) auto; width: min(520px, 100%); height: 100%; overflow: hidden; border-left: 1px solid #e2e3e6; background: #fff; box-shadow: -24px 0 70px rgba(0,0,0,.18); animation: paDrawer .28s cubic-bezier(.2,.86,.25,1) both; }
.paDrawer > header { display: flex; justify-content: space-between; gap: 20px; padding: 25px 25px 20px; border-bottom: 1px solid var(--pa-line); }
.paDrawer h2 { margin: 7px 0 5px; font-size: 28px; letter-spacing: -.05em; }
.paDrawer header p { margin: 0; color: var(--pa-muted); font-size: 10px; }
.paDrawer header > button { width: 37px; height: 37px; border: 0; border-radius: 12px; color: #62666e; background: #f0f1f3; font-size: 22px; cursor: pointer; }
.paDrawerBody { overflow: auto; padding: 3px 25px 25px; }
.paTemplateGrid.compact { grid-template-columns: 1fr; }
.paTemplateGrid.compact .paTemplate { grid-template-columns: 36px minmax(0,1fr) 21px; }
.paTemplateGrid.compact .paTemplate > i { width: 36px; height: 36px; }
.paDrawer > footer { display: flex; justify-content: flex-end; gap: 8px; padding: 15px 22px; border-top: 1px solid var(--pa-line); background: #fafafa; }
.paDrawer > footer > button:not(.paPrimary) { min-height: 43px; padding: 0 15px; border: 1px solid #dfe0e3; border-radius: 12px; color: #555a62; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.paConfirm { width: min(400px, 100%); }
.paConfirm > i.danger { background: var(--pa-red); box-shadow: 0 11px 26px rgba(232,23,23,.2); }
.paConfirmDetail { margin: 15px 0 0; padding: 10px; border-radius: 11px; color: #555b63; background: #f3f4f5; font-size: 9px; font-weight: 800; }
.paConfirm > div:last-child { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 22px; }
.paConfirm > div:last-child > button:first-child { min-height: 43px; border: 1px solid #dfe0e3; border-radius: 12px; color: #555a62; background: #fff; font-size: 9px; font-weight: 800; cursor: pointer; }
.paLoading, .paLoadError { display: grid; place-items: center; min-height: 520px; text-align: center; }
.paLoading b, .paLoadError h2 { margin: 15px 0 5px; font-size: 21px; letter-spacing: -.035em; }
.paLoading span, .paLoadError p { color: #767b83; font-size: 10px; }
.paSpinner { width: 36px; height: 36px; border: 3px solid #ececef; border-top-color: var(--pa-red); border-radius: 50%; animation: paSpin .8s linear infinite; }
.paLoadError > i { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; color: #fff; background: var(--pa-red); font-style: normal; font-weight: 900; }
.paLoadError button { margin-top: 15px; }
.paProfileAccessButton { display: grid; grid-template-columns: 37px minmax(0,1fr) auto; align-items: center; gap: 11px; width: 100%; margin-top: 13px; padding: 11px; border: 1px solid rgba(232,23,23,.2); border-radius: 14px; color: var(--pa-ink); background: #fff7f7; text-align: left; cursor: pointer; }
.paProfileAccessButton > i { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 11px; color: #fff; background: var(--pa-red); font-size: 19px; font-style: normal; }
.paProfileAccessButton > span { display: grid; gap: 2px; }
.paProfileAccessButton b { font-size: 10px; }
.paProfileAccessButton small { color: #7e676b; font-size: 8px; }
.paProfileAccessButton > em { color: var(--pa-red); font-size: 16px; font-style: normal; }
.paMobileAccessButton { color: var(--pa-red) !important; font-weight: 900 !important; }

@keyframes paFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes paEnter { from { opacity: 0; transform: translateY(16px) scale(.985); } to { opacity: 1; transform: none; } }
@keyframes paPop { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes paDrawer { from { transform: translateX(100%); } to { transform: none; } }
@keyframes paSpin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .paPanel { inset: 12px; }
  .paGrid { grid-template-columns: 1fr; }
  .paMetrics { margin-top: 24px; }
  .paListRow { grid-template-columns: 39px minmax(0,1fr) auto; padding: 7px 0; }
  .paRowActions, .paQuietDanger { grid-column: 2 / 4; justify-self: start; }
}

@media (max-width: 767px) {
  .paPortal { z-index: 120000; }
  .paBackdrop { background: #fff; backdrop-filter: none; }
  .paPanel { inset: 0; border: 0; border-radius: 0; box-shadow: none; }
  .paTop { min-height: calc(62px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) 15px 0; }
  .paBrand > span { width: 36px; height: 36px; border-radius: 11px; }
  .paBrand img { width: 25px; height: 25px; }
  .paBrand small { display: none; }
  .paPrivate { display: none; }
  .paTopActions { gap: 6px; }
  .paTopActions > button { width: 44px; height: 44px; }
  .paPanel > main { padding: 24px 15px 46px; }
  .paIntro { align-items: start; }
  .paIntro h1 { margin-top: 8px; font-size: 42px; }
  .paIntro p { font-size: 12px; }
  .paJumpButton { display: none; }
  .paMetrics { grid-template-columns: repeat(3, minmax(0,1fr)); margin: 20px 0 12px; border-radius: 17px; }
  .paMetrics article { display: flex; flex-direction: column; gap: 3px; padding: 14px 10px; }
  .paMetrics b { order: -1; font-size: 25px; }
  .paMetrics span { font-size: 6px; }
  .paMetrics small { display: none; }
  .paGrid { display: flex; flex-direction: column; gap: 12px; }
  .paCard { width: 100%; border-radius: 20px; box-shadow: none; }
  .paCard > header { padding: 21px 18px 16px; }
  .paCard > header h2 { font-size: 22px; }
  .paCreateCard > header { padding-right: 90px; }
  .paSecureBadge { top: 20px; right: 17px; }
  .paCreateCard form { padding: 18px; }
  .paCreateFoot { align-items: stretch; flex-direction: column; }
  .paCreateFoot p { justify-content: center; }
  .paCreateFoot .paPrimary { width: 100%; min-height: 48px; }
  .paPeopleCard { order: 2; }
  .paListSection { padding: 16px 16px 5px; }
  .paListRow { grid-template-columns: 38px minmax(0,1fr) auto; min-height: 64px; }
  .paStatus { padding: 6px; }
  .paStatus i { display: none; }
  .paRowActions { grid-column: 2 / 4; display: grid; grid-template-columns: 1fr 1fr; width: 100%; }
  .paRowActions button, .paQuietDanger { min-height: 44px; }
  .paFooter { min-height: calc(42px + env(safe-area-inset-bottom)); padding: 0 14px env(safe-area-inset-bottom); }
  .paFooter small { display: none; }
  .paOverlay { align-items: end; padding: 0; }
  .paCreated, .paConfirm { width: 100%; padding: 28px 20px calc(22px + env(safe-area-inset-bottom)); border: 0; border-radius: 25px 25px 0 0; box-sizing: border-box; }
  .paCreated h2, .paConfirm h2 { font-size: 25px; }
  .paCode { grid-template-columns: 1fr; }
  .paCode code { padding: 11px 5px 7px; font-size: 17px; }
  .paCode button { min-height: 45px; }
  .paDrawerOverlay { align-items: end; }
  .paDrawer { grid-template-rows: auto minmax(0,1fr) auto; width: 100%; height: min(92dvh, 820px); border: 0; border-radius: 24px 24px 0 0; animation-name: paSheet; }
  .paDrawer > header { padding: 23px 19px 18px; }
  .paDrawerBody { padding: 2px 19px 20px; }
  .paDrawer > footer { padding: 13px 17px calc(13px + env(safe-area-inset-bottom)); }
  .paDrawer > footer > button { flex: 1; }
  .paLoading, .paLoadError { min-height: 60vh; }
}

@media (prefers-reduced-motion: reduce) {
  .paPortal *, .paPortal *::before, .paPortal *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

@keyframes paSheet { from { transform: translateY(100%); } to { transform: none; } }
