﻿:root {
  --bg: #03070d;
  --bg-soft: #0a1018;
  --surface: #0b121b;
  --line: #1f2835;
  --line-strong: #2a3747;
  --text: #d7e0eb;
  --muted: #8c9cb0;
  --accent: #2f81f7;
  --accent-strong: #57a0ff;
  --accent-soft: #10284a;
  --radius-sm: 8px;
  --radius-md: 12px;
  --glass-bg: rgba(18, 28, 43, 0.42);
  --glass-border: rgba(153, 191, 235, 0.22);
  --glow-soft: 0 10px 28px rgba(43, 117, 207, 0.14);
  --glow-strong: 0 18px 44px rgba(27, 85, 162, 0.24);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Inter", sans-serif;
  background:
    radial-gradient(1200px 500px at 15% -10%, rgba(255, 75, 75, 0.12), transparent 45%),
    radial-gradient(900px 440px at 85% 8%, rgba(67, 181, 255, 0.16), transparent 50%),
    radial-gradient(800px 500px at 50% 115%, rgba(60, 210, 124, 0.12), transparent 55%),
    var(--bg);
  color: var(--text);
  overflow: hidden;
  letter-spacing: 0.01em;
}

button,
input,
textarea {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p {
  margin: 0;
}

ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.hidden {
  display: none !important;
}

.top-header {
  height: 70px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(7, 12, 20, 0.84), rgba(2, 6, 11, 0.72));
  display: grid;
  grid-template-columns: 220px minmax(320px, 1fr) auto;
  align-items: center;
  gap: 16px;
  padding: 0 18px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  position: relative;
  z-index: 10;
  box-shadow: 0 12px 30px rgba(4, 11, 20, 0.34);
}

.brand-cluster {
  display: flex;
  align-items: center;
  gap: 0;
  min-width: 200px;
}

.brand-wordmark {
  height: 52px;
  width: auto;
  display: block;
}

.search-shell {
  position: relative;
}

.search-shell i {
  position: absolute;
  left: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #8eb0d5;
  font-size: 14px;
  pointer-events: none;
}

.search-shell input {
  width: 100%;
  height: 38px;
  border: 0;
  border-bottom: 1px solid #436792;
  background: linear-gradient(180deg, rgba(35, 57, 84, 0.2), rgba(35, 57, 84, 0.08));
  padding: 0 6px 0 30px;
  border-radius: var(--radius-sm);
  box-shadow: inset 0 0 0 1px rgba(129, 169, 214, 0.14), 0 8px 22px rgba(11, 27, 46, 0.2);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.search-shell input:focus,
input:focus,
textarea:focus {
  outline: 1px solid var(--accent-strong);
  outline-offset: 0;
  box-shadow: inset 0 0 0 1px rgba(144, 190, 241, 0.26), 0 10px 26px rgba(24, 66, 114, 0.26);
}

.top-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  position: relative;
}

.auth-user-badge {
  display: none !important;
}

.icon-btn {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.icon-btn i {
  font-size: 13px;
}

.ghost-btn {
  border: 0;
  border-bottom: 1px solid #2e4d74;
  background: transparent;
  color: #cfe1f7;
  padding: 5px 0;
  font-weight: 600;
  transition: color 0.2s ease, border-color 0.2s ease;
  border-radius: var(--radius-sm);
}

.ghost-btn:hover {
  border-color: var(--accent-strong);
  color: #ffffff;
}

.download-app-btn {
  border-bottom-color: rgba(83, 190, 147, 0.56);
  color: #d7f4e5;
}

.download-app-btn:hover {
  border-bottom-color: rgba(136, 231, 191, 0.88);
  color: #ffffff;
}

.create-menu {
  position: absolute;
  right: 148px;
  top: calc(100% + 10px);
  min-width: 180px;
  border: 1px solid rgba(140, 181, 229, 0.35);
  border-radius: 10px;
  background: rgba(12, 21, 33, 0.92);
  box-shadow: 0 14px 28px rgba(5, 14, 25, 0.45);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: grid;
  padding: 8px;
  gap: 4px;
  z-index: 20;
}

.create-menu.hidden {
  display: none;
}

.create-menu button {
  border: 0;
  background: transparent;
  color: #d5e6f9;
  padding: 8px 9px;
  border-radius: 8px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
}

.create-menu button:hover {
  background: rgba(68, 121, 183, 0.26);
}

.presence-picker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.presence-btn {
  border: 1px solid rgba(110, 152, 201, 0.34);
  background: rgba(21, 37, 55, 0.36);
  color: #cfe2f8;
  padding: 6px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.presence-btn i {
  font-size: 11px;
}

.presence-btn:hover {
  transform: translateY(-1px);
}

.presence-btn.active {
  border-color: rgba(161, 201, 244, 0.62);
  color: #ffffff;
  background: linear-gradient(120deg, rgba(73, 132, 206, 0.52), rgba(56, 162, 113, 0.36));
}

.profile-avatar-btn {
  width: 36px;
  height: 36px;
  border: 1px solid rgba(116, 166, 220, 0.55);
  border-radius: 50%;
  background: rgba(14, 27, 42, 0.52);
  padding: 0;
  cursor: pointer;
  overflow: visible;
  box-shadow: 0 8px 20px rgba(10, 24, 39, 0.4);
  position: relative;
}

.profile-avatar-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.profile-avatar-btn span {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 13px;
  font-weight: 800;
  color: #e8f4ff;
  border-radius: 50%;
}

.profile-avatar-btn.is-owner::after,
.owner-crown {
  position: absolute;
  top: -6px;
  right: -6px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 10px;
  color: #fff4c2;
  background: linear-gradient(140deg, #ffcb45, #ff8e2b);
  border: 1px solid rgba(255, 235, 180, 0.78);
  box-shadow: 0 8px 18px rgba(255, 156, 58, 0.35);
  z-index: 3;
}

.profile-avatar-btn.is-owner::after {
  content: "\f229";
  font-family: "bootstrap-icons";
}

.avatar-shell {
  position: relative;
  display: inline-flex;
  flex-shrink: 0;
}

.inline-crown {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 6px;
  font-size: 11px;
  color: #ffcc52;
}

.page-shell {
  height: calc(100vh - 70px);
  display: grid;
  grid-template-columns: 290px minmax(640px, 1fr) 380px;
  gap: 0;
  position: relative;
  z-index: 1;
}

.left-sidebar,
.right-sidebar {
  background: linear-gradient(180deg, var(--glass-bg), rgba(12, 20, 31, 0.28));
  min-height: 0;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: var(--glow-soft);
}

.left-sidebar {
  border-right: 1px solid var(--line);
  padding: 14px 14px 12px;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 12px;
  border-top-right-radius: var(--radius-md);
  border-bottom-right-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--glow-soft);
}

.sidebar-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
  margin-bottom: 6px;
}

.sidebar-tab {
  border: 1px solid rgba(129, 169, 214, 0.24);
  background: rgba(35, 57, 84, 0.2);
  color: #c9ddf5;
  padding: 7px 8px;
  border-radius: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.sidebar-tab.active {
  background: linear-gradient(120deg, rgba(75, 131, 206, 0.45), rgba(49, 179, 126, 0.26));
  border-color: rgba(171, 213, 255, 0.42);
  color: #ffffff;
  box-shadow: inset 0 1px 0 rgba(221, 239, 255, 0.22), 0 8px 20px rgba(28, 88, 163, 0.2);
}

.sidebar-tab:hover {
  transform: translateY(-1px);
}

.sidebar-group {
  display: none;
}

.sidebar-group.active {
  display: grid;
  gap: 10px;
}

.quick-nav {
  display: grid;
  gap: 6px;
  padding-bottom: 10px;
  border-bottom: 1px solid #182130;
}

.nav-btn {
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #cfdae7;
  padding: 8px 10px;
  text-align: left;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border-radius: var(--radius-sm);
}

.nav-btn i {
  font-size: 14px;
  opacity: 0.9;
}

.nav-btn:hover {
  color: #ffffff;
  border-left-color: #3f5a79;
}

.nav-btn.active {
  background: transparent;
  border-left-color: var(--accent);
  color: #ffffff;
}

.sidebar-section {
  min-height: 0;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 9px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(115, 148, 184, 0.16);
}

.section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.section-title-row h2 {
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #8ca0b8;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.mini-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  font-weight: 700;
  color: #cfe2ff;
  border-bottom: 1px solid #2a4f7d;
  border-radius: var(--radius-sm);
}

.stack-form,
.inline-form {
  display: grid;
  gap: 7px;
}

.stack-form.hidden {
  display: none;
}

.stack-form input,
.inline-form input,
.stack-form button,
.inline-form button,
.composer-card input,
.composer-card textarea,
.composer-card button,
.message-form input,
.message-form button,
.comment-form input,
.comment-form button {
  border: 0;
  border-bottom: 1px solid #2a3f58;
  background: transparent;
  padding: 9px 4px;
  border-radius: var(--radius-sm);
}

.stack-form button,
.inline-form button,
.composer-card button,
.message-form button {
  background: transparent;
  border-bottom: 1px solid #2e5f99;
  color: #dceaff;
  font-weight: 700;
}

.stack-form button:hover,
.inline-form button:hover,
.composer-card button:hover,
.message-form button:hover {
  border-bottom-color: var(--accent-strong);
  color: #ffffff;
}

.community-list,
.channel-list,
.message-list,
.post-list {
  min-height: 0;
  overflow-y: auto;
}

.community-list,
.channel-list {
  display: grid;
  gap: 4px;
}

.community-item,
.channel-btn {
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #d1dde9;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 8px;
  font-weight: 500;
  border-radius: 12px;
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.community-label {
  flex: 1;
}

.community-actions {
  display: inline-flex;
  align-items: center;
}

.community-delete-btn {
  border: 0;
  background: transparent;
  color: #9bb3cb;
  padding: 2px 4px;
  border-radius: 6px;
  cursor: pointer;
}

.community-delete-btn:hover {
  color: #ffb3b3;
  background: rgba(206, 82, 82, 0.14);
}

.community-join-btn {
  border: 1px solid rgba(121, 171, 228, 0.42);
  background: rgba(21, 41, 63, 0.35);
  color: #cfe4ff;
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
}

.community-join-btn:hover {
  border-color: rgba(159, 206, 255, 0.64);
  color: #ffffff;
}

.channel-btn i {
  font-size: 12px;
  opacity: 0.9;
}

.channel-create-panel {
  display: grid;
  gap: 8px;
  padding: 0;
}

.channel-create-panel label {
  font-size: 12px;
  color: #8ca0b8;
  font-weight: 600;
}

.channel-help {
  font-size: 12px;
  color: #758aa3;
}

.channel-preview {
  font-size: 12px;
  color: #a9c8ed;
  border-left: 1px solid #3b5f88;
  padding-left: 8px;
}

.channel-feedback {
  min-height: 16px;
  font-size: 12px;
  color: #8ca0b8;
}

.channel-feedback.success {
  color: #89d1a0;
}

.channel-feedback.error {
  color: #f0a2a2;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(3, 8, 14, 0.74);
  backdrop-filter: blur(4px);
  display: grid;
  place-items: center;
  z-index: 99999;
  isolation: isolate;
  opacity: 1;
  transition: opacity 0.2s ease;
}

.modal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

.modal-panel {
  width: min(520px, calc(100vw - 28px));
  border: 1px solid var(--glass-border);
  background:
    linear-gradient(180deg, rgba(23, 35, 53, 0.72), rgba(8, 18, 29, 0.68));
  padding: 18px 16px 14px;
  position: relative;
  animation: modalIn 0.24s ease;
  box-shadow: 0 18px 60px rgba(4, 11, 20, 0.65);
  border-radius: 16px;
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  position: relative;
  z-index: 1;
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  border: 0;
  background: transparent;
  color: #9ab4d2;
  border-bottom: 1px solid #2f5278;
  padding: 2px 0;
  border-radius: var(--radius-sm);
}

.modal-close:hover {
  color: #ffffff;
  border-bottom-color: var(--accent-strong);
}

.modal-head {
  margin-bottom: 12px;
  padding-right: 22px;
}

.modal-head h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 20px;
  font-weight: 760;
  margin-bottom: 6px;
}

.modal-head p {
  color: #8ca0b8;
  font-size: 13px;
}

.modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.screen-share-modal-panel {
  width: min(880px, calc(100vw - 28px));
}

.screen-share-picker-form {
  display: grid;
  gap: 12px;
}

.share-audio-toggle {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(124, 165, 211, 0.28);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(16, 28, 42, 0.32);
  color: #c6d9ef;
  font-size: 13px;
}

.share-audio-toggle input {
  accent-color: var(--accent);
}

.capture-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  max-height: min(60vh, 560px);
  overflow-y: auto;
  padding-right: 4px;
}

.capture-source-card {
  border: 1px solid rgba(112, 156, 205, 0.26);
  border-radius: 16px;
  background: rgba(13, 24, 37, 0.54);
  padding: 10px;
  color: inherit;
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.capture-source-card:hover {
  transform: translateY(-1px);
  border-color: rgba(143, 188, 239, 0.46);
}

.capture-source-card.active {
  border-color: rgba(143, 188, 239, 0.68);
  box-shadow: 0 16px 34px rgba(17, 54, 101, 0.24);
  background: linear-gradient(180deg, rgba(20, 34, 51, 0.84), rgba(13, 24, 37, 0.7));
}

.capture-source-preview {
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: 12px;
  overflow: hidden;
  background: rgba(5, 12, 19, 0.84);
  border: 1px solid rgba(112, 156, 205, 0.18);
}

.capture-source-preview img,
.capture-source-preview video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.capture-source-fallback {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  font-size: 32px;
  color: #9fbce0;
}

.capture-source-meta {
  display: grid;
  gap: 4px;
}

.capture-source-meta strong {
  font-size: 14px;
  color: #e7f1ff;
}

.capture-source-meta small {
  color: #92abc8;
}

.capture-source-empty {
  border: 1px dashed rgba(126, 169, 216, 0.3);
  border-radius: 14px;
  padding: 18px;
  color: #9fb9d8;
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.profile-modal-panel {
  width: min(620px, calc(100vw - 24px));
  padding: 20px 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(101, 160, 233, 0.16), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(86, 205, 162, 0.14), transparent 52%),
    linear-gradient(180deg, rgba(23, 35, 53, 0.84), rgba(8, 18, 29, 0.8));
  box-shadow:
    0 24px 60px rgba(4, 11, 20, 0.72),
    inset 0 1px 0 rgba(218, 235, 255, 0.16);
}

#profileModal .modal-head {
  margin-bottom: 14px;
}

#profileModal .modal-head h3 {
  font-size: 26px;
  letter-spacing: -0.01em;
}

