/* Groups: userbar, tag tile, avatars, the pill on member pages, the dashboard page and the public group page */

/* ---------- shared ---------- */
.ub { --gc: #7b95ff; position: relative; display: flex; align-items: center; justify-content: space-between; gap: 10px; width: 100%; height: 34px; padding: 0 10px; border-radius: 7px; overflow: hidden; color: #fff;
  background: linear-gradient(90deg, color-mix(in srgb, var(--gc) 32%, #000), var(--gc) 55%, color-mix(in srgb, var(--gc) 42%, #000)); background-size: cover; background-position: center;
  border: 1px solid rgba(255, 255, 255, .14); box-shadow: inset 0 0 14px rgba(0, 0, 0, .55), 0 0 24px -8px var(--gc); }
.ub::before { content: ""; position: absolute; inset: 0; pointer-events: none; background: repeating-linear-gradient(0deg, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px); mix-blend-mode: multiply; }
.ub-tag { position: relative; font-style: normal; padding: 1px 6px; border-radius: 4px; background: rgba(0, 0, 0, .55); border: 1px solid rgba(255, 255, 255, .22); font: 700 10px "Geist Mono", monospace; letter-spacing: .04em; }
.ub-name { position: relative; margin-left: auto; font: 800 12px "Geist", sans-serif; letter-spacing: .08em; text-transform: uppercase; text-shadow: 0 1px 6px rgba(0, 0, 0, .8); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ub.has-img { background-color: #0b0b0e; }
.ub.has-img .ub-tag, .ub.has-img .ub-name, .ub.has-img::before { display: none; }
.ub.big { height: 44px; border-radius: 9px; }
.ub.wide { height: 40px; }
.gt { --gc: #7b95ff; display: inline-grid; place-items: center; flex: none; min-width: 30px; height: 26px; padding: 0 6px; border-radius: 7px; font: 800 11px "Geist Mono", monospace; letter-spacing: .02em; color: #fff; text-shadow: 0 1px 4px rgba(0, 0, 0, .6);
  background: linear-gradient(135deg, var(--gc), color-mix(in srgb, var(--gc) 45%, #000)); border: 1px solid rgba(255, 255, 255, .2); box-shadow: 0 0 14px -4px var(--gc); }
.gav { display: grid; place-items: center; flex: none; border-radius: 50%; overflow: hidden; background: linear-gradient(135deg, #8a7bff, #d26bd6); color: #fff; }
.gav img { width: 100%; height: 100%; object-fit: cover; }
.gav b { font-size: 1em; font-weight: 700; }
.beta { display: inline-block; vertical-align: middle; margin-left: 8px; padding: 2px 8px; border-radius: 7px; font: 700 10.5px "Geist Mono", monospace; letter-spacing: .08em; color: #f0a35a; background: rgba(240, 163, 90, .12); border: 1px solid rgba(240, 163, 90, .35); }

/* ---------- the pill on a member's page ---------- */
.pp-grp { position: fixed; z-index: 30; top: 14px; left: 50%; transform: translateX(-50%); width: max-content; max-width: calc(100vw - 24px); }
.pp:not(.entered) .pp-grp { display: none; }
.pp-gp { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; height: 40px; padding: 0 14px 0 8px; border-radius: 999px; background: rgba(14, 14, 18, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .12); color: #fff; font: 600 14px "Geist", sans-serif; cursor: pointer; box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .9); transition: background .2s, border-color .2s; }
.pp-gp:hover, .pp-gp[aria-expanded="true"] { background: rgba(24, 24, 30, .86); border-color: rgba(255, 255, 255, .22); }
.pp-gp b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 650; }
.pp-gm { color: rgba(255, 255, 255, .6); font-weight: 500; font-size: 13.5px; white-space: nowrap; }
.pp-gx { display: inline-grid; place-items: center; min-width: 26px; height: 20px; padding: 0 6px; border-radius: 10px; background: rgba(255, 255, 255, .12); font-size: 11.5px; font-weight: 700; }
.pp-gp > .i, .pp-gp > svg { width: 15px; height: 15px; opacity: .6; transition: transform .25s cubic-bezier(.16, 1, .3, 1); flex: none; }
.pp-gp[aria-expanded="true"] > svg { transform: rotate(180deg); }
.pp-gd { position: absolute; left: 50%; top: calc(100% + 10px); transform: translateX(-50%); width: min(390px, calc(100vw - 24px)); max-height: min(70vh, 560px); overflow-y: auto; padding: 14px; border-radius: 22px; color: #fff; display: grid; gap: 12px;
  background: linear-gradient(180deg, rgba(34, 24, 32, .94), rgba(12, 12, 16, .96) 40%); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border: 1px solid rgba(255, 255, 255, .12); box-shadow: 0 40px 90px -30px rgba(0, 0, 0, .95); animation: ppGd .22s cubic-bezier(.16, 1, .3, 1); scrollbar-width: thin; }
.pp-gd[hidden] { display: none; }
@keyframes ppGd { from { opacity: 0; transform: translate(-50%, -6px) scale(.98); } }
.pp-gtabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.pp-gtabs::-webkit-scrollbar { display: none; }
.pp-gtabs button { display: inline-flex; align-items: center; gap: 8px; flex: none; height: 38px; padding: 0 12px 0 6px; border-radius: 999px; border: 1px solid transparent; background: transparent; color: rgba(255, 255, 255, .62); font: 600 13.5px "Geist", sans-serif; cursor: pointer; }
.pp-gtabs button.on { background: rgba(255, 255, 255, .09); border-color: rgba(255, 255, 255, .14); color: #fff; }
.pp-gh { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.pp-gh b { font-size: 18px; font-weight: 700; }
.pp-gh small { color: rgba(255, 255, 255, .55); font-size: 13px; }
.pp-gdsc { margin: -4px 0 0; color: rgba(255, 255, 255, .62); font-size: 13.5px; line-height: 1.45; }
.pp-gl { display: flex; align-items: center; justify-content: space-between; font: 600 11.5px "Geist Mono", monospace; letter-spacing: .08em; color: rgba(255, 255, 255, .5); }
.pp-gl a { font: 500 13px "Geist", sans-serif; letter-spacing: 0; color: rgba(255, 255, 255, .75); }
.pp-gl a:hover { color: #fff; }
.pp-gms { display: flex; gap: 8px; justify-content: space-between; }
.pp-gms a { display: grid; justify-items: center; gap: 6px; min-width: 0; flex: 1; transition: transform .2s cubic-bezier(.34, 1.4, .64, 1); }
.pp-gms a:hover { transform: translateY(-2px); }
.pp-gms small { max-width: 62px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: rgba(255, 255, 255, .8); font-size: 12px; }
.pp-gdc { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: rgba(88, 101, 242, .12); border: 1px solid rgba(88, 101, 242, .35); color: #fff; }
.pp-gdi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; overflow: hidden; background: #5865f2; flex: none; }
.pp-gdi svg { width: 22px; height: 22px; } .pp-gdi img { width: 100%; height: 100%; object-fit: cover; }
.pp-gdt { flex: 1; min-width: 0; }
.pp-gdt b { display: block; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pp-gdt small { display: block; color: rgba(255, 255, 255, .6); font-size: 12.5px; }
.pp-gj { padding: 6px 14px; border-radius: 9px; background: #5865f2; font-size: 13px; font-weight: 650; }
.pp-gopen { display: flex; align-items: center; justify-content: center; gap: 6px; height: 48px; border-radius: 14px; font-weight: 650; font-size: 15px; color: #fff; background: linear-gradient(90deg, rgba(255, 255, 255, .05), rgba(255, 255, 255, .1)); border: 1px solid rgba(255, 255, 255, .12); transition: background .2s; }
.pp-gopen:hover { background: rgba(255, 255, 255, .14); }
.pp-gopen svg { width: 16px; height: 16px; }

/* ---------- dashboard page ---------- */
.gp-grid { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 18px; align-items: start; }
.gp-rail { padding: 10px; border-radius: 18px; border: 1px solid var(--line-2); background: var(--ink-2); position: sticky; top: 76px; }
.gp-l { padding: 8px 10px; font: 600 11px var(--f-mono); letter-spacing: .1em; color: var(--text-3); }
.gp-sep { height: 1px; margin: 2px 4px 8px; background: var(--line-2); }
.gp-it { display: flex; align-items: center; gap: 12px; width: 100%; padding: 6px 10px 6px 6px; border: 0; border-radius: 14px; background: none; color: var(--text-2); font: 500 14px inherit; cursor: pointer; text-align: left; }
.gp-it:hover { background: var(--ink-3); color: var(--text); }
.gp-it.on { background: var(--ink-4); color: var(--text); }
.gp-ic { display: grid; place-items: center; flex: none; width: 36px; height: 36px; border-radius: 50%; background: var(--ink-4); }
.gp-ic.dashed { background: none; border: 1px dashed var(--line-3); }
.gp-ic svg { width: 17px; height: 17px; }
.gp-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gp-it > svg { width: 14px; height: 14px; color: #f0c05a; }
.gp-it small { color: var(--text-3); font-size: 11.5px; }
.gp-main { padding: 22px; margin: 0; }
.gp-list { display: grid; gap: 10px; }
.gp-row { display: flex; align-items: center; gap: 16px; padding: 10px 14px 10px 10px; border: 1px solid var(--line-2); border-radius: 16px; background: var(--ink-1); }
.gp-bar { flex: none; width: 260px; padding: 0; border: 0; background: none; cursor: pointer; }
.gp-info { flex: 1; min-width: 0; }
.gp-info b { display: block; font-size: 15px; }
.gp-info small { color: var(--text-3); font-size: 13px; }
.gp-top { display: grid; gap: 12px; }
.gp-meta small { color: var(--text-3); font-size: 13px; }
.gp-h4 { margin: 22px 0 10px; font-size: 13px; font-weight: 600; color: var(--text-2); }
.gp-ms { display: grid; gap: 6px; }
.gp-m { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--line); }
.gp-mn { flex: 1; min-width: 0; }
.gp-mn b { display: block; font-size: 14px; font-weight: 550; }
.gp-mn small { color: var(--text-3); font-size: 12.5px; }
.gp-form { display: grid; gap: 16px; }
.gp-prev .ub { height: 48px; }
@media (max-width: 860px) { .gp-grid { grid-template-columns: 1fr; } .gp-rail { position: static; } .gp-row { flex-wrap: wrap; } .gp-bar { width: 100%; } }

/* ---------- public group page ---------- */
.gpg { padding: 56px 0 90px; }
.gpg .wrap { max-width: 860px; }
.gpg-hero { display: grid; justify-items: center; text-align: center; gap: 14px; }
.gpg-hero .ub { max-width: 560px; }
.gpg-hero h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.035em; }
.gpg-d { max-width: 52ch; color: var(--text-2); }
.gpg-meta { display: flex; align-items: center; gap: 12px; color: var(--text-3); font-size: 14px; flex-wrap: wrap; justify-content: center; }
.gpg-meta i { width: 3px; height: 3px; border-radius: 50%; background: var(--text-4); }
.gpg-meta a { color: var(--text-2); }
.gpg-act { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-top: 4px; }
.gpg-dc { display: flex; align-items: center; gap: 14px; margin: 34px auto 0; max-width: 520px; padding: 12px 14px; border-radius: 18px; background: rgba(88, 101, 242, .1); border: 1px solid rgba(88, 101, 242, .35); color: var(--text); }
.gpg-dci { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; overflow: hidden; background: #5865f2; color: #fff; flex: none; }
.gpg-dci svg { width: 24px; height: 24px; } .gpg-dci img { width: 100%; height: 100%; object-fit: cover; }
.gpg-dct { flex: 1; min-width: 0; }
.gpg-dct b { display: block; font-size: 15px; }
.gpg-dct small { color: var(--text-3); font-size: 13px; }
.gpg-h { margin: 44px 0 16px; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.gpg-h span { color: var(--text-3); font-weight: 500; font-size: 15px; }
.gpg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px; }
.gpg-m { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 16px; background: var(--ink-2); border: 1px solid var(--line-2); transition: border-color .2s, transform .25s cubic-bezier(.34, 1.4, .64, 1); }
.gpg-m:hover { border-color: var(--line-3); transform: translateY(-2px); }
.gpg-m b { display: block; font-size: 14.5px; }
.gpg-m small { color: var(--text-3); font-size: 12.5px; }
