/* ONINEE Card selection R3 — scoped to the Choose Your Card screen only. */
.sheet.oninee-choose-card{height:100dvh;max-height:100dvh;border-radius:0;top:0;overflow:hidden}
.sheet.oninee-choose-card>.sheet-header{padding-top:max(12px,env(safe-area-inset-top));padding-bottom:12px;min-height:64px}
.sheet.oninee-choose-card>.sheet-body{padding-top:0;min-height:0;max-height:none;overflow-y:auto;-webkit-overflow-scrolling:touch;overscroll-behavior-y:contain;touch-action:pan-y}
.oninee-card-picker{min-height:0!important;padding-bottom:calc(48px + env(safe-area-inset-bottom))!important}
.oninee-card-picker .plan-carousel{display:flex;gap:13px;margin:0 -16px; padding:9px 12% 12px 10%;overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-left:10%;touch-action:pan-x;scrollbar-width:none;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain}
.oninee-card-picker .plan-carousel-slide{flex:0 0 80%;width:80%;min-width:0;max-width:80%;scroll-snap-align:start;scroll-snap-stop:always;overflow:visible;transform:none;border-radius:16px;touch-action:pan-x}
.oninee-card-picker .plan-flat-card{width:100%;height:auto;aspect-ratio:5/3;overflow:visible;border-radius:15px;padding:2px;background:transparent;box-shadow:none}
.oninee-card-picker .plan-flat-card img{display:block;width:100%;height:100%;max-height:100%;object-fit:contain;object-position:center;border-radius:12px;pointer-events:none}
.oninee-card-picker .plan-carousel-navigation{margin:0 0 11px}
.oninee-card-picker .plan-carousel-navigation .plan-slide-arrow{width:46px;height:42px;min-height:42px;border-radius:22px;justify-content:center}
.oninee-card-picker .plan-carousel-navigation .plan-slide-arrow svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:2}
.oninee-card-picker .plan-live-details{transition:opacity 145ms ease,transform 190ms ease;transform:translateY(0);opacity:1;contain:layout style}
.oninee-card-picker .plan-live-details.plan-changing{opacity:0.05;transform:translateY(8px)}
.oninee-card-picker .plan-live-details.plan-changed{animation:oninee-card-detail-in 220ms ease-out both}
@keyframes oninee-card-detail-in{from{opacity:0;transform:translateY(11px)}to{opacity:1;transform:translateY(0)}}
.oninee-card-picker .reference-plan-actions{padding-bottom:30px}
.oninee-card-picker .swipe-plan-features{overflow:visible}
.my-card-selector{display:flex;gap:9px;overflow-x:auto;margin:12px 0;scrollbar-width:none;touch-action:pan-x}
.my-card-selector button{white-space:nowrap;border:1px solid #3b3b3b;padding:10px 12px;background:#242424;border-radius:18px;flex:0 0 auto;font-size:14px}
.my-card-selector button.selected{border-color:#4B4039;background:#4B403922}
.my-card-selector button small{display:block;font-size:11px;color:#999;margin-top:3px}
.card-fulfilment-status{color:#9fa6a7;font-size:13px;margin:5px 0 12px}
.oninee-create-card{margin-bottom:15px}
.card-page{overflow-y:auto!important;-webkit-overflow-scrolling:touch;touch-action:pan-y;overscroll-behavior-y:contain;padding-bottom:max(180px,calc(155px + env(safe-area-inset-bottom)))}
@media(max-width:360px){.oninee-card-picker .plan-carousel{padding-right:11%;padding-left:9%}.oninee-card-picker .plan-carousel-slide{flex-basis:82%;width:82%;max-width:82%}}
@media(prefers-reduced-motion:reduce){.oninee-card-picker .plan-live-details{transition:none!important;animation:none!important}}

/* R4: restore native finger swipe, mouse drag and centred, unclipped cards. */
.sheet.oninee-choose-card>.sheet-body{touch-action:auto!important;overflow-y:auto!important;min-height:0;overscroll-behavior-y:contain}
.oninee-card-picker .plan-carousel{--oninee-card-width:79%;display:flex;gap:18px;padding:10px calc((100% - var(--oninee-card-width))/2) 15px!important;margin:0 -16px!important;overflow-x:auto!important;overflow-y:hidden;scroll-snap-type:x mandatory;scroll-padding-inline:calc((100% - var(--oninee-card-width))/2);touch-action:auto!important;user-select:none;-webkit-user-select:none;scrollbar-width:none;overscroll-behavior-x:contain;cursor:grab}
.oninee-card-picker .plan-carousel.is-dragging{scroll-snap-type:none;cursor:grabbing;scroll-behavior:auto}
.oninee-card-picker .plan-carousel-slide{flex:0 0 var(--oninee-card-width)!important;width:var(--oninee-card-width)!important;max-width:var(--oninee-card-width)!important;min-width:0;scroll-snap-align:center!important;scroll-snap-stop:normal;touch-action:auto!important;overflow:visible}
.oninee-card-picker .plan-flat-card{width:100%;height:auto;aspect-ratio:5 / 3;padding:0;overflow:visible}
.oninee-card-picker .plan-flat-card img{width:100%;height:100%;object-fit:contain;pointer-events:none;user-select:none;-webkit-user-drag:none}
.oninee-card-picker .plan-carousel-slide:focus-visible{outline:2px solid #4B4039;outline-offset:3px}
@media(max-width:360px){.oninee-card-picker .plan-carousel{--oninee-card-width:78%}}
/* R4: small transparent card-creation action on top of existing card image. */
.oninee-card-create-anchor{position:relative;isolation:isolate;width:100%}
.oninee-card-create-glass{position:absolute;left:50%;top:49%;transform:translate(-50%,-50%);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:4px;min-width:52%;max-width:82%;padding:12px 15px;border:1px solid rgba(255,255,255,.3);border-radius:17px;background:rgba(8,18,25,.43);-webkit-backdrop-filter:blur(9px);backdrop-filter:blur(9px);box-shadow:0 5px 22px rgba(0,0,0,.21);color:#fff;text-align:center;pointer-events:none}
.oninee-card-create-glass strong{font-size:16px;font-weight:600;line-height:1.2}
.oninee-card-create-glass small{font-size:11px;font-weight:450;color:#e6eceb;line-height:1.3}
.balance-asset-icon{width:40px;height:40px;display:grid;place-items:center;flex:0 0 40px}
.balance-asset-icon .coin{width:38px;height:38px;object-fit:contain;display:inline-grid;place-items:center}
.balance-asset-icon .coin img{width:100%;height:100%;object-fit:contain}
.oninee-settings-logout{border:1px solid rgba(160,170,170,.35);background:rgba(255,255,255,.06);color:var(--text,#f7f7f7);border-radius:16px;padding:8px 10px;font-size:12px;line-height:1;white-space:nowrap}
.sheet-header:has(.oninee-settings-logout){grid-template-columns:44px minmax(0,1fr) 67px}

/* Use the rail content width as the card width; symmetric 10% edge padding centres each card. */
.oninee-card-picker .plan-carousel{padding:10px 10% 15px!important;scroll-padding-inline:10%!important}
.oninee-card-picker .plan-carousel-slide{flex:0 0 100%!important;width:100%!important;max-width:100%!important}
@media(max-width:360px){.oninee-card-picker .plan-carousel{padding-inline:10%!important}}