#profileModal .modal-head p {
  font-size: 14px;
  color: #9db8d8;
}

#profileModal .modal-close {
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(128, 173, 224, 0.38);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(14, 29, 45, 0.4);
  border-bottom: 1px solid rgba(128, 173, 224, 0.38);
}

#profileModal .modal-close:hover {
  background: rgba(29, 52, 80, 0.46);
}

.profile-form textarea {
  min-height: 86px;
  resize: vertical;
}

.profile-form label {
  font-size: 12px;
  color: #9eb5d0;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-form input[type="text"],
.profile-form textarea {
  border: 1px solid rgba(126, 168, 214, 0.36);
  border-bottom-color: rgba(141, 187, 239, 0.76);
  background: rgba(15, 28, 44, 0.45);
  box-shadow: inset 0 0 0 1px rgba(126, 168, 214, 0.12);
  padding: 11px 10px;
}

.profile-form input[type="color"] {
  width: 56px;
  height: 34px;
  padding: 2px;
  border: 1px solid rgba(132, 175, 223, 0.5);
  background: rgba(14, 29, 46, 0.46);
  border-radius: 8px;
}

.profile-preview-card {
  border: 1px solid rgba(124, 170, 220, 0.46);
  background: rgba(18, 30, 47, 0.54);
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 14px;
  box-shadow: inset 0 1px 0 rgba(216, 233, 255, 0.16);
}

.profile-preview-banner {
  height: 110px;
  background: linear-gradient(120deg, rgba(73, 132, 206, 0.55), rgba(60, 176, 129, 0.45));
  position: relative;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
}

.profile-preview-banner::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34px;
  background: linear-gradient(180deg, transparent, rgba(8, 18, 29, 0.42));
}

.profile-preview-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
}

.profile-preview-meta {
  display: grid;
  gap: 6px;
  flex: 1;
}

.profile-preview-meta label {
  font-size: 11px;
  color: #9db7d8;
  letter-spacing: 0.02em;
  font-weight: 700;
}

.profile-preview-meta input {
  border: 1px solid rgba(126, 168, 214, 0.36);
  border-bottom-color: rgba(141, 187, 239, 0.76);
  background: rgba(15, 28, 44, 0.45);
  box-shadow: inset 0 0 0 1px rgba(126, 168, 214, 0.12);
  padding: 8px 10px;
}

.profile-preview-avatar {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  font-size: 20px;
  color: #eef6ff;
  border: 2px solid rgba(173, 208, 247, 0.55);
  background: linear-gradient(140deg, rgba(74, 134, 211, 0.7), rgba(77, 192, 143, 0.66));
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(11, 25, 42, 0.45);
}

.profile-preview-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform: translate(var(--img-x, 0%), var(--img-y, 0%)) scale(var(--img-zoom, 1));
}

.community-modal-panel {
  width: min(620px, calc(100vw - 24px));
  padding: 20px 18px 16px;
  border-radius: 20px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(101, 160, 233, 0.14), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(86, 205, 162, 0.12), transparent 52%),
    linear-gradient(180deg, rgba(23, 35, 53, 0.84), rgba(8, 18, 29, 0.8));
  box-shadow:
    0 24px 60px rgba(4, 11, 20, 0.72),
    inset 0 1px 0 rgba(218, 235, 255, 0.14);
}

#communityModal .modal-head {
  margin-bottom: 14px;
}

#communityModal .modal-head h3 {
  font-size: 24px;
  letter-spacing: -0.01em;
}

#communityModal .modal-head p {
  font-size: 14px;
  color: #9db8d8;
}

#communityModal .modal-close {
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(128, 173, 224, 0.38);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background: rgba(14, 29, 45, 0.4);
  border-bottom: 1px solid rgba(128, 173, 224, 0.38);
}

#communityModal .modal-close:hover {
  background: rgba(29, 52, 80, 0.46);
}

.community-preview-card {
  margin-bottom: 14px;
}

.community-preview-banner {
  height: 120px;
}

.community-preview-meta {
  display: grid;
  gap: 4px;
  flex: 1;
}

.community-preview-meta strong {
  font-size: 20px;
  font-weight: 800;
  color: #eef6ff;
  line-height: 1.1;
}

.community-preview-meta p {
  font-size: 13px;
  color: #9db7d8;
}

.community-create-form {
  gap: 10px;
}

.community-create-form input[type="text"] {
  border: 1px solid rgba(126, 168, 214, 0.36);
  border-bottom-color: rgba(141, 187, 239, 0.76);
  background: rgba(15, 28, 44, 0.45);
  box-shadow: inset 0 0 0 1px rgba(126, 168, 214, 0.12);
  padding: 11px 10px;
}

.user-card-modal {
  width: min(460px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
}

.user-card-banner {
  height: 136px;
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(101, 160, 233, 0.22), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(86, 205, 162, 0.2), transparent 52%),
    linear-gradient(140deg, rgba(57, 109, 181, 0.72), rgba(57, 160, 110, 0.62));
  background-size: cover;
  background-position: center;
  border-bottom: 1px solid rgba(130, 172, 218, 0.34);
}

.user-card-body {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px 14px;
}

.user-card-avatar {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
  color: #eef6ff;
  border: 2px solid rgba(173, 208, 247, 0.55);
  background: linear-gradient(140deg, rgba(74, 134, 211, 0.7), rgba(77, 192, 143, 0.66));
}

.user-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-card-meta h3 {
  font-size: 22px;
  line-height: 1.1;
  margin: 0 0 4px;
}

.user-card-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.role-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  color: #fff1bf;
  background: linear-gradient(140deg, rgba(255, 198, 72, 0.24), rgba(255, 143, 43, 0.26));
  border: 1px solid rgba(255, 211, 128, 0.45);
}

.user-card-meta p {
  margin: 0 0 6px;
  color: #9db7d8;
  font-size: 13px;
}

