:root {
  --topbar: 68px;
  --sidebar: 286px;
  --rightbar: 320px;
  --composer-bg: rgba(10, 13, 22, 0.94);
}
body.rsc-app {
  height: var(--app-height, 100dvh);
  min-height: 0;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
}
.radio-bar {
  position: relative;
  z-index: 40;
  height: var(--topbar);
  display: grid;
  grid-template-columns: var(--sidebar) minmax(240px, 1fr) auto auto;
  align-items: center;
  gap: 22px;
  padding: 0 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(8, 10, 18, 0.94);
  backdrop-filter: blur(24px);
}
.radio-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
}
.brand-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 8px 24px rgba(128, 108, 255, 0.25);
}
.radio-brand span:last-child {
  display: grid;
}
.radio-brand small,
.onair-copy small {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.onair-copy {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
}
.onair-copy > span:last-child {
  display: grid;
  min-width: 0;
}
.onair-copy strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.status-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #69748b;
}
.status-dot.is-live {
  background: #ff5572;
  box-shadow:
    0 0 0 5px rgba(255, 85, 114, 0.12),
    0 0 20px #ff5572;
  animation: livePulse 1.8s infinite;
}
@keyframes livePulse {
  50% {
    opacity: 0.55;
  }
}
.player-controls {
  display: flex;
  align-items: center;
  gap: 9px;
}
.player-controls input {
  width: 88px;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
}
.round-control {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
}
.round-control.playing {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
}
.radio-actions {
  display: flex;
  gap: 7px;
}
.radio-actions a {
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--text);
  font-size: 12px;
  font-weight: 700;
}
.app-shell {
  height: calc(var(--app-height, 100dvh) - var(--topbar));
  display: grid;
  grid-template-columns: var(--sidebar) minmax(0, 1fr) var(--rightbar);
}
.room-sidebar,
.community-panel {
  min-height: 0;
  overflow: auto;
  background: rgba(10, 13, 22, 0.88);
  scrollbar-width: thin;
}
.room-sidebar {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--line);
  padding: 18px 14px;
}
.sidebar-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 7px 12px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
.sidebar-heading a {
  font-size: 20px;
}
.room-filter {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 14px;
  padding: 0 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: #0b0f19;
  color: var(--muted);
}
.room-filter input {
  margin: 0;
  border: 0;
  background: transparent;
  padding: 9px 0;
  outline: 0;
}
.room-navigation {
  display: grid;
  gap: 18px;
}
.room-category h2 {
  margin: 0 8px 6px;
  color: var(--muted);
  font-size: 9px;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}
