/* DU Chat — community hangout */
:root {
  --bg-0: #0c0d10;
  --bg-1: #14161c;
  --bg-2: #1b1e26;
  --bg-3: #232833;
  --bg-4: #2c3240;
  --line: rgba(255, 255, 255, 0.07);
  --accent: #e8a020;
  --accent-2: #f0b84a;
  --accent-dim: rgba(232, 160, 32, 0.16);
  --online: #3dcc86;
  --idle: #e8b84a;
  --offline: #6b7280;
  --danger: #f07178;
  --text: #f4f1ea;
  --text-2: #d2cdc3;
  --text-3: #9a9488;
  --muted: #7a746a;
  --link: #7ec8ff;
  --radius: 14px;
  --rail: 72px;
  --side: 252px;
  --title: 36px;
  --font: "Outfit", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; }
body {
  font-family: var(--font);
  background: var(--bg-0);
  color: var(--text);
  overflow: hidden;
  user-select: none;
}

#titlebar {
  height: var(--title);
  display: flex;
  align-items: center;
  background: var(--bg-0);
  border-bottom: 1px solid var(--line);
  z-index: 20;
  position: relative;
}
.tb-left {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-width: 180px;
}
.tb-logo {
  width: 22px; height: 22px;
  border-radius: 7px;
  background: linear-gradient(160deg, #f0b84a, #c48412);
  color: #1a1306;
  font-size: 9px;
  font-weight: 800;
  display: grid;
  place-items: center;
}
.tb-name { font-size: 13px; font-weight: 650; color: var(--text-2); }
.tb-pill {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(232, 160, 32, 0.22);
  padding: 2px 7px;
  border-radius: 999px;
}
.tb-drag { flex: 1; height: 100%; -webkit-app-region: drag; app-region: drag; }
.tb-win { display: flex; -webkit-app-region: no-drag; }
.tb-win button {
  width: 42px; height: var(--title);
  border: 0; background: transparent;
  color: var(--text-3); font-size: 12px; cursor: pointer;
}
.tb-win button:hover { background: var(--bg-3); color: #fff; }
.tb-win button.close:hover { background: #da373c; color: #fff; }

.screen { height: calc(100% - var(--title)); }
.screen[hidden],
#login[hidden],
#app[hidden] { display: none !important; }
#login:not([hidden]) { display: grid; }
#app:not([hidden]) { display: grid; }

/* ── Login ── */
#login {
  position: relative;
  place-items: center;
  background: var(--bg-1);
}
.login-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(800px 380px at 12% 0%, rgba(232, 160, 32, 0.18), transparent 62%),
    radial-gradient(640px 360px at 92% 110%, rgba(80, 140, 255, 0.08), transparent 55%),
    linear-gradient(180deg, #0c0d10, #161820 50%, #0c0d10);
}
.login-card {
  position: relative;
  width: min(440px, calc(100% - 32px));
  background: rgba(27, 30, 38, 0.92);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 32px 32px 26px;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}
.login-brand { display: flex; gap: 14px; align-items: center; margin-bottom: 24px; }
.login-kicker {
  margin: 0 0 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
}
.login-brand .mark {
  width: 56px; height: 56px; border-radius: 18px;
  background: linear-gradient(160deg, #f0b84a, #c48412);
  color: #1a1306;
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
  box-shadow: 0 10px 24px rgba(232, 160, 32, 0.28);
}
.login-brand h1 { margin: 0; font-size: 24px; letter-spacing: -0.03em; }
.login-brand p { margin: 4px 0 0; color: var(--muted); font-size: 13px; line-height: 1.4; }
#loginForm label { display: block; margin-bottom: 14px; }
#loginForm span {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
#loginForm input {
  width: 100%; height: 42px;
  border: 1px solid var(--line); border-radius: 10px;
  background: #101217; color: var(--text);
  padding: 0 12px; font: inherit; outline: none;
  user-select: text;
}
#loginForm input:focus { border-color: rgba(232, 160, 32, 0.45); box-shadow: 0 0 0 3px var(--accent-dim); }
.btn-primary {
  width: 100%; height: 44px; margin-top: 6px;
  border: 0; border-radius: 10px;
  background: linear-gradient(180deg, #f0b84a, #d49216);
  color: #1a1306;
  font: 700 15px var(--font); cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.05); }
.btn-primary:disabled { opacity: .65; cursor: wait; }
.error { color: var(--danger); font-size: 13px; margin: 0 0 10px; }
.login-hint { margin: 16px 0 0; color: var(--muted); font-size: 12px; line-height: 1.45; }

/* ── App ── */
#app {
  grid-template-columns: var(--rail) var(--side) 1fr var(--side);
  background: var(--bg-2);
}

.rail {
  background: var(--bg-0);
  display: flex; flex-direction: column; align-items: center;
  padding: 14px 0; gap: 10px;
}
.guild {
  width: 48px; height: 48px; border: 0;
  border-radius: 16px;
  background: var(--bg-3); color: #fff;
  font-weight: 800; font-size: 15px;
  cursor: pointer; position: relative;
  transition: border-radius .15s, transform .15s;
  display: grid; place-items: center;
}
.guild.active, .guild:hover {
  border-radius: 14px;
  background: linear-gradient(160deg, #f0b84a, #c48412);
  color: #1a1306;
}
.guild.active::before {
  content: "";
  position: absolute; left: -16px; width: 4px; height: 28px;
  background: var(--accent); border-radius: 0 4px 4px 0;
}
.guild.ghost {
  background: transparent;
  border: 1px dashed rgba(255,255,255,.12);
  color: var(--online); font-size: 22px; font-weight: 400;
  cursor: pointer; opacity: .7;
}
.guild.ghost:hover { opacity: 1; background: var(--bg-3); color: var(--accent); }
.guild.ghost[hidden] { display: none !important; }
.rail-sep { width: 28px; height: 1px; background: var(--line); }

.channels {
  background: var(--bg-1);
  display: flex; flex-direction: column; min-width: 0;
  border-right: 1px solid var(--line);
}
.guild-head {
  min-height: 64px; padding: 14px 16px 12px;
  border-bottom: 1px solid var(--line);
}
.guild-head strong { display: block; font-size: 16px; letter-spacing: -0.02em; }
.guild-head em {
  display: block; margin-top: 2px;
  font-style: normal; font-size: 12px; color: var(--accent);
  font-weight: 600;
}
.chan-scroll { flex: 1; overflow: auto; padding: 12px 10px; }
.cat {
  padding: 6px 10px 8px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.cat-row {
  display: flex; align-items: center; justify-content: space-between;
  padding-right: 4px;
}
.add-room {
  width: 24px; height: 24px; font-size: 16px; font-weight: 600;
  color: var(--accent);
}
.add-room[hidden] { display: none !important; }
.chan {
  width: 100%; display: flex; align-items: center; gap: 8px;
  border: 0; background: transparent; color: var(--text-3);
  height: 38px; padding: 0 8px; border-radius: 10px;
  font: 550 14px var(--font); cursor: pointer; text-align: left;
}
.chan .hash {
  width: 26px; height: 26px;
  border-radius: 8px;
  background: var(--bg-3);
  color: var(--muted);
  font-weight: 700; font-size: 14px;
  display: grid; place-items: center;
}
.chan:hover { background: var(--bg-3); color: var(--text); }
.chan.active { background: var(--bg-3); color: var(--text); }
.chan.active .hash { background: var(--accent-dim); color: var(--accent); }
.chan.unread { color: var(--text); font-weight: 700; }
.chan .badge {
  margin-left: auto;
  min-width: 18px; height: 18px; padding: 0 6px;
  border-radius: 9px; background: var(--accent); color: #1a1306;
  font-size: 11px; font-weight: 800; display: grid; place-items: center;
}
.chan-row { position: relative; }
.chan-row .chan-del {
  position: absolute; right: 6px; top: 8px; z-index: 2;
  width: 22px; height: 22px; border: 0; border-radius: 6px;
  background: transparent; color: var(--muted);
  font-size: 14px; cursor: pointer; display: none; place-items: center;
}
.chan-row:hover .chan-del { display: grid; }
.chan-row .chan-del:hover { background: rgba(240,113,120,.18); color: var(--danger); }
.chan-row .chan .badge { margin-right: 18px; }

.me {
  height: 58px; background: #101217;
  display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-top: 1px solid var(--line);
  cursor: pointer;
}
.me:hover { background: #161920; }
.avatar {
  width: 34px; height: 34px; border-radius: 11px;
  display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff;
  position: relative; flex-shrink: 0;
}
.avatar .dot, .mem .dot {
  position: absolute; right: -2px; bottom: -2px;
  width: 11px; height: 11px; border-radius: 50%;
  border: 2px solid #101217;
  box-sizing: border-box;
}
.dot.online { background: var(--online); }
.dot.idle { background: var(--idle); }
.dot.offline { background: var(--offline); }
.me-meta { flex: 1; min-width: 0; line-height: 1.15; }
.me-meta strong { display: block; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.me-meta em { font-style: normal; font-size: 11px; color: var(--online); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; }
.icon-btn {
  width: 32px; height: 32px; border: 0; border-radius: 8px;
  background: transparent; color: var(--text-3); cursor: pointer; font-size: 14px;
}
.icon-btn:hover { background: var(--bg-3); color: #fff; }

.chat { display: flex; flex-direction: column; min-width: 0; background: var(--bg-2); }
.chat-head {
  min-height: 64px; padding: 10px 18px;
  display: flex; align-items: center; gap: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(232,160,32,.05), transparent);
}
.chat-head-icon {
  width: 36px; height: 36px; border-radius: 11px;
  background: var(--accent-dim); color: var(--accent);
  display: grid; place-items: center;
  font-weight: 800; font-size: 18px;
}
.chat-head-copy { flex: 1; min-width: 0; }
.chat-head h2 { margin: 0; font-size: 16px; letter-spacing: -0.02em; }
.chat-head p {
  margin: 2px 0 0;
  color: var(--muted); font-size: 12px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.chat-head-meta {
  font-size: 12px; font-weight: 650; color: var(--online);
  background: rgba(61, 204, 134, 0.1);
  border: 1px solid rgba(61, 204, 134, 0.18);
  padding: 5px 10px; border-radius: 999px;
  white-space: nowrap;
}

.welcome {
  margin: 22px 22px 8px;
  padding: 22px 22px 18px;
  border-radius: 16px;
  background:
    radial-gradient(420px 160px at 0% 0%, rgba(232,160,32,.12), transparent 70%),
    var(--bg-1);
  border: 1px solid var(--line);
}
.welcome[hidden] { display: none !important; }
.welcome-mark {
  width: 44px; height: 44px; border-radius: 14px;
  background: var(--accent); color: #1a1306;
  display: grid; place-items: center;
  font-size: 22px; font-weight: 800;
  margin-bottom: 12px;
}
.welcome h3 { margin: 0; font-size: 22px; letter-spacing: -0.03em; }
.welcome p { margin: 6px 0 0; color: var(--text-3); font-size: 14px; line-height: 1.45; }

.messages {
  flex: 1; overflow: auto; padding: 8px 0 10px;
  user-select: text;
}
.msg {
  display: grid;
  grid-template-columns: 68px 1fr;
  padding: 3px 18px 3px 0;
}
.msg:hover { background: rgba(255,255,255,.025); }
.msg.group { margin-top: 12px; }
.msg.is-me .text { color: #efe8d8; }
.msg .av {
  width: 38px; height: 38px; border-radius: 12px;
  margin: 2px auto 0; display: grid; place-items: center;
  color: #fff; font-weight: 700; font-size: 13px;
}
.msg.compact .av { visibility: hidden; height: 0; }
.msg .body { min-width: 0; padding: 2px 0; }
.msg .meta { display: flex; align-items: baseline; gap: 8px; }
.msg .author { font-weight: 650; font-size: 14px; color: var(--text); }
.msg .author.admin { color: #f0b84a; }
.msg .author.mod { color: #7ec8ff; }
.msg .author.dev { color: #8ee0b0; }
.msg .rank-tag {
  font-size: 10px; font-weight: 700; letter-spacing: .04em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim);
  border-radius: 999px; padding: 1px 6px;
}
.msg .time { font-size: 11px; color: var(--muted); }
.msg .text {
  margin: 3px 0 0; font-size: 15px; line-height: 1.45; color: var(--text-2);
  white-space: pre-wrap; word-wrap: break-word;
}
.msg .text a { color: var(--link); }
.msg.compact .text { margin: 0; }
.day-sep {
  display: flex; align-items: center; gap: 12px;
  margin: 18px 18px 10px; color: var(--muted); font-size: 11px; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase;
}
.day-sep::before, .day-sep::after {
  content: ""; flex: 1; height: 1px; background: var(--line);
}
.empty-room {
  text-align: center;
  color: var(--muted);
  padding: 28px 16px;
  font-size: 14px;
}

.typing {
  min-height: 22px; padding: 0 22px 4px;
  font-size: 12px; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.typing[hidden] { display: none !important; }
.typing-dots { display: inline-flex; gap: 3px; }
.typing-dots i {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: bounce 1s infinite ease-in-out;
}
.typing-dots i:nth-child(2) { animation-delay: .15s; }
.typing-dots i:nth-child(3) { animation-delay: .3s; }
@keyframes bounce {
  0%, 80%, 100% { transform: translateY(0); opacity: .4; }
  40% { transform: translateY(-3px); opacity: 1; }
}

.composer { padding: 0 18px 10px; }
.composer-box {
  background: var(--bg-3);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 11px 16px;
}
.composer-box:focus-within { border-color: rgba(232,160,32,.35); }
#input {
  width: 100%; border: 0; background: transparent;
  color: var(--text); font: 15px/1.4 var(--font);
  resize: none; outline: none; max-height: 160px;
  user-select: text;
}
.composer-hint {
  margin: 6px 4px 0;
  font-size: 11px; color: var(--muted);
}
.composer-hint kbd {
  display: inline-block;
  padding: 0 5px;
  border-radius: 4px;
  border: 1px solid var(--line);
  background: var(--bg-1);
  font-size: 10px;
}

.members {
  background: var(--bg-1);
  border-left: 1px solid var(--line);
}
.mem-scroll { padding: 16px 10px; overflow: auto; height: 100%; }
.mem-cat {
  padding: 10px 8px 6px;
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--muted);
}
.mem {
  display: flex; align-items: center; gap: 8px;
  min-height: 46px; padding: 6px 8px; border-radius: 10px;
  cursor: pointer;
}
.mem:hover { background: var(--bg-3); }
.mem-info { flex: 1; min-width: 0; }
.mem .name { display: block; font-size: 14px; font-weight: 550; color: var(--text-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem .st { display: block; font-size: 11px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mem.offline { opacity: .55; }
.mem .role {
  margin-left: auto;
  font-size: 10px; font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.04em;
  flex-shrink: 0;
}

/* ── Modal ── */
.modal {
  position: fixed; inset: 0;
  background: rgba(6, 7, 10, 0);
  display: grid; place-items: center;
  z-index: 40; padding: 20px;
  transition: background .22s ease;
}
.modal.is-open { background: rgba(6, 7, 10, 0.68); backdrop-filter: blur(8px); }
.modal[hidden] { display: none !important; }
.modal-card {
  width: min(420px, 100%);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow: 0 28px 80px rgba(0,0,0,.55);
  transform: translateY(12px) scale(.97);
  opacity: 0;
  transition: transform .28s cubic-bezier(.2,.8,.2,1), opacity .22s ease;
  overflow: hidden;
}
.modal.is-open .modal-card {
  transform: none;
  opacity: 1;
}
.modal-card.sheet { width: min(440px, 100%); }
.modal-card.wide { width: min(520px, 100%); }
.modal-card.bare .modal-head { position: absolute; inset: 0 0 auto auto; z-index: 3; padding: 10px 10px 0 0; }
.modal-card.bare .modal-head h3 { display: none; }
.modal-card.bare .modal-head .icon-btn {
  background: rgba(12,13,16,.55);
  color: #fff;
  backdrop-filter: blur(8px);
}
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 16px 0;
}
.modal-head h3 { margin: 0; font-size: 17px; letter-spacing: -0.02em; }
.modal-body { padding: 16px 16px 18px; }
.field { display: block; margin-bottom: 12px; }
.field span {
  display: block; font-size: 11px; font-weight: 700;
  letter-spacing: .05em; text-transform: uppercase;
  color: var(--text-3); margin-bottom: 6px;
}
.field input, .field textarea, .field select {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  background: #101217; color: var(--text);
  padding: 10px 12px; font: inherit; outline: none;
  user-select: text;
}
.field textarea { min-height: 72px; resize: vertical; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: rgba(232, 160, 32, 0.45);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.field .hint { margin: 6px 0 0; font-size: 12px; color: var(--muted); text-transform: none; letter-spacing: 0; font-weight: 500; }
.modal-actions { display: flex; gap: 8px; margin-top: 16px; }
.modal-actions .btn-primary { width: auto; height: 40px; padding: 0 18px; margin: 0; flex: 1; }
.btn-ghost {
  height: 40px; padding: 0 14px; border-radius: 10px;
  border: 1px solid var(--line); background: transparent;
  color: var(--text-2); font: 600 14px var(--font); cursor: pointer;
}
.btn-ghost:hover { background: var(--bg-3); color: #fff; }
.btn-danger {
  height: 40px; padding: 0 14px; border-radius: 10px; border: 0;
  background: rgba(240,113,120,.16); color: var(--danger);
  font: 700 14px var(--font); cursor: pointer;
}
.btn-danger:hover { background: rgba(240,113,120,.28); }
.profile-top {
  display: flex; gap: 12px; align-items: center; margin-bottom: 16px;
}
.profile-top .avatar { width: 48px; height: 48px; border-radius: 14px; font-size: 16px; }
.profile-top strong { display: block; font-size: 16px; }
.profile-top em { font-style: normal; font-size: 12px; color: var(--muted); }
.rank-badge {
  display: inline-block; margin-top: 4px;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border-radius: 999px; padding: 2px 8px;
}
.modal-err { color: var(--danger); font-size: 13px; margin: 0 0 8px; }
.modal-err[hidden] { display: none !important; }

.c0 { background: #c48412; }
.c1 { background: #3dcc86; }
.c2 { background: #e8b84a; color: #1a1306 !important; }
.c3 { background: #eb6aa0; }
.c4 { background: #e07070; }
.c5 { background: #5aa6ff; }
.c6 { background: #b48cff; }
.c7 { background: #46c4b0; }

::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: #0b0c10; border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

@media (max-width: 980px) {
  #app { grid-template-columns: var(--rail) 200px 1fr 0; }
  .members { display: none; }
  .chat-head-meta { display: none; }
}

/* ── Motion ── */
.chan, .mem, .guild, .icon-btn, .btn-primary, .btn-ghost {
  transition: background .15s ease, color .15s ease, transform .15s ease, opacity .15s ease;
}
.mem:hover { transform: translateX(2px); }

/* ── Profile card ── */
.pcard { position: relative; }
.pcard-banner {
  height: 112px;
  background:
    radial-gradient(420px 140px at 12% 0%, rgba(232,160,32,.38), transparent 62%),
    radial-gradient(280px 120px at 90% 120%, rgba(80,140,255,.12), transparent 55%),
    linear-gradient(180deg, #2a2418, #161820);
  position: relative;
  overflow: hidden;
}
.pcard-banner .shine {
  position: absolute; inset: 0;
  background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.12) 48%, transparent 66%);
  animation: bannerSweep 5s ease-in-out infinite;
}
.pcard-banner .dots {
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.09) 1px, transparent 1px);
  background-size: 14px 14px;
  opacity: .35;
}
@keyframes bannerSweep {
  0%, 40% { transform: translateX(-40%); }
  100% { transform: translateX(40%); }
}
.pcard-avwrap {
  margin: -36px 22px 0;
  position: relative;
  width: 76px;
}
.pcard .avatar.xl {
  width: 76px; height: 76px; border-radius: 22px;
  font-size: 22px; font-weight: 800;
  border: 4px solid var(--bg-2);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}
.pcard .avatar.xl .dot {
  width: 16px; height: 16px;
  right: 0; bottom: 0;
  border-width: 3px;
  border-color: var(--bg-2);
}
.pcard .avatar.xl.online-ring::after {
  content: "";
  position: absolute; inset: -6px;
  border-radius: 26px;
  border: 1px solid rgba(61,204,134,.35);
  animation: ringPulse 2.2s ease-out infinite;
}
@keyframes ringPulse {
  0% { transform: scale(.92); opacity: .8; }
  100% { transform: scale(1.12); opacity: 0; }
}
.pcard-id { padding: 10px 22px 0; }
.pcard-id h3 {
  margin: 0; font-size: 22px; letter-spacing: -.03em; line-height: 1.15;
}
.pcard-id .handle { margin: 3px 0 0; color: var(--muted); font-size: 13px; }
.pcard-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.rank-badge {
  display: inline-flex; align-items: center;
  font-size: 10px; font-weight: 800; letter-spacing: .06em;
  text-transform: uppercase; color: var(--accent);
  background: var(--accent-dim); border-radius: 999px; padding: 3px 8px;
}
.status-chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; font-weight: 650; color: var(--online);
  background: rgba(61,204,134,.1);
  border-radius: 999px; padding: 3px 8px;
}
.status-chip.idle { color: var(--idle); background: rgba(232,184,74,.12); }
.status-chip.offline { color: var(--muted); background: rgba(255,255,255,.05); }
.status-chip i {
  width: 7px; height: 7px; border-radius: 50%; background: currentColor;
}
.pcard-status {
  margin: 14px 22px 0;
  font-size: 15px; font-weight: 600; color: var(--text);
  line-height: 1.35;
}
.pcard-status:empty, .pcard-bio:empty { display: none; }
.pcard-bio {
  margin: 6px 22px 0;
  font-size: 13px; color: var(--text-3); line-height: 1.45;
}
.pcard-facts {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 8px; margin: 16px 22px 18px;
}
.pcard-facts b { display: block; font-size: 12px; font-weight: 700; }
.pcard-facts span { display: block; margin-top: 2px; font-size: 11px; color: var(--muted); }
.pcard { padding-bottom: 8px; }
.pcard-edit { padding: 0 22px 20px; border-top: 1px solid var(--line); margin-top: 4px; padding-top: 16px; }
.pcard-edit .field { margin-bottom: 10px; }
.pcard-live {
  font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--accent); margin: 0 0 10px;
}

.members { display: flex; flex-direction: column; }
.mem-scroll { flex: 1; min-height: 0; }

.inv-gif {
  display: block;
  margin-top: 18px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  background: #fff;
  line-height: 0;
  transition: transform .2s ease, border-color .2s ease;
}
.inv-gif img {
  width: 100%;
  height: auto;
  display: block;
}
.inv-gif:hover { transform: translateY(-1px); border-color: rgba(232,160,32,.35); }
.inv-gif.dock {
  margin: 10px;
  margin-top: 0;
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
  }
  .modal-card { opacity: 1; transform: none; }
}