.user-card-meta small {
  color: #cfe4ff;
  font-size: 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.user-card-actions {
  margin-top: 8px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card-admin-actions {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.user-card-actions .ghost-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.danger-icon-btn {
  border: 1px solid rgba(255, 118, 118, 0.38);
  background: linear-gradient(180deg, rgba(73, 16, 20, 0.78), rgba(44, 10, 15, 0.82));
  color: #ffd7d7;
  border-radius: 10px;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(76, 12, 18, 0.24);
}

.danger-icon-btn:hover {
  border-color: rgba(255, 154, 154, 0.62);
  color: #fff4f4;
}

.danger-icon-btn.small {
  padding: 6px 9px;
  font-size: 11px;
  border-radius: 9px;
}

.profile-media-pick {
  border: 0;
  background: transparent;
  color: #d3e8ff;
  cursor: pointer;
}

#profilePreviewBio {
  margin-top: 0;
  font-size: 13px;
  color: #9fb7d1;
}

.banner-pick {
  position: absolute;
  right: 12px;
  bottom: 8px;
  z-index: 2;
  border: 1px solid rgba(142, 189, 240, 0.5);
  background: rgba(13, 28, 45, 0.52);
  border-radius: 10px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
  font-size: 12px;
}

.avatar-pick {
  padding: 0;
  border-radius: 999px;
}

.profile-media-pick:hover {
  color: #ffffff;
}

.media-adjust-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.profile-adjust-toggles {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px 12px;
}

.profile-adjust-toggle {
  border: 1px solid rgba(127, 172, 220, 0.34);
  background: rgba(17, 31, 48, 0.4);
  color: #d5e8ff;
  border-radius: 10px;
  padding: 6px 10px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
}

.profile-adjust-toggle:hover {
  border-color: rgba(160, 202, 247, 0.62);
}

.media-adjust-box {
  border: 1px solid rgba(127, 172, 220, 0.34);
  background: rgba(17, 31, 48, 0.4);
  border-radius: 12px;
  padding: 10px;
  display: grid;
  gap: 7px;
}

.media-adjust-box legend {
  font-size: 12px;
  color: #c6dbf6;
  padding: 0 4px;
  font-weight: 700;
}

.media-adjust-box label {
  font-size: 11px;
  color: #9ab5d6;
}

.media-adjust-box input[type="range"] {
  width: 100%;
  accent-color: var(--accent);
  height: 22px;
  border-radius: 999px;
}

.hidden-file-input {
  display: none;
}

@keyframes modalIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.community-item:hover,
.channel-btn:hover {
  border-left-color: #78b2f7;
  color: #ffffff;
  background: linear-gradient(120deg, rgba(66, 105, 153, 0.18), rgba(48, 158, 111, 0.14));
  transform: translateX(1px);
}

.community-item.active,
.channel-btn.active {
  background: linear-gradient(120deg, rgba(72, 126, 196, 0.34), rgba(50, 162, 113, 0.24));
  border-left-color: #9fd0ff;
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(20, 54, 91, 0.24);
}

.community-avatar {
  width: 30px;
  height: 30px;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  flex-shrink: 0;
  border-radius: 50%;
  box-shadow: 0 6px 16px rgba(6, 15, 26, 0.36);
}

.feed-column {
  min-height: 0;
  max-width: none;
  width: 100%;
  justify-self: stretch;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  padding: 10px 18px 0;
  overflow-y: auto;
  border-radius: 16px;
  box-shadow: inset 0 1px 0 rgba(219, 236, 255, 0.05), var(--glow-soft);
  position: relative;
}

.community-hero-banner {
  height: 132px;
  border: 1px solid rgba(113, 156, 205, 0.34);
  border-radius: 14px;
  margin: 10px 0 8px;
  background-repeat: no-repeat;
  background-size: cover;
  background-position: center;
  box-shadow: inset 0 -36px 58px rgba(5, 12, 20, 0.32), 0 10px 24px rgba(8, 20, 34, 0.2);
}

.activity-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px 0 12px;
  border-bottom: 1px solid var(--line);
}

.activity-card {
  border: 1px solid rgba(120, 165, 214, 0.22);
  background: linear-gradient(120deg, rgba(21, 37, 55, 0.42), rgba(13, 28, 43, 0.24));
  border-radius: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
}

.activity-card i {
  color: #85b8f6;
}

.activity-card strong {
  display: block;
  font-size: 16px;
  line-height: 1;
}

.activity-card span {
  font-size: 11px;
  color: #9db6d4;
}

.composer-prompt {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(118, 159, 204, 0.3);
  border-radius: 12px;
  background: linear-gradient(120deg, rgba(37, 59, 87, 0.26), rgba(18, 35, 54, 0.22));
  padding: 9px 10px;
  color: #cfe4ff;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #63b6ff;
  box-shadow: 0 0 0 0 rgba(99, 182, 255, 0.5);
  animation: pulseDot 1.8s infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(99, 182, 255, 0.5); }
  70% { box-shadow: 0 0 0 10px rgba(99, 182, 255, 0); }
  100% { box-shadow: 0 0 0 0 rgba(99, 182, 255, 0); }
}

.composer-card:not(.expanded) input,
.composer-card:not(.expanded) textarea,
.composer-card:not(.expanded) .post-drop-zone,
.composer-card:not(.expanded) .media-upload-label,
.composer-card:not(.expanded) .media-upload-input,
.composer-card:not(.expanded) .media-preview-list,
.composer-card:not(.expanded) .upload-progress,
.composer-card:not(.expanded) .btn-cta {
  display: none !important;
}

.composer-card.expanded .composer-prompt {
  display: none;
}

.feed-toolbar {
  border-bottom: 1px solid var(--line);
  padding: 2px 0 12px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.sort-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid #365274;
  background: transparent;
  padding: 2px 0;
  font-size: 12px;
  color: #abc2dd;
  margin-bottom: 8px;
}

#communityTitle {
  font-size: 40px;
  font-weight: 840;
  letter-spacing: -0.01em;
  line-height: 1.03;
  text-shadow: 0 6px 20px rgba(42, 131, 247, 0.2);
  max-width: 22ch;
}

.muted-text {
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

.community-chip {
  border: 0;
  border-bottom: 1px solid #34577f;
  background: transparent;
  color: #cfe4ff;
  padding: 6px 0;
  font-size: 12px;
  font-weight: 600;
}

.composer-card {
  border-bottom: 1px solid #24384f;
  padding: 12px 0;
  display: grid;
  gap: 8px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 23, 36, 0.46), rgba(9, 16, 26, 0.34));
  box-shadow: inset 0 1px 0 rgba(191, 222, 255, 0.08);
}

.composer-card textarea {
  min-height: 82px;
  resize: vertical;
}

.post-drop-zone {
  border: 1px dashed rgba(117, 168, 222, 0.42);
  background: rgba(20, 34, 52, 0.34);
  padding: 12px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #a9c6e7;
  border-radius: 10px;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.post-drop-zone.dragover {
  border-color: #79b3ff;
  background: rgba(44, 78, 118, 0.4);
  transform: translateY(-1px);
}

.composer-card input,
.composer-card textarea {
  border: 1px solid rgba(115, 157, 204, 0.34);
  border-bottom-color: rgba(128, 175, 226, 0.76);
  background: rgba(17, 30, 47, 0.35);
  box-shadow: inset 0 0 0 1px rgba(124, 166, 212, 0.12);
  padding: 11px 10px;
}

.media-upload-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #b9d1ea;
  cursor: pointer;
  font-weight: 600;
}

.media-upload-input {
  display: none;
}

.media-preview-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.media-preview-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(113, 156, 205, 0.35);
  border-radius: 999px;
  background: rgba(22, 36, 55, 0.45);
  font-size: 12px;
}

.media-preview-badge small {
  opacity: 0.75;
}

.upload-progress {
  display: grid;
  gap: 5px;
}

.upload-progress.hidden {
  display: none;
}

.upload-progress-bar {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(44, 68, 98, 0.46);
  border: 1px solid rgba(121, 167, 220, 0.36);
}

.upload-progress-bar span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, rgba(64, 153, 255, 0.8), rgba(77, 209, 146, 0.8));
  transition: width 0.15s ease;
}

.upload-progress small {
  color: #9eb8d7;
}

.post-list {
  display: grid;
  gap: 0;
  align-content: start;
  padding-bottom: 20px;
}

.post {
  border: 1px solid rgba(98, 136, 179, 0.28);
  display: grid;
  grid-template-columns: 42px 1fr;
  background: rgba(10, 18, 29, 0.48);
  border-radius: 14px;
  margin: 6px 0;
  transition: transform 0.16s ease, border-color 0.16s ease, background 0.16s ease;
  box-shadow: 0 12px 24px rgba(6, 16, 29, 0.24);
}

.post:hover {
  transform: translateY(-1px);
  border-color: rgba(145, 187, 234, 0.5);
  background: rgba(16, 28, 43, 0.6);
  box-shadow: var(--glow-strong);
}

.vote-rail {
  border-right: 1px solid #141e2b;
  padding: 10px 4px;
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 5px;
}

.vote-btn {
  border: 0;
  background: transparent;
  color: #8fa6bf;
  width: 28px;
  height: 24px;
  cursor: pointer;
  border-radius: 6px;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.vote-btn:hover {
  background: transparent;
  color: #e5f1ff;
}

.vote-score {
  font-size: 12px;
  font-weight: 800;
  color: #dce8f5;
}

.post-main {
  padding: 10px 12px;
}

.post-meta-wrap {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 9px;
  align-items: center;
  margin-bottom: 7px;
}

.post-thumb {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800;
  color: #f0f6ff;
  background: linear-gradient(140deg, rgba(53, 120, 202, 0.72), rgba(72, 183, 128, 0.68));
  box-shadow: 0 6px 14px rgba(40, 97, 167, 0.28);
  position: relative;
  overflow: visible;
}

.post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 10px;
}

.post-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 0;
}

.post-meta span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.post-title {
  font-size: 23px;
  font-weight: 760;
  line-height: 1.25;
  margin-bottom: 8px;
}

.post-body {
  color: #c4d2e1;
  margin: 0 0 10px;
  white-space: pre-wrap;
}

.post-actions {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}

.post-badges {
  display: flex;
  gap: 7px;
  margin-bottom: 8px;
}

.post-media-list {
  display: grid;
  gap: 8px;
  margin-bottom: 10px;
}

.post-media {
  width: 100%;
  border-radius: 10px;
  border: 1px solid rgba(113, 156, 205, 0.3);
  max-height: 420px;
  object-fit: cover;
  background: rgba(18, 30, 47, 0.6);
}

.post-badge {
  border-radius: 999px;
  padding: 3px 8px;
  font-size: 11px;
  font-weight: 700;
  border: 1px solid rgba(112, 163, 219, 0.4);
  background: rgba(40, 79, 122, 0.28);
  color: #beddff;
}

.action-pill {
  border: 0;
  border-bottom: 1px solid #2d445f;
  background: transparent;
  color: #a9bfd8;
  padding: 2px 0;
  font-size: 12px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 6px;
  cursor: pointer;
}

.action-pill.danger {
  border-bottom-color: rgba(227, 114, 114, 0.62);
  color: #ffb9b9;
}

.comment-list {
  display: grid;
  gap: 6px;
  margin-top: 8px;
}

.comment {
  border: 0;
  border-left: 1px solid #2d4663;
  background: transparent;
  padding: 4px 0 4px 9px;
  font-size: 13px;
  color: #c8d7e6;
  border-radius: 6px;
}

