/* TWE app styles. Profile editor (from the profile design) + app shell + sign-in / join screens. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--color-bg); color: var(--color-text); font: 400 15px/1.45 var(--font-body); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
button { font: inherit; }

.bar {
  position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .6rem;
  padding: calc(env(safe-area-inset-top) + .5rem) .9rem .5rem;
  background: #131316f2; border-bottom: 1px solid var(--color-border); backdrop-filter: blur(8px);
}
.bar__brand img { display: block; height: 30px; width: auto; }
.row__main--view { cursor: default; min-height: 48px; }
.row--off .row__main--view { opacity: .45; }
.bar__title { white-space: nowrap; font: 400 1.1rem/1 var(--font-display); color: var(--color-text-strong); }
.bar__me { margin-left: auto; white-space: nowrap; padding: .2rem .6rem; border-radius: 999px; background: var(--color-accent-soft);
  color: var(--color-accent); font-size: .75rem; }

.layout { max-width: 1180px; margin: 0 auto; }
.editor { padding: 1rem 1rem calc(env(safe-area-inset-bottom) + 2rem); }

/* personas */
.personas { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .4rem; }
.personas__list { display: flex; gap: .5rem; }
.chip {
  display: inline-flex; align-items: center; gap: .45rem; min-height: 40px; padding: 0 .9rem; border-radius: 999px;
  border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text);
  white-space: nowrap; cursor: pointer;
}
.chip--active { border-color: var(--color-highlight); background: var(--color-highlight-soft); color: var(--color-text-strong); }
.chip--add { width: 40px; padding: 0; justify-content: center; color: var(--color-text-muted); }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-text-disabled); }
.dot--on { background: var(--color-accent); box-shadow: 0 0 6px var(--color-accent); }

/* profile card */
.card { display: flex; gap: .9rem; align-items: center; margin: .9rem 0 .6rem; }
.card__photo {
  width: 72px; height: 72px; flex: none; border-radius: 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, #2a1b45, #1C1C21); border: 1px solid var(--color-border-strong);
  font: 400 2rem var(--font-display); color: var(--color-highlight);
}
.card__body { flex: 1; min-width: 0; }
.field-name input {
  width: 100%; border: 0; border-bottom: 1px solid var(--color-border-strong); background: transparent;
  color: var(--color-text-strong); font: 600 1.25rem var(--font-body); padding: .2rem 0;
}
.field-name input:focus { outline: none; border-color: var(--color-highlight); }
.status { display: flex; align-items: center; gap: .55rem; margin-top: .45rem; font-size: .85rem; color: var(--color-text-muted); }
.about { display: block; }
.about__label { display: block; font-size: .8rem; color: var(--color-text-muted); margin-bottom: .25rem; }
.about textarea {
  width: 100%; resize: vertical; border-radius: 12px; border: 1px solid var(--color-border); background: var(--color-surface);
  color: var(--color-text); padding: .6rem .7rem; font: inherit;
}
.about textarea:focus, .num:focus, select:focus { outline: 2px solid var(--color-highlight); outline-offset: 1px; }
.privacy { margin: .9rem 0 .2rem; padding: .7rem .8rem; border-radius: 12px; background: var(--color-surface);
  border: 1px solid var(--color-border); font-size: .84rem; color: var(--color-text-muted); }

/* sections and rows */
.section { margin-top: 1.3rem; }
.section__head { display: flex; align-items: center; gap: .6rem; padding: 0 .1rem .35rem; }
.section__edit { border: 0; background: none; padding: .2rem .3rem; color: var(--color-highlight); font: 600 .85rem var(--font-body); cursor: pointer; }
.section__empty { margin: 0 .1rem; font-size: .85rem; }
.section__head h2 { margin: 0; font: 600 1rem var(--font-body); color: var(--color-text-strong); }
.showall { margin-left: auto; display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--color-text-muted); }
.units { display: flex; border: 1px solid var(--color-border-strong); border-radius: 999px; overflow: hidden; }
.units button { border: 0; background: transparent; color: var(--color-text-muted); font-size: .75rem; padding: .25rem .55rem; cursor: pointer; }
.units button[aria-checked="true"] { background: var(--color-surface-raised); color: var(--color-text-strong); }
.rows { list-style: none; margin: 0; padding: 0; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.row { display: flex; align-items: center; gap: .5rem; padding-right: .8rem; }
.row + .row { border-top: 1px solid var(--color-border); }
.row__main {
  flex: 1; min-width: 0; min-height: 54px; display: flex; align-items: center; gap: .5rem; padding: .55rem .4rem .55rem .9rem;
  border: 0; background: transparent; color: inherit; text-align: left; cursor: pointer;
}
.row__label { flex: none; max-width: 52%; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; color: var(--color-text); }
.row__value { flex: 1; min-width: 0; text-align: right; color: var(--color-text-strong); font-weight: 600; overflow-wrap: anywhere; }
.row__value--empty { color: var(--color-highlight); font-weight: 400; }
.row__main--inline { cursor: default; justify-content: space-between; flex-wrap: wrap; }
.row__pills { justify-content: flex-start; gap: .4rem; }
.row--off .row__pills .choice { opacity: .45; cursor: default; }
.row__pills .choice {min-height: 36px; padding: .3rem .8rem; font-size: .9rem; }
.chev { color: var(--color-text-disabled); font-size: 1.2rem; }
.help { display: inline-grid; place-items: center; width: 17px; height: 17px; border-radius: 50%; background: var(--color-highlight-strong);
  color: #fff; font: 700 .7rem var(--font-body); }
.lock { color: var(--color-warning); font-size: .55rem; }
.nofilter { padding: .05rem .4rem; border-radius: 6px; border: 1px solid var(--color-border-strong); color: var(--color-text-muted);
  font-size: .68rem; white-space: nowrap; }

/* switches */
input[role="switch"] {
  appearance: none; flex: none; width: 46px; height: 28px; border-radius: 999px; position: relative; cursor: pointer;
  background: var(--color-border-strong); transition: background .15s; margin: 0;
}
input[role="switch"]::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%;
  background: var(--color-text-disabled); transition: transform .15s, background .15s;
}
input[role="switch"]:checked { background: var(--color-highlight-soft); box-shadow: inset 0 0 0 1px var(--color-highlight); }
input[role="switch"]:checked::after { transform: translateX(18px); background: var(--color-highlight); }
input[role="switch"]:disabled { opacity: .35; cursor: not-allowed; }
input[role="switch"]:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }

.actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.4rem; }
.btn { min-height: 44px; padding: .5rem 1rem; border-radius: 12px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text-strong); cursor: pointer; }
.btn--primary { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-on-highlight); font-weight: 600; }
.link { border: 0; background: none; color: var(--color-highlight); cursor: pointer; }

/* picker (bottom sheet on phones) */
.picker { width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--color-surface); color: var(--color-text); max-height: 85dvh; }
.picker::backdrop { background: #000a; }
.picker__form { display: flex; flex-direction: column; max-height: 85dvh; }
.picker__head { display: flex; align-items: center; padding: 1rem 1rem .4rem; }
.picker__head h2 { margin: 0; font: 600 1.05rem var(--font-body); color: var(--color-text-strong); }
.picker__head .link { margin-left: auto; }
.picker__help { margin: 0 1rem .4rem; color: var(--color-text-muted); font-size: .84rem; }
.picker__help:empty { display: none; }
.picker__body { padding: .4rem 1rem 1rem; overflow: auto; }
.picker__foot { display: flex; gap: .6rem; padding: .7rem 1rem calc(env(safe-area-inset-bottom) + .9rem); border-top: 1px solid var(--color-border); }
.picker__foot .btn--primary { flex: 1; }
.choices { display: flex; flex-wrap: wrap; gap: .5rem; }
.choices.option { flex-direction: column; }
.choice { min-height: 44px; padding: .5rem .9rem; border-radius: 12px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text); text-align: left; cursor: pointer; }
.choices.multi .choice { border-radius: 999px; }
.choice[aria-pressed="true"] { border-color: var(--color-highlight); background: var(--color-highlight-soft); color: var(--color-text-strong); }
.pair { display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem; }
.num, select { min-height: 46px; padding: .4rem .7rem; border-radius: 12px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text-strong); font: 600 1.05rem var(--font-body); color-scheme: dark; }
.num { width: 9rem; }

/* preview */
.preview { display: none; }
.previewing .preview { display: block; position: fixed; inset: 0; z-index: 10; overflow: auto; background: var(--color-bg);
  padding: calc(env(safe-area-inset-top) + 1rem) 1rem 2rem; }
.preview__head { display: flex; align-items: center; margin-bottom: .8rem; }
.preview__head h2 { margin: 0; font: 400 1.15rem var(--font-display); color: var(--color-text-strong); }
.preview__head .btn { margin-left: auto; }
.pcard { border-radius: 18px; background: var(--color-surface); border: 1px solid var(--color-border); padding: 1rem; }
.pcard__top { display: flex; gap: .8rem; align-items: center; }
.pcard__name { font-size: 1.1rem; color: var(--color-text-strong); }
.pcard__meta { font-size: .82rem; color: var(--color-text-muted); }
.online { color: var(--color-accent); }
.pcard__about { margin: .8rem 0 0; }
.pcard h3 { margin: 1rem 0 .3rem; font: 600 .8rem var(--font-body); letter-spacing: .06em; text-transform: uppercase; color: var(--color-text-muted); }
.pcard dl { margin: 0; display: grid; gap: .25rem; }
.pcard dl div { display: flex; justify-content: space-between; gap: 1rem; }
.pcard dt { color: var(--color-text-muted); }
.pcard dd { margin: 0; text-align: right; color: var(--color-text-strong); }
.muted { color: var(--color-text-muted); }
.small { font-size: .8rem; margin-top: 1rem; }

/* photos and insights */
.photos { display: grid; grid-template-columns: repeat(3, minmax(0, 150px)); gap: .6rem; }
.slot { aspect-ratio: 3 / 4; border-radius: 14px; border: 1.5px dashed var(--color-border-strong); background: var(--color-surface);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .3rem; padding: .5rem; text-align: center;
  color: var(--color-text-muted); cursor: pointer; font-size: .8rem; }
.slot strong { color: var(--color-text-strong); font-size: .88rem; }
.slot[aria-pressed="true"] { border-style: solid; border-color: var(--color-highlight); background: linear-gradient(160deg, #2a1b45, #1C1C21); color: var(--color-text); }
.slot__icon { font-size: 1.4rem; }
.insights { margin-top: 1rem; padding: .9rem; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-soft); }
.insights h2 { margin: 0 0 .4rem; font: 600 .95rem var(--font-body); color: var(--color-accent); }
.insights ul { margin: 0; padding-left: 1.1rem; }
.insights li + li { margin-top: .3rem; }
.insights .muted { font-size: .78rem; margin: .6rem 0 0; }

.desktop-hide { }
@media (min-width: 1024px) {
  .layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 2rem; padding: 0 1.5rem; }
  .editor { padding: 1.4rem 0 3rem; }
  .preview { display: block; position: sticky; top: 64px; align-self: start; padding: 1.4rem 0; max-height: calc(100vh - 64px); overflow: auto; }
  .phone-only { display: none; }
  .picker { margin: auto; border-radius: 20px; }
}

/* photo library */
.photos { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)) !important; }
.photo { position: relative; aspect-ratio: 3 / 4; border-radius: 14px; overflow: hidden; padding: 0; cursor: pointer;
  border: 1px solid var(--color-border-strong); background: var(--color-surface); color: var(--color-text); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo--add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .25rem;
  border-style: dashed; text-align: center; font-size: .8rem; color: var(--color-text-muted); }
