/* Member web app. Builds on /admin/admin.css (same tokens, panels, buttons, forms). */
a.brand { text-decoration: none; }
.hero { max-width: 420px; margin: 8vh auto 0; padding: 0 20px 60px; }
.hero .mark { height: 64px; }
.hero h1 { font-size: 44px; }
.switch { margin-top: 16px; font-size: 14.5px; color: var(--muted); }
.list { display: grid; gap: 10px; margin-bottom: 22px; }
.item { display: flex; align-items: center; gap: 14px; width: 100%; text-align: left; background: linear-gradient(135deg, var(--bg3), var(--bg2)); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; color: var(--cream2); letter-spacing: 0; text-transform: none; font: 400 16px 'Barlow', sans-serif; cursor: pointer; }
.item:hover { border-color: var(--gold2); }
.item b { color: var(--cream); font-weight: 700; display: block; }
.item small { color: var(--muted); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 56vw; }
.item .grow { flex: 1; min-width: 0; }
.avatar { flex: none; width: 42px; height: 42px; border-radius: 50%; background: rgba(165,124,63,.16); color: var(--gold2); display: grid; place-items: center; font: 400 18px 'Anton', sans-serif; }
.badge { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--bg); font-weight: 700; font-size: 12px; border-radius: 99px; padding: 2px 8px; }
.dots span { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--line); color: var(--muted); font-size: 11px; margin-left: 4px; }
.dots span.on { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--bg); }
.member { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid rgba(201,164,92,.1); }
.member .grow { flex: 1; }
.code { font: 400 30px 'Anton', sans-serif; letter-spacing: .12em; color: var(--gold3); }

/* chat */
.chat { display: flex; flex-direction: column; height: calc(100vh - 150px); height: calc(100dvh - 150px); min-height: 360px; }
.chat__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.chat__head h2 { margin: 0; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat__log { flex: 1; overflow-y: auto; padding: 8px 4px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.day { align-self: center; font-size: 10.5px; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); margin: 8px 0 2px; }
.msg { max-width: min(76%, 560px); align-self: flex-start; position: relative; }
.msg.mine { align-self: flex-end; }
.msg .from { font-size: 12px; font-weight: 700; color: var(--gold2); margin: 0 0 2px 12px; }
.msg .bubble { background: var(--bg3); border: 1px solid var(--line); border-radius: 17px; padding: 9px 13px; color: var(--cream); white-space: pre-wrap; word-break: break-word; }
.msg.mine .bubble { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: var(--bg); border-color: transparent; }
.msg.gone .bubble { background: none; color: var(--muted); font-style: italic; }
.msg.meet .bubble { background: linear-gradient(135deg, var(--bg3), var(--bg2)); color: var(--cream); border-color: rgba(201,164,92,.55); }
.msg .meta { font-size: 10.5px; color: var(--muted); margin: 2px 12px 0; display: flex; gap: 10px; }
.msg.mine .meta { justify-content: flex-end; }
.msg .meta button { border: 0; background: none; padding: 0; font-size: 10.5px; letter-spacing: .04em; color: var(--muted); text-transform: none; opacity: 0; }
.msg:hover .meta button, .msg:focus-within .meta button { opacity: 1; }
.msg .meta button:hover { color: var(--gold2); }
.chat__form { display: flex; gap: 10px; align-items: flex-end; padding-top: 10px; }
.chat__form textarea { min-height: 46px; max-height: 140px; margin: 0; border-radius: 20px; resize: none; }
.chat__form button { border-radius: 50%; width: 46px; height: 46px; padding: 0; flex: none; font-size: 18px; letter-spacing: 0; }
.chat__note { color: var(--muted); padding: 12px 0; }

/* video */
#meet { position: fixed; inset: 0; z-index: 20; background: #000; display: flex; flex-direction: column; }
.meet__bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 14px; color: var(--cream); font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.meet__bar .danger { background: var(--danger); color: #fff; border: 0; }
#meetFrame { flex: 1; width: 100%; border: 0; }
dialog { background: var(--bg2); color: var(--cream2); border: 1px solid var(--line); border-radius: 14px; padding: 24px; max-width: 520px; width: calc(100% - 40px); }
dialog::backdrop { background: rgba(0,0,0,.7); }
dialog ol { padding-left: 20px; } dialog li { margin-bottom: 8px; }
@media (max-width: 640px) { .who #who { display: none; } .chat { height: calc(100dvh - 190px); } .msg .meta button { opacity: 1; } }