.comment-form {
  margin-top: 8px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 7px;
}

.comment-form button {
  background: transparent;
  border-bottom: 1px solid #2e5c95;
  color: #e5f0ff;
  font-weight: 700;
}

.comment-form button:hover {
  border-bottom-color: var(--accent-strong);
}

.right-sidebar {
  border-left: 1px solid var(--line);
  padding: 12px;
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
  border-top-left-radius: var(--radius-md);
  border-bottom-left-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), var(--glow-soft);
}

.chat-shell {
  min-height: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(114, 160, 211, 0.22);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(13, 24, 37, 0.56), rgba(13, 24, 37, 0.34));
  box-shadow: inset 0 1px 0 rgba(210, 233, 255, 0.08);
}

.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #182131;
  padding-bottom: 8px;
}

.chat-head h2 {
  font-size: 15px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.chat-mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}

.chat-mode-btn {
  border: 1px solid rgba(120, 162, 208, 0.28);
  background: rgba(24, 39, 58, 0.35);
  color: #bfd5ee;
  padding: 8px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  font-weight: 700;
}

.chat-mode-btn.active {
  border-color: rgba(161, 201, 244, 0.52);
  color: #ffffff;
  background: linear-gradient(120deg, rgba(73, 132, 206, 0.5), rgba(56, 162, 113, 0.38));
}

.voice-now {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  border: 1px solid rgba(107, 151, 200, 0.28);
  background: rgba(16, 28, 42, 0.34);
  padding: 8px 10px;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 rgba(179, 214, 250, 0.12);
}

.left-voice-now {
  margin-top: 8px;
  border-radius: 14px;
}

.voice-now-info {
  display: grid;
  gap: 2px;
}

.voice-now-info strong {
  font-size: 13px;
}

.voice-now-info small {
  color: #88a5c5;
  font-size: 12px;
}

.voice-control-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.voice-action-btn {
  padding: 5px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-radius: 8px;
}

.voice-action-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.voice-action-btn.active {
  border-bottom-color: #66a5f3;
  color: #ffffff;
}

.voice-studio-panel {
  gap: 10px;
}

.voice-slider-grid {
  display: grid;
  gap: 8px;
}

.voice-slider-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(112, 156, 205, 0.26);
  background: rgba(18, 31, 48, 0.34);
}

.voice-slider-card span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: #cfe1f5;
}

.voice-slider-card strong {
  font-size: 12px;
  color: #8eb7e6;
}

.voice-slider-card input,
.voice-user-controls input,
.screen-share-controls input {
  width: 100%;
  accent-color: #5a9cf6;
}

.voice-studio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.dm-users-panel {
  border-top: 1px solid #1a2536;
  padding-top: 8px;
  display: grid;
  gap: 7px;
}

.dm-users-panel.hidden {
  display: none;
}

.dm-users-panel h3 {
  font-size: 12px;
  color: #9ab0ca;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.dm-user-list {
  display: grid;
  gap: 4px;
  max-height: 150px;
  overflow-y: auto;
}

.dm-user-btn {
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #d2e2f5;
  padding: 7px 8px;
  text-align: left;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  cursor: pointer;
  width: 100%;
}

.member-card {
  min-height: 52px;
  justify-content: flex-start;
  gap: 8px;
  border: 1px solid rgba(112, 156, 205, 0.24);
  border-left: 2px solid rgba(112, 156, 205, 0.35);
  background: rgba(20, 33, 50, 0.42);
}

.member-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.1;
}

.status-line {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  margin-top: 3px;
}

.status-online { color: #7ee8a4; }
.status-away { color: #ffd37f; }
.status-dnd { color: #ff8f8f; }
.status-offline { color: #8da3bb; }

.member-card:hover {
  border-left-color: #63a0ec;
}

.voice-user-card {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid rgba(112, 156, 205, 0.24);
  background: rgba(20, 33, 50, 0.42);
}

.voice-user-main {
  border: 0;
  background: transparent;
  color: inherit;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
}

.voice-user-copy {
  display: grid;
  gap: 3px;
}

.voice-user-copy strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.voice-user-copy small {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
}

.voice-user-controls {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.voice-user-controls label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #9db6d0;
}

.voice-self-note {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #8fb1d6;
}

.voice-user-badges,
.voice-user-admin-row {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.voice-user-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #cfe5ff;
  background: rgba(44, 74, 110, 0.34);
  border: 1px solid rgba(123, 169, 222, 0.26);
}

.voice-user-badge.share {
  color: #d6f7ea;
  background: rgba(26, 82, 66, 0.38);
  border-color: rgba(109, 214, 174, 0.34);
}

.voice-user-badge.danger {
  color: #ffd8d8;
  background: rgba(92, 21, 21, 0.34);
  border-color: rgba(255, 134, 134, 0.34);
}

.dm-user-btn:hover {
  border-left-color: #4c7fb8;
  color: #ffffff;
}

.dm-user-btn.active {
  border-left-color: #64a2f0;
  background: rgba(52, 92, 142, 0.24);
}

.dm-unread-pill {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(82, 144, 220, 0.34);
  border: 1px solid rgba(125, 177, 244, 0.62);
  color: #eaf4ff;
  font-size: 11px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.voice-list .voice-btn {
  width: 100%;
  border: 0;
  border-left: 2px solid transparent;
  background: transparent;
  color: #cfe1f5;
  text-align: left;
  padding: 7px 8px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  border-radius: 8px;
  cursor: pointer;
  gap: 10px;
}

.voice-list .voice-btn:hover {
  border-left-color: #4f84bf;
  color: #ffffff;
}

.voice-list .voice-btn.active {
  border-left-color: #67a5f4;
  background: rgba(57, 95, 146, 0.24);
}

.voice-btn .join-label {
  font-size: 11px;
  color: #8ab7e9;
  white-space: nowrap;
}

.voice-btn-main {
  min-width: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.voice-channel-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.voice-channel-copy strong {
  font-size: 13px;
  color: inherit;
}

.voice-channel-copy small {
  font-size: 11px;
  color: #8da8c8;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 160px;
}

.voice-channel-side {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.voice-avatar-stack {
  display: inline-flex;
  align-items: center;
  padding-left: 6px;
}

.voice-mini-avatar {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-size: 10px;
  font-weight: 800;
  color: #f3f9ff;
  margin-left: -6px;
  border: 1.5px solid rgba(10, 18, 28, 0.9);
  background: linear-gradient(145deg, rgba(70, 134, 223, 0.86), rgba(67, 177, 113, 0.74));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.22);
}

.voice-mini-avatar:first-child {
  margin-left: 0;
}

.voice-mini-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: 0;
  border-bottom: 1px solid #2a5183;
  color: #bdd8ff;
  background: transparent;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 0;
  border-radius: 6px;
}

.message-list {
  display: grid;
  gap: 0;
  align-content: start;
  flex: 1;
  min-height: 240px;
  overflow-y: auto;
  border-top: 1px solid rgba(115, 148, 184, 0.14);
  border-bottom: 1px solid rgba(115, 148, 184, 0.14);
  padding: 8px 0;
}

.msg {
  border: 0;
  padding: 6px 0;
  border-radius: 6px;
}

.msg-row {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 8px;
}

.msg-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: visible;
  font-size: 11px;
  font-weight: 800;
  color: #eaf3ff;
  background: linear-gradient(145deg, rgba(59, 132, 222, 0.78), rgba(54, 173, 112, 0.7));
  position: relative;
}

.msg-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}

.msg-bubble {
  border: 1px solid rgba(112, 156, 205, 0.24);
  background: rgba(20, 33, 50, 0.42);
  border-radius: 12px;
  padding: 7px 9px;
  box-shadow: 0 6px 14px rgba(8, 19, 33, 0.2);
  justify-self: start;
  width: auto;
  max-width: min(100%, 560px);
}

.msg-head {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: #97abc0;
  margin-bottom: 3px;
}

.msg-body {
  color: #d7e4f2;
  font-size: 13px;
  word-break: break-word;
}

.message-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  align-items: stretch;
  margin-top: auto;
  border-top: 1px solid #182131;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(13, 24, 37, 0), rgba(13, 24, 37, 0.58) 38%);
  position: sticky;
  bottom: 0;
  z-index: 2;
}

.message-form input {
  min-height: 44px;
  max-height: 44px;
  border: 1px solid rgba(112, 156, 205, 0.34);
  border-bottom-color: rgba(142, 186, 234, 0.7);
  background: rgba(20, 33, 50, 0.38);
  box-shadow: inset 0 0 0 1px rgba(112, 156, 205, 0.12);
}

.message-compose-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.message-tools {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.message-file-label {
  cursor: pointer;
}

.message-attach-count {
  font-size: 11px;
  color: #8db5e3;
  font-weight: 700;
}

.message-attach-preview {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.message-attach-chip {
  border: 1px solid rgba(110, 154, 204, 0.42);
  background: rgba(17, 30, 47, 0.44);
  color: #cfe4ff;
  border-radius: 999px;
  padding: 4px 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  cursor: pointer;
}

.gif-picker {
  border: 1px solid rgba(112, 156, 205, 0.35);
  border-radius: 10px;
  background: rgba(10, 20, 32, 0.86);
  padding: 8px;
  display: grid;
  gap: 8px;
}

.gif-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px;
}

.gif-search-row input {
  min-height: 36px;
  max-height: 36px;
}

.gif-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
}

.gif-result-btn {
  border: 1px solid rgba(104, 149, 198, 0.35);
  background: rgba(17, 30, 47, 0.56);
  border-radius: 8px;
  overflow: hidden;
  padding: 0;
  cursor: pointer;
  min-height: 64px;
}

.gif-result-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.gif-empty {
  color: #95afcc;
  font-size: 12px;
  padding: 8px 0;
}

.msg-media-list {
  margin-top: 7px;
  display: grid;
  gap: 6px;
  width: min(100%, 420px);
  justify-items: start;
}

.msg-media {
  width: min(100%, 420px);
  max-height: 260px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(109, 151, 198, 0.34);
}

.msg-audio {
  width: min(100%, 420px);
}

.msg-file {
  border: 1px solid rgba(112, 156, 205, 0.35);
  border-radius: 10px;
  padding: 7px 9px;
  color: #cfe4ff;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  background: rgba(17, 30, 47, 0.46);
  max-width: min(100%, 420px);
  overflow: hidden;
}

.msg-file span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-music-panel {
  border-top: 1px solid rgba(112, 156, 205, 0.28);
  padding-top: 8px;
  display: grid;
  gap: 6px;
}

.voice-controls-fold {
  margin-top: 2px;
}

.voice-control-fold-body {
  display: grid;
  gap: 10px;
  padding: 6px 8px 10px;
}

.screen-share-panel {
  display: grid;
  gap: 8px;
}

.screen-share-list {
  display: grid;
  gap: 10px;
}

.screen-share-card {
  border: 1px solid rgba(112, 156, 205, 0.26);
  border-radius: 14px;
  background: rgba(15, 28, 43, 0.52);
  padding: 10px;
  display: grid;
  gap: 8px;
}

.screen-share-card.featured {
  border-color: rgba(123, 181, 239, 0.54);
  background: linear-gradient(180deg, rgba(17, 31, 48, 0.72), rgba(12, 22, 35, 0.64));
  box-shadow: 0 14px 34px rgba(10, 31, 58, 0.28);
}

.screen-share-card.featured .screen-share-video-wrap {
  aspect-ratio: 16 / 8.8;
}

.screen-share-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.screen-share-head strong {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
}

.screen-share-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  color: #d6f7ea;
  background: rgba(26, 82, 66, 0.38);
  border: 1px solid rgba(109, 214, 174, 0.34);
}

.screen-share-video-wrap {
  border-radius: 12px;
  overflow: hidden;
  background: rgba(3, 7, 13, 0.78);
  aspect-ratio: 16 / 9;
}

.screen-share-video-wrap video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #060c14;
}

