.ch-pwa-identity-member{margin:18px 0;padding:16px;border:1px solid color-mix(in srgb,var(--ch-border,#334155) 80%,#6d5dfc 20%);border-radius:16px;background:color-mix(in srgb,var(--ch-card,#111827) 94%,#6d5dfc 6%)}
.ch-pwa-identity-current{display:grid;grid-template-columns:auto 1fr auto;gap:14px;align-items:center;padding:12px;border:1px solid rgba(148,163,184,.2);border-radius:14px;background:rgba(2,6,23,.24);margin:12px 0}
.ch-pwa-identity-current img{width:72px;height:72px;border-radius:17px;object-fit:cover;box-shadow:0 8px 22px rgba(0,0,0,.28)}
.ch-pwa-identity-current>div{display:grid;gap:3px;min-width:0}.ch-pwa-identity-current span,.ch-pwa-identity-current small{color:var(--ch-text-muted,#94a3b8)}.ch-pwa-identity-current strong{font-size:15px;color:var(--ch-text,#fff)}
.ch-pwa-identity-grid{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:10px;max-height:520px;overflow:auto;padding:4px;margin:12px 0 14px;scrollbar-width:thin}
.ch-pwa-identity-card{position:relative;appearance:none;border:1px solid rgba(148,163,184,.24);border-radius:14px;background:rgba(15,23,42,.7);color:var(--ch-text,#fff);padding:8px;display:grid;gap:7px;text-align:center;cursor:pointer;transition:transform .16s ease,border-color .16s ease,box-shadow .16s ease}
.ch-pwa-identity-card:hover{transform:translateY(-2px);border-color:rgba(96,165,250,.75)}.ch-pwa-identity-card.is-selected{border-color:#5ab5ff;box-shadow:0 0 0 2px rgba(109,93,252,.28),0 8px 22px rgba(49,46,129,.25)}
.ch-pwa-identity-card img{width:100%;aspect-ratio:1;border-radius:12px;object-fit:cover;display:block}.ch-pwa-identity-card span{display:flex;gap:4px;justify-content:center;align-items:center;font-size:11px;line-height:1.2;min-height:28px}.ch-pwa-identity-card b{font-size:10px;color:#8bbcff}.ch-pwa-identity-card em{position:absolute;top:12px;right:12px;font-style:normal;font-size:9px;padding:3px 6px;border-radius:999px;background:#146c43;color:#d8ffe9}
.ch-pwa-identity-header-choice{display:flex;gap:10px;align-items:flex-start;padding:12px;border:1px solid rgba(148,163,184,.18);border-radius:12px}.ch-pwa-identity-header-choice input{margin-top:3px}.ch-pwa-identity-header-choice span{display:grid;gap:3px}.ch-pwa-identity-header-choice small{color:var(--ch-text-muted,#94a3b8)}
.ch-pwa-identity-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;margin-top:12px}.ch-pwa-identity-actions [data-ch-pwa-identity-status]{font-size:12px;color:#8fd3ff}
html.ch-pwa-splash-open,html.ch-pwa-splash-open body{overflow:hidden!important}
.ch-pwa-splash{position:fixed;inset:0;z-index:2147483300;display:grid;place-items:center;overflow:hidden;background:radial-gradient(circle at 50% 40%,color-mix(in srgb,var(--ch-splash-bg2) 36%,transparent) 0,transparent 45%),linear-gradient(145deg,var(--ch-splash-bg1),color-mix(in srgb,var(--ch-splash-bg2) 45%,var(--ch-splash-bg1)));opacity:0;transition:opacity .25s ease}
.ch-pwa-splash.is-active{opacity:1}.ch-pwa-splash.is-leaving{opacity:0}.ch-pwa-splash-atmosphere{position:absolute;inset:-10%;pointer-events:none;filter:blur(2px)}.ch-pwa-splash-atmosphere i{position:absolute;border-radius:50%;background:var(--ch-splash-bg2);opacity:.16;filter:blur(45px);animation:chSplashDrift 4s ease-in-out infinite alternate}.ch-pwa-splash-atmosphere i:nth-child(1){width:42vw;height:42vw;left:-8%;top:14%}.ch-pwa-splash-atmosphere i:nth-child(2){width:32vw;height:32vw;right:-4%;bottom:8%;animation-delay:-1.4s}.ch-pwa-splash-atmosphere i:nth-child(3){width:18vw;height:18vw;left:46%;top:4%;opacity:.1;animation-delay:-2.2s}
.ch-pwa-splash-inner{position:relative;z-index:2;width:min(86vw,620px);display:grid;justify-items:center;text-align:center;gap:14px;color:#fff}.ch-pwa-splash-logo-wrap{width:min(calc(var(--ch-splash-logo-scale)*1vw),420px);max-width:74vw;aspect-ratio:1;display:grid;place-items:center}.ch-pwa-splash-logo{width:100%;height:100%;object-fit:contain;object-position:50% 50%;border-radius:0;filter:drop-shadow(0 0 calc(var(--ch-splash-glow)*.35px) var(--ch-splash-bg2));will-change:transform,filter,opacity;transform-origin:50% 50%}.ch-pwa-splash-brand{display:grid;gap:4px}.ch-pwa-splash-brand strong{font-size:clamp(24px,5vw,42px);letter-spacing:.03em}.ch-pwa-splash-brand span{font-size:11px;letter-spacing:.24em;text-transform:uppercase;color:rgba(255,255,255,.72)}.ch-pwa-splash-progress{width:min(62vw,300px);height:4px;border-radius:99px;background:rgba(255,255,255,.14);overflow:hidden;margin-top:6px}.ch-pwa-splash-progress span{display:block;width:45%;height:100%;border-radius:inherit;background:linear-gradient(90deg,var(--ch-splash-accent),var(--ch-splash-bg2));box-shadow:0 0 18px var(--ch-splash-bg2);animation:chSplashProgress 1.2s ease-in-out infinite alternate}.ch-pwa-splash p{margin:0;color:rgba(255,255,255,.64);font-size:12px;letter-spacing:.08em}.ch-pwa-splash-skip{position:absolute;right:max(18px,env(safe-area-inset-right));top:max(18px,env(safe-area-inset-top));z-index:4;border:1px solid rgba(255,255,255,.24);background:rgba(0,0,0,.28);color:#fff;border-radius:999px;padding:8px 13px;font-size:12px;backdrop-filter:blur(12px)}
.ch-pwa-splash[data-animation="brush-reveal"] .ch-pwa-splash-logo{animation:chBrushReveal 1.15s cubic-bezier(.2,.8,.2,1) both}.ch-pwa-splash[data-animation="neon-pulse"] .ch-pwa-splash-logo{animation:chNeonPulse 1.2s ease-in-out both}.ch-pwa-splash[data-animation="zoom-glow"] .ch-pwa-splash-logo{animation:chZoomGlow 1s cubic-bezier(.16,1,.3,1) both}.ch-pwa-splash[data-animation="spin-reveal"] .ch-pwa-splash-logo{animation:chSpinReveal 1.05s cubic-bezier(.16,1,.3,1) both}.ch-pwa-splash[data-animation="glitch"] .ch-pwa-splash-logo{animation:chGlitch .9s steps(2,end) both}.ch-pwa-splash[data-animation="shimmer"] .ch-pwa-splash-logo{animation:chShimmer 1.35s ease-out both}
@keyframes chBrushReveal{0%{opacity:0;clip-path:inset(0 100% 0 0);transform:scale(.94) rotate(-2deg)}60%{opacity:1;clip-path:inset(0 0 0 0)}100%{transform:scale(1) rotate(0)}}@keyframes chNeonPulse{0%{opacity:0;transform:scale(.82);filter:brightness(.4) drop-shadow(0 0 0 transparent)}55%{opacity:1;transform:scale(1.04);filter:brightness(1.35) drop-shadow(0 0 42px var(--ch-splash-bg2))}100%{transform:scale(1);filter:brightness(1) drop-shadow(0 0 18px var(--ch-splash-bg2))}}@keyframes chZoomGlow{0%{opacity:0;transform:scale(.55);filter:blur(12px)}100%{opacity:1;transform:scale(1);filter:blur(0) drop-shadow(0 0 18px var(--ch-splash-bg2))}}@keyframes chSpinReveal{0%{opacity:0;transform:scale(.62) rotate(-24deg)}100%{opacity:1;transform:scale(1) rotate(0)}}@keyframes chGlitch{0%{opacity:0;transform:translate(-14px,4px) skewX(-7deg);filter:hue-rotate(80deg)}35%{opacity:1;transform:translate(9px,-4px) skewX(4deg)}55%{transform:translate(-5px,2px)}100%{transform:none;filter:none}}@keyframes chShimmer{0%{opacity:0;filter:brightness(.6) saturate(.6)}45%{opacity:1;filter:brightness(1.6) saturate(1.25)}100%{filter:brightness(1) saturate(1)}}@keyframes chSplashProgress{from{transform:translateX(-55%)}to{transform:translateX(130%)}}@keyframes chSplashDrift{from{transform:translate3d(-2%,0,0) scale(.96)}to{transform:translate3d(4%,3%,0) scale(1.08)}}
@media(max-width:900px){.ch-pwa-identity-grid{grid-template-columns:repeat(4,minmax(0,1fr));max-height:480px}.ch-pwa-identity-current{grid-template-columns:auto 1fr}.ch-pwa-identity-current>button{grid-column:1/-1;width:100%}}
@media(max-width:560px){.ch-pwa-identity-member{padding:12px}.ch-pwa-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px;max-height:520px}.ch-pwa-identity-current img{width:62px;height:62px}.ch-pwa-identity-actions>*{flex:1 1 auto}.ch-pwa-splash-logo-wrap{width:min(72vw,330px)}.ch-pwa-splash-inner{gap:12px}.ch-pwa-splash-brand strong{font-size:28px}}
@media(prefers-reduced-motion:reduce){.ch-pwa-splash *,.ch-pwa-identity-card{animation:none!important;transition:none!important}}
.ch-pwa-splash.has-background-image{background-image:linear-gradient(rgba(0,0,0,.28),rgba(0,0,0,.48)),var(--ch-splash-image);background-size:cover;background-position:center}.ch-pwa-splash-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0;filter:brightness(.52) saturate(1.1)}.ch-pwa-splash.has-background-video:after{content:"";position:absolute;inset:0;z-index:1;background:linear-gradient(180deg,rgba(0,0,0,.2),rgba(0,0,0,.52))}.ch-pwa-splash.has-background-video .ch-pwa-splash-atmosphere,.ch-pwa-splash.has-background-video .ch-pwa-splash-inner,.ch-pwa-splash.has-background-video .ch-pwa-splash-skip{z-index:2}

/* =========================================================
   v1.0.389 — App Identity Gallery Polish
   Presentation-only recovery for the member App Style picker. The identity
   engine, saved pack choice, manifest behavior, splash behavior and header seam
   are unchanged.
   ========================================================= */
.ch-pwa-identity-member{
  container-type:inline-size;
  overflow:hidden;
}
.ch-pwa-identity-member .ch-pwa-member-section-head{
  align-items:flex-start;
  gap:12px;
}
.ch-pwa-identity-member .ch-pwa-member-section-head h4{
  margin:0 0 4px;
  font-size:17px;
  line-height:1.2;
}
.ch-pwa-identity-member .ch-pwa-member-section-head p{
  margin:0;
  max-width:48ch;
  line-height:1.45;
}
.ch-pwa-identity-member .ch-pwa-member-private-badge{
  flex:0 0 auto;
  white-space:nowrap;
}

.ch-pwa-identity-current{
  grid-template-columns:82px minmax(0,1fr);
  gap:14px;
  padding:14px;
  border-radius:16px;
  margin:14px 0 16px;
  overflow:hidden;
}
.ch-pwa-identity-current img{
  width:82px;
  height:82px;
  border-radius:20px;
}
.ch-pwa-identity-current>div{
  align-content:center;
  gap:4px;
}
.ch-pwa-identity-current>div>span{
  font-size:10px;
  font-weight:850;
  letter-spacing:.08em;
  text-transform:uppercase;
}
.ch-pwa-identity-current strong{
  font-size:16px;
  line-height:1.25;
}
.ch-pwa-identity-current small{
  max-width:52ch;
  font-size:11px;
  line-height:1.45;
}
.ch-pwa-identity-current>button{
  grid-column:1/-1;
  justify-self:start;
  min-height:34px!important;
  padding:7px 11px!important;
  border-radius:9px!important;
  font-size:11px!important;
}

.ch-pwa-identity-gallery-head{
  display:flex;
  align-items:flex-end;
  justify-content:space-between;
  gap:12px;
  margin:0 2px 9px;
}
.ch-pwa-identity-gallery-head>div{
  display:grid;
  gap:3px;
  min-width:0;
}
.ch-pwa-identity-gallery-head strong{
  color:var(--ch-text,#fff);
  font-size:13px;
  line-height:1.2;
}
.ch-pwa-identity-gallery-head span:not(.ch-pwa-identity-gallery-count){
  color:var(--ch-text-muted,#94a3b8);
  font-size:10px;
  line-height:1.35;
}
.ch-pwa-identity-gallery-count{
  flex:0 0 auto;
  padding:4px 7px;
  border:1px solid rgba(148,163,184,.22);
  border-radius:999px;
  background:rgba(15,23,42,.34);
  color:var(--ch-text-muted,#94a3b8);
  font-size:9px;
  font-weight:850;
  white-space:nowrap;
}

.ch-pwa-identity-grid{
  grid-template-columns:repeat(auto-fit,minmax(92px,1fr));
  gap:10px;
  width:100%;
  max-width:100%;
  max-height:620px;
  overflow-x:hidden;
  overflow-y:auto;
  overscroll-behavior:contain;
  padding:5px 4px 8px;
  margin:0 0 14px;
  scrollbar-gutter:stable;
}
.ch-pwa-identity-grid::-webkit-scrollbar{width:7px;height:7px}
.ch-pwa-identity-grid::-webkit-scrollbar-thumb{background:rgba(148,163,184,.34);border-radius:999px}
.ch-pwa-identity-grid::-webkit-scrollbar-track{background:transparent}

/* These are gallery tiles, not generic site CTA buttons. Explicitly neutralize
   shared/default button geometry so the gallery cannot turn into blue blobs. */
body.ch-theme button.ch-pwa-identity-card,
button.ch-pwa-identity-card{
  box-sizing:border-box!important;
  display:grid!important;
  grid-template-rows:auto minmax(32px,auto)!important;
  align-content:start!important;
  justify-items:stretch!important;
  gap:7px!important;
  width:100%!important;
  min-width:0!important;
  max-width:none!important;
  min-height:0!important;
  height:auto!important;
  margin:0!important;
  padding:7px!important;
  border:1px solid rgba(148,163,184,.22)!important;
  border-radius:14px!important;
  background:rgba(12,20,33,.74)!important;
  background-image:none!important;
  color:var(--ch-text,#f8fafc)!important;
  -webkit-text-fill-color:currentColor!important;
  box-shadow:0 5px 14px rgba(2,6,23,.12)!important;
  font:inherit!important;
  line-height:normal!important;
  text-align:left!important;
  transform:none!important;
  overflow:hidden!important;
  isolation:isolate;
}
body.ch-theme button.ch-pwa-identity-card:hover,
button.ch-pwa-identity-card:hover{
  border-color:rgba(96,165,250,.68)!important;
  background:rgba(18,30,48,.92)!important;
  box-shadow:0 9px 22px rgba(2,6,23,.22)!important;
  transform:translateY(-1px)!important;
}
body.ch-theme button.ch-pwa-identity-card:focus-visible,
button.ch-pwa-identity-card:focus-visible{
  outline:2px solid #69b9ff!important;
  outline-offset:2px!important;
}
body.ch-theme button.ch-pwa-identity-card.is-selected,
button.ch-pwa-identity-card.is-selected{
  border-color:#5ab5ff!important;
  background:linear-gradient(180deg,rgba(32,59,91,.78),rgba(13,25,42,.94))!important;
  box-shadow:0 0 0 2px rgba(90,181,255,.18),0 10px 24px rgba(37,99,235,.18)!important;
}
.ch-pwa-identity-card.is-selected::after{
  content:"✓";
  position:absolute;
  top:9px;
  left:9px;
  z-index:3;
  display:grid;
  place-items:center;
  width:20px;
  height:20px;
  border-radius:999px;
  background:#2f8cff;
  color:#fff;
  font-size:11px;
  font-weight:950;
  line-height:1;
  box-shadow:0 4px 12px rgba(47,140,255,.32);
}
.ch-pwa-identity-card img{
  box-sizing:border-box;
  width:100%!important;
  height:auto!important;
  aspect-ratio:1!important;
  border-radius:11px!important;
  object-fit:cover!important;
  display:block!important;
  border:1px solid rgba(255,255,255,.08);
  background:#020617;
}
.ch-pwa-identity-card span{
  box-sizing:border-box;
  display:grid!important;
  grid-template-columns:auto minmax(0,1fr)!important;
  align-items:start!important;
  justify-content:stretch!important;
  gap:5px!important;
  min-width:0!important;
  min-height:0!important;
  padding:0 2px 1px!important;
  color:var(--ch-text,#f8fafc)!important;
  -webkit-text-fill-color:currentColor!important;
  font-size:10px!important;
  font-weight:800!important;
  line-height:1.2!important;
  text-align:left!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
}
.ch-pwa-identity-card b{
  color:#7fc5ff!important;
  -webkit-text-fill-color:#7fc5ff!important;
  font-size:9px!important;
  font-weight:900!important;
  line-height:1.25!important;
}
.ch-pwa-identity-card em{
  top:8px!important;
  right:8px!important;
  z-index:3;
  padding:3px 6px!important;
  border:1px solid rgba(74,222,128,.26);
  background:rgba(10,80,50,.9)!important;
  color:#d9ffe8!important;
  -webkit-text-fill-color:#d9ffe8!important;
  font-size:8px!important;
  font-weight:900;
  letter-spacing:.02em;
  box-shadow:0 3px 10px rgba(0,0,0,.2);
}

.ch-pwa-identity-header-choice{
  position:relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:10px;
  padding:12px 13px;
  border-radius:14px;
  background:rgba(2,6,23,.18);
}
.ch-pwa-identity-header-choice input{
  appearance:none;
  width:36px;
  height:20px;
  margin:0;
  border:1px solid rgba(148,163,184,.38);
  border-radius:999px;
  background:rgba(100,116,139,.4);
  cursor:pointer;
  transition:background .16s ease,border-color .16s ease;
}
.ch-pwa-identity-header-choice input::before{
  content:"";
  display:block;
  width:14px;
  height:14px;
  margin:2px;
  border-radius:50%;
  background:#fff;
  box-shadow:0 2px 6px rgba(0,0,0,.28);
  transition:transform .16s ease;
}
.ch-pwa-identity-header-choice input:checked{
  border-color:#328cff;
  background:#2f8cff;
}
.ch-pwa-identity-header-choice input:checked::before{transform:translateX(16px)}
.ch-pwa-identity-header-choice input:disabled{opacity:.45;cursor:not-allowed}
.ch-pwa-identity-header-choice span{min-width:0}
.ch-pwa-identity-header-choice strong{font-size:11px;line-height:1.35}
.ch-pwa-identity-header-choice small{font-size:9px;line-height:1.4}

.ch-pwa-identity-actions{
  display:grid;
  grid-template-columns:minmax(0,1fr) minmax(0,1fr);
  gap:8px;
  margin-top:10px;
}
.ch-pwa-identity-actions>button{
  width:100%;
  min-height:36px!important;
  padding:7px 9px!important;
  border-radius:9px!important;
  font-size:10px!important;
}
.ch-pwa-identity-actions [data-ch-pwa-identity-status]{
  grid-column:1/-1;
  min-height:16px;
  text-align:center;
  line-height:1.35;
}

@container (max-width:300px){
  .ch-pwa-identity-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .ch-pwa-identity-current{grid-template-columns:64px minmax(0,1fr)}
  .ch-pwa-identity-current img{width:64px;height:64px;border-radius:16px}
  .ch-pwa-identity-gallery-head{align-items:flex-start}
  .ch-pwa-identity-gallery-count{display:none}
}
@container (min-width:430px){
  .ch-pwa-identity-grid{grid-template-columns:repeat(auto-fit,minmax(108px,1fr))}
  .ch-pwa-identity-current{grid-template-columns:86px minmax(0,1fr) auto}
  .ch-pwa-identity-current>button{grid-column:auto;justify-self:end;align-self:center}
}
@media(max-width:560px){
  .ch-pwa-identity-member{padding:12px}
  .ch-pwa-identity-grid{grid-template-columns:repeat(auto-fit,minmax(92px,1fr));max-height:600px}
  .ch-pwa-identity-gallery-head{align-items:flex-start}
  .ch-pwa-identity-actions{grid-template-columns:1fr 1fr}
}


/* =========================================================
   v1.0.390 — Identity Asset Centering + Splash Contrast Recovery
   Every JeffMAC pack now uses a corrected centered source crop. These guards
   keep splash/gallery rendering centered and preserve readable foregrounds,
   including the Light Mode identity.
   ========================================================= */
.ch-pwa-identity-card img,
.ch-pwa-identity-current img{
  object-position:50% 50%!important;
}
.ch-pwa-splash-inner{
  left:auto!important;
  right:auto!important;
  margin-inline:auto!important;
}
.ch-pwa-splash-logo-wrap{
  place-self:center!important;
  justify-self:center!important;
  align-self:center!important;
  overflow:visible;
}
.ch-pwa-splash-logo{
  display:block!important;
  object-fit:contain!important;
  object-position:50% 50%!important;
  transform-origin:50% 50%!important;
  margin:auto!important;
}
.ch-pwa-splash-inner{color:var(--ch-splash-fg,#fff)!important}
.ch-pwa-splash-brand strong{color:var(--ch-splash-fg,#fff)!important}
.ch-pwa-splash-brand span,
.ch-pwa-splash p{
  color:color-mix(in srgb,var(--ch-splash-fg,#fff) 70%,transparent)!important;
}
.ch-pwa-splash-progress{
  background:color-mix(in srgb,var(--ch-splash-fg,#fff) 16%,transparent)!important;
}
.ch-pwa-splash-skip{
  border-color:color-mix(in srgb,var(--ch-splash-fg,#fff) 28%,transparent)!important;
  color:var(--ch-splash-fg,#fff)!important;
  background:color-mix(in srgb,var(--ch-splash-bg1,#000) 72%,transparent)!important;
}

/* v1.0.391 — Phase 5.2 transparent splash-mark recovery. Launcher icons remain square; splash artwork is a separate transparent layer so pack backgrounds continue behind the mark with no tile seam. */
.ch-pwa-splash-logo-wrap{overflow:visible}
.ch-pwa-splash-logo{background:transparent!important;box-shadow:none!important}