.photo--add strong { color: var(--color-text-strong); }
.photo__foot { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: .05rem;
  padding: 1.2rem .45rem .35rem; text-align: left; font-size: .68rem; line-height: 1.25; background: linear-gradient(transparent, #000d); }
.photo__tags { color: var(--color-text-strong); font-weight: 600; }
.photo__vis { color: var(--color-text-muted); }
.badge { position: absolute; top: .35rem; padding: .05rem .4rem; border-radius: 6px; font: 700 .65rem var(--font-body); }
.badge--main { left: .35rem; background: var(--color-highlight); color: var(--color-on-highlight); }
.badge--x { right: .35rem; background: var(--color-danger); color: #2a0606; }
.photo-big { display: block; max-width: 100%; max-height: 32dvh; margin: 0 auto .6rem; border-radius: 12px; }
.subhead { margin: .9rem 0 .45rem; font: 600 .85rem var(--font-body); color: var(--color-text-strong); }
.seg { display: flex; flex-wrap: wrap; gap: .4rem; }
.seg button { min-height: 42px; padding: 0 .9rem; border-radius: 999px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text); cursor: pointer; }
.seg button[aria-checked="true"] { border-color: var(--color-highlight); background: var(--color-highlight-soft); color: var(--color-text-strong); }
.seg button:disabled { opacity: .35; cursor: not-allowed; }
.mainphoto { display: flex; align-items: center; gap: .6rem; margin-top: 1rem; }
.btn--danger { color: var(--color-danger); }
.pphotos { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin-top: .8rem; }
.pphoto { position: relative; aspect-ratio: 3 / 4; border-radius: 10px; overflow: hidden; background: var(--color-surface-raised); }
.pphoto img { width: 100%; height: 100%; object-fit: cover; }
.pphoto--x img { filter: blur(14px) brightness(.7); transform: scale(1.1); }
.pphoto span { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-size: .7rem; color: var(--color-text-strong); }
.pphoto--lock { display: grid; place-items: center; border: 1px dashed var(--color-border-strong); }
.pphoto--lock span { position: static; color: var(--color-text-muted); }
.card__photo { background-size: cover; background-position: center; }

/* videos, albums, sharing, watermark preview */
.badge--play { left: .35rem; top: 1.7rem; background: #000b; color: var(--color-text-strong); }
.wm-note { margin-left: auto; font-size: .75rem; color: var(--color-text-muted); }
.albums__hint { margin: 0 0 .6rem; font-size: .82rem; }
.albums { display: grid; gap: .6rem; }
.album { display: grid; grid-template-columns: auto 1fr; gap: .4rem .8rem; align-items: center; padding: .7rem;
  border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.album__thumbs { grid-row: span 2; display: flex; width: 92px; height: 64px; border-radius: 10px; overflow: hidden;
  background: var(--color-surface-raised); align-items: center; justify-content: center; font-size: .75rem; }
.album__thumbs img { flex: 1; min-width: 0; height: 100%; object-fit: cover; }
.album__body { display: flex; flex-direction: column; min-width: 0; }
.album__body strong { color: var(--color-text-strong); }
.album__body .muted { font-size: .8rem; }
.album__actions { display: flex; gap: .4rem; }
.album__actions .btn { min-height: 36px; padding: .3rem .8rem; font-size: .85rem; }
.album-add { justify-self: start; }
.sharing { margin-top: .4rem; padding: .7rem; border-radius: 12px; background: var(--color-surface-raised); }
.sharing .subhead { margin-top: 0; }
.sharing__one { display: flex; align-items: center; gap: .6rem; margin-top: .7rem; }
.sharing__one p { flex: 1; margin: 0; font-size: .82rem; }
.choice--new { border-style: dashed; color: var(--color-text-muted); }
.people { display: grid; gap: .2rem; }
.person { display: flex; align-items: center; gap: .7rem; min-height: 52px; padding: .3rem .2rem; border-bottom: 1px solid var(--color-border); }
.person span:nth-child(2) { flex: 1; color: var(--color-text-strong); }
.person__dot { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--color-highlight-soft);
  color: var(--color-highlight); font-weight: 700; }
.preview__controls { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-bottom: .8rem; font-size: .85rem; color: var(--color-text-muted); }
.preview__controls select { min-height: 38px; margin-left: .3rem; font-size: .9rem; }
.admin-orig { display: flex; align-items: center; gap: .45rem; color: var(--color-warning); }
.pphoto__play { position: absolute; left: .3rem; bottom: .3rem; inset: auto auto .3rem .3rem !important; padding: .05rem .35rem;
  border-radius: 6px; background: #000b; font-size: .65rem !important; display: inline !important; }

/* video clipper */
.clip-video { display: block; width: 100%; max-height: 34dvh; border-radius: 12px; background: #000; }
.cliprange { display: block; margin-top: .6rem; font-size: .85rem; color: var(--color-text-muted); }
.cliprange span { display: flex; justify-content: space-between; }
.cliprange output { color: var(--color-text-strong); font-variant-numeric: tabular-nums; }
.cliprange input { width: 100%; min-height: 32px; accent-color: var(--color-highlight); }
.cliplen { margin: .4rem 0; color: var(--color-text-strong); font-weight: 600; font-size: .9rem; }
.quota__bar { display: flex; height: 8px; border-radius: 999px; overflow: hidden; background: var(--color-surface-raised); }
.quota__bar span:first-child { background: var(--color-highlight-strong); }
.quota__bar span:last-child { background: var(--color-accent); }
.quota .muted { margin: .35rem 0 0; font-size: .8rem; }
.clip-list { list-style: none; margin: .8rem 0 0; padding: 0; display: grid; gap: .4rem; }
.clip-list li { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.clip-list img { width: 48px; height: 36px; object-fit: cover; border-radius: 6px; }
.clip-list .muted { margin-left: auto; }

/* "up to x" limits */
.choice:disabled { opacity: .35; cursor: not-allowed; }
.picker__count { margin: .7rem 0 0; font-size: .8rem; color: var(--color-text-muted); }
.subhead__count { font-weight: 400; color: var(--color-text-muted); font-size: .78rem; margin-left: .3rem; }

/* slider pickers */
.slide { padding: .4rem 0 .9rem; }
.slide__value { display: block; text-align: center; font: 400 2.2rem/1.2 var(--font-display); color: var(--color-text-strong); margin-bottom: .6rem; }
.slide input[type=range] { width: 100%; min-height: 44px; accent-color: var(--color-highlight); }
.slide__ends { display: flex; justify-content: space-between; font-size: .78rem; color: var(--color-text-muted); }
.slide__hint { margin: .5rem 0 0; text-align: center; font-size: .82rem; color: var(--color-highlight); }

/* group picker */
.grp__into { display: flex; align-items: center; gap: .6rem; min-height: 48px; font-weight: 600; color: var(--color-text-strong); }
.grp__roles { margin-top: .4rem; display: grid; gap: .8rem; }
.grp__role { padding: .7rem .8rem; border-radius: 12px; background: var(--color-surface-raised); }
.grp__want { display: flex; align-items: center; gap: .55rem; min-height: 40px; color: var(--color-text-strong); }
.grp__want input { width: 20px; height: 20px; accent-color: var(--color-highlight); }
.slide--small { padding: .3rem 0 0; }
.slide--small .slide__value { font-size: 1.15rem; margin-bottom: .2rem; }

/* group: "I like other [Tops] [Bottoms] being here" reads as one sentence */
.grp__roles .subhead .choices { display: inline-flex; vertical-align: middle; margin: .3rem .2rem; }
.grp__roles .subhead { line-height: 2.6; }

/* photo quick menu (right-click / press and hold) */
.photo img { -webkit-touch-callout: none; user-select: none; }
.pmenu { position: fixed; z-index: 30; min-width: 200px; max-width: 260px; padding: .3rem; border-radius: 12px;
  background: var(--color-surface-raised); border: 1px solid var(--color-border-strong); box-shadow: 0 10px 30px #000a; }
.pmenu button { display: block; width: 100%; min-height: 40px; padding: .45rem .7rem; border: 0; border-radius: 8px;
  background: none; color: var(--color-text-strong); text-align: left; font: inherit; cursor: pointer; }
.pmenu button:hover:not([disabled]), .pmenu button:focus-visible { background: var(--color-highlight-soft); outline: none; }
.pmenu button[disabled] { color: var(--color-text-muted); cursor: default; }
.pmenu__why { margin: 0 .7rem .35rem; color: var(--color-warning); font-size: .78rem; }

/* stats sliders on the row */
.row__main--slider { cursor: default; flex-wrap: wrap; row-gap: .3rem; }
.row__slideval { margin-left: auto; color: var(--color-text-strong); font-weight: 600; }
.row__slideval.row__value--empty { color: var(--color-text-muted); font-weight: 400; font-size: .85rem; }
.row__range { flex-basis: 100%; width: 100%; margin: .2rem 0; accent-color: var(--color-highlight); }
.row__main--slider .row__pills { flex-basis: 100%; }
.row--off .row__slideval { opacity: .45; }

/* explicit main photo: blurred for viewers who haven't chosen to see explicit photos */
.pcard .card__photo--x { filter: blur(6px) brightness(.75); }

/* compact "what others see" card: tap to expand */
.pcard--compact { padding: 0; overflow: hidden; cursor: pointer; }
.pcard--compact:focus-visible { outline: 2px solid var(--color-highlight); outline-offset: 2px; }
.pcard__hero { position: relative; aspect-ratio: 4 / 3; background: var(--color-surface-raised); overflow: hidden; }
.pcard__heroimg, .pcard__heroimg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__heroimg.pphoto--x img { filter: blur(16px) brightness(.7); transform: scale(1.1); }
.pcard__initial { display: grid; place-items: center; font: 400 4rem var(--font-display); color: var(--color-text-muted); }
.pcard__overlay { position: absolute; inset: auto 0 0 0; padding: 1.6rem .9rem .6rem; display: flex; align-items: baseline; gap: .6rem;
  background: linear-gradient(transparent, #000c); }
.pcard__overlay .pcard__meta { color: #ddd; }
.pcard__thumbs { display: grid; grid-template-columns: repeat(4, 1fr); gap: .25rem; padding: .25rem; }
.pcard__thumb { aspect-ratio: 1; border-radius: 8px; overflow: hidden; background: var(--color-surface-raised); }
.pcard__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pcard__thumb.pphoto--x img { filter: blur(10px) brightness(.7); transform: scale(1.1); }
.pcard__stats { margin: .5rem .9rem 0; color: var(--color-text-strong); font-weight: 600; font-size: .92rem; line-height: 1.45; }
.pcard__more { margin: .3rem .9rem .7rem; color: var(--color-highlight); font-size: .8rem; }
.pcard__details { padding: 0 .9rem .9rem; border-top: 1px solid var(--color-border); cursor: default; }
.pcard__stats mark { background: var(--color-accent-soft); color: var(--color-accent); border-radius: 6px; padding: 0 .3rem; }
.pcard__wants { margin: .2rem .9rem 0; font-size: .75rem; color: var(--color-text-muted); }


* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--color-bg); color: var(--color-text); font: 16px/1.4 var(--font-body); }
button { font: inherit; }
.muted { color: var(--color-text-muted); }
.small { font-size: .78rem; }
.empty { padding: 2rem 1rem; text-align: center; list-style: none; }
[hidden] { display: none !important; }

.shell { height: 100dvh; display: flex; flex-direction: column-reverse; }
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; overflow: auto; padding: env(safe-area-inset-top) 0 1.5rem; }
.view iframe { display: block; width: 100%; height: 100%; border: 0; }
.view[data-view="map"] { padding: 0; overflow: hidden; }

/* tabs */
.tabs { display: flex; justify-content: space-around; background: #131316f2; border-top: 1px solid var(--color-border);
  padding: .3rem .2rem calc(env(safe-area-inset-bottom) + .3rem); backdrop-filter: blur(8px); }
.tabs__brand { display: none; }
.tab { position: relative; flex: 1; display: flex; flex-direction: column; align-items: center; gap: .1rem; min-height: 50px;
  border: 0; background: none; color: var(--color-text-muted); font-size: .68rem; cursor: pointer; }
.tab svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.tab[aria-current="true"] { color: var(--color-highlight); }
.tab__badge { position: absolute; top: 2px; left: calc(50% + 6px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px;
  background: var(--color-accent); color: var(--color-on-accent); font-size: .68rem; line-height: 18px; text-align: center; }

@media (min-width: 900px) {
  .shell { flex-direction: row; }
  .tabs { flex-direction: column; justify-content: flex-start; gap: .3rem; width: 210px; padding: 1rem .6rem;
    border-top: 0; border-right: 1px solid var(--color-border); }
  .tabs__brand { display: block; padding: 0 .6rem 1rem; }
  .tabs__brand img { height: 32px; width: auto; }
  .tab { flex: none; flex-direction: row; gap: .7rem; min-height: 46px; padding: 0 .8rem; border-radius: 12px; font-size: .95rem; }
  .tab[aria-current="true"] { background: var(--color-highlight-soft); }
  .tab__badge { position: static; margin-left: auto; }
  .view:not([data-view="map"]):not([data-view="me"]) > * { max-width: 760px; margin-left: auto; margin-right: auto; }
}

/* view header */
.vhead { display: flex; align-items: center; gap: .6rem; padding: .9rem 1rem .5rem; }
.vhead h1 { margin: 0; font: 400 1.35rem var(--font-display); color: var(--color-text-strong); }
.vhead > :last-child:not(h1):not(.demo) { margin-left: auto; }
.demo { padding: .1rem .5rem; border-radius: 999px; background: var(--color-accent-soft); color: var(--color-accent); font-size: .7rem; }

/* buttons, pills, inputs */
.btn { min-height: 40px; padding: .4rem .9rem; border-radius: 12px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text-strong); cursor: pointer; }
.btn--sm { min-height: 34px; padding: .25rem .75rem; font-size: .85rem; }
.btn--primary { background: var(--color-highlight); border-color: var(--color-highlight); color: var(--color-on-highlight); font-weight: 600; }
.btn--ghost { background: none; }
.link { border: 0; background: none; color: var(--color-highlight); cursor: pointer; font-size: 1rem; }
.filters, .choices { display: flex; flex-wrap: wrap; gap: .4rem; padding: 0 1rem .6rem; }
.choices { padding: 0; }
.pill { min-height: 34px; padding: .25rem .8rem; border-radius: 999px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text); cursor: pointer; font-size: .85rem; }
.pill[aria-pressed="true"] { border-color: var(--color-highlight); background: var(--color-highlight-soft); color: var(--color-text-strong); }
.pill b { font-weight: 600; color: var(--color-text-muted); }
.input { width: 100%; min-height: 42px; padding: .5rem .7rem; border-radius: 12px; border: 1px solid var(--color-border-strong);
  background: var(--color-surface-raised); color: var(--color-text-strong); font: inherit; }
.label { display: block; margin: .9rem 0 .35rem; font-weight: 600; font-size: .85rem; color: var(--color-text-strong); }

/* avatars */
.av { position: relative; flex: none; display: inline-grid; place-items: center; border-radius: 50%; color: #fff; font-weight: 600;
  background: linear-gradient(140deg, hsl(var(--h) 60% 45%), hsl(calc(var(--h) + 40) 55% 28%)); }
.av__on { position: absolute; right: 2%; bottom: 2%; width: 26%; height: 26%; border-radius: 50%; background: var(--color-accent);
  border: 2px solid var(--color-bg); }
.online { color: var(--color-accent); }

/* ads */
.ads { list-style: none; margin: 0; padding: 0 1rem; display: grid; gap: .7rem; }
#my-ad .ads { margin-bottom: .7rem; }
.ad { padding: .85rem; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.ad--mine { border-color: var(--color-highlight); }
.ad__top { display: flex; align-items: center; gap: .6rem; }
.ad__who { font-size: .9rem; }
.ad__title { margin: .55rem 0 .35rem; font-size: 1.02rem; color: var(--color-text-strong); }
.ad__text { margin: .4rem 0 0; color: var(--color-text); font-size: .92rem; }
.ad__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .45rem; margin-top: .65rem; }
.tags { display: flex; flex-wrap: wrap; gap: .3rem; }
.tags span { padding: .05rem .5rem; border-radius: 999px; background: var(--color-highlight-soft); color: var(--color-text-strong); font-size: .75rem; }

/* messages */
/* The thread fills exactly the space left after the safe-area padding: head and compose stay put, only the bubbles scroll. */
.view[data-view="messages"] { display: flex; flex-direction: column; }
.view[data-view="messages"][hidden] { display: none; }
.msgs { flex: 1; min-height: 0; height: auto; }
.msgs__thread { display: none; }
.msgs--thread .msgs__list { display: none; }
.msgs--thread .msgs__thread { display: flex; }
.view[data-view="messages"] { padding-bottom: 0; overflow: hidden; }
.msgs__list { height: 100%; overflow: auto; }
.convos { list-style: none; margin: 0; padding: 0 .5rem; }
.convo { width: 100%; display: flex; align-items: center; gap: .7rem; padding: .6rem .5rem; border: 0; border-radius: 12px;
  background: none; color: inherit; text-align: left; cursor: pointer; }
.convo:hover, .convo--open { background: var(--color-surface); }
.convo__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.convo__last { color: var(--color-text-muted); font-size: .85rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.convo__side { display: flex; flex-direction: column; align-items: flex-end; gap: .2rem; }
.dot { min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--color-accent); color: var(--color-on-accent);
  font-size: .72rem; line-height: 20px; text-align: center; }
.av--group { font-size: .9rem; }
.msgs__thread { flex-direction: column; height: 100%; min-height: 0; }
.msgs__thread > * { flex: none; }
.msgs__thread > .bubbles { flex: 1; min-height: 0; }
#t-meet { max-height: 38%; overflow: auto; }
.thread__head { display: flex; align-items: center; gap: .3rem; padding: .5rem .6rem; border-bottom: 1px solid var(--color-border); }
.back { font-size: 1.8rem; line-height: 1; padding: 0 .4rem; }
.thread__who { display: flex; align-items: center; gap: .6rem; border: 0; background: none; color: inherit; text-align: left; cursor: pointer; }
.thread__who > span:last-child { display: flex; flex-direction: column; }
.bubbles { flex: 1; overflow: auto; list-style: none; margin: 0; padding: .8rem; display: flex; flex-direction: column; gap: .35rem; }
.bubble { align-self: flex-start; max-width: 78%; padding: .45rem .75rem; border-radius: 16px 16px 16px 4px; background: var(--color-surface-raised); }
.bubble--me { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--color-highlight); color: var(--color-on-highlight); }
.bubble__from { display: block; font-size: .72rem; font-weight: 600; color: var(--color-accent); }
.tick { display: block; margin-top: .15rem; font-size: .68rem; text-align: right; opacity: .8; }
.tick--read { opacity: 1; font-weight: 600; }
.compose { display: flex; gap: .5rem; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--color-border); }
@media (min-width: 900px) {
  .view[data-view="messages"] .msgs { max-width: none; width: 100%; display: grid; grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr); }
  .msgs__list { display: block !important; min-height: 0; border-right: 1px solid var(--color-border); }
  .msgs__thread { display: flex !important; }
  .back { display: none; }
}

/* circles */
.track { display: flex; align-items: center; gap: .45rem; font-size: .85rem; color: var(--color-text-muted); }
.sortbar { display: flex; align-items: center; gap: .6rem; padding: 0 1rem .6rem; }
.sortbar .muted { flex: 1; font-size: .82rem; }
.sortbar select { min-height: 34px; border-radius: 10px; border: 1px solid var(--color-border-strong); background: var(--color-surface-raised);
  color: var(--color-text-strong); padding: 0 .5rem; }
.people { list-style: none; margin: 0; padding: 0 1rem; display: grid; gap: .5rem; }
.ptile { width: 100%; display: flex; gap: .75rem; align-items: center; padding: .6rem; border-radius: 14px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: inherit; text-align: left; cursor: pointer; }
.ptile__main { flex: 1; min-width: 0; }
.ptile__stats { display: block; font-size: .82rem; color: var(--color-text); }
.ptile__circles { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: .25rem; }
.ptile__circles span { padding: 0 .45rem; border-radius: 999px; background: var(--color-surface-raised); font-size: .7rem; color: var(--color-text-muted); }
.ptile__circles .mutual, .mutual-note { background: var(--color-accent-soft); color: var(--color-accent); }
.mutual-note { display: inline-block; margin: .6rem 0 0; padding: .2rem .7rem; border-radius: 999px; font-size: .85rem; }
.ptile__circles .log { color: var(--color-warning); }

/* switches */
input[role="switch"] { appearance: none; flex: none; width: 40px; height: 24px; border-radius: 999px; position: relative; cursor: pointer;
  background: var(--color-border-strong); margin: 0; }
input[role="switch"]::after { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: var(--color-text-disabled); transition: transform .15s; }
input[role="switch"]:checked { background: var(--color-highlight-soft); box-shadow: inset 0 0 0 1px var(--color-highlight); }
input[role="switch"]:checked::after { transform: translateX(16px); background: var(--color-highlight); }

/* sheets (bottom sheet on phones) */
.sheet { width: 100%; max-width: 560px; margin: auto auto 0; padding: 0; border: 0; border-radius: 20px 20px 0 0;
  background: var(--color-surface); color: var(--color-text); max-height: 90dvh; }
@media (min-width: 900px) { .sheet { margin: auto; border-radius: 20px; } }
.sheet::backdrop { background: #000a; }
.sheet__form { display: flex; flex-direction: column; max-height: 90dvh; }
.sheet__head { display: flex; align-items: center; padding: 1rem 1rem .3rem; }
.sheet__head h2 { margin: 0; font: 600 1.1rem var(--font-body); color: var(--color-text-strong); }
.sheet__head .link { margin-left: auto; }
.sheet__body { padding: 0 1rem 1rem; overflow: auto; }
.sheet__foot { display: flex; padding: .7rem 1rem calc(env(safe-area-inset-bottom) + .9rem); border-top: 1px solid var(--color-border); }
.sheet__foot .btn { flex: 1; }
.pp { display: flex; gap: .9rem; align-items: center; margin-top: .4rem; }
.pp__stats { margin: 0 0 .2rem; font-weight: 600; color: var(--color-text-strong); }
.pp__actions { display: flex; gap: .5rem; }
.notes { margin-top: 1.1rem; padding: .8rem; border-radius: 14px; border: 1px dashed var(--color-border-strong); }
.notes h3 { margin: 0 0 .4rem; font-size: .95rem; color: var(--color-text-strong); }
.notes__log { margin: 0 0 .5rem; color: var(--color-warning); font-size: .88rem; }
.notes__row { display: flex; gap: .5rem; margin: .4rem 0; }
.notes__row .input { flex: 1; }
.notes__list { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .3rem; font-size: .9rem; }

.toast { position: fixed; left: 50%; bottom: calc(env(safe-area-inset-bottom) + 80px); transform: translateX(-50%); z-index: 50;
  max-width: 90vw; padding: .6rem 1rem; border-radius: 12px; background: var(--color-surface-raised); color: var(--color-text-strong);
  border: 1px solid var(--color-border-strong); box-shadow: 0 8px 24px #000a; font-size: .9rem; }

/* ---------- live app additions ---------- */
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.note { margin: 0 1rem .6rem; font-size: .82rem; color: var(--color-text-muted); }

/* signed out */
.out { min-height: 100dvh; display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: calc(env(safe-area-inset-top) + 1.5rem) 1.2rem calc(env(safe-area-inset-bottom) + 1rem);
  background: radial-gradient(60% 50% at 50% 20%, #2a1b45 0%, transparent 70%), var(--color-bg); }
.out__card { width: 100%; max-width: 460px; }
.out__logo { display: block; width: min(320px, 80%); height: auto; margin: 0 auto 1.2rem; }
/* "Coming Soon · Grand Opening" (Iles, 2026-11-12) */
.out__soon { margin: -0.4rem 0 1.4rem; text-align: center; font-size: 1.05rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--color-text-strong); }
.out__soon span { display: block; margin-bottom: .2rem; font-size: .8rem; letter-spacing: .3em; color: var(--color-highlight); }
.out__lead { text-align: center; font-size: 1.05rem; color: var(--color-text); }
.out__actions { display: grid; gap: .7rem; margin-top: 1.4rem; }
.out__actions .btn { min-height: 50px; font-size: 1.05rem; }
.out h1 { font: 400 1.6rem var(--font-display); color: var(--color-text-strong); margin: .4rem 0 .8rem; }
.out h2 { font: 600 1rem var(--font-body); color: var(--color-text-strong); margin: 1.2rem 0 .4rem; }
.out__links { text-align: center; margin-top: 1rem; font-size: .9rem; color: var(--color-text-muted); }
.out__links .link { font-size: .9rem; }
.out__foot { margin-top: 2rem; font-size: .75rem; color: var(--color-text-disabled); }
.form { display: grid; gap: .8rem; margin-top: .6rem; }
.form label:not(.check) { display: grid; gap: .3rem; font-size: .85rem; color: var(--color-text-muted); }
.form .btn { min-height: 48px; }
.check { display: flex; align-items: center; gap: .6rem; font-size: .95rem; color: var(--color-text-strong); }
.check input { width: 20px; height: 20px; accent-color: var(--color-highlight); }
.err { min-height: 1em; margin: 0; color: var(--color-danger); font-size: .88rem; }
.rules { margin: 0; padding-left: 1.1rem; display: grid; gap: .45rem; }
.code { font: 600 1.4rem var(--font-body); letter-spacing: .3em; text-align: center; }

/* joining */
.join { min-height: 100dvh; }
.joinbar { position: sticky; top: 0; z-index: 5; display: flex; align-items: center; gap: .7rem;
  padding: calc(env(safe-area-inset-top) + .5rem) 1rem .5rem; background: #131316f2; border-bottom: 1px solid var(--color-border); }
.joinbar img { height: 28px; width: auto; }
.joinbar .link { margin-left: auto; }
.join__body { max-width: 720px; margin: 0 auto; padding: 1rem 1rem 6rem; }
.join__body h1 { font: 400 1.5rem var(--font-display); color: var(--color-text-strong); margin: .6rem 0 .4rem; }
.banner { margin: .6rem 0; padding: .75rem .9rem; border-radius: 12px; background: var(--color-highlight-soft); border: 1px solid var(--color-highlight); }
.banner--warn { background: #3a2a10; border-color: var(--color-warning); }
.submitbar { position: fixed; left: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: .8rem;
  padding: .7rem 1rem calc(env(safe-area-inset-bottom) + .7rem); background: #131316f2; border-top: 1px solid var(--color-border); }
.submitbar p { flex: 1; margin: 0; }
.submitbar .btn:disabled { opacity: .45; cursor: not-allowed; }

/* me (inside the app) */
.me { max-width: 760px; margin: 0 auto; padding: .4rem 1rem 2rem; }
.row > .row__main:not(button) { cursor: default; }

/* photos of others */
.pic { position: relative; flex: none; display: inline-block; overflow: hidden; background: var(--color-surface-raised); border-radius: 12px; }
.pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pic--x img { filter: blur(16px) brightness(.7); transform: scale(1.15); }
.pic--x { cursor: pointer; }
.pic i { position: absolute; inset: 0; display: grid; place-items: center; font: 600 .7rem var(--font-body); font-style: normal; color: #fff; text-align: center; }
.pic--40 { width: 40px; height: 40px; border-radius: 50%; }
.pic--34 { width: 34px; height: 34px; border-radius: 50%; }
.pic--40 i, .pic--34 i { display: none; }
.pic--group { display: inline-grid; place-items: center; color: #fff; font-weight: 600; background: linear-gradient(140deg, #3b6fd1, #22356b); }
.pic--none { background: linear-gradient(140deg, #3a2a5c, #1C1C21); }
.pic--card { width: 92px; height: 116px; }
.pic--grid { width: 100%; aspect-ratio: 3 / 4; }
.cards { list-style: none; margin: 0; padding: 0 1rem 1rem; display: grid; gap: .6rem; }
.pcard-s { width: 100%; display: flex; gap: .8rem; align-items: stretch; padding: .5rem; border-radius: 16px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: inherit; text-align: left; cursor: pointer; }
.pcard-s__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; padding: .2rem 0; }
.pcard-s__body strong { color: var(--color-text-strong); font-size: 1.02rem; }
.pcard-s__stats { font-size: .86rem; color: var(--color-text-strong); line-height: 1.45; }
.pcard-s__stats mark, .pp__stats mark { background: var(--color-accent-soft); color: var(--color-accent); border-radius: 6px; padding: 0 .3rem; }
.pcard-s__tags { display: flex; flex-wrap: wrap; gap: .25rem; margin-top: auto; }
.pcard-s__tags span { padding: 0 .45rem; border-radius: 999px; background: var(--color-surface-raised); font-size: .7rem; color: var(--color-text-muted); }
.pcard-s__tags .mutual { background: var(--color-accent-soft); color: var(--color-accent); }
.pcard-s__tags .log { color: var(--color-warning); }
.pgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .35rem; margin: .4rem 0 .8rem; }
.pfields { margin: 1rem 0 0; display: grid; gap: .3rem; }
.pfields div { display: flex; justify-content: space-between; gap: 1rem; border-bottom: 1px solid var(--color-border); padding-bottom: .25rem; }
.pfields dt { color: var(--color-text-muted); }
.pfields dd { margin: 0; text-align: right; color: var(--color-text-strong); }

/* map tab */
.view[data-view="map"] { display: flex; flex-direction: column; }
.view[data-view="map"][hidden] { display: none; }
.mapnote { padding: .45rem 1rem; font-size: .8rem; background: var(--color-surface); border-bottom: 1px solid var(--color-border); color: var(--color-text-muted); }
.mapnote strong { color: var(--color-warning); }
.view[data-view="map"] iframe { flex: 1; height: auto; }

/* admin */
.admin { max-width: 860px; margin: 0 auto; padding: 0 0 2rem; }
.adm { padding: 0 1rem; }
.req { padding: .9rem; margin-bottom: .8rem; border-radius: 16px; background: var(--color-surface); border: 1px solid var(--color-border); }
.req h3 { margin: .5rem 0 .1rem; color: var(--color-text-strong); }
.req__photos { display: flex; gap: .4rem; overflow-x: auto; }
.req__photos img { height: 150px; border-radius: 10px; display: block; }
.kv { display: inline-block; margin: 0 .3rem .3rem 0; padding: .05rem .5rem; border-radius: 999px; background: var(--color-surface-raised); font-size: .78rem; }
.mlist, .alog { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.mlist li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 12px; background: var(--color-surface); }
.mlist li > span:first-child { flex: 1; min-width: 12rem; }
.tagline span { padding: 0 .45rem; border-radius: 999px; background: var(--color-surface-raised); font-size: .72rem; margin-right: .25rem; }
.tagline .role { background: var(--color-highlight-soft); color: var(--color-highlight); }
.mlist__act { display: flex; gap: .3rem; }
.alog li { font-size: .85rem; }
/* my contacts (superadmin) */
.ctiers { flex-wrap: wrap; margin-bottom: .5rem; }
.csearch { margin-bottom: .5rem; }
.cgrid { max-height: 65vh; overflow: auto; border: 1px solid var(--color-border, #333); border-radius: 10px; margin-bottom: .6rem; }
.cgrid table { border-collapse: collapse; width: 100%; min-width: 960px; font-size: .82rem; }
.cgrid th { position: sticky; top: 0; z-index: 1; background: var(--color-surface, #1b1b20); text-align: left; padding: .4rem .45rem;
  font-weight: 600; white-space: nowrap; cursor: pointer; user-select: none; border-bottom: 1px solid var(--color-border, #333); }
.cgrid td { padding: 0; border-bottom: 1px solid rgb(255 255 255 / .05); vertical-align: middle; }
.cgrid tbody tr:nth-child(even) { background: rgb(255 255 255 / .02); }
.cgrid tbody tr:hover { background: rgb(255 255 255 / .05); }
.cgrid__ro { padding: .3rem .45rem !important; white-space: nowrap; color: var(--color-text-muted); }
.cgrid__in { width: 100%; min-width: 6rem; background: transparent; border: 1px solid transparent; color: var(--color-text); font: inherit; padding: .3rem .45rem; }
.cgrid__in:focus { outline: none; border-color: var(--color-highlight); background: rgb(0 0 0 / .3); }
.cgrid__tier { min-width: 3.2rem; font-weight: 700; }
.cgrid td:first-child { border-left: 3px solid transparent; }
.cgrid tr.tier-0 td:first-child { border-left-color: #ffd166; } .cgrid tr.tier-1 td:first-child, .cgrid tr.tier-2 td:first-child { border-left-color: #06d6a0; }
.cgrid tr.tier-3 td:first-child { border-left-color: #4cc9f0; } .cgrid tr.tier-4 td:first-child, .cgrid tr.tier-5 td:first-child, .cgrid tr.tier-6 td:first-child { border-left-color: #8d99ae; }
.cgrid tr.tier-7 td:first-child { border-left-color: #6c6f7a; } .cgrid tr.tier-8 td:first-child { border-left-color: #f4845f; } .cgrid tr.tier-9 td:first-child { border-left-color: #ff4d6d; }
.cst { font-size: .72rem; padding: .05rem .4rem; border-radius: 6px; background: rgb(255 255 255 / .06); }
.cst--approved { color: #06d6a0; } .cst--imported { color: #8d99ae; } .cst--suspended { color: #ff4d6d; } .cst--contact { color: #4cc9f0; }
.cadd { display: flex; flex-wrap: wrap; gap: .4rem; } .cadd .input { flex: 1 1 10rem; }

/* public profile page (/p/<uuid>) */
.pub__body { max-width: 520px; margin: 0 auto; padding: 1rem 1rem 3rem; display: grid; gap: 1rem; }
.pcard--public { cursor: default; }
.pub__about { margin: .4rem .9rem .9rem; }
.pub__actions { display: grid; gap: .6rem; }
.pub__actions .btn { display: grid; place-items: center; min-height: 50px; text-decoration: none; font-size: 1.02rem; }
.pub__note { text-align: center; }
.publink { display: flex; gap: .5rem; align-items: center; margin-top: .5rem; }
.publink input { flex: 1; min-width: 0; font-size: .82rem; }

/* guest pass page (/g/<uuid>) */
.gpass .joinbar { gap: .6rem; }
.gpass__body { max-width: 560px; margin: 0 auto; min-height: calc(100dvh - 60px); display: flex; flex-direction: column; padding-bottom: env(safe-area-inset-bottom); }
.gpass__body > h1 { font: 400 1.4rem var(--font-display); color: var(--color-text-strong); margin: 1.5rem 1rem .5rem; }
.gpass__body > p { margin: 0 1rem; }
.gpass__items { flex: 1; }
.gloc { display: flex; align-items: center; gap: .6rem; margin: .6rem; padding: .6rem .8rem; border-radius: 12px; background: var(--color-surface); border: 1px solid var(--color-border); font-size: .85rem; }
.gloc p { flex: 1; margin: 0; }
.gimg { display: block; max-width: 100%; border-radius: 10px; margin: .2rem 0; }
.gtext { white-space: pre-wrap; }
.tick--timer { color: var(--color-warning); opacity: 1; font-weight: 600; }

/* Guests tab (host side) */
.guests { max-width: 760px; margin: 0 auto; padding-bottom: 2rem; }
.gform { display: grid; gap: .5rem; margin: 0 1rem .8rem; padding: .8rem; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.gcard { width: 100%; display: flex; flex-direction: column; gap: .2rem; padding: .7rem .8rem; border-radius: 14px; border: 1px solid var(--color-border);
  background: var(--color-surface); color: inherit; text-align: left; cursor: pointer; }
.gcard--closed { opacity: .5; }
.gcard__top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.gcard__top strong { color: var(--color-text-strong); }
.gcard__where { font-size: .88rem; }
.phase { margin-left: auto; padding: 0 .5rem; border-radius: 999px; background: var(--color-highlight-soft); color: var(--color-text-strong); font-size: .72rem; }
.tagx { padding: 0 .45rem; border-radius: 999px; background: var(--color-surface-raised); font-size: .7rem; color: var(--color-text-muted); }
.here, .closer { color: var(--color-accent); }
.gdetail .vhead h1 { font-size: 1.15rem; }
.gbox { margin: 0 1rem .7rem; padding: .7rem .8rem; border-radius: 14px; background: var(--color-surface); border: 1px solid var(--color-border); }
.gbox p { margin: .35rem 0 0; }
.gmap { height: 240px; margin-top: .5rem; border-radius: 12px; overflow: hidden; }
.gpin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid #fff; }
.gpin--guest { background: var(--color-accent); box-shadow: 0 0 12px var(--color-accent); }
.gpin--me { background: var(--color-highlight); box-shadow: 0 0 12px var(--color-highlight); }
.gpin--trail { width: 8px; height: 8px; border: 0; background: var(--color-accent); opacity: .45; }
.phases { display: flex; flex-wrap: wrap; gap: .4rem; }
.snips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .6rem; }
.snip { display: inline-flex; align-items: center; gap: .1rem; }
.snip .link { font-size: 1rem; padding: 0 .3rem; }
.gitems { max-height: 46dvh; overflow: auto; margin: 0 .2rem; }
.gsend { display: grid; gap: .4rem; margin: .4rem 1rem; }
.gsend__row { display: flex; gap: .4rem; align-items: center; }
.gsend__row select { min-height: 34px; border-radius: 10px; border: 1px solid var(--color-border-strong); background: var(--color-surface-raised); color: var(--color-text-strong); }
.gsend__row .btn--primary { margin-left: auto; }
.gfoot { margin: .8rem 1rem; }
.snipedit { display: grid; gap: .35rem; margin-bottom: .8rem; }

/* photo messages, sims */
.compose__photo { display: grid; place-items: center; min-width: 44px; padding: 0 .6rem; cursor: pointer; }
.chatimg { display: block; max-width: 220px; max-height: 260px; border-radius: 10px; margin: .15rem 0; }
.chatimg--gone { opacity: .35; filter: grayscale(1); }
.takeback { display: block; margin-top: .1rem; color: inherit; opacity: .85; text-decoration: underline; }
.simtag { display: inline-block; padding: 0 .4rem; border-radius: 6px; background: #3a2a10; color: var(--color-warning); font: 700 .65rem var(--font-body); vertical-align: middle; }

.chatgrid { display: grid; grid-template-columns: repeat(3, 72px); gap: 3px; margin: .15rem 0; }
.chatgrid--one { grid-template-columns: 200px; }
.chatgrid .pic { width: 100%; aspect-ratio: 1; border-radius: 8px; }
.chatgrid--one .pic { aspect-ratio: 3 / 4; }
.chatgrid--gone { opacity: .3; filter: grayscale(1); }
.pickgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: .35rem; }
.pick { padding: 0; aspect-ratio: 1; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: var(--color-surface-raised); cursor: pointer; }
.pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pick[aria-pressed="true"] { border-color: var(--color-highlight); box-shadow: 0 0 0 2px var(--color-highlight-soft); }
.albums { list-style: none; padding: 0; margin: .4rem 0; }
.pcard-s__body .simtag, .ad__who .simtag { align-self: flex-start; width: auto; }
.update { position: fixed; left: 50%; top: calc(env(safe-area-inset-top) + 10px); transform: translateX(-50%); z-index: 60; padding: .55rem 1rem;
  border-radius: 999px; border: 0; background: var(--color-highlight); color: var(--color-on-highlight); font-weight: 600; box-shadow: 0 8px 24px #000a; cursor: pointer; }

/* Invites */
.bigstep { display: grid; width: calc(100% - 2rem); margin: .2rem 1rem .8rem; min-height: 64px; padding: .7rem 1rem; border: 0; border-radius: 18px;
  background: var(--color-highlight); color: var(--color-on-highlight); font: 700 1.25rem var(--font-body); cursor: pointer; box-shadow: 0 8px 24px #a35cff40; }
.bigstep small { font: 500 .8rem var(--font-body); opacity: .85; }
.bigstep--warn { background: var(--color-warning); color: #2a1b00; box-shadow: none; }
.gstate { margin: 0 1rem .6rem; }
.gstate__big { display: block; font-size: 1.1rem; color: var(--color-text-strong); }
.warn { color: var(--color-warning); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin: 0 1rem .6rem; }
.chips .pill { min-height: 42px; font-size: .95rem; }
.pill--soft { background: transparent; }
.gtype { margin: .4rem 1rem; }
.gtype summary { cursor: pointer; color: var(--color-highlight); font-size: .9rem; margin-bottom: .4rem; }
.gbox--hint { display: flex; align-items: center; gap: .6rem; border-color: var(--color-highlight); }
.gbox--hint p { flex: 1; margin: 0; }
.gbox__row { display: flex; align-items: center; gap: .6rem; justify-content: space-between; }
.gpast { margin: 1rem 1rem .4rem; }
.rated { font-size: 1.4rem; color: var(--color-warning); margin: 0; }
.starrow { display: flex; gap: .4rem; justify-content: center; margin: .4rem 0 .8rem; }
.star { width: 52px; height: 52px; border: 0; border-radius: 12px; background: var(--color-surface-raised); color: var(--color-text-disabled); font-size: 1.8rem; cursor: pointer; }
.star--on { color: var(--color-warning); }
/* guest page */
.gstage { display: flex; align-items: center; gap: .6rem; margin: .8rem .8rem 0; font-size: 1.15rem; color: var(--color-text-strong); }
.gstage__n { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--color-highlight); color: var(--color-on-highlight); font-weight: 700; font-size: .95rem; }
.gwhere { display: flex; gap: .5rem; margin: .6rem .8rem 0; }
.gwhere:empty { display: none; }
.gwhere .btn { flex: 1; display: grid; place-items: center; text-decoration: none; min-height: 48px; }
.gquick { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; padding: .6rem; }
.gquick:empty { display: none; }
.qbtn { min-height: 56px; border-radius: 14px; border: 1px solid var(--color-border-strong); background: var(--color-surface-raised); color: var(--color-text-strong);
  font: 600 1.05rem var(--font-body); cursor: pointer; }
.qbtn--main { grid-column: 1 / -1; min-height: 64px; background: var(--color-accent); border-color: var(--color-accent); color: var(--color-on-accent); font-size: 1.2rem; }
.qbtn--quiet { background: transparent; color: var(--color-text-muted); font-weight: 500; }
.qbtn:disabled { opacity: .5; }

/* =====================================================================================================
   High-tech skin (2026-10-26): glass surfaces, neon edges, a faint grid, mono numerals. Overrides above.
   ===================================================================================================== */
:root {
  --neon: #a35cff; --neon-2: #22e07a; --glass: rgba(26, 24, 38, .58); --glass-2: rgba(38, 34, 56, .62);
  --edge: rgba(163, 92, 255, .22); --edge-strong: rgba(163, 92, 255, .55);
  --glow: 0 0 0 1px rgba(163, 92, 255, .35), 0 0 22px rgba(163, 92, 255, .28);
  --glow-green: 0 0 0 1px rgba(34, 224, 122, .4), 0 0 18px rgba(34, 224, 122, .3);
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, monospace;
}
body {
  background:
    radial-gradient(900px 500px at 85% -10%, rgba(163, 92, 255, .16), transparent 60%),
    radial-gradient(700px 420px at -10% 110%, rgba(34, 224, 122, .08), transparent 60%),
    linear-gradient(rgba(163, 92, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    linear-gradient(90deg, rgba(163, 92, 255, .045) 1px, transparent 1px) 0 0 / 28px 28px,
    #0c0b12;
  background-attachment: fixed;
}
.views { background: transparent; }

/* glass surfaces */
.ad, .pcard-s, .gcard, .gbox, .req, .rows, .card__photo, .sheet, .picker, .mlist li, .about textarea, .privacy, .ptile, .insights {
  background: var(--glass) !important; border: 1px solid var(--edge) !important;
  backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%);
}
.ad, .pcard-s, .gcard { transition: border-color .2s, box-shadow .2s, transform .2s; }
.ad:hover, .pcard-s:hover, .gcard:hover { border-color: var(--edge-strong) !important; box-shadow: var(--glow); }
.ad--mine { box-shadow: var(--glow); }

/* headings */
.vhead h1, .join__body h1, .out h1 { letter-spacing: .02em; text-shadow: 0 0 18px rgba(163, 92, 255, .55); }
.section__head h2, .label, .subhead { text-transform: uppercase; letter-spacing: .12em; font-size: .72rem !important; color: #b9a6e8 !important; }
time, .tick, .convo__side .small, .ad__who .muted, .room__count, .gstate .small { font-family: var(--mono); font-variant-numeric: tabular-nums; }

/* tab bar */
.tabs { background: rgba(14, 12, 22, .72) !important; border-color: var(--edge) !important; backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); }
.tab { transition: color .2s; }
.tab[aria-current="true"] { color: #e6d6ff; }
.tab[aria-current="true"] svg { filter: drop-shadow(0 0 6px var(--neon)); stroke: #c79bff; }
@media (max-width: 899px) { .tab[aria-current="true"]::after { content: ""; position: absolute; top: 0; left: 30%; right: 30%; height: 2px; border-radius: 2px; background: var(--neon); box-shadow: 0 0 10px var(--neon); } }
@media (min-width: 900px) { .tab[aria-current="true"] { background: linear-gradient(90deg, rgba(163, 92, 255, .22), transparent) !important; box-shadow: inset 2px 0 0 var(--neon); } }
.tab__badge { box-shadow: var(--glow-green); }

/* buttons, pills, inputs */
.btn--primary { background: linear-gradient(135deg, #b47aff, #7c3aed) !important; border: 0 !important; color: #fff !important;
  box-shadow: 0 6px 20px rgba(124, 58, 237, .45), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn--primary:hover { box-shadow: 0 6px 26px rgba(163, 92, 255, .65), inset 0 1px 0 rgba(255, 255, 255, .3); }
.btn:not(.btn--primary) { background: var(--glass-2); border-color: var(--edge); }
.pill, .choice { background: var(--glass-2); border-color: var(--edge); transition: box-shadow .2s, border-color .2s; }
.pill[aria-pressed="true"], .choice[aria-pressed="true"], .pill[aria-selected="true"] { border-color: var(--neon) !important; box-shadow: var(--glow); color: #f1e6ff !important; }
.input, .field-name input, .about textarea, select { background: rgba(10, 9, 16, .7) !important; border-color: var(--edge) !important; }
.input:focus, .about textarea:focus { outline: none; border-color: var(--neon) !important; box-shadow: var(--glow); }
input[role="switch"]:checked { box-shadow: var(--glow); }
.bigstep { background: linear-gradient(135deg, #b47aff, #6d28d9); box-shadow: 0 10px 34px rgba(124, 58, 237, .55), inset 0 1px 0 rgba(255, 255, 255, .25); }
.qbtn--main { box-shadow: var(--glow-green); }

/* chat bubbles */
.bubble { background: var(--glass-2); border: 1px solid var(--edge); backdrop-filter: blur(10px); }
.bubble--me { background: linear-gradient(135deg, #a35cff, #6d28d9) !important; border-color: transparent; color: #fff !important; box-shadow: 0 4px 18px rgba(124, 58, 237, .4); }
.online, .here { color: var(--neon-2); text-shadow: 0 0 8px rgba(34, 224, 122, .6); }
.simtag { box-shadow: 0 0 10px rgba(245, 158, 11, .25); }

/* segmented Live chat / Ads */
.seg2 { display: inline-flex; padding: 3px; border-radius: 999px; background: rgba(10, 9, 16, .7); border: 1px solid var(--edge); margin-left: .4rem; }
.seg2 button { border: 0; background: none; color: var(--color-text-muted); padding: .3rem .8rem; border-radius: 999px; font: 600 .82rem var(--font-body); cursor: pointer; }
.seg2 button[aria-selected="true"] { background: linear-gradient(135deg, #a35cff, #6d28d9); color: #fff; box-shadow: 0 0 14px rgba(163, 92, 255, .5); }

/* the live room */
.view--room { display: flex; flex-direction: column; padding-bottom: 0 !important; overflow: hidden !important; }
.view--room > .vhead { flex: none; }
#room-wrap { flex: 1; min-height: 0; position: relative; }
#room-wrap[hidden], #ads-wrap[hidden] { display: none; }
.room { height: 100%; display: grid; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .room { grid-template-columns: minmax(0, 1fr) 260px; } }
.room__main { min-height: 0; display: flex; flex-direction: column; }
.room__people { flex: none; display: flex; gap: .45rem; align-items: center; overflow-x: auto; padding: .2rem 1rem .6rem; scrollbar-width: none; }
.room__count { flex: none; display: inline-flex; align-items: center; gap: .4rem; font-size: .72rem; color: #b9a6e8; letter-spacing: .06em; text-transform: uppercase; }
.live { width: 8px; height: 8px; border-radius: 50%; background: var(--neon-2); box-shadow: 0 0 10px var(--neon-2); animation: pulse 1.8s ease-in-out infinite; display: inline-block; }
@keyframes pulse { 50% { opacity: .35; } }
.room__chip { flex: none; display: inline-flex; align-items: center; gap: .35rem; padding: .2rem .6rem .2rem .2rem; border-radius: 999px;
  border: 1px solid var(--edge); background: var(--glass-2); color: var(--color-text-strong); font-size: .8rem; cursor: pointer; }
.room__chip:hover { border-color: var(--neon); box-shadow: var(--glow); }
@media (min-width: 1100px) { .room__chip { display: none; } }
.room__stream { flex: 1; min-height: 0; overflow-y: auto; list-style: none; margin: 0; padding: .4rem 1rem; display: flex; flex-direction: column; gap: .15rem;
  mask-image: linear-gradient(transparent, #000 18px); }
.room__empty { margin: auto; color: var(--color-text-muted); font-size: .9rem; }
.rmsg { display: flex; gap: .6rem; padding: .35rem .4rem; border-radius: 12px; animation: rin .25s ease-out; }
.rmsg:hover { background: rgba(163, 92, 255, .06); }
.rmsg--me .rmsg__name { color: #d8b8ff; }
@keyframes rin { from { opacity: 0; transform: translateY(4px); } }
.rmsg__av, .rmsg__name { border: 0; background: none; padding: 0; cursor: pointer; color: inherit; font: inherit; }
.rmsg__body { flex: 1; min-width: 0; }
.rmsg__head { display: flex; align-items: baseline; gap: .45rem; }
.rmsg__name { font-weight: 700; color: #f1e6ff; font-size: .9rem; }
.rmsg__head time { font-size: .68rem; color: var(--color-text-muted); }
.rmsg__del { margin-left: auto; border: 0; background: none; color: var(--color-text-disabled); cursor: pointer; font-size: 1rem; opacity: 0; }
.rmsg:hover .rmsg__del { opacity: 1; }
.rmsg__text { margin: .05rem 0 0; color: var(--color-text); overflow-wrap: anywhere; }
.rmsg__text--gone { font-style: italic; color: var(--color-text-disabled); }
/* deleted messages: only admins still receive them */
.rmsg__text--deleted, .bubble--deleted .bubble__text { color: #ff6b6b; text-decoration: line-through; text-decoration-color: #ff6b6b; }
.bubble--deleted { border-color: rgb(255 107 107 / .5) !important; }
.deltag { display: inline-block; margin-top: .15rem; font-size: .68rem; letter-spacing: .06em; text-transform: uppercase; color: #ff6b6b; }
.bubble .deltag { display: block; }
.bubble { position: relative; }
.bubble__del { position: absolute; top: -.45rem; right: -.45rem; width: 1.3rem; height: 1.3rem; border-radius: 50%; border: 1px solid var(--color-border, #444);
  background: var(--color-surface, #1b1b20); color: var(--color-text-disabled); font-size: .8rem; line-height: 1; cursor: pointer; opacity: 0; transition: opacity .15s; }
.bubble:hover .bubble__del, .bubble:focus-within .bubble__del { opacity: 1; }
@media (hover: none) { .bubble__del { opacity: .6; } }
.rav { position: relative; flex: none; display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; overflow: hidden;
  background: linear-gradient(140deg, #3a2a5c, #1c1c21); border: 1px solid var(--edge-strong); color: #e6d6ff; font-weight: 700; }
.rav img { width: 100%; height: 100%; object-fit: cover; }
.rav--x img { filter: blur(6px) brightness(.7); transform: scale(1.2); }
.rav--sm { width: 24px; height: 24px; font-size: .7rem; }
.room__quick { flex: none; display: flex; gap: .4rem; overflow-x: auto; padding: .4rem 1rem; scrollbar-width: none; }
.pill--neon { flex: none; font-size: .8rem; min-height: 32px; border-color: rgba(34, 224, 122, .3); }
.pill--neon:hover { box-shadow: var(--glow-green); border-color: var(--neon-2); }
.room__compose { flex: none; display: flex; gap: .5rem; padding: .5rem 1rem calc(.6rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--edge);
  background: rgba(12, 11, 18, .7); backdrop-filter: blur(14px); }
.room__compose .input { flex: 1; }
.room__side { display: none; }
@media (min-width: 1100px) {
  .room__side { display: block; overflow-y: auto; border-left: 1px solid var(--edge); padding: .4rem .8rem; background: rgba(12, 11, 18, .4); }
  .room__people { display: none; }
}
.room__h { display: flex; align-items: center; gap: .45rem; margin: .4rem 0 .6rem; font: 600 .72rem var(--font-body); letter-spacing: .12em; text-transform: uppercase; color: #b9a6e8; }
.room__h span { margin-left: auto; font-family: var(--mono); color: var(--neon-2); }
.room__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .2rem; }
.room__list button { width: 100%; display: flex; align-items: center; gap: .55rem; padding: .35rem; border: 1px solid transparent; border-radius: 12px;
  background: none; color: inherit; text-align: left; cursor: pointer; }
.room__list button:hover { border-color: var(--edge-strong); background: rgba(163, 92, 255, .08); }
.room__who { display: flex; flex-direction: column; min-width: 0; }
.room__who strong { color: #f1e6ff; font-size: .88rem; }
.room__who small { color: var(--color-text-muted); font-size: .72rem; }
.pmenu--neon { background: rgba(20, 18, 30, .92) !important; border: 1px solid var(--edge-strong) !important; box-shadow: var(--glow), 0 18px 40px #000c !important; backdrop-filter: blur(16px); }
.pmenu__title { margin: .25rem .7rem .35rem; font: 700 .8rem var(--font-body); color: #d8b8ff; letter-spacing: .04em; }

/* DM panel over the room */
.dm { position: absolute; inset: 0; z-index: 20; display: flex; justify-content: flex-end; background: rgba(5, 4, 10, .45); backdrop-filter: blur(2px); }
.dm[hidden] { display: none; }
.dm__panel { width: min(420px, 100%); height: 100%; display: flex; flex-direction: column; background: rgba(16, 14, 26, .94);
  border-left: 1px solid var(--edge-strong); box-shadow: -10px 0 40px rgba(124, 58, 237, .25); animation: slidein .22s ease-out; }
@keyframes slidein { from { transform: translateX(30px); opacity: 0; } }
.dm__head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; border-bottom: 1px solid var(--edge); }
.dm__head div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.dm__head small { color: var(--neon-2); font-size: .7rem; letter-spacing: .1em; text-transform: uppercase; }
.dm__head .link { font-size: .8rem; }
.dm__x { border: 0; background: none; color: var(--color-text-muted); font-size: 1.5rem; cursor: pointer; padding: 0 .3rem; }
.dm__thread { flex: 1; min-height: 0; overflow-y: auto; }
@media (prefers-reduced-motion: reduce) { .live, .rmsg, .dm__panel { animation: none; } }

.view--room > * { max-width: none !important; margin-left: 0 !important; margin-right: 0 !important; width: 100%; }
@media (min-width: 900px) { .view--room > .vhead { padding-left: 1.4rem; } .room__stream, .room__quick, .room__compose { padding-left: 1.4rem; padding-right: 1.4rem; } }
.qp .label { margin-top: 0; } .qp { margin-left: 0; margin-right: 0; } #qp-go:disabled { opacity: .5; box-shadow: none; }
.mailshare { display: flex; gap: .4rem; margin-top: .5rem; } .mailshare .input { flex: 1; min-width: 0; }

.gshare { width: 100%; } .gshare p { margin: 0 0 .4rem; }
.gshare__row { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; margin-top: .3rem; }
.gshare__row .btn { flex: 1; }
.gshare__row.eta .pill { min-height: 34px; }

.gbox__btns { display: flex; gap: .4rem; }
.door { position: fixed; inset: 0; z-index: 80; display: grid; place-items: center; background: #0c0b12; }
.door__card { text-align: center; padding: 1.4rem; }
.door__card img { width: min(78vmin, 520px); height: auto; background: #fff; padding: 14px; border-radius: 18px; box-shadow: 0 0 60px rgba(163, 92, 255, .45); }
.door__card h2 { font: 400 2rem var(--font-display); color: #fff; margin: 1rem 0 .2rem; text-shadow: 0 0 18px rgba(163, 92, 255, .7); }
.door__card p { color: var(--color-text-muted); margin: 0 0 1rem; }
.door__btns { display: flex; gap: .5rem; justify-content: center; }
.door:fullscreen .door__btns { opacity: .25; }

/* the real map */
.pmap { position: relative; height: 100%; display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.pmap__map { min-height: 0; }
.pmap__bar { position: absolute; top: .7rem; left: .7rem; right: .7rem; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; z-index: 2;
  padding: .45rem .6rem; border-radius: 14px; background: rgba(14, 12, 22, .78); border: 1px solid var(--edge); backdrop-filter: blur(12px); }
.pmap__bar .btn { margin-left: auto; }
.pmap__note { position: absolute; top: 4.2rem; left: .9rem; right: .9rem; z-index: 2; font-size: .72rem; color: var(--color-text-muted); text-shadow: 0 1px 4px #000; pointer-events: none; }
.pmap__list { list-style: none; margin: 0; padding: .4rem .6rem; max-height: 34vh; overflow-y: auto; border-top: 1px solid var(--edge); background: rgba(12, 11, 18, .85); }
.pmap__list button { width: 100%; display: flex; align-items: center; gap: .6rem; padding: .35rem; border: 1px solid transparent; border-radius: 12px; background: none; color: inherit; text-align: left; cursor: pointer; }
.pmap__list button:hover { border-color: var(--edge-strong); background: rgba(163, 92, 255, .08); }
.rav--on { box-shadow: 0 0 0 2px var(--neon-2), 0 0 12px rgba(34, 224, 122, .6); }
.ppin { width: 38px; height: 38px; padding: 0; border-radius: 50%; overflow: hidden; border: 2px solid rgba(163, 92, 255, .7); background: #1c1b28; color: #e6d6ff; font-weight: 700; cursor: pointer;
  box-shadow: 0 4px 12px #000a; }
.ppin img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ppin img.x { filter: blur(5px); transform: scale(1.2); }
.ppin--on { border-color: var(--neon-2); box-shadow: 0 0 0 3px rgba(34, 224, 122, .25), 0 0 18px rgba(34, 224, 122, .7); }
.ppin-me { width: 16px; height: 16px; border-radius: 50%; background: var(--neon); border: 2px solid #fff; box-shadow: 0 0 16px var(--neon); }
.view[data-view="map"] .pmap { height: 100%; }

.ginv { margin: 0 .6rem .5rem; padding: .7rem .8rem; border-radius: 14px; background: var(--glass); border: 1px solid var(--edge-strong); box-shadow: var(--glow); }
.ginv strong { display: block; color: #f1e6ff; } .ginv__btns { display: flex; gap: .4rem; margin-top: .5rem; }
.gpick { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; }
.gpick label { display: flex; align-items: center; gap: .5rem; padding: .3rem; border-radius: 10px; cursor: pointer; }
.gpick label:hover { background: rgba(163, 92, 255, .08); }
.gpick input { width: 18px; height: 18px; accent-color: var(--neon); }
.sysmsg { align-self: center; font-size: .75rem; color: var(--color-text-muted); padding: .2rem .7rem; border-radius: 999px; background: rgba(38, 34, 56, .5); }
.view[data-view="map"] { padding: 0 !important; overflow: hidden !important; }

/* map pins: rounded squares with corner badges */
.ppin { position: relative; width: 46px; height: 46px; border-radius: 12px; overflow: visible; padding: 0; }
.ppin img, .ppin .ppin__init { width: 100%; height: 100%; border-radius: 10px; object-fit: cover; display: grid; place-items: center; }
.ppin img { display: block; }
.ppin--on { border-color: var(--neon-2); }
.pb { position: absolute; display: grid; place-items: center; min-width: 17px; height: 17px; padding: 0 2px; border-radius: 6px; font: 700 10px/1 var(--font-body);
  font-style: normal; color: #fff; background: #1c1b28; border: 1px solid rgba(255, 255, 255, .35); box-shadow: 0 2px 6px #000a; }
.pb--tl { top: -5px; left: -5px; min-width: 11px; width: 11px; height: 11px; padding: 0; border-radius: 50%; background: var(--neon-2); border: 2px solid #0c0b12; box-shadow: 0 0 8px var(--neon-2); }
.pb--tr { top: -6px; right: -6px; background: #3b2a66; }
.pb--br { bottom: -6px; right: -6px; background: #6d28d9; }
.pb--br span { display: inline-block; }
.pb--bl { bottom: -6px; left: -6px; background: #9d174d; }
.pmap__range { display: flex; align-items: center; gap: .4rem; flex-basis: 100%; font-size: .78rem; color: var(--color-text-muted); }
.pmap__range b { color: var(--neon-2); font-family: var(--mono); font-weight: 600; }
.pmap__range input { flex: 1; accent-color: var(--neon-2); }
.pmap__note { top: 6.6rem; }
.pmap__note { transition: opacity 1.2s; } .pmap__note--gone { opacity: 0; }

.places { list-style: none; margin: .4rem 0; padding: 0; display: grid; gap: .4rem; }
.places li { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; padding: .5rem .6rem; border-radius: 12px; background: rgba(10, 9, 16, .5); border: 1px solid var(--edge); }
.places__main { flex: 1; min-width: 10rem; display: flex; flex-direction: column; }
.places__main strong { color: #f1e6ff; }
.places__btns { display: flex; gap: .35rem; align-items: center; }
.pmap__listed { display: flex; align-items: center; gap: .4rem; font-size: .78rem; color: var(--color-text-muted); }
.pmap__listed select { min-height: 30px; border-radius: 8px; border: 1px solid var(--edge); background: rgba(10, 9, 16, .8); color: #fff; padding: 0 .4rem; }
.pmap__bar .pmap__note { position: static; flex-basis: 100%; margin: 0; text-shadow: none; } .pmap__note--gone { opacity: 0; height: 0; overflow: hidden; transition: opacity 1.2s, height 0s 1.2s; }

/* Me: sign out at the top */
.me__top { display: flex; justify-content: flex-end; margin-bottom: .4rem; }
/* public link: pick photos */
.pubpick { display: grid; grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: .4rem; margin: .4rem 0; }
.pubpick__p { position: relative; aspect-ratio: 1; padding: 0; border: 2px solid transparent; border-radius: 10px; overflow: hidden; background: var(--color-surface); cursor: pointer; opacity: .55; }
.pubpick__p img { width: 100%; height: 100%; object-fit: cover; display: block; }
.pubpick__p i { position: absolute; left: 4px; bottom: 4px; font-style: normal; font-size: .62rem; padding: 0 .3rem; border-radius: 4px; background: rgb(0 0 0 / .7); color: #ff8fa3; }
.pubpick__p b { position: absolute; right: 4px; top: 4px; display: none; width: 1.2rem; height: 1.2rem; border-radius: 50%; background: var(--color-highlight); color: #000; font-size: .75rem; line-height: 1.2rem; }
.pubpick__p--on { opacity: 1; border-color: var(--color-highlight); }
.pubpick__p--on b { display: block; }
/* visitor replies */
.compose--visitor { flex-wrap: wrap; }
.compose__via { flex-basis: 100%; display: flex; gap: .8rem; flex-wrap: wrap; align-items: center; }
.compose__via label { display: inline-flex; gap: .3rem; align-items: center; }
/* public page: visitor messages */
.pchat { margin-top: 1rem; padding: .9rem; border-radius: 16px; background: var(--color-surface); display: grid; gap: .5rem; }
.pchat h2 { margin: 0; font-size: 1.05rem; }
.pchat__list { list-style: none; margin: 0; padding: 0; display: grid; gap: .35rem; max-height: 50vh; overflow: auto; }
.pchat__row { display: grid; gap: .4rem; grid-template-columns: 1fr 1fr; }
.pchat__photo img { max-width: 220px; border-radius: 10px; display: block; }
.pub .pcard__thumb.x img, .pub .pcard__heroimg.x img { filter: blur(24px); }
.pub .x18 { position: absolute; inset: auto 0 40% 0; margin: auto; width: max-content; z-index: 2; }
.pchat__err { color: #ff8fa3; margin: 0; }
.pub .pcard__thumb.x, .pub .pcard__heroimg.x { overflow: hidden; }
.pchat__form { display: grid; gap: .5rem; }
.pmap__range[hidden] { display: none; }

/* invite flow strip: two lanes (you on top, them below), steps in order left to right */
.gflow { display: grid; grid-auto-columns: max-content; grid-template-rows: auto auto; gap: .35rem .25rem; align-items: center;
  overflow-x: auto; padding: .5rem .2rem .7rem; margin: .2rem 0 .6rem; scroll-snap-type: x proximity; }
.gflow__step { display: flex; flex-direction: column; align-items: flex-start; gap: .1rem; min-width: 7.2rem; max-width: 9rem; padding: .45rem .6rem;
  border-radius: 12px; border: 1px solid var(--color-border, #333); background: var(--color-surface); color: var(--color-text-muted);
  text-align: left; font: inherit; cursor: pointer; scroll-snap-align: center; }
.gflow__step strong { font-size: .85rem; color: var(--color-text); white-space: nowrap; }
.gflow__sub { font-size: .68rem; line-height: 1.2; }
.gflow__who { font-size: .58rem; letter-spacing: .1em; text-transform: uppercase; opacity: .7; }
.gflow__step--you { border-color: rgb(167 112 255 / .45); }
.gflow__step--them { border-color: rgb(34 224 122 / .4); }
.gflow__step--both { align-self: stretch; justify-content: center; }
.gflow__step--done { background: rgb(34 224 122 / .1); }
.gflow__step--done.gflow__step--you { background: rgb(167 112 255 / .14); }
.gflow__step--done strong::before { content: "✓ "; color: #22e07a; }
.gflow__step--todo, .gflow__step--skipped { opacity: .45; }
.gflow__step--now { opacity: 1; box-shadow: 0 0 0 2px var(--color-highlight), 0 0 18px rgb(167 112 255 / .45); animation: gflow-pulse 1.8s ease-in-out infinite; }
.gflow__step--now.gflow__step--them { box-shadow: 0 0 0 2px #22e07a, 0 0 18px rgb(34 224 122 / .35); }
@keyframes gflow-pulse { 50% { transform: translateY(-1px); filter: brightness(1.15); } }
@media (prefers-reduced-motion: reduce) { .gflow__step--now { animation: none; } }
.gflow__arrow { color: var(--color-text-disabled); font-size: 1rem; text-align: center; padding: 0 .05rem; }
.gflow--mini { display: flex; gap: .2rem; align-items: center; }
.gflow--mini .gflow__step { min-width: 5.4rem; cursor: default; padding: .35rem .45rem; }
.gflow--mini .gflow__step strong { font-size: .75rem; }
.grate { margin: .8rem 0; padding: .8rem; border-radius: 14px; background: var(--color-surface); display: grid; gap: .5rem; }
/* contacts tab */
.contacts { max-width: none !important; }
.cgrid__pic { width: 46px; padding: 2px 4px !important; }
.cpic { position: relative; width: 38px; height: 38px; padding: 0; border: 1px solid var(--color-border, #333); border-radius: 8px; overflow: hidden;
  background: var(--color-surface-raised, #222); color: var(--color-text-disabled); cursor: pointer; display: grid; place-items: center; }
.cpic img { width: 100%; height: 100%; object-fit: cover; }
.cpic b { position: absolute; right: 1px; bottom: 1px; font-size: .55rem; padding: 0 .2rem; border-radius: 4px; background: rgb(0 0 0 / .75); color: #fff; }
.cphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .4rem; margin: .5rem 0; }
.cphotos a { position: relative; display: block; aspect-ratio: 1; border-radius: 10px; overflow: hidden; background: var(--color-surface); }
.cphotos img { width: 100%; height: 100%; object-fit: cover; }
.cphotos i { position: absolute; left: 0; right: 0; bottom: 0; font-style: normal; font-size: .62rem; padding: .15rem .3rem; background: rgb(0 0 0 / .65); color: #ddd; }
.chip--off { opacity: .45; text-decoration: line-through; text-decoration-color: rgb(255 255 255 / .3); }
.ctiers .chip--add { width: auto; padding: 0 .8rem; }
.cbar { display: flex; align-items: center; gap: .5rem; margin-bottom: .5rem; }
.ccity { width: auto; min-width: 10rem; }
/* invite to join (/j/) */
.jinv .pub__body { max-width: 720px; }
.jhero { padding: 1rem 0 .5rem; } .jhero h1 { margin: 0 0 .4rem; font-size: 1.6rem; }
.jnote { padding: .7rem .9rem; border-left: 3px solid var(--color-highlight); background: var(--color-surface); border-radius: 0 12px 12px 0; }
.jprof { margin: 1rem 0; }
.jtour h2, .jjoin h2 { margin: 1.4rem 0 .6rem; }
.jtour__cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: .6rem; }
.jtour__card { position: relative; padding: .9rem; border-radius: 16px; background: var(--color-surface); border: 1px solid rgb(167 112 255 / .25); }
.jtour__card h3 { margin: .3rem 0; font-size: 1rem; } .jtour__card p { margin: 0; font-size: .86rem; color: var(--color-text-muted); }
.jtour__icon { font-size: 1.6rem; } .jtour__n { position: absolute; top: .6rem; right: .8rem; font-size: .7rem; color: var(--color-text-disabled); }
.jjoin__form { display: grid; gap: .6rem; max-width: 440px; }
.jjoin .check { display: flex; gap: .5rem; align-items: flex-start; font-size: .9rem; }
.cbar--act { flex-wrap: wrap; gap: .8rem; } .check { display: inline-flex; gap: .4rem; align-items: center; }
.cgrid__chk { width: 30px; text-align: center; padding: 0 4px !important; }
.cinv { padding: .4rem .6rem; border-radius: 10px; background: var(--color-surface); margin-bottom: .4rem; }
.cinv p { margin: 0 0 .2rem; }
.cinv__ev { list-style: none; margin: 0; padding: 0; font-size: .78rem; display: grid; gap: .1rem; }
.cinv__ev li { display: flex; justify-content: space-between; gap: 1rem; color: var(--color-text-muted); }
.cinv__ev li:last-child { color: var(--color-text); }
.jinv a.btn { text-decoration: none; }
/* contacts: filters stay put, only the table scrolls; the new-contact row sits under the column names */
.view[data-view="contacts"] { overflow: hidden; padding-bottom: .5rem; }
.contacts { height: 100%; display: flex; flex-direction: column; }
.cctl { flex: none; }
.contacts .cgrid { flex: 1; min-height: 0; max-height: none; }
.cgrid thead tr:first-child th { top: 0; }
.cgrid__new td { position: sticky; top: 2.05rem; z-index: 1; background: #1d1830; border-bottom: 1px solid rgb(167 112 255 / .4); }
.cgrid__new .cgrid__chk { color: var(--color-highlight); font-weight: 700; }
.cgrid__new .cgrid__in::placeholder { color: rgb(167 112 255 / .6); }
.crow--new td { animation: crow-new 2.4s ease-out; }
@keyframes crow-new { from { background: rgb(34 224 122 / .3); } }
.cbar--row { flex-wrap: wrap; } .cbar--row .csearch { flex: 1 1 14rem; margin: 0; }
.clegend { flex: none; margin-top: .3rem; } .clegend summary { cursor: pointer; }
.ctiers { margin-bottom: .35rem; }
.foundtag { display: inline-block; font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: .05rem .4rem; border-radius: 999px;
  color: #1a1206; background: linear-gradient(135deg, #ffd166, #f4a259); vertical-align: middle; }
.foundtag--you { color: #fff; background: linear-gradient(135deg, #a770ff, #6d3bd8); }
/* activity dots: green active, orange idle, red signed off */
.pdot { display: inline-block; width: .6rem; height: .6rem; border-radius: 50%; margin-right: .35rem; vertical-align: middle; flex: none; }
.pdot--on { background: #22e07a; box-shadow: 0 0 8px rgb(34 224 122 / .8); }
.pdot--idle { background: #f4a259; }
.pdot--off { background: #ff4d6d; opacity: .8; }
.cgrid__name { display: flex; align-items: center; padding-left: .4rem; }
.cgrid__acts { display: flex; gap: .25rem; align-items: center; }
.cact { border: 1px solid var(--color-border, #333); background: var(--color-surface); border-radius: 8px; padding: .15rem .35rem; cursor: pointer; font-size: .9rem; }
.ppin--focus { outline: 3px solid #ffd166; outline-offset: 3px; z-index: 5; animation: gflow-pulse 1s ease-in-out infinite; }
.jcity { padding: 2rem 0; } .jcity__q { font-size: 1.25rem; margin: 1.2rem 0 .8rem; }
.jcity__opts { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; max-width: 440px; }
.jcity__opts .btn { padding: .9rem .5rem; font-size: 1rem; }
.jcity__other { display: flex; gap: .5rem; margin-top: .8rem; max-width: 440px; } .jcity__other .input { flex: 1; }
.me__top { align-items: center; gap: .6rem; }
.cinvf { align-items: center; } .cinvf__l { margin-right: .2rem; text-transform: uppercase; letter-spacing: .08em; font-size: .62rem; }
.cinvf .chip { font-size: .8rem; }
/* Meet card (guest side): one card per step, its own look, big main button, small quiet exits */
.meet { padding: .8rem; }
.mcard { position: relative; padding: 1.1rem 1rem 1.2rem; border-radius: 22px; overflow: hidden;
  background: radial-gradient(120% 90% at 100% 0%, rgb(167 112 255 / .28), transparent 60%), radial-gradient(90% 70% at 0% 100%, rgb(34 224 122 / .14), transparent 60%), #17141f;
  border: 1px solid rgb(167 112 255 / .35); box-shadow: 0 10px 40px rgb(0 0 0 / .45); display: grid; gap: .7rem; }
.mcard::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: linear-gradient(90deg, #a770ff, #22e07a); }
.mcard h1 { margin: .2rem 0 0; font-size: 1.45rem; line-height: 1.2; }
.mcard--end { border-color: var(--color-border, #333); }
.mtrack { list-style: none; margin: 0; padding: 0; display: flex; gap: .2rem; overflow-x: auto; font-size: .62rem; text-transform: uppercase; letter-spacing: .06em; }
.mtrack li { padding: .2rem .45rem; border-radius: 999px; color: var(--color-text-disabled); white-space: nowrap; }
.mtrack li.done { color: #22e07a; } .mtrack li.done::before { content: "✓ "; }
.mtrack li.now { color: #fff; background: rgb(167 112 255 / .5); }
.mbtn { min-height: 62px; border: 0; border-radius: 16px; font: 700 1.15rem var(--font-body, inherit); color: #fff; cursor: pointer;
  background: linear-gradient(135deg, #a770ff, #6d3bd8); box-shadow: 0 6px 24px rgb(139 92 246 / .45); }
.mbtn:disabled { opacity: .5; }
.mlink { background: none; border: 0; color: var(--color-text-muted); font-size: .85rem; text-decoration: underline; cursor: pointer; padding: .3rem; justify-self: center; }
.mrow { display: flex; gap: .6rem; justify-content: center; flex-wrap: wrap; }
.mrep { margin: 0; font-size: .82rem; display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; }
.repbar { display: inline-block; width: 70px; height: 6px; border-radius: 3px; background: rgb(255 255 255 / .12); overflow: hidden; vertical-align: middle; }
.repbar i { display: block; height: 100%; background: linear-gradient(90deg, #f4a259, #22e07a); }
.mlook { display: flex; flex-wrap: wrap; gap: .35rem; } .mlook .tag { font-size: .8rem; padding: .2rem .55rem; border-radius: 999px; background: rgb(255 255 255 / .08); }
.mnote { margin: 0; padding: .6rem .8rem; border-left: 3px solid #a770ff; background: rgb(0 0 0 / .25); border-radius: 0 10px 10px 0; }
.maddr { padding: .7rem .8rem; border-radius: 14px; background: rgb(0 0 0 / .3); display: grid; gap: .3rem; }
.maddr__line { margin: 0; font-size: 1.1rem; font-weight: 700; } .maddr p { margin: 0; }
.mcard .meta { margin: 0; color: var(--color-text-muted); }
.mshare { display: flex; gap: .6rem; align-items: center; font-size: .88rem; }
.mshare span { display: flex; flex-direction: column; }
.mcheck { display: inline-grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: #22e07a; color: #06210f; font-size: 1rem; vertical-align: middle; }
.mentry { margin: 0; padding: .8rem; border-radius: 14px; background: rgb(34 224 122 / .12); border: 1px solid rgb(34 224 122 / .4); font-size: 1.05rem; white-space: pre-wrap; }
.merr { margin: 0; color: #ff8fa3; min-height: 1em; }
.mnotes { margin: .8rem .2rem; font-size: .9rem; } .mnotes summary { cursor: pointer; color: var(--color-text-muted); } .mnotes p { white-space: pre-wrap; }
/* the meet pinned above a chat: one card, not bubbles */
.tmeet { display: flex; flex-wrap: wrap; align-items: center; gap: .2rem .6rem; width: calc(100% - 1rem); margin: .5rem; padding: .7rem .9rem;
  border-radius: 16px; border: 1px solid rgb(167 112 255 / .45); color: var(--color-text); text-decoration: none; text-align: left; font: inherit; cursor: pointer;
  background: radial-gradient(120% 120% at 100% 0%, rgb(167 112 255 / .3), transparent 60%), #17141f; }
.tmeet__k { flex-basis: 100%; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #c9b3ff; }
.tmeet__go { margin-left: auto; font-size: .8rem; color: var(--color-text-muted); }
.mcard--host { margin-bottom: .8rem; }
.mstate { margin: 0; font-size: 1.05rem; } .mmove { margin: 0; font-size: .9rem; color: var(--color-text-muted); }
.marr { margin: 0; padding: .6rem .8rem; border-radius: 12px; font-weight: 600; }
.marr--ok { background: rgb(34 224 122 / .14); color: #22e07a; } .marr--far { background: rgb(244 162 89 / .14); color: #f4a259; }
.mbtn small { display: block; font-size: .78rem; font-weight: 500; opacity: .85; }
.gcard--in { text-decoration: none; color: inherit; border-color: rgb(167 112 255 / .45); }
.mcard a.btn, .maddr a.btn { text-decoration: none; }
.msays { margin: 0; padding: .6rem .8rem; border-radius: 12px; background: rgb(255 209 102 / .12); border: 1px solid rgb(255 209 102 / .4); }
.mq { margin: .2rem 0 0; font-weight: 600; } .meta-eta { display: flex; flex-wrap: wrap; gap: .4rem; }
.mbtn--alt { background: linear-gradient(135deg, #22e07a, #12a35a); box-shadow: 0 6px 24px rgb(34 224 122 / .35); color: #04140a; }
.mquick { display: flex; flex-wrap: wrap; gap: .35rem; } .mquick .pill { font-size: .8rem; }
.plsteps { padding-left: 1.2rem; display: grid; gap: .25rem; }
.mrules { display: grid; gap: .55rem; }
.mrule { margin: 0; padding: .6rem .7rem; border-radius: 12px; background: rgb(0 0 0 / .25); border: 1px solid rgb(255 255 255 / .08); }
.mrule legend { padding: 0; margin-bottom: .3rem; font-size: .95rem; float: left; width: 100%; }
fieldset.mrule { display: flex; flex-wrap: wrap; gap: .3rem 1rem; }
.mtick { display: flex; gap: .55rem; align-items: flex-start; font-size: .95rem; cursor: pointer; }
.mtick input { width: 1.25rem; height: 1.25rem; flex: none; margin-top: .1rem; accent-color: #a770ff; }
.mbtn[disabled] { opacity: .45; box-shadow: none; }
.manswers { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; font-size: .85rem; color: var(--color-text-muted); }
.msource { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; font-size: .85rem; }
.msource img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; border: 1px solid var(--color-border, #333); }
.moutcomes { display: grid; gap: .5rem; }
.ioshot { padding: .8rem; border: 1px dashed rgb(167 112 255 / .5); border-radius: 12px; text-align: center; font-size: .88rem; display: grid; gap: .3rem; justify-items: center; }
.ioshot img { max-height: 160px; border-radius: 10px; }
.mrule-ed { display: grid; gap: .3rem; padding: .5rem 0; border-bottom: 1px solid rgb(255 255 255 / .06); }
.mrule-ed__row { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; } .mrule-ed__row .input { flex: 1 1 10rem; width: auto; }
.gcard__shot { width: 28px; height: 28px; border-radius: 6px; object-fit: cover; }
.gcard-li { position: relative; }
.gcard-del { position: absolute; z-index: 1; right: .55rem; bottom: .55rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; border: 1px solid var(--color-border, #333);
  background: var(--color-surface); color: var(--color-text-disabled); cursor: pointer; font-size: .8rem; }
.gcard-del:hover { color: #ff6b6b; border-color: #ff6b6b; }
.mjoin { margin: .8rem .2rem; padding: .7rem .9rem; border-radius: 16px; border: 1px solid rgb(34 224 122 / .35); background: rgb(34 224 122 / .06); }
.mjoin summary { cursor: pointer; font-weight: 600; color: #8ff0bd; }
.mjoin__form { display: grid; gap: .5rem; margin-top: .6rem; }
.mcomment { padding: .6rem .8rem; border-radius: 12px; background: rgb(0 0 0 / .25); display: grid; gap: .3rem; }
.gsay { margin: .3rem 0; padding: .5rem .7rem; border-left: 3px solid #ffd166; background: rgb(255 209 102 / .07); border-radius: 0 10px 10px 0; font-size: .9rem; }
.ioshot__txt { max-height: 4.5em; overflow: hidden; text-align: left; }
.mphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(70px, 1fr)); gap: .3rem; }
.mphotos img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; }
/* External: people saved from other apps */
.meetseg { margin-left: auto; }
.xhelp { margin: 0 .8rem .6rem; }
.xlist { list-style: none; margin: 0; padding: 0 .6rem; display: grid; gap: .4rem; }
.xcard { display: flex; gap: .7rem; width: 100%; padding: .55rem; border-radius: 14px; border: 1px solid var(--color-border, #333); background: var(--color-surface);
  color: inherit; text-align: left; font: inherit; cursor: pointer; }
.xcard__pic { position: relative; flex: none; width: 64px; height: 64px; border-radius: 10px; overflow: hidden; background: #222; display: grid; place-items: center; }
.xcard__pic img { width: 100%; height: 100%; object-fit: cover; }
.xcard__pic b { position: absolute; right: 2px; bottom: 2px; font-size: .6rem; padding: 0 .25rem; border-radius: 4px; background: rgb(0 0 0 / .75); }
.xcard__main { display: flex; flex-direction: column; gap: .1rem; min-width: 0; }
.xcard__main .tagx { align-self: flex-start; }
.xone .vhead { gap: .5rem; } .xname { flex: 1; font-weight: 700; }
.xphotos { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: .35rem; padding: 0 .6rem .6rem; }
.xphotos img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 10px; }
.xshot { max-width: 100%; border-radius: 10px; margin-top: .4rem; } .xocr { white-space: pre-wrap; }

/* ---------- Events: neon, phone first ---------- */
.evtop { display: flex; gap: .5rem; justify-content: flex-end; padding: 0 .8rem .4rem; }
.evnew { box-shadow: 0 0 18px rgb(167 112 255 / .55); }
.evsec { margin: .9rem .8rem .4rem; display: flex; align-items: center; gap: .4rem; }
.evsec--live { color: #22e07a; }
.livedot { display: inline-block; width: .55rem; height: .55rem; border-radius: 50%; background: #22e07a; box-shadow: 0 0 10px #22e07a; animation: livepulse 1.6s ease-in-out infinite; }
@keyframes livepulse { 50% { opacity: .35; transform: scale(.8); } }
@media (prefers-reduced-motion: reduce) { .livedot { animation: none; } }
.evgrid { display: grid; gap: .6rem; padding: 0 .6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.evcard { position: relative; display: block; min-height: 150px; padding: 0; border: 1px solid rgb(167 112 255 / .35); border-radius: 20px; overflow: hidden;
  background: #17141f; color: #fff; text-align: left; font: inherit; cursor: pointer; box-shadow: 0 8px 30px rgb(0 0 0 / .45); }
.evcard--live { border-color: rgb(34 224 122 / .7); box-shadow: 0 0 0 1px rgb(34 224 122 / .3), 0 0 26px rgb(34 224 122 / .25); }
.evcard__bg { position: absolute; inset: 0; background: radial-gradient(120% 90% at 100% 0%, rgb(167 112 255 / .35), transparent 60%), #1d1830;
  background-size: cover; background-position: center; }
.evcard__bg::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 8 16 / .15) 0%, rgb(10 8 16 / .92) 75%); }
.evcard__body { position: relative; display: flex; flex-direction: column; gap: .2rem; padding: .8rem .9rem .9rem; min-height: 150px; justify-content: flex-end; }
.evcard__top { position: absolute; top: .7rem; left: .8rem; right: .8rem; display: flex; justify-content: space-between; gap: .4rem; }
.evcard__title { font-size: 1.2rem; line-height: 1.15; text-shadow: 0 2px 10px rgb(0 0 0 / .6); }
.evcard__meta { font-size: .82rem; color: #cfc9e6; }
.evcard__foot { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .2rem; }
.evlive { display: inline-flex; align-items: center; gap: .35rem; padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em;
  text-transform: uppercase; color: #04140a; background: #22e07a; box-shadow: 0 0 14px rgb(34 224 122 / .7); }
.evlive .livedot { background: #04140a; box-shadow: none; }
.evwhen { padding: .15rem .55rem; border-radius: 999px; font-size: .74rem; font-weight: 700; background: rgb(0 0 0 / .55); border: 1px solid rgb(255 255 255 / .15); }
.evchip { padding: .15rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgb(167 112 255 / .3); border: 1px solid rgb(167 112 255 / .6); }
.evchip--me { background: rgb(34 224 122 / .2); border-color: rgb(34 224 122 / .6); color: #8ff0bd; }
.evline { color: #ffd166; font-weight: 700; font-size: .82rem; text-shadow: 0 0 10px rgb(255 209 102 / .45); }
.evcount { font-size: .8rem; padding: .05rem .5rem; border-radius: 999px; background: rgb(255 255 255 / .1); }
.evempty { margin: 2rem .8rem; }
.evone { padding-bottom: 2rem; }
.evhero { position: relative; min-height: 230px; display: flex; align-items: flex-end; background: radial-gradient(120% 90% at 100% 0%, rgb(167 112 255 / .45), transparent 60%), #1d1830;
  background-size: cover; background-position: center; border-bottom: 1px solid rgb(167 112 255 / .4); }
.evhero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgb(10 8 16 / .1), rgb(10 8 16 / .95) 85%); }
.evhero__txt { position: relative; z-index: 1; padding: 1rem; display: grid; gap: .3rem; }
.evhero h1 { margin: 0; font-size: 1.7rem; line-height: 1.1; text-shadow: 0 0 22px rgb(167 112 255 / .6); }
.evhero p { margin: 0; color: #d6d0ea; }
.evback { position: absolute; z-index: 2; top: .7rem; left: .7rem; width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .25);
  background: rgb(0 0 0 / .5); color: #fff; font-size: 1.4rem; cursor: pointer; }
.evinfo, .evreqs, .evaction { padding: .6rem .9rem; }
.evinfo { display: grid; gap: .5rem; }
.evhost { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin: 0; }
.evhost .link { display: inline-flex; align-items: center; gap: .5rem; color: inherit; text-decoration: none; }
.evhost img { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid #a770ff; }
.evfollow { font-size: .78rem; }
.evtags { display: flex; flex-wrap: wrap; gap: .35rem; } .evtags .tag { font-size: .8rem; padding: .2rem .55rem; border-radius: 999px; background: rgb(255 255 255 / .08); }
.evwhere { margin: 0; padding: .6rem .8rem; border-radius: 14px; background: rgb(167 112 255 / .1); border: 1px solid rgb(167 112 255 / .3); }
.evreqs ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .3rem; } .evreqs li { padding: .45rem .6rem; border-radius: 10px; background: rgb(255 255 255 / .04); }
.evaction { display: grid; gap: .5rem; }
.evstate { margin: 0; padding: .9rem; border-radius: 16px; text-align: center; font-weight: 700; background: rgb(34 224 122 / .1); border: 1px solid rgb(34 224 122 / .4); color: #8ff0bd; }
.evtrail { display: grid; place-items: center; text-decoration: none; }
.center { text-align: center; }
.evhostbar { display: flex; gap: .5rem; padding: .8rem .9rem .3rem; overflow-x: auto; }
.evstats { flex: 1; min-width: 72px; padding: .55rem .5rem; border-radius: 14px; text-align: center; background: #17141f; border: 1px solid rgb(167 112 255 / .35); }
.evstats b { display: block; font-size: 1.5rem; line-height: 1; color: #fff; text-shadow: 0 0 14px rgb(167 112 255 / .7); }
.evstats span { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--color-text-muted); }
.evctl { display: flex; flex-wrap: wrap; gap: .4rem; padding: .4rem .9rem; }
.evlineed { padding: .2rem .9rem .4rem; display: grid; gap: .35rem; }
.evsugg { display: flex; gap: .3rem; overflow-x: auto; } .evsugg .pill { font-size: .75rem; white-space: nowrap; }
.evtabs { margin: .4rem .9rem .5rem; }
#ev-tab { padding: 0 .6rem; display: grid; gap: .5rem; }
.evg { padding: .7rem; border-radius: 16px; background: #17141f; border: 1px solid var(--color-border, #2c2838); display: grid; gap: .45rem; }
.evg--req { border-color: rgb(255 209 102 / .5); box-shadow: 0 0 16px rgb(255 209 102 / .12); }
.evg__row { display: flex; gap: .6rem; align-items: center; cursor: pointer; }
.evg__pic { width: 46px; height: 46px; flex: none; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: #2a2340; font-weight: 700; }
.evg__pic img { width: 100%; height: 100%; object-fit: cover; }
.evg__main { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.evg__acts { display: flex; flex-wrap: wrap; gap: .35rem; align-items: center; } .evg__acts .input { width: auto; }
.evok { margin: 0; color: #8ff0bd; }
.evlc--door { border-color: #22e07a; box-shadow: 0 0 18px rgb(34 224 122 / .3); }
.evlc--late { border-color: #f4a259; box-shadow: 0 0 18px rgb(244 162 89 / .25); }
.evlc__state { margin: 0; font-weight: 600; }
.evpicks { display: flex; gap: .35rem; flex-wrap: wrap; }
.evpick { width: 64px; height: 64px; padding: 0; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #2a2340; cursor: pointer;
  display: grid; place-items: center; font-size: .75rem; color: #c9b3ff; }
.evpick img { width: 100%; height: 100%; object-fit: cover; } .evpick.on { border-color: #22e07a; box-shadow: 0 0 12px rgb(34 224 122 / .5); }
.evpick--new { border: 1px dashed rgb(167 112 255 / .6); }
.evpickrow { display: flex; align-items: center; gap: .6rem; padding: .4rem 0; } .evpickrow img, .evpickrow i { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; background: #2a2340; }
.evpickrow.is-on { opacity: .55; }
.evedit .seg2 { margin-bottom: .4rem; }
.evopt { display: flex; gap: .5rem; align-items: center; justify-content: space-between; padding: .35rem 0; flex-wrap: wrap; }
.evopt--n .input { width: auto; max-width: 9rem; }
.evkind { font-size: .72rem; color: #c9b3ff; white-space: nowrap; }
.catjson { font: 12px/1.45 ui-monospace, Menlo, monospace; white-space: pre; }
.pmrow { gap: .5rem; } .pmrow .input { width: auto; }
.evtitle { font-size: 1.15rem; font-weight: 700; padding: .8rem; }
.evmore, .evfilled { margin-top: .8rem; padding: .6rem .7rem; border-radius: 14px; border: 1px solid rgb(167 112 255 / .3); background: rgb(167 112 255 / .05); }
.evmore summary, .evfilled summary { cursor: pointer; color: #c9b3ff; font-weight: 600; font-size: .9rem; }
.evfilled summary { color: #8ff0bd; }
.evchip--ask { background: rgb(255 209 102 / .25); border-color: #ffd166; color: #ffd166; box-shadow: 0 0 12px rgb(255 209 102 / .35); }
.xhero { width: 100%; max-height: 220px; object-fit: cover; border-radius: 14px; } .xstatus { display: grid; gap: .5rem; } .xstatus h2 { margin: 0; }
/* the event editor as its own page */
.evpage { padding-bottom: 5rem; }
.evpage .sheet__form { max-width: 680px; margin: 0 auto; }
.evpage .sheet__head { position: sticky; top: 0; z-index: 2; background: var(--color-bg, #0f0d16); padding: .8rem; display: flex; gap: .8rem; align-items: center; justify-content: flex-start; }
.evpage .sheet__body { padding: 0 .9rem; }
.evpage .sheet__foot { position: sticky; bottom: 0; z-index: 2; display: flex; gap: .5rem; padding: .8rem .9rem; background: linear-gradient(180deg, transparent, var(--color-bg, #0f0d16) 35%); }
.evpage .sheet__foot .btn { flex: 1; }
.evback2 { font-size: 1rem; }
.evnudge { display: flex; flex-wrap: wrap; gap: .3rem; align-items: center; margin: .6rem .9rem 0; padding: .8rem .9rem; width: calc(100% - 1.8rem); border-radius: 14px;
  border: 1px dashed rgb(255 209 102 / .7); background: rgb(255 209 102 / .08); color: #ffd166; font: inherit; font-weight: 700; text-align: left; cursor: pointer; }
.evnudge span { font-weight: 500; color: var(--color-text-muted); }
.evlocked { margin: .6rem 0; padding: .7rem .8rem; border-radius: 12px; background: rgb(255 255 255 / .05); border: 1px solid rgb(255 255 255 / .1); }
/* the event builder: numbered sections */
.evsect { margin: 0 0 .9rem; padding: .8rem .85rem 1rem; border-radius: 18px; background: #17141f; border: 1px solid rgb(167 112 255 / .28); display: grid; gap: .5rem; }
.evsect h3 { margin: 0; display: flex; align-items: center; gap: .55rem; font-size: 1.05rem; }
.evsect__n { display: inline-grid; place-items: center; width: 1.7rem; height: 1.7rem; border-radius: 50%; font-size: .85rem; font-weight: 800; color: #fff;
  background: linear-gradient(135deg, #a770ff, #6d3bd8); box-shadow: 0 0 12px rgb(167 112 255 / .6); }
.evsect > p { margin: -.2rem 0 0; }
.evadimg { display: flex; align-items: center; gap: .6rem; }
.evadimg img, .evadimg span { width: 96px; height: 64px; border-radius: 10px; object-fit: cover; display: grid; place-items: center; background: #2a2340; color: var(--color-text-muted); font-size: .75rem; }
.evplace { padding: .7rem .8rem; border-radius: 14px; background: rgb(167 112 255 / .08); border: 1px solid rgb(167 112 255 / .35); display: grid; gap: .4rem; }
.evplace--form { background: rgb(34 224 122 / .05); border-color: rgb(34 224 122 / .35); }
.evplace__top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; font-size: 1.05rem; }
.evplace__addr { margin: 0; }
.evplace__dl { margin: 0; display: grid; grid-template-columns: auto 1fr; gap: .2rem .7rem; font-size: .85rem; }
.evplace__dl dt { color: var(--color-text-muted); } .evplace__dl dd { margin: 0; }
.evsets .pill[aria-pressed="true"] { box-shadow: 0 0 12px rgb(167 112 255 / .5); }
.evsub { margin: .6rem 0 0; font-size: .9rem; }
.evsaveset { display: flex; flex-wrap: wrap; gap: .4rem; align-items: center; padding-top: .3rem; border-top: 1px dashed rgb(255 255 255 / .1); }
.evsaveset .input { flex: 1 1 12rem; }
.evpage .sheet__head { justify-content: flex-start !important; flex-direction: row !important; } .evpage .sheet__head h2 { margin: 0; }
.mtick.evopt { justify-content: flex-start; flex-wrap: nowrap; align-items: flex-start; gap: .6rem; }
.mtick.evopt span { flex: 1; text-align: left; }
.evans { display: flex; gap: .4rem; align-items: center; }
.evans .input { flex: 1; }
.evans__ok { flex: none; width: 2rem; height: 2rem; border-radius: 50%; border: 1px solid rgb(255 255 255 / .2); background: transparent; color: var(--color-text-disabled); cursor: pointer; font-weight: 800; }
.evans--right .evans__ok { background: #22e07a; border-color: #22e07a; color: #04140a; box-shadow: 0 0 10px rgb(34 224 122 / .6); }
.evans--right .input { border-color: rgb(34 224 122 / .6); }
.evsub span { display: block; font-weight: 400; margin-top: .15rem; }
.evadpick .evpick { width: 72px; height: 72px; position: relative; }
.evadpick .evpick i { position: absolute; left: 3px; bottom: 3px; font-style: normal; font-size: .58rem; padding: 0 .25rem; border-radius: 4px; background: rgb(0 0 0 / .7); color: #fff; }
.xnote { margin: 0; padding: .8rem .9rem; border-radius: 14px; font-size: 1.05rem; line-height: 1.4; background: rgb(167 112 255 / .12); border-left: 3px solid #a770ff; }
.xnote span { display: block; margin-top: .3rem; font-size: .8rem; color: var(--color-text-muted); }
.xnote span::before { content: "— "; }

/* photo viewer: tap any photo to open it big; pinch, wheel, double-tap or +/− to zoom, drag to move */
dialog.zoombox { width: 100vw; height: 100dvh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; color: #fff; }
dialog.zoombox::backdrop { background: rgb(0 0 0 / .6); }
.zoombox:not([open]) { display: none; }
.zoombox { position: fixed; inset: 0; z-index: 1000; background: rgb(0 0 0 / .92); display: flex; flex-direction: column; touch-action: none; user-select: none; }
.zoombox__stage { flex: 1; min-height: 0; overflow: hidden; display: grid; place-items: center; cursor: zoom-in; }
.zoombox--zoomed .zoombox__stage { cursor: grab; }
.zoombox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; transform-origin: center; will-change: transform; -webkit-user-drag: none; }
.zoombox__bar { display: flex; align-items: center; justify-content: center; gap: .5rem; padding: .6rem .6rem calc(.6rem + env(safe-area-inset-bottom)); }
.zoombox__bar button, .zoombox__x { min-width: 44px; height: 44px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .25); background: rgb(255 255 255 / .08); color: #fff; font-size: 1.2rem; cursor: pointer; }
.zoombox__count { color: #ccc; font-size: .85rem; min-width: 3.5rem; text-align: center; }
.zoombox__x { position: absolute; top: calc(.6rem + env(safe-area-inset-top)); right: .6rem; z-index: 1; }
.zoombox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 1; width: 44px; height: 64px; border: 0; border-radius: 12px; background: rgb(255 255 255 / .08); color: #fff; font-size: 2rem; cursor: pointer; }
.zoombox__nav--prev { left: .4rem; } .zoombox__nav--next { right: .4rem; }
/* drop a photo onto a chat to send it */
.msgs__thread.dropping .bubbles { outline: 2px dashed var(--color-highlight); outline-offset: -8px; }
.compose__photo { font-size: 1.15rem; }
.ivover { display: grid; grid-template-columns: auto 1fr; gap: .15rem .5rem; align-items: center; margin: .8rem 0 .2rem; padding: .6rem .7rem;
  border: 1px solid #ff6b6b80; border-radius: 12px; background: #ff6b6b14; }
.ivover .muted { grid-column: 2; }
.mhost { margin: .6rem 0 .8rem; padding: .7rem .85rem; border-radius: 14px; border: 1px solid var(--color-border, #333); background: rgb(255 255 255 / .03); }
.mhost p { margin: .3rem 0 0; }
.mhost--on { border-color: #22e07a80; background: #22e07a14; }
.mhost--on strong { color: #22e07a; }
.meta-eta--go .pill { min-height: 48px; font-size: 1rem; }
.hostnow { display: block; margin-top: .2rem; color: #22e07a; font-size: .82rem; }
.pclip { margin: 0 0 1rem; }
.pclip video { display: block; width: 100%; max-height: 70vh; border-radius: 16px; background: #000; }
.pclip p { margin: .4rem 0 0; }