.screen-share-controls,
.screen-share-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}

.screen-share-controls label {
  display: grid;
  gap: 4px;
  font-size: 11px;
  color: #9db6d0;
  flex: 1;
}

.voice-music-panel h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #9db7d3;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

#voiceMusicNow {
  font-size: 12px;
  color: #9bb3cd;
}

.yt-player-host {
  width: 100%;
  height: 0;
  overflow: hidden;
}

.yt-player-host iframe {
  width: 100%;
  height: 180px;
  border: 0;
  border-radius: 10px;
}

.feed-surface-switch {
  display: inline-grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 10px 0 8px;
}

.surface-btn {
  border: 1px solid rgba(112, 156, 205, 0.36);
  background: rgba(18, 31, 48, 0.42);
  color: #bad5f2;
  border-radius: 12px;
  padding: 9px 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.surface-btn.active {
  border-color: rgba(155, 195, 240, 0.65);
  background: linear-gradient(120deg, rgba(76, 144, 226, 0.58), rgba(63, 183, 125, 0.42));
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(21, 67, 128, 0.32);
}

.surface-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  box-shadow: none;
}

.community-overview {
  display: grid;
  gap: 10px;
  padding-bottom: 12px;
  align-content: start;
}

.community-chat-host {
  min-height: 0;
  height: 100%;
  display: grid;
}

.community-chat-host .chat-shell {
  min-height: 0;
  height: 100%;
}

.overview-card {
  border: 1px solid rgba(113, 156, 205, 0.33);
  border-radius: 12px;
  background: rgba(14, 27, 43, 0.46);
  padding: 12px;
  min-height: 96px;
}

.overview-card h3 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 16px;
  margin-bottom: 4px;
}

.overview-card p {
  color: #98b2cf;
  font-size: 13px;
}

.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.overview-stat {
  border: 1px solid rgba(113, 156, 205, 0.28);
  border-radius: 10px;
  background: rgba(14, 27, 43, 0.34);
  padding: 10px;
  display: grid;
  gap: 4px;
  min-height: 88px;
  align-content: start;
}

.overview-stat span {
  font-size: 11px;
  color: #9ab4cf;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.overview-stat strong {
  font-size: 21px;
  color: #e7f1fc;
}

.btn-rgb {
  position: relative;
  border-bottom: 0;
  padding: 8px 14px !important;
  background:
    linear-gradient(120deg, rgba(255, 84, 84, 0.44), rgba(76, 211, 124, 0.42), rgba(74, 149, 255, 0.44));
  color: #eff7ff !important;
  box-shadow: inset 0 0 0 1px rgba(167, 204, 255, 0.22), 0 8px 18px rgba(12, 26, 44, 0.45);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
  border-radius: 10px;
  text-shadow: 0 1px 0 rgba(16, 37, 64, 0.32);
}

.btn-rgb:hover {
  transform: translateY(-1px);
  filter: saturate(1.08);
  box-shadow: inset 0 0 0 1px rgba(191, 221, 255, 0.34), 0 11px 22px rgba(12, 26, 44, 0.55);
}

.btn-rgb:active {
  transform: translateY(0);
}

.btn-cta {
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0.02em;
  min-height: 44px;
  justify-content: center;
  min-width: 144px;
}

.info-card {
  border-top: 1px solid #182131;
  padding-top: 10px;
  display: grid;
  gap: 6px;
  background: linear-gradient(180deg, rgba(17, 30, 47, 0.26), rgba(10, 17, 27, 0.16));
  border-radius: 12px;
  padding: 12px;
  align-content: start;
}

.info-card h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a7bdd4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.info-card p {
  font-size: 13px;
  color: #8ea6bf;
}

.empty-state {
  border: 0;
  border-left: 1px dashed #2a3a4d;
  padding: 8px 0 8px 10px;
  text-align: left;
  color: #8ba3bd;
  font-size: 13px;
  border-radius: 6px;
}

.community-list::-webkit-scrollbar,
.channel-list::-webkit-scrollbar,
.message-list::-webkit-scrollbar,
.post-list::-webkit-scrollbar,
.dm-user-list::-webkit-scrollbar {
  width: 8px;
}

.community-list::-webkit-scrollbar-thumb,
.channel-list::-webkit-scrollbar-thumb,
.message-list::-webkit-scrollbar-thumb,
.post-list::-webkit-scrollbar-thumb,
.dm-user-list::-webkit-scrollbar-thumb {
  background: rgba(116, 156, 201, 0.38);
  border-radius: 999px;
}

.community-list::-webkit-scrollbar-track,
.channel-list::-webkit-scrollbar-track,
.message-list::-webkit-scrollbar-track,
.post-list::-webkit-scrollbar-track,
.dm-user-list::-webkit-scrollbar-track {
  background: transparent;
}

body[data-theme="light"] {
  background:
    radial-gradient(900px 420px at 10% -10%, rgba(255, 105, 105, 0.15), transparent 44%),
    radial-gradient(900px 420px at 90% 0%, rgba(85, 166, 255, 0.16), transparent 48%),
    radial-gradient(1000px 450px at 50% 110%, rgba(92, 198, 137, 0.13), transparent 52%),
    #eef4fb;
  color: #142133;
  --glow-soft: 0 10px 24px rgba(102, 141, 188, 0.18);
  --glow-strong: 0 16px 34px rgba(88, 129, 179, 0.24);
}

body[data-theme="light"] .top-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78), rgba(247, 250, 255, 0.72));
  border-bottom-color: #d7dfeb;
  box-shadow: 0 10px 24px rgba(109, 142, 182, 0.2);
}

body[data-theme="light"] .left-sidebar,
body[data-theme="light"] .right-sidebar,
body[data-theme="light"] .feed-column {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.62), rgba(249, 252, 255, 0.46));
}

body[data-theme="light"] .community-hero-banner {
  border-color: rgba(130, 168, 208, 0.52);
  box-shadow: inset 0 -30px 44px rgba(128, 164, 207, 0.2), 0 10px 22px rgba(120, 154, 194, 0.18);
}

body[data-theme="light"] .sidebar-tab {
  background: rgba(230, 239, 251, 0.65);
  border-color: rgba(140, 175, 214, 0.5);
  color: #31527b;
}

body[data-theme="light"] .sidebar-tab.active {
  background: linear-gradient(120deg, rgba(108, 161, 227, 0.52), rgba(103, 195, 148, 0.38));
  color: #10345f;
}

body[data-theme="light"] .left-sidebar {
  border-right-color: #d7dfeb;
}

body[data-theme="light"] .right-sidebar {
  border-left-color: #d7dfeb;
}

body[data-theme="light"] .search-shell input {
  border-bottom-color: #9bb8de;
  color: #1f334d;
  box-shadow: inset 0 0 0 1px rgba(144, 176, 211, 0.24), 0 8px 18px rgba(128, 164, 207, 0.18);
}

body[data-theme="light"] .search-shell i {
  color: #6d8fb7;
}

body[data-theme="light"] .search-shell input::placeholder,
body[data-theme="light"] input::placeholder,
body[data-theme="light"] textarea::placeholder {
  color: #7b8ea8;
}

body[data-theme="light"] .ghost-btn {
  border-bottom-color: #9cb8dc;
  color: #2c4e7c;
}

body[data-theme="light"] .ghost-btn:hover {
  color: #10325f;
}

body[data-theme="light"] .create-menu {
  background: rgba(255, 255, 255, 0.95);
  border-color: rgba(140, 175, 214, 0.55);
  box-shadow: 0 14px 28px rgba(89, 124, 165, 0.2);
}

body[data-theme="light"] .create-menu button {
  color: #274974;
}

body[data-theme="light"] .create-menu button:hover {
  background: rgba(140, 181, 229, 0.28);
}

body[data-theme="light"] .community-delete-btn {
  color: #6e89a9;
}

body[data-theme="light"] .community-delete-btn:hover {
  color: #b64141;
  background: rgba(206, 82, 82, 0.14);
}

body[data-theme="light"] .community-join-btn {
  border-color: rgba(130, 168, 208, 0.62);
  background: rgba(232, 242, 255, 0.9);
  color: #214b7c;
}

body[data-theme="light"] .presence-btn {
  border-color: rgba(130, 168, 208, 0.62);
  background: rgba(234, 244, 255, 0.9);
  color: #214b7c;
}

body[data-theme="light"] .presence-btn.active {
  color: #0f315a;
}

body[data-theme="light"] .profile-avatar-btn {
  border-color: rgba(130, 168, 208, 0.62);
  background: rgba(236, 246, 255, 0.88);
}

body[data-theme="light"] .quick-nav,
body[data-theme="light"] .chat-head,
body[data-theme="light"] .message-form,
body[data-theme="light"] .info-card,
body[data-theme="light"] .feed-toolbar,
body[data-theme="light"] .composer-card,
body[data-theme="light"] .activity-strip,
body[data-theme="light"] .post,
body[data-theme="light"] .msg,
body[data-theme="light"] .sidebar-section,
body[data-theme="light"] .message-list {
  border-color: #d7dfeb;
}

body[data-theme="light"] .activity-card,
body[data-theme="light"] .composer-prompt,
body[data-theme="light"] .chat-shell {
  border-color: rgba(130, 168, 208, 0.55);
  background: rgba(237, 246, 255, 0.86);
  color: #1e406a;
}

