/* Explicitly preserve the HTML hidden state for the full-screen modal layer. */
.modal-backdrop[hidden] {
  display: none;
}

.account-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--line); margin: 0 0 18px; }
.favorite-button { float: right; margin-top: -21px; margin-right: 54px; border: 0; background: transparent; color: #9aa5b2; font-size: 20px; line-height: 20px; }.favorite-button:hover,.favorite-button.active { color: #d59630; }
.room-role { background: #e4f2ed !important; color: #25735b !important; }
.admin-users { display: grid; gap: 10px; max-height: 420px; overflow: auto; }.admin-user { display: grid; grid-template-columns: minmax(0, 1fr) 106px auto; align-items: center; gap: 9px; padding: 10px; border: 1px solid var(--line); border-radius: 6px; }.admin-user b,.admin-user small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }.admin-user small { margin-top: 3px; color: var(--muted); font-size: 12px; }.admin-user input { min-width: 0; padding: 8px; border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--ink); }.admin-user span { display: flex; gap: 6px; }.admin-user button { border: 1px solid var(--brand); border-radius: 5px; background: var(--brand); color: #fff; padding: 8px; font-size: 12px; font-weight: 700; }.admin-user .admin-ban-button { border-color: #e6b9bd; background: #fff6f6; color: #aa4050; }@media(max-width:520px){.admin-user{grid-template-columns:1fr 90px}.admin-user span{grid-column:1 / -1}}
.admin-reports { display: grid; gap: 10px; max-height: 440px; overflow: auto; }.admin-report { padding: 12px; border: 1px solid var(--line); border-radius: 6px; }.admin-report header,.admin-report footer { display: flex; justify-content: space-between; align-items: center; gap: 10px; }.admin-report b { font-size: 14px; }.admin-report small { color: var(--muted); font-size: 12px; }.admin-report p { margin: 9px 0; color: var(--ink); font-size: 13px; line-height: 1.55; white-space: pre-wrap; }.report-status { border-radius: 4px; padding: 3px 6px; background: #fff4d6; color: #846117; font-size: 12px; }.report-status.handled { background: #e3f4eb; color: #22714e; }.report-status.dismissed { background: #f0f2f4; color: #637080; }.admin-report button { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); padding: 6px 8px; font-size: 12px; }.admin-report button:first-child { border-color: var(--brand); color: var(--brand); }.admin-report button:disabled { opacity: .55; cursor: default; }
.admin-report .admin-close-room { margin-left: 6px; border-color: #e6b9bd; color: #aa4050; }
.account-tabs button { border: 0; border-bottom: 2px solid transparent; background: transparent; color: var(--muted); padding: 0 1px 9px; font-weight: 700; }
.account-tabs button.active { border-color: var(--brand); color: var(--brand); }
.account-note { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 2px 0 0; }
.account-summary { display: flex; align-items: center; gap: 13px; padding: 14px 0 22px; }.account-avatar { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: #dfe7ff; color: #435290; font-weight: 800; font-size: 18px; }.account-summary b,.account-summary small { display: block; }.account-summary small { margin-top: 4px; color: var(--muted); font-size: 12px; }
.account-points { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -8px 0 18px; padding: 11px 12px; border: 1px solid #d9e8e2; border-radius: 6px; background: #f4faf7; color: var(--muted); font-size: 13px; }.account-points > span { min-width: 0; }.account-points b { margin-left: 6px; color: var(--brand); font-size: 16px; }.account-points small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }.account-points .secondary { padding: 7px 10px; font-size: 12px; }.account-points button:disabled { opacity: .65; cursor: default; }
.points-history { display: grid; gap: 0; max-height: 360px; overflow: auto; }.point-row { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--line); }.point-row:last-child { border-bottom: 0; }.point-row b,.point-row small { display: block; }.point-row small { margin-top: 3px; color: var(--muted); font-size: 12px; }.point-row strong { color: var(--brand); font-size: 15px; }
.avatar.has-image,.account-avatar.has-image { color: transparent; background-position: center; background-size: cover; }.avatar-hint { margin: -8px 0 0; color: var(--muted); font-size: 12px; line-height: 1.5; }.avatar-preview { display: grid; place-items: center; width: 70px; height: 70px; overflow: hidden; border: 1px dashed var(--line); border-radius: 50%; color: var(--muted); background: var(--bg); font-size: 12px; background-position: center; background-size: cover; }
.request-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }
.request-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.request-row:last-child { border-bottom: 0; }.request-row span { display: flex; gap: 6px; }.request-row button { border: 1px solid var(--line); border-radius: 5px; background: var(--surface); color: var(--muted); padding: 5px 8px; font-size: 12px; }.request-row button:first-child { border-color: var(--brand); background: var(--brand); color: #fff; }
.member-kick,.member-mute,.member-seat-leave,.danger-button { border: 1px solid #e6b9bd; border-radius: 5px; background: var(--surface); color: #aa4050; padding: 5px 8px; font-size: 12px; }.member-kick,.member-mute,.member-seat-leave { margin-left: 8px; }.member-mute { border-color: #d9c38f; color: #8b6c15; }.member-seat-leave { border-color: #9dbbc6; color: #397080; }.danger-button { background: #fff6f6; }
.member-profile { margin-left: auto; border: 0; background: transparent; color: var(--brand); font-size: 12px; cursor: pointer; }.member-profile + .member-seat-leave,.member-profile + .member-mute { margin-left: 8px; }.public-profile { display: flex; align-items: center; gap: 12px; padding: 10px 0; }.public-profile-avatar { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; background: #dfe7ff; color: #435290; background-position: center; background-size: cover; font-size: 19px; font-weight: 800; }.public-profile-avatar.has-image { color: transparent; }.public-profile b,.public-profile small { display: block; }.public-profile small { margin-top: 5px; color: var(--muted); font-size: 12px; }
.report-button { border: 1px solid var(--line); border-radius: 6px; background: var(--surface); color: var(--muted); padding: 9px 13px; font-weight: 700; }
.checkbox-label { display: flex !important; grid-template-columns: none !important; align-items: center; gap: 8px; color: var(--muted) !important; font-weight: 400 !important; }.checkbox-label input { width: auto !important; }
.room-intro { position: relative; z-index: 1; margin: 16px 0 0; max-width: 70%; color: #b8c7d4; font-size: 13px; line-height: 1.55; }
.room-announcement { position: relative; z-index: 1; display: flex; gap: 9px; align-items: flex-start; max-width: 760px; margin: 14px 0 0; padding: 10px 12px; border-left: 3px solid #80d7b8; background: rgba(128, 215, 184, .1); color: #d9eee6; font-size: 13px; line-height: 1.5; }
.room-announcement b { flex: 0 0 auto; color: #80d7b8; }
.mic-test { display: inline-flex; align-items: center; gap: 7px; min-width: 130px; color: #c5d2dc; font-size: 12px; }.mic-test i { display: block; width: 58px; height: 5px; border-radius: 3px; overflow: hidden; background: rgba(255,255,255,.16); }.mic-test b { display: block; height: 100%; width: 3%; border-radius: inherit; background: #80d7b8; transition: width .08s; }.mic-test em { font-style: normal; white-space: nowrap; }
.account-actions { display: flex; gap: 8px; }.account-actions .secondary { flex: 1; }

.room-view[hidden] { display: none; }
.room-owner-id { margin: 5px 0 0; color: var(--muted); font-size: 12px; line-height: 1.35; }
.room-owner-inline { color: inherit; font-size: inherit; }
.room-view { max-width: 1240px; margin: 0 auto; padding: 24px 52px 58px; }
.room-back { border: 0; background: transparent; color: var(--brand); font-weight: 700; padding: 0; }
.room-stage { margin-top: 18px; min-height: 365px; border-radius: 8px; padding: 27px; color: #eef9f5; background: #142235; position: relative; overflow: hidden; }
.room-stage::after { content: ""; position: absolute; width: 520px; height: 520px; right: -170px; top: -290px; border: 1px solid rgba(162,228,207,.2); border-radius: 50%; box-shadow: 0 0 0 58px rgba(162,228,207,.03), 0 0 0 116px rgba(162,228,207,.02); }
.room-title { position: relative; z-index: 1; display: flex; justify-content: space-between; align-items: flex-start; gap: 20px; }
.room-title h1 { font-size: 28px; letter-spacing: 0; margin: 4px 0 8px; }
.room-title p { color: #aabaca; margin: 0; font-size: 14px; }.room-online { font-size: 13px; color: #cbe6dc; background: rgba(147,221,193,.12); padding: 8px 10px; border-radius: 6px; }
.seats { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-top: 37px; }.seat { min-height: 133px; padding: 15px 10px; border: 1px solid rgba(255,255,255,.12); border-radius: 7px; text-align: center; background: rgba(255,255,255,.045); }.seat-avatar { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: #6b90a9; color: #fff; margin: 0 auto 10px; font-weight: 800; }.seat.empty .seat-avatar { background: transparent; border: 1px dashed rgba(255,255,255,.4); color: #b6c7d4; }.seat strong,.seat small { display: block; }.seat strong { font-size: 13px; }.seat small { margin-top: 5px; color: #9aacba; font-size: 11px; }.seat.empty { opacity: .72; }
.room-panels { display: grid; grid-template-columns: 1.4fr .8fr; gap: 17px; margin-top: 18px; }.chat-panel,.member-panel { background: var(--surface); border: 1px solid var(--line); border-radius: 8px; padding: 20px; }.panel-title { margin: 0 0 16px; font-size: 16px; }.chat-line { display: flex; gap: 9px; margin: 12px 0; font-size: 13px; color: var(--muted); }.chat-line b { color: var(--ink); }.chat-composer { display: flex; gap: 9px; margin-top: 17px; }.chat-composer input { flex: 1; min-width: 0; padding: 9px 11px; border: 1px solid var(--line); background: var(--surface); border-radius: 6px; color: var(--ink); outline-color: var(--brand); }.chat-composer button,.mic-button { border: 0; border-radius: 6px; padding: 9px 13px; color: #fff; background: var(--brand); font-weight: 700; }.member-row { display: flex; justify-content: space-between; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }.member-row:last-child { border: 0; }.member-row span { color: var(--muted); }.room-actions { position: relative; z-index: 1; display: flex; gap: 10px; margin-top: 19px; }.mic-button[disabled] { background: #51677b; cursor: not-allowed; }
.chat-message { display: grid; gap: 3px; min-width: 0; }.chat-message > span:last-child { color: var(--muted); overflow-wrap: anywhere; }.chat-reply-quote { overflow: hidden; color: var(--brand); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }.chat-reply-button,.chat-delete-button,.chat-reply-context button { border: 0; background: transparent; color: var(--brand); font-size: 12px; padding: 0; cursor: pointer; }.chat-reply-button,.chat-delete-button { margin-left: auto; opacity: .75; }.chat-delete-button { color: #aa4050; margin-left: 2px; }.chat-line:hover .chat-reply-button,.chat-line:hover .chat-delete-button { opacity: 1; }.chat-reply-context { display: flex; justify-content: space-between; gap: 10px; align-items: center; margin-top: 13px; padding: 7px 9px; border-left: 2px solid var(--brand); background: var(--bg); color: var(--muted); font-size: 12px; }.chat-reply-context span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat-sender { width: fit-content; border: 0; background: transparent; color: var(--ink); font: inherit; font-weight: 700; padding: 0; text-align: left; cursor: pointer; }.chat-sender:hover { color: var(--brand); }.chat-reply-quote .chat-sender { color: var(--brand); font-size: inherit; }
.chat-time { margin-left: 7px; color: var(--muted); font-size: 11px; font-style: normal; }
@media(max-width:850px){.room-view{padding:14px 20px 40px}.room-panels{grid-template-columns:1fr}.seats{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:520px){.room-stage{padding:21px 16px}.room-title h1{font-size:23px}.room-title{display:block}.room-online{display:inline-block;margin-top:10px}.seats{gap:9px;margin-top:27px}.seat{min-height:115px}.room-actions{flex-wrap:wrap}}
