/* v1.2.123 single-screen aggregator identity.
 * The main join form still inherits the restored/original site styles.
 * This file only styles the compact multi-site summary + chooser overlay. */

.aggregator-joincard .agg-selection-summary{
  position:relative;
  margin:8px 0 13px;
  padding:10px 11px 9px;
  overflow:hidden;
  border:1px solid color-mix(in srgb,var(--brand) 28%,var(--line));
  border-radius:14px;
  background:
    radial-gradient(circle at 0 0,color-mix(in srgb,var(--brand) 14%,transparent),transparent 42%),
    linear-gradient(135deg,rgba(255,255,255,.055),rgba(255,255,255,.025));
  box-shadow:inset 0 1px 0 rgba(255,255,255,.035),0 8px 22px rgba(0,0,0,.12);
}
.aggregator-joincard .agg-selection-summary::before{
  content:"";
  position:absolute;
  inset:0 auto 0 0;
  width:3px;
  background:linear-gradient(180deg,var(--brand),var(--accent));
  opacity:.92;
}
.aggregator-joincard .agg-selection-head{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  margin-bottom:7px;
}
.aggregator-joincard .agg-selection-label{
  color:color-mix(in srgb,var(--brand) 58%,#fff);
  font-size:9.5px;
  font-weight:950;
  line-height:1.2;
  letter-spacing:.055em;
  text-transform:uppercase;
}
.aggregator-joincard .agg-change-sites{
  width:auto!important;
  min-height:auto!important;
  margin:0!important;
  padding:3px 1px!important;
  border:0!important;
  border-radius:0!important;
  background:transparent!important;
  color:color-mix(in srgb,var(--brand) 58%,#fff)!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:10px!important;
  font-weight:950!important;
  line-height:1.2!important;
  cursor:pointer!important;
}
.aggregator-joincard .agg-change-sites:hover{
  color:#fff!important;
  text-decoration:underline;
  text-underline-offset:2px;
}
.aggregator-joincard .agg-selection-chips{
  display:flex;
  flex-wrap:wrap;
  gap:5px;
  min-width:0;
}
.aggregator-joincard .agg-selection-chip,
.aggregator-joincard .agg-selection-more{
  display:inline-flex;
  align-items:center;
  gap:4px;
  max-width:100%;
  min-height:24px;
  padding:4px 7px;
  border:1px solid rgba(255,255,255,.085);
  border-radius:999px;
  background:rgba(255,255,255,.045);
  color:#eeeeF5;
  font-size:9.5px;
  font-weight:850;
  line-height:1;
  white-space:nowrap;
}
.aggregator-joincard .agg-selection-chip > span:last-child{
  overflow:hidden;
  max-width:150px;
  text-overflow:ellipsis;
}
.aggregator-joincard .agg-selection-check{
  display:grid;
  place-items:center;
  flex:0 0 14px;
  width:14px;
  height:14px;
  border-radius:50%;
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:#fff;
  font-size:8px;
  font-weight:950;
  box-shadow:0 2px 7px color-mix(in srgb,var(--brand) 18%,transparent);
}
.aggregator-joincard .agg-selection-more{
  border-color:color-mix(in srgb,var(--brand) 22%,rgba(255,255,255,.08));
  background:color-mix(in srgb,var(--brand) 8%,rgba(255,255,255,.03));
  color:color-mix(in srgb,var(--brand) 52%,#fff);
}
.aggregator-joincard .agg-selection-empty{
  color:var(--muted);
  font-size:10px;
  font-weight:800;
}
.aggregator-joincard .agg-selection-meta{
  display:flex;
  flex-wrap:wrap;
  align-items:center;
  gap:4px;
  margin-top:7px;
  color:var(--muted);
  font-size:9.5px;
  font-weight:750;
  line-height:1.3;
}
.aggregator-joincard .agg-selection-meta strong{
  color:#f4f4f8;
  font-weight:900;
}
.aggregator-joincard .agg-selection-dot{
  color:rgba(255,255,255,.25);
  font-size:8px;
}

.aggregator-joincard .agg-site-picker[hidden]{display:none!important}
.aggregator-joincard .agg-site-picker{
  position:fixed;
  inset:0;
  z-index:1200;
  display:grid;
  place-items:center;
  padding:22px;
}
.aggregator-joincard .agg-site-picker-backdrop{
  position:absolute;
  inset:0;
  background:rgba(4,4,8,.76);
  backdrop-filter:blur(8px);
}
.aggregator-joincard .agg-site-picker-panel{
  position:relative;
  z-index:1;
  display:grid;
  grid-template-rows:auto auto minmax(0,1fr) auto auto;
  width:min(540px,100%);
  max-height:min(720px,calc(100dvh - 44px));
  overflow:hidden;
  border:1px solid rgba(255,255,255,.13);
  border-radius:22px;
  background:linear-gradient(180deg,color-mix(in srgb,var(--surface2) 92%,var(--brand) 8%),var(--surface));
  box-shadow:0 30px 100px rgba(0,0,0,.55);
}
.aggregator-joincard .agg-site-picker-head{
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:16px;
  padding:19px 19px 14px;
  border-bottom:1px solid rgba(255,255,255,.075);
}
.aggregator-joincard .agg-site-picker-head h3{
  margin:0;
  color:#fff;
  font-size:19px;
  line-height:1.18;
  letter-spacing:-.35px;
}
.aggregator-joincard .agg-site-picker-head p{
  margin:4px 0 0;
  color:var(--muted);
  font-size:11px;
  line-height:1.4;
}
.aggregator-joincard .agg-site-picker-x{
  display:grid!important;
  place-items:center;
  flex:0 0 34px;
  width:34px!important;
  height:34px!important;
  min-height:34px!important;
  margin:0!important;
  padding:0!important;
  border:1px solid rgba(255,255,255,.10)!important;
  border-radius:11px!important;
  background:rgba(255,255,255,.045)!important;
  color:#d8d8e3!important;
  box-shadow:none!important;
  font:700 22px/1 system-ui,sans-serif!important;
  cursor:pointer!important;
}
.aggregator-joincard .agg-site-picker-x:hover{
  background:rgba(255,255,255,.09)!important;
  color:#fff!important;
}
.aggregator-joincard .agg-site-picker-tools{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
  padding:10px 19px;
  border-bottom:1px solid rgba(255,255,255,.065);
  color:var(--muted);
  font-size:10.5px;
  font-weight:800;
}
.aggregator-joincard .agg-site-picker-tools button{
  width:auto!important;
  min-height:auto!important;
  margin:0!important;
  padding:4px 0!important;
  border:0!important;
  background:transparent!important;
  color:color-mix(in srgb,var(--brand) 55%,#fff)!important;
  box-shadow:none!important;
  font:inherit!important;
  font-size:10.5px!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.aggregator-joincard .agg-site-picker-tools button:hover{text-decoration:underline}

.aggregator-joincard .agg-sites-list{
  display:grid;
  gap:8px;
  min-height:0;
  overflow:auto;
  padding:12px 14px;
  scrollbar-width:thin;
  scrollbar-color:rgba(255,255,255,.18) transparent;
}
.aggregator-joincard .agg-site{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  align-items:center;
  gap:10px;
  min-height:58px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.09);
  border-radius:14px;
  background:rgba(255,255,255,.03);
  transition:border-color .15s ease,background .15s ease,transform .15s ease;
}
.aggregator-joincard .agg-site:hover{
  border-color:rgba(255,255,255,.16);
  background:rgba(255,255,255,.05);
}
.aggregator-joincard .agg-site:has(.agg-site-check:checked){
  border-color:color-mix(in srgb,var(--brand) 40%,rgba(255,255,255,.12));
  background:linear-gradient(135deg,color-mix(in srgb,var(--brand) 9%,rgba(255,255,255,.035)),rgba(255,255,255,.03));
}
.aggregator-joincard .agg-site-check{
  position:absolute!important;
  inline-size:1px!important;
  block-size:1px!important;
  width:1px!important;
  height:1px!important;
  margin:0!important;
  padding:0!important;
  opacity:0!important;
  pointer-events:none;
}
.aggregator-joincard .agg-site-copy{
  display:grid;
  grid-template-columns:28px minmax(0,1fr);
  align-items:center;
  gap:10px;
  min-width:0;
  cursor:pointer;
}
.aggregator-joincard .agg-site-checkmark{
  display:grid;
  place-items:center;
  width:27px;
  height:27px;
  border:1px solid rgba(255,255,255,.14);
  border-radius:9px;
  background:rgba(255,255,255,.045);
  color:transparent;
  font-size:15px;
  font-weight:950;
  transition:background .15s ease,border-color .15s ease,color .15s ease,box-shadow .15s ease;
}
.aggregator-joincard .agg-site-check:checked + .agg-site-copy .agg-site-checkmark{
  border-color:transparent;
  background:linear-gradient(135deg,var(--brand),var(--accent));
  color:#fff;
  box-shadow:0 7px 18px color-mix(in srgb,var(--brand) 18%,transparent);
}
.aggregator-joincard .agg-site-check:focus-visible + .agg-site-copy .agg-site-checkmark{
  outline:3px solid color-mix(in srgb,var(--brand) 24%,transparent);
  outline-offset:2px;
}
.aggregator-joincard .agg-site-text{
  display:grid;
  gap:2px;
  min-width:0;
}
.aggregator-joincard .agg-site-text strong{
  overflow:hidden;
  color:#f5f5fa;
  font-size:12px;
  line-height:1.2;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.aggregator-joincard .agg-site-text small{
  overflow:hidden;
  color:var(--muted);
  font-size:10px;
  line-height:1.3;
  text-overflow:ellipsis;
  white-space:nowrap;
}
.aggregator-joincard .agg-site-link{
  display:inline-flex;
  align-items:center;
  gap:3px;
  padding:6px 7px;
  border-radius:8px;
  color:var(--muted);
  font-size:9px;
  font-weight:850;
  text-decoration:none;
  white-space:nowrap;
}
.aggregator-joincard .agg-site-link:hover{
  background:rgba(255,255,255,.055);
  color:#fff;
}
.aggregator-joincard .agg-picker-error{
  margin:0 14px 10px;
}
.aggregator-joincard .agg-site-picker-done{
  width:calc(100% - 28px)!important;
  min-height:46px!important;
  margin:0 14px 14px!important;
  padding:0 16px!important;
  border:0!important;
  border-radius:13px!important;
  background:linear-gradient(135deg,var(--brand),var(--accent))!important;
  color:#fff!important;
  box-shadow:0 10px 28px color-mix(in srgb,var(--brand) 22%,transparent)!important;
  font:inherit!important;
  font-weight:900!important;
  cursor:pointer!important;
}
.aggregator-joincard .agg-site-picker-done:hover{filter:brightness(1.05)}
body.agg-site-picker-open{overflow:hidden}

/* The aggregator uses the original full-width site CTA unchanged. */
.aggregator-joincard .join-submit-action{width:100%!important;cursor:pointer!important}
.aggregator-joincard button:not(:disabled){cursor:pointer}
.aggregator-joincard button:disabled{cursor:not-allowed}

@media(max-width:680px){
  .aggregator-joincard .agg-site-picker{
    align-items:end;
    justify-items:stretch;
    padding:0;
  }
  .aggregator-joincard .agg-site-picker-panel{
    width:100%;
    max-height:84dvh;
    border-right:0;
    border-bottom:0;
    border-left:0;
    border-radius:22px 22px 0 0;
  }
  .aggregator-joincard .agg-site-picker-head{padding:17px 16px 12px}
  .aggregator-joincard .agg-site-picker-tools{padding:9px 16px}
  .aggregator-joincard .agg-sites-list{padding:10px 11px}
  .aggregator-joincard .agg-site-picker-done{width:calc(100% - 22px)!important;margin:0 11px 11px!important}
  .aggregator-joincard .agg-picker-error{margin:0 11px 9px}
}
@media(max-width:440px){
  .aggregator-joincard .agg-selection-summary{padding:9px 10px 8px}
  .aggregator-joincard .agg-selection-chip > span:last-child{max-width:115px}
  .aggregator-joincard .agg-selection-meta{gap:3px;font-size:9px}
  .aggregator-joincard .agg-site{grid-template-columns:minmax(0,1fr)}
  .aggregator-joincard .agg-site-link{display:none}
}
@media(prefers-reduced-motion:reduce){
  .aggregator-joincard .agg-selection-summary *,
  .aggregator-joincard .agg-site-picker *{transition-duration:.01ms!important;animation-duration:.01ms!important}
}