body[data-theme="light"] .nav-btn,
body[data-theme="light"] .community-item,
body[data-theme="light"] .channel-btn {
  color: #28405f;
}

body[data-theme="light"] .nav-btn:hover,
body[data-theme="light"] .community-item:hover,
body[data-theme="light"] .channel-btn:hover {
  color: #0d2b4f;
}

body[data-theme="light"] .nav-btn.active,
body[data-theme="light"] .community-item.active,
body[data-theme="light"] .channel-btn.active {
  color: #0d2b4f;
  border-left-color: #2f81f7;
}

body[data-theme="light"] .section-title-row h2,
body[data-theme="light"] .muted-text,
body[data-theme="light"] .post-meta,
body[data-theme="light"] .msg-head,
body[data-theme="light"] .info-card p {
  color: #607b9f;
}

body[data-theme="light"] .mini-btn,
body[data-theme="light"] .sort-pill,
body[data-theme="light"] .community-chip,
body[data-theme="light"] .live-pill,
body[data-theme="light"] .action-pill {
  color: #2c4e7c;
  border-bottom-color: #9cb8dc;
}

body[data-theme="light"] .stack-form input,
body[data-theme="light"] .inline-form input,
body[data-theme="light"] .stack-form button,
body[data-theme="light"] .inline-form button,
body[data-theme="light"] .profile-form textarea,
body[data-theme="light"] .composer-card input,
body[data-theme="light"] .composer-card textarea,
body[data-theme="light"] .composer-card button,
body[data-theme="light"] .message-form input,
body[data-theme="light"] .message-form button,
body[data-theme="light"] .comment-form input,
body[data-theme="light"] .comment-form button {
  border-bottom-color: #a7bad3;
  color: #1b304a;
}

body[data-theme="light"] .stack-form button,
body[data-theme="light"] .inline-form button,
body[data-theme="light"] .composer-card button,
body[data-theme="light"] .message-form button,
body[data-theme="light"] .comment-form button {
  border-bottom-color: #6f9ed3;
  color: #1a4275;
}

body[data-theme="light"] .vote-rail {
  border-right-color: #d7dfeb;
}

body[data-theme="light"] .vote-btn,
body[data-theme="light"] .vote-score {
  color: #2b4d7a;
}

body[data-theme="light"] #communityTitle {
  text-shadow: 0 5px 16px rgba(80, 137, 214, 0.2);
}

body[data-theme="light"] .composer-card input,
body[data-theme="light"] .composer-card textarea,
body[data-theme="light"] .message-form input {
  background: rgba(255, 255, 255, 0.76);
  border-color: rgba(144, 178, 215, 0.56);
  box-shadow: inset 0 0 0 1px rgba(168, 196, 226, 0.2);
}

body[data-theme="light"] .feed-column {
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), var(--glow-soft);
}

body[data-theme="light"] .composer-card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76), rgba(244, 249, 255, 0.62));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.95);
}

body[data-theme="light"] .media-upload-label {
  color: #37608f;
}

body[data-theme="light"] .post-drop-zone {
  border-color: rgba(121, 158, 201, 0.55);
  background: rgba(236, 244, 254, 0.86);
  color: #2f547f;
}

body[data-theme="light"] .post-drop-zone.dragover {
  border-color: #4e8fdc;
  background: rgba(216, 231, 249, 0.95);
}

body[data-theme="light"] .media-preview-badge {
  background: rgba(233, 241, 252, 0.9);
  border-color: rgba(130, 168, 208, 0.55);
  color: #2f517a;
}

body[data-theme="light"] .upload-progress-bar {
  background: rgba(220, 233, 248, 0.8);
  border-color: rgba(125, 164, 206, 0.45);
}

body[data-theme="light"] .upload-progress small {
  color: #56779f;
}

body[data-theme="light"] .post {
  background: rgba(255, 255, 255, 0.68);
  border-color: rgba(145, 177, 214, 0.5);
  box-shadow: 0 10px 20px rgba(112, 145, 184, 0.18);
}

body[data-theme="light"] .post:hover {
  background: rgba(255, 255, 255, 0.82);
  border-color: rgba(127, 170, 218, 0.74);
  box-shadow: 0 14px 28px rgba(102, 137, 180, 0.24);
}

body[data-theme="light"] .post-badge {
  background: rgba(134, 177, 227, 0.22);
  border-color: rgba(117, 159, 207, 0.55);
  color: #1f4d7e;
}

body[data-theme="light"] .post-media {
  border-color: rgba(130, 168, 208, 0.55);
  background: rgba(233, 241, 252, 0.9);
}

body[data-theme="light"] .msg-bubble {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(146, 178, 214, 0.48);
  box-shadow: 0 5px 12px rgba(130, 160, 196, 0.16);
}

body[data-theme="light"] .chat-mode-btn {
  border-color: rgba(125, 163, 206, 0.5);
  background: rgba(232, 241, 252, 0.88);
  color: #315680;
}

body[data-theme="light"] .chat-mode-btn.active {
  border-color: rgba(90, 141, 199, 0.7);
  color: #173b65;
}

body[data-theme="light"] .message-form {
  border-top-color: #d7dfeb;
  background: linear-gradient(180deg, rgba(249, 252, 255, 0), rgba(240, 247, 255, 0.88) 40%);
}