.room-category {
  display: grid;
  gap: 3px;
}
.room-link {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 9px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #b7c1d4;
}
.room-link:hover,
.room-link.active {
  border-color: color-mix(in srgb, var(--room-color) 28%, transparent);
  background: linear-gradient(
    90deg,
    color-mix(in srgb, var(--room-color) 18%, transparent),
    transparent
  );
  color: #fff;
}
.room-icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: color-mix(in srgb, var(--room-color) 17%, transparent);
  color: var(--room-color);
  font-weight: 900;
}
.room-copy {
  display: grid;
  min-width: 0;
}
.room-copy strong,
.room-copy small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.room-copy strong {
  font-size: 13px;
}
.room-copy small {
  color: var(--muted);
  font-size: 10px;
}
.unread-badge {
  min-width: 20px;
  padding: 2px 5px;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  text-align: center;
  font-size: 9px;
  font-weight: 900;
}
.personal-navigation {
  display: grid;
  gap: 2px;
  margin-top: auto;
  padding: 18px 6px 10px;
}
.personal-navigation a {
  padding: 6px;
  color: var(--muted);
  font-size: 12px;
}
.personal-navigation a:hover {
  color: #fff;
}
.current-user {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  align-items: center;
  gap: 9px;
  padding: 12px 6px 0;
  border-top: 1px solid var(--line);
}
.user-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 900;
}
.current-user > span {
  display: grid;
  min-width: 0;
}
.current-user strong,
.current-user small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.current-user small {
  color: var(--muted);
  font-size: 10px;
  text-transform: capitalize;
}
.chat-workspace {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  background: radial-gradient(
      circle at 50% -20%,
      rgba(128, 108, 255, 0.12),
      transparent 32%
    ),
    var(--bg);
}
.channel-header {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--line);
  background: rgba(10, 13, 22, 0.78);
  backdrop-filter: blur(20px);
}
.channel-symbol {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 12px;
  background: color-mix(in srgb, var(--room-color) 16%, transparent);
  color: var(--room-color);
  font-size: 18px;
  font-weight: 900;
}
.channel-copy {
  display: grid;
  min-width: 0;
}
.channel-copy small {
  max-width: 480px;
  overflow: hidden;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.channel-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.header-control {
  position: relative;
  padding: 8px 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  box-shadow: none;
  font-size: 12px;
}
.header-control b {
  position: absolute;
  top: -6px;
  right: -5px;
  min-width: 18px;
  padding: 1px 4px;
  border-radius: 999px;
  background: #ff5572;
  font-size: 9px;
}
.connection-status {
  padding: 7px 18px;
  background: rgba(255, 190, 80, 0.12);
  color: #ffd68f;
  font-size: 12px;
  text-align: center;
}
.message-scroller {
  position: relative;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 22px clamp(16px, 4vw, 58px);
  scroll-behavior: auto;
}
.message-scroller [hidden],
.composer [hidden] {
  display: none !important;
}
.load-older {
  display: block;
  margin: 0 auto 18px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--muted);
  font-size: 11px;
}
.empty-chat-state {
  display: grid;
  place-items: center;
  gap: 4px;
  max-width: 460px;
  margin: clamp(40px, 12vh, 130px) auto;
  padding: 26px 24px;
  border: 1px dashed var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  text-align: center;
}
.empty-chat-state > span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  margin-bottom: 5px;
  border-radius: 13px;
  background: rgba(128, 108, 255, 0.12);
  color: var(--accent-2);
  font-size: 18px;
}
.empty-chat-state strong {
  color: var(--text);
  font-size: 14px;
}
.empty-chat-state p {
  margin: 0;
  font-size: 11px;
}
.message-row {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 11px;
  max-width: var(--message-width, 920px);
  margin: 0 0 14px;
}
.message-row.is-pinned .message-bubble {
  border-color: rgba(255, 204, 102, 0.32);
}
.message-avatar {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: #20283a;
  color: #fff;
  font-weight: 900;
  overflow: hidden;
}
.message-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.message-bubble {
  min-width: 0;
  padding: 11px 13px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(29, 35, 52, 0.85),
    rgba(17, 21, 33, 0.88)
  );
}
.message-meta {
  display: flex;
  align-items: center;
  gap: 7px;
}
.message-meta strong {
  font-size: 13px;
}
.role-badge {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(128, 108, 255, 0.14);
  color: #bdb4ff;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
}
.message-meta time {
  margin-left: auto;
  color: var(--muted);
  font-size: 9px;
}
.edited-label {
  color: var(--muted);
  font-size: 9px;
}
.message-body {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
  line-height: 1.48;
}
.reply-quote {
  margin: 7px 0;
  padding: 7px 9px;
  border-left: 3px solid var(--accent);
  border-radius: 7px;
  background: rgba(128, 108, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.message-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px;
  margin-top: 8px;
  opacity: 0.42;
  transition: 0.18s opacity;
}
.message-row:hover .message-actions,
.message-actions:focus-within {
  opacity: 1;
}
.message-action,
.reaction-chip {
  padding: 3px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  color: var(--muted);
  font-size: 10px;
}
.reaction-chip.mine,
.message-action.saved {
  outline: 1px solid var(--accent-2);
  color: #d8fff5;
}
.pin-label {
  color: #ffcc66;
  font-size: 10px;
}
.attachment {
  margin-top: 9px;
}
.attachment img {
  display: block;
  max-width: min(100%, 520px);
  max-height: 380px;
  border-radius: 12px;
  object-fit: contain;
  background: #080b12;
}
.attachment audio {
  width: min(100%, 480px);
}
.file-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}
.file-attachment span {
  display: grid;
}
.file-attachment small {
  color: var(--muted);
}
.chat-smilie {
  width: 30px;
  height: 30px;
  object-fit: contain;
  vertical-align: middle;
  cursor: pointer;
}
.announcement-card {
  max-width: 920px;
  margin: 0 0 14px;
  padding: 12px 14px;
  border: 1px solid rgba(50, 214, 178, 0.26);
  border-radius: 14px;
  background: linear-gradient(
    135deg,
    rgba(50, 214, 178, 0.09),
    rgba(128, 108, 255, 0.07)
  );
}
.announcement-card p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 12px;
}
.jump-latest {
  position: sticky;
  left: 50%;
  bottom: 8px;
  transform: translateX(-50%);
  box-shadow: var(--shadow);
}
.typing-indicator {
  min-height: 22px;
  padding: 2px clamp(16px, 4vw, 58px);
  color: var(--muted);
  font-size: 11px;
  font-style: italic;
}
.composer {
  position: relative;
  display: block !important;
  width: 100%;
  min-width: 0;
  margin: 0 !important;
  padding: 10px clamp(14px, 4vw, 50px) 12px;
  border-top: 1px solid var(--line);
  background: var(--composer-bg);
  backdrop-filter: blur(22px);
  isolation: isolate;
}
.editor-row {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) 48px;
  align-items: end;
  width: 100%;
  gap: 10px;
}
.editor-row textarea {
  display: block;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  max-height: 150px;
  height: 48px;
  margin: 0 !important;
  padding: 13px 15px;
  border-radius: 14px;
  background: #111725;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}
.send-button {
  display: grid;
  place-items: center;
  width: 48px;
  min-width: 48px;
  height: 48px;
  margin: 0;
  padding: 0;
  border-radius: 14px;
  font-size: 18px;
}
.composer-toolbar {
  display: flex !important;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  min-width: 0;
  gap: 10px;
  margin-top: 7px;
}
.composer-tools {
  display: flex !important;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  min-width: 0;
}
.composer-meta {
  display: flex !important;
  align-items: center;
  gap: 10px;
  margin-left: auto;
  color: var(--muted);
  font-size: 10px;
  white-space: nowrap;
}
.composer-toolbar b {
  color: #c4ccda;
}
.tool-button,
.quick-emoji {
  display: inline-grid;
  place-items: center;
  min-width: 30px;
  height: 28px;
  margin: 0 !important;
  padding: 4px 6px;
  border: 0;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
  color: var(--text);
  cursor: pointer;
  font-size: 11px;
}
.attachment-button {
  position: relative;
  overflow: hidden;
}
#attachment-input {
  display: none !important;
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.reply-context,
.attachment-preview {
  margin-bottom: 7px;
  padding: 8px 10px;
  border-left: 3px solid var(--accent);
  border-radius: 9px;
  background: rgba(128, 108, 255, 0.08);
  color: var(--muted);
  font-size: 11px;
}
.reply-context button,
.attachment-preview button {
  float: right;
  padding: 0 5px;
  background: transparent;
  box-shadow: none;
}
.smilie-popover {
  position: absolute;
  z-index: 20;
  left: clamp(14px, 4vw, 50px);
  bottom: 100%;
  width: min(470px, calc(100% - 28px));
  max-height: 360px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #111522;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.5);
}
.smilie-popover[hidden] {
  display: none !important;
}
.smilie-head {
  display: flex;
  gap: 7px;
}
.smilie-head input {
  margin: 0;
}
.smilie-head button {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.smilie-categories {
  display: flex;
  gap: 5px;
  overflow: auto;
  margin: 9px 0;
}
.smilie-categories button {
  padding: 4px 7px;
  background: rgba(255, 255, 255, 0.05);
  box-shadow: none;
  color: var(--muted);
  font-size: 10px;
}
.smilie-categories button.active {
  background: rgba(128, 108, 255, 0.18);
  color: #fff;
}
.smilie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(54px, 1fr));
  gap: 6px;
  max-height: 230px;
  overflow: auto;
}
.smilie-item {
  display: grid;
  place-items: center;
  gap: 2px;
  padding: 6px 3px;
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
}
.smilie-item img {
  width: 31px;
  height: 31px;
  object-fit: contain;
}
.smilie-item small {
  max-width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 8px;
  text-overflow: ellipsis;
}
.community-panel {
  border-left: 1px solid var(--line);
  padding: 18px 14px;
}
.side-card {
  margin: 0 0 12px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
}
.side-card h2 {
  margin: 5px 0;
  font-size: 18px;
}
.side-card > p:last-child {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.overline {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.next-show {
  display: grid;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.next-show small {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}
.live-frame {
  width: 100%;
  height: 180px;
  margin-bottom: 12px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: #080a12;
}
.side-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.member-count {
  display: grid;
  place-items: center;
  min-width: 24px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(50, 214, 178, 0.12);
  color: var(--accent-2);
  font-size: 9px;
  font-weight: 900;
}
.member-list {
  display: grid;
  gap: 9px;
  margin-top: 11px;
}
.member-item {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 11px;
}
.member-item .mini-avatar {
  position: relative;
  display: grid;
  place-items: center;
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #20283a;
  font-weight: 900;
}
.member-item .mini-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
.member-status-dot {
  position: absolute;
  right: -3px;
  bottom: -3px;
  width: 10px;
  height: 10px;
  border: 2px solid #111522;
  border-radius: 50%;
  background: #69748b;
}
.member-status-dot.status-online {
  background: #32d6b2;
}
.member-status-dot.status-away {
  background: #ff6b7a;
}
.member-status-dot.status-busy {
  background: #ffcc66;
}
.member-item span:nth-child(2) {
  display: grid;
  min-width: 0;
}
.member-item strong,
.member-item small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.member-item small {
  color: var(--muted);
  font-size: 8px;
  text-transform: uppercase;
}
.member-item .member-note {
  max-width: 190px;
  margin-top: 1px;
  color: #c9d1df;
  text-transform: none;
}
.status-card form {
  display: grid;
  gap: 7px;
  margin-top: 10px;
}
.status-card select,
.status-card input {
  margin: 0;
  padding: 9px 10px;
  font-size: 11px;
}
.status-card button {
  padding: 8px;
  font-size: 10px;
}
.room-events {
  display: grid;
  gap: 5px;
  max-width: var(--message-width, 920px);
  margin: 0 0 12px;
}
.room-event {
  display: grid;
  grid-template-columns: 8px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  border: 1px solid rgba(255, 255, 255, 0.055);
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.018);
  color: var(--muted);
  font-size: 10px;
}
.room-event > span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent-2);
}
.room-event-leave > span {
  background: #ff6b7a;
}
.room-event-status > span {
  background: #ffcc66;
}
.room-event p {
  margin: 0;
}
.room-event time {
  font-size: 8px;
}
.quick-card {
  display: grid;
  gap: 4px;
}
.quick-card a {
  display: flex;
  justify-content: space-between;
  padding: 7px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 11px;
}
.quick-card a:hover {
  color: #fff;
}
.drawer {
  position: fixed;
  z-index: 80;
  top: 0;
  right: 0;
  width: min(390px, 92vw);
  height: 100vh;
  padding: 20px;
  border-left: 1px solid var(--line);
  background: #0d111c;
  box-shadow: -25px 0 80px rgba(0, 0, 0, 0.45);
  overflow: auto;
}
.drawer[hidden],
.drawer-backdrop[hidden] {
  display: none !important;
}
.drawer header,
.dialog-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.drawer header small,
.dialog-head small {
  color: var(--accent-2);
  font-size: 9px;
  text-transform: uppercase;
}
.drawer h2,
.dialog-head h2 {
  margin: 2px 0;
}
.drawer header button,
.dialog-head button {
  padding: 5px 10px;
  background: rgba(255, 255, 255, 0.06);
  box-shadow: none;
}
.drawer-backdrop {
  position: fixed;
  z-index: 70;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(3px);
}
.notification-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
}
.notification-item.unread {
  color: #fff;
}
.notification-item p {
  margin: 4px 0;
  color: var(--muted);
  font-size: 11px;
}
.notification-item time {
  font-size: 9px;
  color: var(--muted);
}
.drawer-action {
  width: 100%;
  margin-top: 16px;
}
.search-dialog {
  width: min(680px, calc(100% - 28px));
  max-height: 80vh;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #111522;
  color: var(--text);
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.6);
}
.search-dialog::backdrop {
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(4px);
}
.search-input {
  display: flex;
  gap: 8px;
  margin: 16px 0;
}
.search-input input {
  margin: 0;
}
.search-results {
  display: grid;
  gap: 8px;
  max-height: 48vh;
  overflow: auto;
}
.search-result {
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.025);
}
.search-result p {
  margin: 4px 0;
}
.search-result small {
  color: var(--muted);
}
.toast-stack {
  position: fixed;
  z-index: 100;
  right: 18px;
  bottom: 18px;
  display: grid;
  gap: 8px;
}
.toast {
  max-width: 340px;
  padding: 11px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #171d2b;
  box-shadow: var(--shadow);
}
.toast.error {
  border-color: rgba(255, 85, 114, 0.35);
  color: #ffdce2;
}
.mobile-navigation,
.mobile-only {
  display: none;
}
@media (max-width: 1100px) {
  :root {
    --rightbar: 280px;
  }
  .radio-bar {
    grid-template-columns: 230px 1fr auto;
  }
  .radio-actions {
    display: none;
  }
  .app-shell {
    grid-template-columns: 230px minmax(0, 1fr) var(--rightbar);
  }
}
@media (max-width: 860px) {
  body.rsc-app {
    padding-bottom: 58px;
  }
  .radio-bar {
    height: 58px;
    grid-template-columns: 1fr auto;
    padding: 0 12px;
  }
  .onair-copy,
  .player-controls input {
    display: none;
  }
  .app-shell {
    height: calc(var(--app-height, 100dvh) - 116px);
    display: block;
  }
  .room-sidebar,
  .community-panel {
    position: fixed;
    z-index: 75;
    top: 58px;
    bottom: 58px;
    width: min(340px, 91vw);
    display: none;
    background: #0b0e17;
    box-shadow: 0 20px 70px rgba(0, 0, 0, 0.48);
  }
  .room-sidebar.open {
    display: flex;
  }
  .community-panel.open {
    display: block;
  }
  .room-sidebar {
    left: 0;
  }
  .community-panel {
    right: 0;
  }
  .chat-workspace {
    height: 100%;
    min-height: 0;
  }
  .channel-header {
    padding: 9px 12px;
  }
  .mobile-only {
    display: grid;
  }
  .header-control span {
    display: none;
  }
  .message-scroller {
    padding: 14px 12px;
  }
  .composer {
    z-index: 5;
    flex: 0 0 auto;
    padding: 9px 10px calc(9px + env(safe-area-inset-bottom));
    backdrop-filter: none;
    background: #0b0f19;
  }
  .editor-row textarea {
    font-size: 16px;
  }
  .composer-toolbar > span small {
    display: none;
  }
  .message-actions {
    opacity: 1;
  }
  .drawer-backdrop {
    backdrop-filter: none;
  }
  .search-dialog::backdrop {
    backdrop-filter: none;
  }
  .mobile-navigation {
    position: fixed;
    z-index: 65;
    left: 0;
    right: 0;
    bottom: 0;
    height: 58px;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding-bottom: env(safe-area-inset-bottom);
    border-top: 1px solid var(--line);
    background: #0b0e17;
  }
  .mobile-navigation a,
  .mobile-navigation button {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--muted);
    font-size: 10px;
  }
  .mobile-navigation .active {
    color: #fff;
    background: rgba(128, 108, 255, 0.11);
  }
  .radio-brand small {
    display: none;
  }
  body.rsc-app.keyboard-open {
    padding-bottom: 0;
  }
  body.rsc-app.keyboard-open .app-shell {
    height: calc(var(--app-height, 100dvh) - 58px);
  }
  body.rsc-app.keyboard-open .mobile-navigation {
    display: none;
  }
  body.rsc-app.keyboard-open .room-sidebar,
  body.rsc-app.keyboard-open .community-panel {
    bottom: 0;
  }
  .smilie-popover {
    max-height: min(340px, 52vh);
  }
}
@media (max-width: 560px) {
  .channel-copy small {
    display: none;
  }
  .quick-emoji {
    display: none;
  }
  .composer-toolbar > span {
    gap: 4px;
  }
  .composer-meta b {
    font-size: 9px;
  }
  .message-row {
    grid-template-columns: 32px 1fr;
    gap: 8px;
  }
  .message-avatar {
    width: 31px;
    height: 31px;
    border-radius: 9px;
  }
  .message-bubble {
    padding: 9px 10px;
  }
  .message-meta {
    flex-wrap: wrap;
  }
  .message-meta time {
    display: none;
  }
  .room-event {
    grid-template-columns: 7px minmax(0, 1fr);
  }
  .room-event time {
    display: none;
  }
}
.auth-v3 {
  min-height: 100vh;
  background: radial-gradient(
      circle at 15% 10%,
      rgba(128, 108, 255, 0.25),
      transparent 30%
    ),
    radial-gradient(
      circle at 85% 90%,
      rgba(50, 214, 178, 0.13),
      transparent 28%
    ),
    var(--bg);
}
.auth-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(380px, 0.85fr);
  min-height: 100vh;
}
.auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 6vw, 78px);
  border-right: 1px solid var(--line);
}
.auth-story > div {
  max-width: 720px;
}
.auth-story h1 {
  max-width: 750px;
  margin: 8px 0 16px;
  font-size: clamp(48px, 7vw, 92px);
  line-height: 0.92;
  letter-spacing: -0.065em;
}
.auth-story > div > p:not(.overline) {
  max-width: 560px;
  color: var(--muted);
  font-size: 17px;
}
.auth-features {
  display: grid;
  gap: 8px;
  margin-top: 28px;
  color: #c8d0df;
  font-size: 13px;
}
.auth-story > small {
  color: var(--muted);
}
.auth-panel {
  display: grid;
  place-items: center;
  padding: 28px;
  background: rgba(8, 10, 18, 0.46);
  backdrop-filter: blur(18px);
}
.auth-card {
  width: min(430px, 100%);
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(24, 29, 44, 0.94),
    rgba(14, 17, 28, 0.96)
  );
  box-shadow: 0 30px 100px rgba(0, 0, 0, 0.35);
}
.auth-card h2 {
  margin: 5px 0 4px;
  font-size: 28px;
  letter-spacing: -0.035em;
}
.auth-submit {
  width: 100%;
  margin-top: 12px;
  padding: 13px;
}
.auth-link {
  text-align: center;
  color: var(--muted);
  font-size: 12px;
}
.auth-card .check {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}
.auth-card .check input {
  width: auto;
  margin-top: 3px;
}
@media (max-width: 850px) {
  .auth-shell {
    grid-template-columns: 1fr;
  }
  .auth-story {
    display: none;
  }
  .auth-panel {
    min-height: 100vh;
    padding: 18px;
  }
  .auth-card {
    padding: 24px;
  }
}