body[data-theme="light"] .voice-now {
  border-color: rgba(130, 168, 208, 0.5);
  background: rgba(236, 244, 254, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

body[data-theme="light"] .voice-now-info small,
body[data-theme="light"] .dm-users-panel h3,
body[data-theme="light"] .voice-btn .join-label {
  color: #57779f;
}

body[data-theme="light"] .voice-channel-copy small {
  color: #6f89a8;
}

body[data-theme="light"] .voice-mini-avatar {
  border-color: rgba(241, 248, 255, 0.95);
}

body[data-theme="light"] .voice-action-btn.active {
  border-bottom-color: #3f84d6;
  color: #163b68;
}

body[data-theme="light"] .voice-slider-card,
body[data-theme="light"] .voice-user-card,
body[data-theme="light"] .screen-share-card {
  border-color: rgba(128, 168, 208, 0.45);
  background: rgba(232, 241, 252, 0.9);
}

body[data-theme="light"] .voice-slider-card span,
body[data-theme="light"] .screen-share-head strong,
body[data-theme="light"] .voice-user-copy strong {
  color: #1f456f;
}

body[data-theme="light"] .voice-slider-card strong,
body[data-theme="light"] .voice-user-controls label,
body[data-theme="light"] .screen-share-controls label,
body[data-theme="light"] .voice-self-note {
  color: #58799f;
}

body[data-theme="light"] .dm-users-panel {
  border-top-color: #d7dfeb;
}

body[data-theme="light"] .dm-user-btn,
body[data-theme="light"] .voice-list .voice-btn {
  color: #29456a;
}

body[data-theme="light"] .member-card {
  border-color: rgba(128, 168, 208, 0.45);
  border-left-color: rgba(105, 149, 197, 0.58);
  background: rgba(232, 241, 252, 0.88);
}

body[data-theme="light"] .status-online { color: #2f8a54; }
body[data-theme="light"] .status-away { color: #a17413; }
body[data-theme="light"] .status-dnd { color: #ad3f3f; }
body[data-theme="light"] .status-offline { color: #6f86a3; }

body[data-theme="light"] .dm-user-btn:hover,
body[data-theme="light"] .voice-list .voice-btn:hover {
  color: #0f315a;
}

body[data-theme="light"] .dm-user-btn.active,
body[data-theme="light"] .voice-list .voice-btn.active {
  background: rgba(154, 189, 230, 0.28);
  border-left-color: #3d80cf;
}

body[data-theme="light"] .dm-unread-pill {
  background: rgba(86, 142, 212, 0.22);
  border-color: rgba(86, 142, 212, 0.55);
  color: #1f4676;
}

body[data-theme="light"] .post-title,
body[data-theme="light"] .msg-body {
  color: #15273f;
}

body[data-theme="light"] .post-body,
body[data-theme="light"] .comment {
  color: #28405f;
}

body[data-theme="light"] .comment {
  border-left-color: #a7bad3;
}

body[data-theme="light"] .empty-state {
  color: #5f7796;
  border-left-color: #a7bad3;
}

body[data-theme="light"] .channel-create-panel label,
body[data-theme="light"] .channel-help,
body[data-theme="light"] .channel-feedback {
  color: #607b9f;
}

body[data-theme="light"] .channel-preview {
  color: #2c4e7c;
  border-left-color: #90add1;
}

body[data-theme="light"] .channel-feedback.success {
  color: #317a4b;
}

body[data-theme="light"] .channel-feedback.error {
  color: #a03b3b;
}

body[data-theme="light"] .modal-overlay {
  background: rgba(217, 227, 241, 0.6);
}

body[data-theme="light"] .modal-panel {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(246, 250, 255, 0.82));
  border-color: #a7bad3;
}

body[data-theme="light"] .profile-preview-card {
  border-color: rgba(130, 168, 208, 0.55);
  background: rgba(238, 246, 255, 0.9);
}

body[data-theme="light"] .community-modal-panel {
  background:
    radial-gradient(120% 120% at 0% 0%, rgba(112, 168, 234, 0.2), transparent 50%),
    radial-gradient(120% 120% at 100% 0%, rgba(96, 205, 166, 0.16), transparent 52%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(246, 250, 255, 0.88));
}

body[data-theme="light"] .share-audio-toggle,
body[data-theme="light"] .capture-source-card {
  border-color: rgba(130, 168, 208, 0.5);
  background: rgba(237, 245, 255, 0.92);
  color: #28496f;
}

body[data-theme="light"] .capture-source-card.active {
  border-color: rgba(91, 147, 208, 0.72);
  background: linear-gradient(180deg, rgba(228, 239, 253, 0.98), rgba(235, 244, 255, 0.96));
  box-shadow: 0 16px 30px rgba(102, 142, 189, 0.22);
}

body[data-theme="light"] .capture-source-preview {
  background: rgba(215, 230, 248, 0.9);
  border-color: rgba(130, 168, 208, 0.42);
}

body[data-theme="light"] .capture-source-meta strong {
  color: #1f4168;
}

body[data-theme="light"] .capture-source-meta small,
body[data-theme="light"] .capture-source-empty {
  color: #5a7da5;
}

body[data-theme="light"] .community-preview-meta strong {
  color: #19365b;
}

body[data-theme="light"] .community-preview-meta p {
  color: #59799f;
}

body[data-theme="light"] .user-card-banner {
  border-bottom-color: rgba(130, 168, 208, 0.5);
}

body[data-theme="light"] .role-badge {
  color: #8b4b09;
  background: linear-gradient(140deg, rgba(255, 210, 116, 0.42), rgba(255, 160, 76, 0.36));
  border-color: rgba(223, 170, 72, 0.52);
}

body[data-theme="light"] .user-card-meta h3 {
  color: #17365c;
}

body[data-theme="light"] .user-card-meta p {
  color: #58799f;
}

body[data-theme="light"] .user-card-meta small {
  color: #2e537d;
}

body[data-theme="light"] .danger-icon-btn {
  background: linear-gradient(180deg, rgba(255, 230, 230, 0.95), rgba(255, 214, 214, 0.94));
  color: #a33636;
  border-color: rgba(222, 114, 114, 0.46);
  box-shadow: 0 8px 18px rgba(190, 123, 123, 0.18);
}

body[data-theme="light"] .voice-user-badge {
  color: #32557d;
  background: rgba(219, 233, 249, 0.92);
  border-color: rgba(126, 168, 214, 0.38);
}

body[data-theme="light"] .voice-user-badge.share,
body[data-theme="light"] .screen-share-chip {
  color: #1d6e54;
  background: rgba(211, 246, 232, 0.95);
  border-color: rgba(113, 208, 172, 0.4);
}

body[data-theme="light"] .voice-user-badge.danger {
  color: #9f3434;
  background: rgba(255, 226, 226, 0.96);
  border-color: rgba(226, 132, 132, 0.44);
}

body[data-theme="light"] .followed-user-meta strong {
  color: #1f436c;
}

body[data-theme="light"] .followed-user-meta small {
  color: #5e7ea5;
}

body[data-theme="light"] .followed-user-dm {
  border-color: rgba(130, 168, 208, 0.56);
  background: rgba(233, 242, 253, 0.9);
  color: #2e537d;
}

.guided-empty-state {
  border: 1px solid rgba(111, 160, 218, 0.35);
  border-radius: 14px;
  background:
    radial-gradient(180px 70px at 12% 0%, rgba(90, 155, 230, 0.2), transparent 80%),
    linear-gradient(135deg, rgba(16, 30, 47, 0.78), rgba(11, 23, 36, 0.62));
  box-shadow: var(--glow-soft);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin: 12px 0 10px;
}

.guided-empty-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(126, 173, 229, 0.45);
  background: rgba(35, 64, 98, 0.4);
  color: #93c5ff;
  display: grid;
  place-items: center;
  font-size: 15px;
}

.guided-empty-state h3 {
  font-size: 18px;
  font-weight: 780;
  color: #edf5ff;
}

.guided-empty-state p {
  margin-top: 2px;
  color: #9bb4cf;
  font-size: 13px;
}

.guided-create-btn {
  border: 1px solid rgba(127, 174, 231, 0.55);
  background: linear-gradient(120deg, #2e7df0, #255eb5);
  color: #f3f8ff;
  border-radius: 10px;
  padding: 10px 14px;
  font-weight: 760;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(30, 84, 160, 0.34);
  transition: transform 0.16s ease, box-shadow 0.16s ease, filter 0.16s ease;
}

.guided-create-btn:hover {
  transform: translateY(-1px);
  filter: brightness(1.07);
  box-shadow: 0 12px 24px rgba(35, 96, 181, 0.4);
}

#postForm .btn-cta {
  background: linear-gradient(115deg, #2f81f7, #2662c0);
  border: 1px solid rgba(142, 188, 246, 0.45);
  box-shadow: 0 12px 24px rgba(27, 83, 156, 0.38);
  min-height: 46px;
  font-size: 17px;
}

#postForm .btn-cta:hover {
  box-shadow: 0 16px 32px rgba(31, 94, 175, 0.46);
  filter: brightness(1.08);
}

.live-side-block {
  border-top: 1px solid rgba(110, 151, 195, 0.26);
  padding-top: 6px;
  display: grid;
  gap: 6px;
}

.live-side-block h3 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #9db7d3;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.live-list {
  display: grid;
  gap: 5px;
}

.live-item {
  border-left: 2px solid rgba(96, 151, 216, 0.55);
  background: rgba(19, 33, 51, 0.32);
  border-radius: 8px;
  padding: 7px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  color: #b8d1eb;
  font-size: 12px;
  line-height: 1.35;
}

.live-item i {
  font-size: 12px;
  color: #6fb0ff;
}

.live-item:nth-child(2) i {
  color: #74d89a;
}

.live-item:nth-child(3) i {
  color: #ffd46f;
}

.live-item:nth-child(4) i {
  color: #ff8f8f;
}

.followed-user-list {
  gap: 8px;
}

.followed-user-item {
  justify-content: space-between;
  gap: 8px;
}

.followed-user-btn {
  border: 0;
  background: transparent;
  color: inherit;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  text-align: left;
  cursor: pointer;
  padding: 0;
}

.followed-user-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 800;
  color: #eef6ff;
  background: linear-gradient(140deg, rgba(74, 134, 211, 0.7), rgba(77, 192, 143, 0.66));
}

.followed-user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.followed-user-meta {
  display: grid;
  gap: 1px;
}

.followed-user-meta strong {
  font-size: 12px;
  color: #d7e7f8;
}

.followed-user-meta small {
  font-size: 11px;
  color: #9eb6d0;
}

.followed-user-dm {
  border: 1px solid rgba(112, 156, 205, 0.38);
  background: rgba(20, 33, 50, 0.42);
  color: #bcd4ef;
  border-radius: 8px;
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.followed-user-dm:hover {
  color: #ffffff;
  border-color: rgba(156, 198, 243, 0.62);
}

.left-nav button,
.community-btn,
.channel-btn,
.voice-btn {
  transition: background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.community-btn:hover,
.channel-btn:hover,
.voice-btn:hover {
  transform: translateX(1px);
}

body[data-theme="light"] .guided-empty-state {
  border-color: rgba(130, 168, 208, 0.55);
  background:
    radial-gradient(180px 70px at 12% 0%, rgba(120, 178, 238, 0.35), transparent 80%),
    linear-gradient(135deg, rgba(246, 250, 255, 0.95), rgba(235, 245, 255, 0.9));
  box-shadow: 0 10px 22px rgba(125, 160, 198, 0.2);
}

body[data-theme="light"] .guided-empty-icon {
  border-color: rgba(133, 170, 211, 0.62);
  background: rgba(216, 233, 251, 0.88);
  color: #2d68a9;
}

body[data-theme="light"] .guided-empty-state h3 {
  color: #153153;
}

body[data-theme="light"] .guided-empty-state p {
  color: #557399;
}

body[data-theme="light"] .guided-create-btn {
  border-color: rgba(116, 159, 207, 0.58);
  background: linear-gradient(120deg, #3a86ee, #2f6cc0);
  box-shadow: 0 10px 20px rgba(78, 124, 178, 0.3);
}

body[data-theme="light"] #postForm .btn-cta {
  border-color: rgba(109, 154, 206, 0.6);
  background: linear-gradient(115deg, #3d8cf1, #2f6fc3);
  box-shadow: 0 12px 24px rgba(84, 131, 186, 0.34);
}

body[data-theme="light"] .live-side-block {
  border-top-color: #d7dfeb;
}

body[data-theme="light"] .live-side-block h3 {
  color: #55779f;
}

body[data-theme="light"] .live-item {
  border-left-color: rgba(88, 140, 197, 0.58);
  background: rgba(232, 241, 252, 0.88);
  color: #264669;
}

body[data-theme="light"] .live-item i {
  color: #3174bd;
}

.fold-panel {
  border: 1px solid rgba(112, 156, 205, 0.32);
  border-radius: 10px;
  background: rgba(18, 31, 48, 0.34);
  overflow: hidden;
  min-height: 0;
  height: auto;
}

.fold-panel + .fold-panel {
  margin-top: 8px;
}

.fold-panel summary {
  list-style: none;
  cursor: pointer;
  padding: 8px 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  font-size: 12px;
  font-weight: 760;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #aac4e0;
  border-bottom: 1px solid transparent;
}

.fold-panel summary::-webkit-details-marker {
  display: none;
}

.fold-panel summary::after {
  content: "\f282";
  font-family: "bootstrap-icons";
  margin-left: auto;
  font-size: 11px;
  opacity: 0.8;
  transition: transform 0.18s ease;
}

.fold-panel[open] summary::after {
  transform: rotate(180deg);
}

.fold-panel[open] summary {
  border-bottom-color: rgba(112, 156, 205, 0.26);
}

.fold-panel .live-side-block {
  border-top: 0;
  padding: 6px 8px 8px;
}

.fold-panel:not([open]) {
  max-height: 40px;
}

.fold-panel[open] {
  max-height: 220px;
}

.fold-panel[open] .live-list {
  max-height: 165px;
  overflow-y: auto;
}

.voice-controls-fold[open] {
  max-height: 620px;
}

.voice-controls-fold .voice-studio-panel,
.voice-controls-fold .screen-share-panel {
  border: 1px solid rgba(112, 156, 205, 0.24);
  border-radius: 12px;
  padding: 10px;
  background: rgba(12, 21, 33, 0.28);
}

body[data-theme="light"] .fold-panel {
  border-color: rgba(130, 168, 208, 0.58);
  background: rgba(236, 245, 255, 0.9);
}

body[data-theme="light"] .fold-panel summary {
  color: #51749d;
}

body[data-theme="light"] .fold-panel[open] summary {
  border-bottom-color: #d7dfeb;
}

body[data-theme="light"] .fold-panel[open] .live-list {
  scrollbar-color: rgba(128, 168, 208, 0.62) transparent;
}

body[data-theme="light"] .download-app-btn {
  color: #256053;
  border-bottom-color: rgba(78, 174, 135, 0.56);
}

body[data-theme="light"] .voice-controls-fold .voice-studio-panel,
body[data-theme="light"] .voice-controls-fold .screen-share-panel {
  border-color: rgba(130, 168, 208, 0.48);
  background: rgba(239, 247, 255, 0.9);
}

body[data-theme="light"] .screen-share-card.featured {
  border-color: rgba(98, 149, 204, 0.62);
  background: linear-gradient(180deg, rgba(231, 241, 252, 0.98), rgba(222, 236, 251, 0.94));
  box-shadow: 0 12px 30px rgba(109, 148, 191, 0.24);
}

/* FloskPost: feed tipo Reddit con barra vertical ancha */
.post-list {
  gap: 0;
}

.flosk-post {
  border: 0;
  border-bottom: 1px solid rgba(98, 136, 179, 0.34);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  margin: 0;
  grid-template-columns: 56px 1fr;
  position: relative;
  overflow: visible;
}

.flosk-post::before {
  content: "";
  position: absolute;
  left: 44px;
  top: 8px;
  bottom: 8px;
  width: 7px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(74, 149, 255, 0.9), rgba(74, 149, 255, 0.4));
  box-shadow: 0 0 0 1px rgba(149, 193, 246, 0.16);
}

.flosk-post:hover {
  transform: none;
  border-color: rgba(148, 186, 230, 0.58);
  background: rgba(14, 27, 43, 0.3);
  box-shadow: none;
}

.flosk-post .vote-rail {
  border-right: 0;
  padding: 10px 6px 10px 0;
}

.flosk-post .post-main {
  padding: 10px 10px 12px 12px;
}

.feed-column[data-surface="floskpost"] .post-list {
  display: grid;
  align-content: start;
}

.feed-column[data-surface="floskpost"] > * {
  position: relative;
  z-index: 1;
}

.feed-column[data-surface="floskpost"] .flosk-post {
  border-bottom: 1px solid rgba(108, 151, 197, 0.42);
}

.feed-column[data-surface="floskpost"] .flosk-post::before {
  width: 8px;
  left: 42px;
}

.feed-column[data-surface="community"] #postList,
.feed-column[data-surface="community"] #activityStrip,
.feed-column[data-surface="community"] #guidedEmptyState,
.feed-column[data-surface="community"] #postForm {
  display: none !important;
}

.feed-column[data-surface="community"] .community-overview {
  display: grid;
  grid-template-rows: auto auto;
  flex: 1;
  min-height: 0;
  padding-bottom: 14px;
  align-content: start;
}

.feed-column[data-surface="community"] .community-overview.channel-chat-in-community {
  grid-template-rows: auto 1fr;
}

.feed-column[data-surface="community"] .community-overview.channel-chat-in-community .overview-grid {
  display: none;
}

.feed-column[data-surface="community"] .community-overview.private-chat-in-community .overview-grid {
  display: none;
}

.feed-column[data-surface="community"] .overview-card {
  min-height: 96px;
}

.feed-column[data-surface="community"] .overview-grid {
  min-height: auto;
  height: auto;
}

.feed-column[data-surface="community"] .overview-stat {
  min-height: 96px;
  height: auto;
  justify-content: flex-start;
}

.feed-column[data-surface="community"] .community-overview.channel-chat-in-community .overview-card {
  min-height: 88px;
}

.community-private-hint {
  margin-top: 8px;
  font-size: 13px;
  color: #9cb6d4;
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.flosk-post .post-title {
  font-size: 24px;
}

body[data-theme="light"] .flosk-post {
  border-bottom-color: rgba(134, 166, 202, 0.58);
}

body[data-theme="light"] .flosk-post::before {
  background: linear-gradient(180deg, rgba(63, 140, 232, 0.92), rgba(63, 140, 232, 0.45));
  box-shadow: 0 0 0 1px rgba(114, 161, 214, 0.28);
}

body[data-theme="light"] .flosk-post:hover {
  background: rgba(225, 236, 250, 0.62);
}

body[data-theme="light"] .feed-column[data-surface="floskpost"] .flosk-post {
  border-bottom-color: rgba(132, 170, 210, 0.62);
}


body[data-theme="light"] .message-attach-count {
  color: #4e739f;
}

body[data-theme="light"] .message-attach-chip {
  border-color: rgba(132, 169, 210, 0.52);
  background: rgba(233, 242, 253, 0.9);
  color: #25466a;
}

body[data-theme="light"] .gif-picker {
  border-color: rgba(130, 168, 208, 0.56);
  background: rgba(247, 251, 255, 0.96);
}

body[data-theme="light"] .gif-result-btn {
  border-color: rgba(130, 168, 208, 0.45);
  background: rgba(236, 244, 253, 0.95);
}

body[data-theme="light"] .gif-empty {
  color: #5d7ea6;
}

body[data-theme="light"] .msg-file {
  border-color: rgba(132, 169, 210, 0.54);
  background: rgba(233, 242, 253, 0.9);
  color: #224568;
}

body[data-theme="light"] .voice-music-panel {
  border-top-color: #d7dfeb;
}

body[data-theme="light"] .voice-music-panel h3 {
  color: #55779f;
}

body[data-theme="light"] #voiceMusicNow {
  color: #5c7ea6;
}

body[data-theme="light"] .surface-btn {
  border-color: rgba(130, 168, 208, 0.56);
  background: rgba(232, 241, 252, 0.92);
  color: #2c5079;
}

body[data-theme="light"] .surface-btn.active {
  border-color: rgba(95, 145, 201, 0.72);
  background: linear-gradient(120deg, rgba(88, 145, 214, 0.62), rgba(83, 186, 139, 0.48));
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(95, 136, 183, 0.3);
}

body[data-theme="light"] .overview-card,
body[data-theme="light"] .overview-stat {
  border-color: rgba(130, 168, 208, 0.48);
  background: rgba(235, 244, 254, 0.9);
}

body[data-theme="light"] .overview-card p,
body[data-theme="light"] .overview-stat span {
  color: #59799f;
}

body[data-theme="light"] .community-private-hint {
  color: #5b7ca3;
}

body[data-theme="light"] .overview-stat strong {
  color: #1b3f67;
}

body[data-theme="light"] #profilePreviewBio {
  color: #5e7899;
}

body[data-theme="light"] #profileModal .modal-head p,
body[data-theme="light"] .profile-form label {
  color: #5f7da1;
}

body[data-theme="light"] #profileModal .modal-close {
  background: rgba(236, 244, 255, 0.85);
  border-color: rgba(130, 168, 208, 0.62);
}

body[data-theme="light"] .profile-form input[type="text"],
body[data-theme="light"] .profile-form textarea {
  background: rgba(255, 255, 255, 0.9);
  border-color: rgba(135, 173, 214, 0.6);
}

body[data-theme="light"] .profile-media-pick.banner-pick,
body[data-theme="light"] .media-adjust-box,
body[data-theme="light"] .profile-adjust-toggle {
  border-color: rgba(130, 168, 208, 0.6);
  background: rgba(232, 242, 255, 0.9);
  color: #214b7c;
}

body[data-theme="light"] .profile-media-pick:hover {
  color: #123b66;
}

body[data-theme="light"] .btn-rgb {
  color: #1f3f69 !important;
  box-shadow: inset 0 0 0 1px rgba(119, 157, 198, 0.35), 0 8px 18px rgba(79, 120, 170, 0.22);
}

body[data-theme="light"] .info-card {
  background: linear-gradient(180deg, rgba(244, 250, 255, 0.9), rgba(236, 245, 255, 0.78));
}

body[data-theme="light"] .modal-close {
  color: #2b4f7d;
  border-bottom-color: #9cb8dc;
}

body[data-theme="light"] .modal-head p {
  color: #607b9f;
}

body[data-theme="light"] .action-pill.danger {
  border-bottom-color: rgba(200, 88, 88, 0.52);
  color: #9f3b3b;
}

@media (max-width: 1200px) {
  body {
    overflow: auto;
  }

  .top-header {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "brand actions"
      "search search";
    height: auto;
    padding: 10px 12px;
    row-gap: 8px;
  }

  .brand-cluster {
    grid-area: brand;
  }

  .top-actions {
    grid-area: actions;
    justify-self: end;
  }

  .search-shell {
    grid-area: search;
  }

  .page-shell {
    height: auto;
    min-height: calc(100vh - 108px);
    grid-template-columns: 1fr;
  }

  .media-adjust-grid {
    grid-template-columns: 1fr;
  }

  .left-sidebar,
  .right-sidebar,
  .feed-column {
    width: 100%;
    max-width: none;
  }

  .left-sidebar {
    border-right: 0;
    border-top: 1px solid var(--line);
    order: 2;
    grid-template-rows: auto;
  }

  .feed-column {
    order: 1;
    padding: 10px 12px 0;
  }

  .right-sidebar {
    border-left: 0;
    border-top: 1px solid var(--line);
    order: 3;
  }
}

@media (max-width: 760px) {
  .top-actions .ghost-btn {
    display: none;
  }

  .top-actions #downloadAppBtn {
    display: inline-flex;
  }

  .top-actions #themeToggle {
    display: inline-flex;
    padding: 6px 8px;
    min-width: 36px;
    justify-content: center;
  }

  .top-actions #googleLoginBtn,
  .top-actions #logoutBtn {
    display: inline-flex;
  }

  .top-actions #themeToggle span {
    display: none;
  }

  .presence-btn span {
    display: none;
  }

  .presence-btn {
    padding: 6px 8px;
  }

  .post {
    grid-template-columns: 36px 1fr;
  }

  .message-form {
    grid-template-columns: 1fr;
  }

  .message-form button {
    width: 100%;
    justify-content: center;
  }
}

body[data-device="mobile"] {
  overflow: auto;
}

body[data-device="mobile"] .top-header {
  position: sticky;
  top: 0;
}

body[data-device="mobile"] .top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

body[data-device="mobile"] #createBtn,
body[data-device="mobile"] .presence-picker {
  display: none;
}

body[data-device="mobile"] .top-actions #themeToggle,
body[data-device="mobile"] .top-actions #googleLoginBtn,
body[data-device="mobile"] .top-actions #logoutBtn,
body[data-device="mobile"] .top-actions #downloadAppBtn {
  display: inline-flex;
}

body[data-device="mobile"] .top-actions #themeToggle span,
body[data-device="mobile"] .top-actions #downloadAppBtn span {
  display: none;
}

body[data-device="mobile"] .page-shell {
  height: auto;
  min-height: calc(100vh - 108px);
  grid-template-columns: 1fr;
}

body[data-device="mobile"] .feed-column {
  order: 1;
  padding: 10px 12px 0;
}

body[data-device="mobile"] .right-sidebar {
  order: 2;
  border-left: 0;
  border-top: 1px solid var(--line);
}

body[data-device="mobile"] .left-sidebar {
  order: 3;
  border-right: 0;
  border-top: 1px solid var(--line);
  grid-template-rows: auto;
}

body[data-device="mobile"] .feed-toolbar {
  gap: 12px;
}

body[data-device="mobile"] .feed-toolbar h1 {
  font-size: 24px;
}

body[data-device="mobile"] .feed-surface-switch {
  grid-template-columns: 1fr;
}

body[data-device="mobile"] .activity-strip,
body[data-device="mobile"] .overview-grid {
  grid-template-columns: 1fr;
}

body[data-device="mobile"] .chat-shell {
  min-height: 560px;
}

body[data-device="mobile"] .message-list {
  min-height: 280px;
}

body[data-device="mobile"] .voice-now {
  position: sticky;
  bottom: 0;
  z-index: 4;
}

body[data-device="mobile"] .voice-control-actions {
  width: 100%;
}

body[data-device="mobile"] .voice-control-actions .voice-action-btn {
  flex: 1 1 calc(50% - 6px);
  justify-content: center;
}
