* {
  box-sizing: border-box;
}

:root {
  --motion-fast: 140ms;
  --motion-ui: 180ms;
  --motion-popover: 220ms;
  --motion-modal: 260ms;
  --motion-route: 360ms;
  --motion-theme: 240ms;
  --motion-ease-standard: cubic-bezier(.2, .8, .2, 1);
  --motion-ease-emphasized: cubic-bezier(.16, 1, .3, 1);
  --motion-ease-exit: cubic-bezier(.4, 0, 1, 1);
}

html,
body,
#app {
  width: 100%;
  height: 100%;
}

body {
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.motion-debug-panel {
  position: fixed;
  z-index: 100000;
  right: 12px;
  bottom: 12px;
  pointer-events: none;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, .24);
  border-radius: 8px;
  background: rgba(5, 10, 18, .78);
  color: #c7fff7;
  font: 800 12px/1.25 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .3);
  backdrop-filter: blur(12px);
}

button,
input,
select {
  font: inherit;
}

button {
  color: inherit;
}

a {
  color: var(--accent);
}

.animated-bg {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 8% 18%, rgba(35, 228, 231, 0.28), transparent 34%),
    radial-gradient(circle at 92% 12%, rgba(217, 164, 95, 0.25), transparent 30%),
    radial-gradient(circle at 94% 90%, rgba(180, 107, 75, 0.22), transparent 32%),
    linear-gradient(145deg, var(--bg), var(--bg-2) 48%, color-mix(in srgb, var(--accent) 26%, var(--bg)));
}

.animated-bg::before,
.animated-bg::after {
  content: "";
  position: absolute;
  inset: -20%;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(112deg, transparent 0 28%, rgba(35, 228, 231, 0.24) 29%, transparent 31% 47%, rgba(217, 164, 95, 0.2) 48%, transparent 50% 68%, rgba(255,255,255,0.13) 69%, transparent 70%),
    linear-gradient(63deg, transparent 0 62%, rgba(35, 228, 231, 0.26) 63%, transparent 64%),
    repeating-linear-gradient(90deg, rgba(255,255,255,0.04) 0 1px, transparent 1px 44px),
    repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0 1px, transparent 1px 44px);
  animation: drift 14s linear infinite;
}

.animated-bg::after {
  filter: blur(1px);
  opacity: 0.78;
  animation-duration: 22s;
  animation-direction: reverse;
}

@keyframes drift {
  from { transform: translate3d(-2%, -2%, 0); }
  to { transform: translate3d(2%, 2%, 0); }
}

.auth-shell,
.app-bg {
  min-height: 100%;
}

.auth-shell {
  display: grid;
  place-items: center;
  padding: 24px;
}

.glass,
.auth-panel,
.discord-shell,
.settings-modal {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.auth-panel,
.discord-shell,
.settings-modal {
  position: relative;
  z-index: 1;
}

.auth-panel {
  width: min(440px, 100%);
  padding: 32px;
  border-radius: var(--radius);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  object-fit: cover;
}

.brand-logo.large {
  width: 92px;
  height: 92px;
  border-radius: 12px;
}

.auth-panel h1 {
  margin: 18px 0 8px;
  font-size: 34px;
  letter-spacing: 0;
}

.auth-copy,
.helper-text,
.status-line {
  color: var(--muted);
  line-height: 1.5;
}

.auth-form,
.settings-card {
  display: grid;
  gap: 14px;
}

label {
  display: grid;
  gap: 8px;
  color: var(--soft);
  font-size: 13px;
  font-weight: 800;
}

input,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  outline: none;
  background: color-mix(in srgb, var(--panel-solid) 62%, transparent);
  color: var(--text);
}

input[type="range"] {
  padding: 0;
  accent-color: var(--accent);
}

.auth-remember-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 28px;
  color: var(--soft);
}

.auth-remember-row input {
  width: 18px;
  height: 18px;
  margin: 0;
  padding: 0;
  accent-color: var(--accent);
}

.auth-remember-row span {
  line-height: 1.3;
}

.auth-divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  margin: 12px 0 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.auth-divider::before,
.auth-divider::after {
  content: "";
  height: 1px;
  background: var(--line);
}

.yandex-auth-button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 44px;
  border: 1px solid color-mix(in srgb, #ffcc00 36%, var(--line));
  border-radius: 8px;
  background: #fff;
  color: #161616;
  font-weight: 900;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--motion-ease-standard),
    border-color var(--motion-fast) var(--motion-ease-standard),
    background-color var(--motion-fast) var(--motion-ease-standard),
    color var(--motion-fast) var(--motion-ease-standard);
}

.yandex-auth-button:hover {
  transform: translateY(-1px);
  border-color: #ffcc00;
  box-shadow: 0 12px 26px rgba(0, 0, 0, .22);
}

.yandex-auth-button.is-unavailable {
  opacity: 0.78;
  border-color: color-mix(in srgb, #ffcc00 18%, var(--line));
  background: color-mix(in srgb, #fff 86%, var(--panel-solid));
  color: color-mix(in srgb, #161616 74%, var(--muted));
}

.yandex-auth-button.is-unavailable:hover {
  transform: none;
  border-color: color-mix(in srgb, #ffcc00 28%, var(--line));
  box-shadow: none;
}

.yandex-auth-mark {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fc3f1d;
  color: #fff;
  font-weight: 950;
  line-height: 1;
}

input:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.primary-button,
.ghost-button,
.link-button,
.server-orb,
.server-add,
.channel-row,
.file-button {
  border: 0;
  cursor: pointer;
  transition:
    transform var(--motion-fast) var(--motion-ease-standard),
    border-color var(--motion-fast) var(--motion-ease-standard),
    background-color var(--motion-fast) var(--motion-ease-standard),
    color var(--motion-fast) var(--motion-ease-standard),
    opacity var(--motion-fast) var(--motion-ease-standard);
}

.primary-button:hover,
.ghost-button:hover,
.server-orb:hover,
.server-add:hover,
.file-button:hover,
.screen-toolbar button:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.22);
  border-color: color-mix(in srgb, var(--accent) 46%, var(--line));
}

.primary-button {
  border-radius: 8px;
  padding: 12px 16px;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #041012;
  font-weight: 900;
}

.primary-button.compact,
.ghost-button {
  padding: 9px 12px;
}

.ghost-button,
.file-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-2);
  color: var(--soft);
  font-weight: 850;
}

.ghost-button.danger {
  color: var(--danger);
}

.link-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  background: transparent;
  color: var(--accent);
  font-weight: 850;
}

.form-error {
  min-height: 20px;
  color: var(--danger);
  font-size: 13px;
}

.discord-shell {
  width: min(90vw, 1840px);
  height: calc(100vh - 20px);
  margin: 10px auto;
  display: grid;
  grid-template-columns: 72px 284px minmax(0, 1fr) 272px;
  overflow: hidden;
  border-radius: var(--radius);
}

.server-rail {
  padding: 12px 10px;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  background: color-mix(in srgb, var(--panel-solid) 70%, transparent);
  border-right: 1px solid var(--line);
  overflow: visible;
  z-index: 20;
}

.server-orb,
.server-add {
  position: relative;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  overflow: hidden;
  background: var(--panel-3);
}

.server-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.server-logo-orb,
.server-logo-icon {
  background-image: var(--server-icon-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.server-orb.active {
  box-shadow: 0 0 0 3px rgba(35, 228, 231, 0.34);
}

.server-orb.active::before {
  content: "";
  position: absolute;
  left: -10px;
  width: 4px;
  height: 30px;
  border-radius: 4px;
  background: var(--accent);
}

.server-add {
  color: var(--accent);
  font-size: 28px;
  font-weight: 700;
}

.rail-server-tip-host {
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}

.rail-server-tooltip {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  z-index: 80;
  max-width: 260px;
  padding: 9px 12px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: color-mix(in srgb, var(--panel-solid, #101827) 88%, transparent);
  color: var(--text, #fff);
  box-shadow: 0 16px 38px rgba(0,0,0,.28);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  transform: translate(-6px, -50%);
  transition: opacity .16s ease, transform .16s ease;
}

.rail-server-tooltip::before {
  content: "";
  position: absolute;
  left: -5px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-left: 1px solid var(--panel-border, rgba(255,255,255,.14));
  border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: inherit;
  transform: translateY(-50%) rotate(45deg);
}

.rail-server-tip-host:hover .rail-server-tooltip,
.rail-server-tip-host:focus-within .rail-server-tooltip {
  opacity: 1;
  transform: translate(0, -50%);
}

.sidebar,
.members-panel {
  min-width: 0;
  background: color-mix(in srgb, var(--panel-solid) 68%, transparent);
  border-right: 1px solid var(--line);
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr 1fr auto auto;
}

.workspace-head,
.channel-header,
.user-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 12px;
}

.workspace-head {
  height: 70px;
  padding: 14px;
  border-bottom: 1px solid var(--line);
}

.workspace-head div,
.user-meta,
.member-row div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.workspace-head strong,
.user-meta strong,
.member-row strong,
.channel-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-head span,
.user-meta span,
.member-row span,
.message-head time,
.voice-user,
.helper-text {
  color: var(--muted);
  font-size: 12px;
}

.section-title {
  margin: 0 0 8px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.channel-row {
  width: 100%;
  min-height: 38px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  text-align: left;
}

.channel-row:hover,
.channel-row.active,
.voice-channel.active .channel-row {
  background: linear-gradient(90deg, rgba(35, 228, 231, 0.16), rgba(255,255,255,0.03));
  color: var(--text);
}

.channel-row span,
.channel-row em {
  color: var(--muted);
  font-style: normal;
  font-weight: 900;
}

.voice-users {
  display: grid;
  gap: 4px;
  padding: 2px 8px 8px 34px;
}

.voice-user {
  min-height: 24px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.avatar,
.mini-avatar {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: var(--panel-3);
  color: var(--text);
  font-weight: 950;
}

.avatar {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.avatar.small {
  width: 32px;
  height: 32px;
  flex-basis: 32px;
  font-size: 11px;
}

.mini-avatar {
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  font-size: 10px;
}

.user-name-line {
  min-width: 0;
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  vertical-align: middle;
}

.user-name-line > strong,
.user-name-line > span:first-child {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-name-line.heading {
  gap: 8px;
}

.user-game-activity {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  display: inline-grid;
  place-items: center;
  overflow: hidden;
  border-radius: 9px;
  opacity: 1;
  transform: translateY(2px);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16), 0 4px 14px rgba(255, 90, 99, 0.28);
}

.user-game-activity.compact {
  width: 28px;
  height: 28px;
  flex-basis: 28px;
  border-radius: 8px;
}

.user-game-activity.tiny {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
  border-radius: 6px;
}

.user-game-activity img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: saturate(1.28) brightness(1.18) contrast(1.08);
}

.user-strip {
  padding: 12px;
  border-top: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 54%, transparent);
}

.main-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: 70px minmax(220px, 42vh) minmax(0, 1fr);
  background: color-mix(in srgb, var(--panel-solid) 62%, transparent);
}

.main-panel.no-stage {
  grid-template-rows: 70px minmax(0, 1fr);
}

.main-panel.no-stage .stage-wrap {
  display: none;
}

.main-panel.has-stage {
  grid-template-rows: 70px minmax(260px, 42vh) minmax(0, 1fr);
}

.channel-header {
  justify-content: space-between;
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: color-mix(in srgb, var(--panel-solid) 54%, transparent);
}

.channel-kicker {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.channel-header h2,
.settings-modal h2 {
  margin: 0;
  font-size: 20px;
  letter-spacing: 0;
}

.header-actions,
.modal-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-wrap {
  min-height: 0;
  border-bottom: 1px solid var(--line);
  overflow: hidden;
}

.stream-stage {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px;
}

.screen-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  gap: 12px;
}

.screen-tile {
  position: relative;
  min-height: 220px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #02070a;
}

.screen-tile:fullscreen {
  width: 100vw;
  height: 100vh;
  border: 0;
  border-radius: 0;
  background: #000;
}

.screen-tile video {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.screen-tile:fullscreen video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
}

.screen-tile.self-preview {
  border-style: dashed;
  opacity: 0.92;
}

.screen-toolbar {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.58);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 140ms ease, transform 140ms ease;
}

.screen-tile:hover .screen-toolbar,
.screen-tile:fullscreen .screen-toolbar {
  opacity: 1;
  transform: translateY(0);
}

.screen-toolbar em {
  min-width: 0;
  color: rgba(255, 255, 255, 0.72);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-style: normal;
}

.screen-toolbar button {
  border: 1px solid rgba(255,255,255,0.18);
  border-radius: 8px;
  background: rgba(255,255,255,0.1);
  color: #fff;
  padding: 5px 8px;
  cursor: pointer;
}

.screen-tile:not(:fullscreen) [data-exit-fullscreen] {
  display: none;
}

.screen-volume {
  min-width: 160px;
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr);
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
}

.screen-volume input {
  width: 100%;
}

.desktop-screen-source-picker {
  display: grid;
  gap: 12px;
}

.desktop-screen-source-picker > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.desktop-screen-source-picker > header div {
  display: grid;
  gap: 3px;
}

.desktop-screen-source-picker > header span,
.screen-source-meta small {
  color: var(--muted);
}

.screen-source-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  max-height: 320px;
  overflow: auto;
  padding-right: 2px;
}

.screen-source-card {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: color-mix(in srgb, var(--panel-solid) 72%, transparent);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.screen-source-card:hover,
.screen-source-card.active {
  border-color: color-mix(in srgb, var(--accent) 70%, var(--line));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 16%, transparent);
}

.screen-source-thumb {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  border-radius: 6px;
  background: color-mix(in srgb, var(--bg) 72%, var(--panel-solid));
}

.screen-source-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.screen-source-meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.screen-source-meta b {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.screen-share-audio-row {
  display: none !important;
  margin-top: 2px;
}

.message-list {
  overflow: auto;
  padding: 18px;
}

.message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 8px 0;
}

.message-head {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.message p {
  margin: 3px 0 0;
  color: var(--soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  padding: 14px 18px 18px;
}

.members-panel {
  padding: 14px 10px;
  overflow: auto;
  border-left: 1px solid var(--line);
  border-right: 0;
}

.member-row {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  padding: 9px 8px;
  border-radius: 8px;
}

.member-row:hover {
  background: var(--panel-2);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(0, 0, 0, 0.62);
  animation: none;
}

.settings-modal {
  box-sizing: border-box;
  width: min(760px, calc(100vw - 32px));
  max-height: min(86vh, 840px);
  overflow: auto;
  padding: 22px;
  border-radius: 8px;
}

.settings-modal.wide {
  width: min(1120px, calc(100vw - 32px));
}

.settings-modal.small {
  width: min(480px, calc(100vw - 24px));
}

.settings-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.settings-card {
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel-solid) 42%, transparent);
}

.settings-card h3 {
  margin: 0;
  font-size: 16px;
}

.switch-row {
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
}

.switch-row input {
  width: 18px;
  height: 18px;
}

.broadcast-hint {
  padding: 12px;
  border: 1px solid rgba(35, 228, 231, 0.24);
  border-radius: 8px;
  color: var(--soft);
  background: rgba(35, 228, 231, 0.08);
  line-height: 1.45;
}

.sound-list,
.role-list {
  display: grid;
  gap: 8px;
}

.sound-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto auto;
  gap: 8px;
  align-items: center;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.file-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  min-height: 37px;
  padding: 8px 12px;
  overflow: hidden;
}

.file-button input {
  position: absolute;
  inset: 0;
  opacity: 0;
  cursor: pointer;
}

.role-row {
  grid-template-columns: minmax(0, 1fr) 150px;
  align-items: center;
  gap: 10px;
}

.role-row em {
  color: var(--muted);
  font-style: normal;
}

.status-line[data-tone="danger"] {
  color: var(--danger);
}

.status-line[data-tone="good"] {
  color: var(--accent-2);
}

@media (max-width: 1240px) {
  .discord-shell {
    width: calc(100vw - 24px);
    grid-template-columns: 66px 250px minmax(0, 1fr);
  }

  .members-panel {
    display: none;
  }
}

.taksa-rail {
  gap: 14px;
  padding: 14px 10px;
  background: linear-gradient(180deg, rgba(7, 18, 28, 0.94), rgba(5, 13, 21, 0.82));
}

.rail-separator {
  width: 38px;
  height: 1px;
  background: var(--v04-line);
}

.nav-row em,
.right-card p {
  color: var(--muted);
  font-size: 13px;
  font-style: normal;
}

.nav-row {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--soft);
  cursor: pointer;
  padding: 11px 12px;
  text-align: left;
  transition: background 140ms ease, color 140ms ease, transform 140ms ease;
}

.nav-row:hover,
.nav-row.active {
  background: linear-gradient(90deg, rgba(39, 227, 228, 0.15), rgba(255, 255, 255, 0.035));
  color: #fff;
}

.nav-row span {
  color: var(--v04-cyan);
  font-weight: 950;
  text-align: center;
}

.nav-row em {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(148, 172, 190, 0.2);
  text-align: center;
}

.dock-icon {
  position: relative;
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid var(--v04-line);
  border-radius: 8px;
  background: rgba(20, 39, 54, 0.75);
  color: var(--soft);
  cursor: pointer;
}

.dock-icon em {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #d84d7b;
  color: #fff;
  font-size: 10px;
  line-height: 17px;
}

.glass-card,
.right-card {
  border: 1px solid var(--v04-line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.025), transparent),
    var(--v04-panel);
  box-shadow: 0 18px 58px rgba(0, 0, 0, 0.22);
}

.voice-room-page {
  display: grid;
  gap: 16px;
}

.social-avatar {
  background: linear-gradient(135deg, rgba(39, 227, 228, 0.28), rgba(154, 108, 255, 0.28));
  border: 1px solid var(--v04-line-strong);
}

.social-avatar.ring {
  width: 62px;
  height: 62px;
  box-shadow: 0 0 0 3px rgba(39, 227, 228, 0.58), 0 0 20px rgba(39, 227, 228, 0.14);
}

.social-avatar.large {
  width: 96px;
  height: 96px;
  font-size: 26px;
}

.social-avatar.huge {
  width: 118px;
  height: 118px;
  margin: 0 auto 10px;
  font-size: 30px;
}


.right-card {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.right-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.right-card h3 {
  margin: 0;
  font-size: 16px;
}

.right-card a {
  color: var(--v04-cyan);
  font-size: 12px;
}

.badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 8px;
  background: rgba(39, 227, 228, 0.18);
  color: var(--v04-cyan);
  font-size: 12px;
}

.voice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  padding: 16px;
}

.voice-tile {
  min-height: 180px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 8px;
  border: 1px solid var(--v04-line);
  border-radius: 8px;
  background: radial-gradient(circle at 50% 20%, rgba(39, 227, 228, 0.12), transparent 58%), rgba(255, 255, 255, 0.025);
}

.voice-tile.self {
  border-color: var(--v04-line-strong);
}

.video-voice-tile {
  position: relative;
  overflow: hidden;
  min-height: 210px;
}

.video-voice-tile video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #03090d;
}

.video-voice-tile.has-video {
  place-items: stretch;
  align-content: stretch;
  padding: 0;
}

.voice-tile-caption {
  position: relative;
  z-index: 1;
  align-self: end;
  width: 100%;
  display: grid;
  gap: 2px;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.72));
  color: white;
}

.voice-tile-caption span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
}

.member-group {
  display: grid;
  gap: 6px;
}

.member-group h3 {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.text-channel-view {
  min-height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

/* TaksaCord v0.5 rollback: clean Discord-like shell with real data. */
.app-bg {
  display: grid;
  align-items: stretch;
  justify-items: stretch;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  padding: clamp(8px, 1.1vw, 18px);
  overflow: hidden;
}

.app-bg > [data-app-dynamic] {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.app-bg > [data-app-dynamic] > .simple-discord-shell {
  width: 100%;
  height: 100%;
  margin: 0;
}

.simple-discord-shell {
  width: 100%;
  height: 100%;
  max-width: none;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns:
    clamp(74px, 4.2vw, 104px)
    clamp(270px, 17vw, 420px)
    minmax(460px, 1fr)
    clamp(270px, 17vw, 420px);
  overflow: hidden;
  color: var(--simple-text);
  border-radius: 12px;
  border-color: var(--simple-line);
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.035), transparent 42%),
    var(--simple-panel);
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.46);
}

.simple-discord-shell button {
  cursor: pointer;
  transition:
    background-color var(--motion-fast) var(--motion-ease-standard),
    border-color var(--motion-fast) var(--motion-ease-standard),
    color var(--motion-fast) var(--motion-ease-standard),
    transform var(--motion-fast) var(--motion-ease-standard),
    opacity var(--motion-fast) var(--motion-ease-standard);
}

.simple-discord-shell button:hover {
  transform: translateY(-1px);
}

.simple-sidebar,
.simple-main,
.simple-members {
  min-height: 0;
  border-right: 1px solid var(--simple-line);
  background: rgba(5, 15, 22, 0.28);
}

.simple-sidebar {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto auto;
  overflow: hidden;
}

.simple-server-head {
  min-height: 88px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 0 24px;
  border-bottom: 1px solid var(--simple-line);
}

.simple-server-head strong {
  display: block;
  font-size: 20px;
}

.simple-server-head span {
  display: block;
  margin-top: 4px;
  color: var(--simple-muted);
  font-size: 13px;
}

.simple-nav,
.simple-section {
  display: grid;
  gap: 8px;
  padding: 18px 16px 0;
}

.simple-section {
  align-content: start;
  min-height: 0;
  overflow: auto;
}

.section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--simple-muted);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.section-title button {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--simple-soft);
}

.section-title button:hover {
  color: var(--simple-accent);
  background: rgba(49, 221, 215, 0.1);
}

.section-title-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.nav-row,
.channel-row,
.voice-user {
  width: 100%;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--simple-soft);
  text-align: left;
}

.nav-row strong,
.channel-row strong,
.voice-user {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.nav-row:hover,
.channel-row:hover,
.voice-user:hover,
.nav-row.active,
.channel-row.active,
.voice-channel.active > .channel-row {
  color: var(--simple-text);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.04);
}

.nav-row.active,
.channel-row.active,
.voice-channel.active > .channel-row {
  background: linear-gradient(90deg, rgba(49, 221, 215, 0.22), rgba(255, 255, 255, 0.05));
}

.voice-users {
  display: grid;
  gap: 4px;
  margin: 4px 0 6px 48px;
}

.voice-users:empty {
  display: none;
}

.voice-user {
  min-height: 30px;
  grid-template-columns: 24px minmax(0, 1fr);
  padding: 0 6px;
  font-size: 13px;
}

.mini-avatar,
.avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--simple-line);
  background: var(--simple-panel-3);
  color: var(--simple-text);
  font-weight: 850;
}

.mini-avatar {
  width: 24px;
  height: 24px;
  border-radius: 8px;
  font-size: 11px;
}

.avatar {
  width: 44px;
  height: 44px;
  border-radius: 14px;
}

.avatar.small {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.avatar.large,
.social-avatar.large {
  width: 82px;
  height: 82px;
  border-radius: 20px;
  font-size: 26px;
}

.avatar.online::after,
.avatar.voice::after,
.avatar.offline::after,
.status-avatar::after,
.profile-modal-avatar.online::after,
.profile-modal-avatar.voice::after,
.profile-modal-avatar.offline::after,
.my-page-avatar.online::after,
.my-page-avatar.voice::after,
.my-page-avatar.offline::after {
  content: "";
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #071018;
  background: var(--simple-green);
}

.avatar.voice::after,
.profile-modal-avatar.voice::after,
.my-page-avatar.voice::after {
  background: var(--simple-accent);
}

.avatar.offline::after,
.profile-modal-avatar.offline::after,
.my-page-avatar.offline::after {
  background: var(--simple-danger);
}

.avatar.offline {
  opacity: 0.72;
}

.presence-dot {
  width: 9px;
  height: 9px;
  display: inline-block;
  flex: 0 0 auto;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.44);
  box-shadow: 0 0 12px rgba(0,0,0,.24);
}

.presence-dot.online {
  background: var(--simple-green);
}

.presence-dot.offline {
  background: var(--simple-danger);
}

.presence-row-meta {
  display: inline-flex !important;
  align-items: center;
  gap: 6px;
  min-height: 16px;
}

.presence-row-meta span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-user-strip {
  min-height: 74px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding: 12px 16px;
  border-top: 1px solid var(--simple-line);
  background: rgba(0, 0, 0, 0.14);
}

.simple-user-strip .avatar {
  border: 0;
}

.user-meta {
  min-width: 0;
}

.user-meta strong,
.user-meta span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.user-meta span {
  color: var(--simple-muted);
  font-size: 12px;
}

.dock-icon {
  width: 38px;
  height: 38px;
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.035);
  color: var(--simple-soft);
  display: inline-grid;
  place-items: center;
}

.dock-icon:hover {
  color: var(--simple-accent);
  border-color: var(--simple-line-strong);
  background: rgba(49, 221, 215, 0.1);
}

.simple-main {
  display: grid;
  grid-template-rows: 88px minmax(0, 1fr);
  background:
    radial-gradient(circle at 50% 18%, rgba(49, 221, 215, 0.07), transparent 42%),
    rgba(7, 18, 27, 0.38);
}

.simple-topbar {
  min-height: 88px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 0 clamp(18px, 2vw, 34px);
  border-bottom: 1px solid var(--simple-line);
}

.simple-title {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 16px;
}

.simple-title span {
  color: var(--simple-muted);
  font-size: 28px;
  font-weight: 850;
}

.simple-title h2 {
  margin: 0;
  overflow: hidden;
  font-size: 24px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.desktop-download-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 210px;
  padding: 0 14px;
  border: 1px solid var(--simple-line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--simple-panel-2) 82%, transparent);
  color: var(--simple-text);
  font-size: 13px;
  font-weight: 850;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.desktop-download-link:hover {
  color: var(--simple-accent);
  border-color: var(--simple-line-strong);
  background: rgba(49, 221, 215, 0.1);
}

.simple-search {
  width: clamp(180px, 15vw, 280px);
  height: 44px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
  border: 1px solid var(--simple-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
}

.simple-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--simple-text);
  padding: 0 12px;
  outline: 0;
}

.simple-search span {
  color: var(--simple-muted);
}

.simple-content {
  min-height: 0;
  overflow: hidden;
}

.simple-text-view {
  height: 100%;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
}

.simple-message-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  overflow: auto;
  padding: clamp(18px, 2vw, 34px);
}

.simple-message {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  margin-bottom: 0;
}

.simple-message .avatar {
  border: 0;
}

.message-head {
  display: flex;
  align-items: baseline;
  gap: 10px;
}

.message-head time {
  color: var(--simple-muted);
  font-size: 12px;
}

.simple-message p {
  margin: 4px 0 0;
  color: var(--simple-soft);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.welcome-empty {
  min-height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 14px;
  text-align: center;
  color: var(--simple-soft);
}

.welcome-icon {
  width: 104px;
  height: 104px;
  display: grid;
  place-items: center;
  border: 1px solid var(--simple-line);
  border-radius: 50%;
  background: var(--simple-panel-2);
  color: var(--simple-soft);
  font-size: 54px;
  font-weight: 900;
}

.welcome-empty h2 {
  margin: 0;
  max-width: 620px;
  color: var(--simple-text);
  font-size: clamp(24px, 2vw, 34px);
}

.welcome-empty p {
  margin: 0;
}

.simple-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 10px;
  margin: 0 clamp(18px, 2vw, 34px) clamp(18px, 2vw, 30px);
  padding: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  background: var(--simple-panel-2);
}

.simple-composer input,
.simple-composer textarea {
  min-width: 0;
  border: 0;
  background: transparent;
  color: var(--simple-text);
  outline: 0;
  padding: 0 8px;
}

.simple-composer textarea {
  min-height: 38px;
  max-height: 128px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.primary-button,
.ghost-button,
.home-action-card button,
.server-mini-card {
  border-radius: 8px;
}

.simple-home,
.simple-voice-page {
  height: 100%;
  overflow: auto;
  padding: clamp(22px, 2.4vw, 42px);
}

.home-welcome {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  margin-bottom: 24px;
}

.home-welcome h1 {
  margin: 0 0 6px;
  font-size: clamp(26px, 2.2vw, 38px);
}

.home-welcome p {
  margin: 0;
  color: var(--simple-soft);
}

.home-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.home-card-grid,
.home-two-col {
  display: grid;
  gap: 18px;
}

.home-card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 18px;
}

.home-two-col {
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  margin-bottom: 18px;
}

.home-action-card,
.home-panel {
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: var(--simple-panel-2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.home-action-card {
  min-height: 142px;
  display: grid;
  align-content: center;
  gap: 10px;
  padding: 22px;
}

.home-action-card strong,
.home-panel h3 {
  margin: 0;
  color: var(--simple-text);
}

.home-action-card p {
  margin: 0;
  color: var(--simple-soft);
}

.home-action-card button {
  width: fit-content;
  min-height: 36px;
  border: 1px solid var(--simple-line-strong);
  background: rgba(49, 221, 215, 0.12);
  color: var(--simple-text);
  padding: 0 14px;
}

.home-action-card button:hover {
  background: rgba(49, 221, 215, 0.22);
}

.home-panel {
  padding: 18px;
}

.home-panel header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 14px;
}

.update-row {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 16px;
  padding: 14px 0;
  border-top: 1px solid var(--simple-line);
}

.update-row:first-of-type {
  border-top: 0;
}

.update-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(49, 221, 215, 0.12);
  color: var(--simple-accent);
  font-size: 28px;
}

.update-row p {
  margin: 6px 0 0;
  color: var(--simple-soft);
}

.update-history-panel {
  align-content: start;
}

.update-history-panel header {
  align-items: flex-start;
  gap: 12px;
}

.update-history-panel header > div {
  display: grid;
  gap: 4px;
}

.update-news-latest {
  flex: 0 0 auto;
  border: 1px solid var(--simple-line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--simple-accent);
  background: rgba(49, 221, 215, 0.1);
  font-size: 11px;
  font-weight: 900;
}

.update-news-list {
  display: grid;
  gap: 10px;
  max-height: min(52vh, 560px);
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 6px;
  scrollbar-gutter: stable;
}

.update-news-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--simple-line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.update-news-card.is-latest {
  border-color: color-mix(in srgb, var(--simple-accent) 48%, var(--simple-line));
  background: color-mix(in srgb, var(--simple-accent) 11%, transparent);
}

.update-news-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  color: var(--simple-accent);
  background: rgba(49, 221, 215, 0.12);
  font-size: 20px;
  font-weight: 950;
}

.update-news-body {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.update-news-meta {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.update-news-meta span,
.update-news-meta b {
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--simple-accent);
  background: rgba(49, 221, 215, 0.1);
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.update-news-meta em {
  color: var(--simple-muted);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
}

.update-news-card h4 {
  margin: 0;
  color: var(--simple-text);
  font-size: 15px;
  line-height: 1.25;
}

.update-news-card p {
  margin: 0;
  color: var(--simple-soft);
  line-height: 1.45;
}

.update-news-card ul {
  display: grid;
  gap: 5px;
  margin: 2px 0 0;
  padding: 0;
  list-style: none;
}

.update-news-card li {
  position: relative;
  padding-left: 15px;
  color: var(--simple-soft);
  line-height: 1.4;
}

.update-news-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .66em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--simple-accent);
  transform: translateY(-50%);
}

.empty-section,
.empty-note {
  color: var(--simple-muted);
  line-height: 1.5;
}

.empty-section {
  min-height: 90px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--simple-line);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
}

.server-card-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.server-mini-card {
  min-width: 150px;
  min-height: 76px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas: "icon title" "icon meta";
  gap: 3px 10px;
  align-items: center;
  border: 1px solid var(--simple-line);
  background: rgba(255, 255, 255, 0.035);
  color: var(--simple-text);
  padding: 10px;
  text-align: left;
}

.server-mini-card span {
  grid-area: icon;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--simple-panel-3);
}

.server-mini-card strong {
  grid-area: title;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-mini-card em {
  grid-area: meta;
  color: var(--simple-muted);
  font-style: normal;
  font-size: 12px;
}

.simple-members {
  border-right: 0;
  overflow: auto;
  padding: 22px 18px;
}

.simple-member-card {
  display: grid;
  gap: 18px;
  padding: 0;
  background: transparent;
  border: 0;
}

.simple-member-card header h3 {
  font-size: 16px;
}

.member-group {
  display: grid;
  gap: 8px;
}

.member-group h3 {
  margin: 0;
  color: var(--simple-muted);
  font-size: 12px;
  text-transform: uppercase;
}

.simple-member-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--simple-text);
  text-align: left;
}

.simple-member-row:hover {
  border-color: var(--simple-line);
  background: rgba(255, 255, 255, 0.045);
}

.simple-member-row span:not(.avatar) {
  min-width: 0;
}

.simple-member-row strong,
.simple-member-row em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simple-member-row em {
  color: var(--simple-muted);
  font-size: 12px;
  font-style: normal;
}

.simple-member-row .user-name-line,
.profile-friend-row .user-name-line,
.profile-friend-main .user-name-line,
.message-head .user-name-line,
.user-meta .user-name-line,
.voice-user .user-name-line,
.voice-tile-caption .user-name-line {
  display: inline-flex;
  min-width: 0;
}

.voice-user .user-name-line {
  flex: 1 1 auto;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-tile-caption .user-name-line {
  justify-content: center;
}

.voice-bars {
  color: var(--simple-green);
  font-size: 14px;
}

.simple-voice-page {
  display: grid;
  grid-template-rows: auto auto minmax(180px, auto);
  gap: 18px;
}

.stage-wrap:empty {
  display: none;
}

.stream-stage {
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: var(--simple-panel-2);
  overflow: hidden;
}

.screen-tile {
  border-radius: 8px;
  overflow: hidden;
}

.screen-tile:fullscreen {
  width: 100vw;
  height: 100vh;
  background: #000;
}

.screen-tile:fullscreen video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.screen-tile:fullscreen .screen-toolbar {
  opacity: 0;
  transition: opacity 160ms ease;
}

.screen-tile:fullscreen:hover .screen-toolbar {
  opacity: 1;
}

.profile-modal {
  width: min(720px, calc(100vw - 32px));
}

.profile-modal-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
}

.profile-modal-avatar {
  width: 86px;
  height: 86px;
  border-radius: 22px;
  font-size: 28px;
}

.profile-modal-head strong,
.profile-modal-head p,
.profile-modal-head em {
  display: block;
  margin: 0 0 4px;
}

.profile-modal-head p,
.profile-modal-head em,
.profile-readonly p {
  color: var(--simple-soft);
  font-style: normal;
}

.profile-form {
  min-height: 0;
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding-right: 6px;
  padding-bottom: 10px;
}

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

.profile-form input,
.profile-form textarea {
  width: 100%;
  border: 1px solid var(--simple-line);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.16);
  color: var(--simple-text);
  padding: 10px 12px;
  outline: 0;
}

.profile-form input:focus,
.profile-form textarea:focus {
  border-color: var(--simple-line-strong);
}

.profile-settings-card .profile-form {
  max-height: 100%;
}

.profile-settings-card .modal-actions {
  position: sticky;
  bottom: -10px;
  z-index: 4;
  justify-content: flex-start;
  padding: 12px 0 4px;
  background:
    linear-gradient(180deg, transparent, color-mix(in srgb, var(--panel-solid) 78%, transparent) 22%, color-mix(in srgb, var(--panel-solid) 90%, transparent));
  backdrop-filter: blur(10px);
}

@media (max-width: 1380px) {
  .simple-discord-shell {
    grid-template-columns: 76px 280px minmax(0, 1fr);
    min-width: 0;
  }

  .simple-members {
    display: none;
  }
}

/* TaksaCord v0.6 server/call layout */
.ui-icon {
  width: 20px;
  height: 20px;
  display: inline-block;
  flex: 0 0 20px;
  color: currentColor;
}

.home-orb {
  color: var(--simple-accent);
}

.home-orb .ui-icon {
  width: 24px;
  height: 24px;
}

.v06-section-card {
  margin: 14px 12px 0;
  padding: 14px 12px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
}

.channel-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 6px;
  align-items: center;
  border-radius: 10px;
}

.channel-item.active {
  background: var(--simple-panel-3);
  box-shadow: inset 3px 0 0 var(--simple-accent);
}

.channel-item .channel-row {
  min-width: 0;
  background: transparent;
}

.channel-item.active .channel-row {
  color: var(--simple-text);
}

.channel-settings-btn {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--simple-muted);
  opacity: 0.72;
}

.channel-settings-btn .ui-icon {
  width: 16px;
  height: 16px;
}

.channel-item:hover .channel-settings-btn,
.channel-item.active .channel-settings-btn {
  opacity: 1;
}

.channel-settings-btn:hover {
  color: var(--simple-accent);
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.voice-live-dot {
  color: var(--simple-green);
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
  text-transform: uppercase;
}

.v06-topbar .simple-title .ui-icon {
  width: 26px;
  height: 26px;
  color: var(--simple-soft);
}

.v06-call-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  gap: 18px;
  height: 100%;
  overflow: hidden;
  padding: clamp(18px, 2vw, 32px);
}

.call-grid-header {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--simple-soft);
}

.call-grid-header .ui-icon {
  color: var(--simple-green);
}

.call-tiles {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 18px;
  overflow: auto;
  padding-right: 4px;
}

.v06-call-tile {
  aspect-ratio: 1 / 1;
  min-height: 0;
  width: 100%;
  border-radius: 14px;
  border-color: var(--simple-line);
}

.v06-call-tile.has-video {
  box-shadow: inset 0 0 0 1px var(--simple-green);
}

.invite-call-tile {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 16px;
  color: var(--simple-soft);
}

.invite-plus {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border: 1px dashed var(--simple-line);
  border-radius: 50%;
  background: transparent;
  color: var(--simple-soft);
}

.invite-plus .ui-icon {
  width: 32px;
  height: 32px;
}

.v06-call-controls {
  align-self: end;
  justify-self: center;
  display: flex;
  gap: 14px;
  padding: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 999px;
  background: var(--simple-panel);
  backdrop-filter: blur(16px);
}

.v06-call-controls button {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border: 1px solid var(--simple-line);
  border-radius: 50%;
  background: var(--simple-panel-2);
  color: var(--simple-text);
}

.v06-call-controls button:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.v06-call-controls .hangup {
  background: var(--simple-danger);
  border-color: transparent;
}

.v06-members-card {
  padding: 0;
}

.members-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--simple-line);
}

.v06-members-card .member-group {
  padding: 12px 0;
  border-bottom: 1px solid var(--simple-line);
}

/* TaksaCord v0.7: scoped server members and stronger voice stage */
.home-without-members {
  grid-template-columns:
    clamp(74px, 4.2vw, 104px)
    clamp(270px, 17vw, 420px)
    minmax(560px, 1fr);
}

.home-without-members .simple-main {
  border-right: 0;
}

.voice-user {
  grid-template-columns: 24px minmax(0, 1fr) auto;
}

.voice-mini-bars {
  color: var(--simple-green);
  font-size: 13px;
}

.muted-state-icon {
  width: 16px;
  height: 16px;
  color: var(--simple-danger);
}

.voice-tile-caption span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.v06-call-page {
  grid-template-rows: auto minmax(250px, 1.2fr) minmax(160px, 0.8fr) auto;
  padding: clamp(12px, 1.4vw, 22px);
}

.v06-call-page .stage-wrap {
  min-height: 0;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  background: var(--simple-panel);
}

.v06-call-page .stage-wrap:empty {
  display: none;
}

.v06-media-stage {
  height: 100%;
  border: 0;
  border-radius: 14px;
  background: transparent;
}

.media-grid {
  height: 100%;
  grid-template-columns: repeat(auto-fit, minmax(min(360px, 100%), 1fr));
  gap: 14px;
  padding: 14px;
}

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

.media-tile {
  min-height: 280px;
  border-color: var(--simple-line);
  background: var(--simple-panel-2);
}

.media-grid.single .media-tile {
  min-height: 420px;
}

.media-tile.camera video {
  object-fit: cover;
}

.voice-room-page:fullscreen {
  width: 100vw;
  height: 100vh;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  padding: 0;
  background: #000;
}

.voice-room-page:fullscreen .stage-wrap {
  min-height: 0;
  border: 0;
  border-radius: 0;
}

.voice-room-page:fullscreen .v06-media-stage,
.voice-room-page:fullscreen .media-grid,
.voice-room-page:fullscreen .media-tile,
.voice-room-page:fullscreen .media-tile video {
  width: 100%;
  height: 100%;
  border-radius: 0;
}

.voice-room-page:fullscreen .media-grid {
  padding: 0;
}

.voice-room-page:fullscreen [data-fullscreen] {
  display: none;
}

.voice-room-page:fullscreen [data-exit-fullscreen] {
  display: inline-grid;
}

.voice-room-page:fullscreen .v06-call-controls {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 20;
  opacity: 0;
  transform: translate(-50%, 18px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.voice-room-page:fullscreen:hover .v06-call-controls {
  opacity: 1;
  transform: translate(-50%, 0);
}

/* TaksaCord v0.8: single voice stage block */
.v07-call-page {
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  padding: clamp(10px, 1.2vw, 18px);
}

.media-fullscreen-button {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 4;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: var(--simple-panel);
  color: var(--simple-text);
  padding: 8px 10px;
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.media-view-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  max-width: min(280px, calc(100% - 24px));
}

.media-view-button,
.media-view-controls .media-fullscreen-button {
  position: static;
  top: auto;
  right: auto;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: var(--simple-panel);
  color: var(--simple-text);
  font-weight: 900;
  backdrop-filter: blur(12px);
}

.media-view-button:hover,
.media-view-button:focus-visible,
.media-view-controls .media-fullscreen-button:hover,
.media-view-controls .media-fullscreen-button:focus-visible {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.media-fullscreen-button .ui-icon {
  width: 17px;
  height: 17px;
}

.media-tile video,
.video-voice-tile.has-screen video {
  transform: translate(var(--stream-zoom-x, 0), var(--stream-zoom-y, 0)) scale(var(--stream-zoom-scale, 1));
  transform-origin: center;
  transition: transform 120ms ease;
  will-change: transform;
}

.media-tile.is-stream-zoomed,
.video-voice-tile.has-screen.is-stream-zoomed {
  cursor: grab;
  touch-action: none;
}

.media-tile.is-stream-zoomed video,
.video-voice-tile.has-screen.is-stream-zoomed video {
  cursor: grab;
}

.media-tile.is-stream-zoom-dragging,
.video-voice-tile.has-screen.is-stream-zoom-dragging,
.media-tile.is-stream-zoom-dragging video,
.video-voice-tile.has-screen.is-stream-zoom-dragging video {
  cursor: grabbing;
}

.media-tile.is-stream-zoom-dragging video,
.video-voice-tile.has-screen.is-stream-zoom-dragging video {
  transition: none;
}

.media-tile:hover .media-fullscreen-button {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.v07-call-tiles {
  min-height: 0;
  grid-template-columns: repeat(auto-fill, minmax(160px, 220px));
  justify-content: start;
  align-content: start;
  align-items: start;
  overflow: auto;
  padding: 2px 4px 4px;
}

.v07-call-tiles .v06-call-tile {
  max-width: 220px;
}

.ping-bars {
  cursor: help;
  color: var(--simple-green);
}

.ping-bars::after {
  content: attr(data-ping);
  display: none;
  margin-left: 6px;
  color: var(--simple-muted);
  font-size: 11px;
}

.ping-bars[data-ping]:not([data-ping=""])::after {
  display: inline;
}

.voice-room-page.v07-call-page:fullscreen .v07-call-tiles {
  display: none;
}

.voice-room-page.v07-call-page:fullscreen .media-fullscreen-button {
  display: none;
}

/* TaksaCord v0.9: real fullscreen media stage */
.voice-room-page.v07-call-page:fullscreen {
  display: block;
  overflow: hidden;
}

.voice-room-page.v07-call-page:fullscreen .stream-stage,
.voice-room-page.v07-call-page:fullscreen .media-grid {
  width: 100vw;
  height: 100vh;
  min-width: 100vw;
  min-height: 100vh;
  max-width: none;
  padding: 0;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: #000;
}

.voice-room-page.v07-call-page:fullscreen .stream-stage,
.voice-room-page.v07-call-page:fullscreen .media-grid,
.voice-room-page.v07-call-page:fullscreen .media-grid.single {
  display: block;
}

.voice-room-page.v07-call-page:fullscreen .media-grid.single .media-tile,
.voice-room-page.v07-call-page:fullscreen .media-tile {
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  aspect-ratio: auto;
  border: 0;
  border-radius: 0;
  background: #000;
}

.voice-room-page.v07-call-page:fullscreen .media-tile video {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  border-radius: 0;
}

.voice-room-page.v07-call-page:fullscreen .screen-toolbar {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: 96px;
  z-index: 45;
  width: min(760px, calc(100vw - 32px));
  opacity: 0;
  transform: translate(-50%, 16px);
  transition: opacity 160ms ease, transform 160ms ease;
}

.voice-room-page.v07-call-page:fullscreen:hover .screen-toolbar {
  opacity: 1;
  transform: translate(-50%, 0);
}

.voice-room-page.v07-call-page:fullscreen .v06-call-controls {
  z-index: 50;
}

/* TaksaCord v0.10: glass atmosphere, server home, settings suite */
.ambient-cloud {
  position: absolute;
  z-index: 0;
  pointer-events: none;
  width: clamp(360px, 32vw, 820px);
  height: clamp(260px, 28vw, 620px);
  border-radius: 999px;
  opacity: 0.44;
  filter: blur(48px);
  mix-blend-mode: screen;
  transform: translate3d(0, 0, 0);
  animation: ambientFloat 28s ease-in-out infinite alternate;
}

.cloud-one {
  left: 10vw;
  top: 10vh;
}

.cloud-two {
  right: 8vw;
  top: 18vh;
  animation-duration: 34s;
  animation-delay: -8s;
}

.cloud-three {
  left: 34vw;
  bottom: -10vh;
  animation-duration: 39s;
  animation-delay: -14s;
}

.cloud-four {
  right: 26vw;
  bottom: 12vh;
  animation-duration: 31s;
  animation-delay: -20s;
}

@keyframes ambientFloat {
  0% { transform: translate3d(-3vw, -2vh, 0) scale(0.94); }
  35% { transform: translate3d(4vw, 3vh, 0) scale(1.06); }
  70% { transform: translate3d(-1vw, 6vh, 0) scale(1); }
  100% { transform: translate3d(5vw, -3vh, 0) scale(1.1); }
}

.simple-content > * {
  animation: none;
}

@keyframes softEnter {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.server-home-v10 {
  min-height: 100%;
  display: grid;
  gap: 18px;
  align-content: start;
  padding: clamp(18px, 2vw, 32px);
  overflow: auto;
}

.server-hero-v10 {
  min-height: clamp(280px, 34vh, 440px);
  display: grid;
  grid-template-columns: minmax(280px, 0.95fr) minmax(320px, 1.05fr);
  gap: clamp(24px, 4vw, 80px);
  align-items: center;
  padding: clamp(28px, 4vw, 72px);
  overflow: hidden;
  border-color: rgba(141, 220, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at 70% 52%, rgba(71, 152, 255, 0.2), transparent 36%),
    radial-gradient(circle at 42% 58%, rgba(168, 113, 255, 0.14), transparent 35%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.025)),
    rgba(14, 28, 46, 0.5);
}

.server-pill-v10 {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 24px;
  border-radius: 999px;
  background: rgba(48, 225, 147, 0.13);
  color: #80ffc4;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
}

.server-pill-v10::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.server-hero-copy-v10 h1 {
  margin: 0;
  color: #fbfdff;
  font-size: clamp(34px, 3.2vw, 58px);
  line-height: 1.12;
  letter-spacing: 0;
}

.server-hero-copy-v10 p {
  max-width: 560px;
  margin: 22px 0 0;
  color: var(--simple-soft);
  font-size: 17px;
  line-height: 1.7;
}

.server-hero-actions-v10 {
  display: flex;
  gap: 12px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.server-hero-visual-v10 {
  position: relative;
  min-height: 280px;
  display: grid;
  place-items: center;
}

.chat-orb-v10 {
  position: relative;
  z-index: 2;
  width: clamp(150px, 14vw, 230px);
  aspect-ratio: 1;
  border: 1px solid rgba(222, 237, 255, 0.42);
  border-radius: 34% 34% 42% 42%;
  background:
    radial-gradient(circle at 36% 32%, rgba(255, 255, 255, 0.78), transparent 8%),
    radial-gradient(circle at 64% 42%, rgba(255, 255, 255, 0.78), transparent 8%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.36), rgba(116, 177, 245, 0.14) 52%, rgba(100, 97, 195, 0.2));
  box-shadow: 0 35px 90px rgba(61, 135, 255, 0.24), inset 0 2px 8px rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(14px);
}

.orb-ring-v10 {
  position: absolute;
  width: min(82%, 620px);
  aspect-ratio: 2.4 / 1;
  border: 1px solid rgba(153, 202, 255, 0.22);
  border-radius: 50%;
  transform: rotate(-8deg);
}

.orb-ring-v10.two {
  width: min(62%, 450px);
  opacity: 0.72;
  transform: rotate(-8deg) translateY(16px);
}

.server-news-head-v10,
.server-stats-v10 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.server-news-head-v10 h3,
.server-about-v10 h3,
.server-post-card-v10 strong {
  margin: 0;
}

.server-news-head-v10 span,
.server-about-v10 p,
.server-post-card-v10 time,
.server-post-card-v10 p,
.server-empty-news p {
  color: var(--simple-muted);
}

.server-post-card-v10,
.server-empty-news,
.server-about-v10 {
  border-radius: 14px;
  padding: 18px;
}

.server-post-card-v10 header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.server-post-card-v10 img {
  width: 100%;
  max-height: 380px;
  object-fit: cover;
  border: 1px solid rgba(164, 193, 228, 0.18);
  border-radius: 12px;
}

.server-about-v10 {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
}

.server-stats-v10 span {
  min-width: 110px;
  display: grid;
  grid-template-columns: 38px auto;
  gap: 4px 10px;
  align-items: center;
}

.server-stats-v10 .ui-icon {
  grid-row: span 2;
  color: var(--simple-accent);
}

.server-stats-v10 strong {
  font-size: 24px;
}

.server-stats-v10 em {
  color: var(--simple-muted);
  font-style: normal;
}

.settings-suite {
  width: min(96vw, 2060px);
  height: min(92vh, 1160px);
  min-width: min(1080px, calc(100vw - 32px));
  min-height: min(640px, calc(100vh - 32px));
  max-width: calc(100vw - 24px);
  max-height: calc(100vh - 24px);
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  padding: 0;
  overflow: hidden;
  resize: both;
  border-radius: 18px;
}

.settings-suite::after {
  content: "";
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 14px;
  height: 14px;
  border-right: 2px solid var(--simple-line-strong);
  border-bottom: 2px solid var(--simple-line-strong);
  opacity: 0.72;
  pointer-events: none;
}

.settings-nav-panel {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 18px;
  padding: 22px 14px;
  border-right: 1px solid var(--simple-line);
}

.settings-nav-panel header {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  padding: 0 8px 14px;
  border-bottom: 1px solid var(--simple-line);
}

.settings-avatar {
  width: 48px;
  height: 48px;
}

.settings-nav-panel header span,
.settings-workspace-head p {
  color: var(--simple-muted);
}

.settings-nav-panel nav {
  display: grid;
  align-content: start;
  gap: 6px;
  overflow: auto;
}

.settings-nav-panel nav button,
.settings-logout {
  min-height: 42px;
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--simple-soft);
  padding: 9px 12px;
  text-align: left;
}

.settings-nav-panel nav button:hover,
.settings-nav-panel nav button.active {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
  color: var(--simple-text);
}

.settings-logout {
  color: var(--simple-danger);
}

.settings-workspace {
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 18px;
  padding: clamp(24px, 3vw, 40px);
  overflow: hidden;
}

.settings-tab-content {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}

.settings-suite > .status-line {
  position: absolute;
  right: 28px;
  bottom: 18px;
  margin: 0;
}

.settings-workspace-head {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: start;
}

.settings-workspace-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
}

.settings-close {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  font-size: 26px;
}

.settings-tab-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 18px;
  overflow: auto;
  padding-right: 6px;
}

.settings-tab-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.profile-settings-grid {
  height: 100%;
  align-content: stretch;
}

.profile-settings-card {
  min-height: 0;
  overflow: hidden;
}

.settings-suite .settings-card {
  border-radius: 14px;
}

.mic-meter-preview {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 58px;
}

.mic-meter-preview span {
  width: 8px;
  height: calc(12px + (var(--i) % 9) * 3px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--simple-accent), transparent);
  opacity: calc(0.32 + (var(--i) % 7) * 0.08);
}

.settings-swatches div {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.settings-swatches span {
  width: 42px;
  height: 42px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  background: #3ce2ea;
}

.settings-swatches span:nth-child(2) { background: #35e193; }
.settings-swatches span:nth-child(3) { background: #7c70ff; }
.settings-swatches span:nth-child(4) { background: #ff9a51; }
.settings-swatches span:nth-child(5) { background: #f04572; }

.v07-call-page {
  padding: clamp(12px, 1.4vw, 22px);
}

.v07-call-tiles {
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  align-items: stretch;
}

.v07-call-tiles .v06-call-tile {
  max-width: none;
  min-height: 150px;
}

.v07-call-tiles.no-media {
  grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
}

.v07-call-tiles.no-media .v06-call-tile {
  min-height: min(42vh, 420px);
}

.exit-fullscreen-control {
  display: none !important;
}

.fullscreen-control-zone {
  display: none;
}

.voice-room-page.v07-call-page:fullscreen .screen-toolbar {
  display: none;
}

.voice-room-page.v07-call-page:fullscreen .fullscreen-control-zone,
.voice-room-page.v07-call-page[data-test-fullscreen] .fullscreen-control-zone {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 48;
  display: block;
  height: 150px;
}

.voice-room-page.v07-call-page:fullscreen .exit-fullscreen-control,
.voice-room-page.v07-call-page[data-test-fullscreen] .exit-fullscreen-control {
  display: grid !important;
}

.voice-room-page.v07-call-page:fullscreen:hover .v06-call-controls,
.voice-room-page.v07-call-page[data-test-fullscreen]:hover .v06-call-controls {
  opacity: 0;
  transform: translate(-50%, 18px);
}

.voice-room-page.v07-call-page:fullscreen .fullscreen-control-zone:hover + .v06-call-controls,
.voice-room-page.v07-call-page:fullscreen .v06-call-controls:hover,
.voice-room-page.v07-call-page[data-test-fullscreen] .fullscreen-control-zone:hover + .v06-call-controls,
.voice-room-page.v07-call-page[data-test-fullscreen] .v06-call-controls:hover {
  opacity: 1;
  transform: translate(-50%, 0);
}

.voice-room-page.v07-call-page:fullscreen .v06-call-controls,
.voice-room-page.v07-call-page[data-test-fullscreen] .v06-call-controls {
  bottom: 28px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(9, 17, 28, 0.68);
}

@media (max-width: 1180px) {
  .server-hero-v10,
  .server-about-v10,
  .settings-suite {
    grid-template-columns: 1fr;
  }

  .settings-suite {
    width: min(100%, calc(100vw - 24px));
    height: min(92vh, 980px);
    min-width: 0;
    resize: none;
  }

  .settings-nav-panel {
    max-height: 250px;
  }

  .settings-tab-grid {
    grid-template-columns: 1fr;
  }
}

/* TaksaCord v0.11: layout repair after v0.10 glass pass */
.simple-content {
  height: 100%;
  min-height: 0;
  overflow: hidden;
}

.server-home-v10 {
  height: 100%;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(14px, 1.5vw, 24px);
  scroll-behavior: smooth;
}

.server-hero-v10 {
  min-height: clamp(210px, 24vh, 300px);
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.62fr);
  gap: clamp(18px, 2.4vw, 40px);
  padding: clamp(22px, 2.8vw, 42px);
}

.server-pill-v10 {
  margin-bottom: 14px;
}

.server-hero-copy-v10 h1 {
  font-size: clamp(30px, 2.45vw, 44px);
}

.server-hero-copy-v10 p {
  max-width: 520px;
  margin-top: 14px;
  font-size: 15px;
  line-height: 1.55;
}

.server-hero-actions-v10 {
  margin-top: 18px;
}

.server-hero-visual-v10 {
  min-height: 170px;
}

.chat-orb-v10 {
  width: clamp(112px, 10vw, 170px);
}

.server-about-v10 {
  grid-template-columns: minmax(0, 1fr) minmax(260px, auto);
}

.voice-room-page.v07-call-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: clamp(12px, 1.2vw, 18px);
}

.voice-room-page.v07-call-page .v06-media-stage,
.voice-room-page.v07-call-page .stream-stage,
.voice-room-page.v07-call-page .media-grid {
  width: 100%;
  height: 100%;
  min-height: 0;
}

.voice-room-page.v07-call-page .media-grid {
  display: grid;
  padding: 0;
}

.voice-room-page.v07-call-page .media-grid.single {
  grid-template-columns: minmax(0, 1fr);
}

.voice-room-page.v07-call-page .media-grid.single .media-tile,
.voice-room-page.v07-call-page .media-tile {
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: none;
  aspect-ratio: auto;
}

.voice-room-page.v07-call-page .media-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.voice-room-page.v07-call-page .v07-call-tiles {
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr));
  grid-auto-rows: minmax(126px, 1fr);
  gap: 14px;
  align-content: stretch;
  align-items: stretch;
  justify-content: stretch;
  overflow: auto;
  padding: 0 4px 2px 0;
}

.voice-room-page.v07-call-page .v07-call-tiles.no-media {
  grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr));
  grid-auto-rows: minmax(220px, 1fr);
}

.voice-room-page.v07-call-page .v06-call-tile {
  width: 100%;
  max-width: none;
  min-height: 0;
}

.voice-room-page.v07-call-page .v07-call-tiles.no-media .v06-call-tile {
  min-height: clamp(220px, 38vh, 440px);
}

.voice-room-page.v07-call-page .v06-call-controls {
  flex-wrap: nowrap;
}

@media (max-width: 1280px) {
  .server-hero-v10 {
    grid-template-columns: 1fr;
  }

  .server-hero-visual-v10 {
    display: none;
  }

  .server-about-v10 {
    grid-template-columns: 1fr;
  }
}

/* TaksaCord v0.12: compact channel rail and one shared media grid */
.server-mode .simple-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.server-mode .simple-server-head {
  min-height: 74px;
  padding: 0 18px;
}

.server-mode .server-home-nav {
  flex: 0 0 auto;
  padding: 10px 10px 0;
}

.server-mode .simple-section {
  flex: 0 0 auto;
  min-height: 0;
  overflow: visible;
  padding: 0;
}

.server-mode .voice-section {
  margin-bottom: auto;
}

.server-mode .v06-section-card {
  margin: 10px 10px 0;
  padding: 10px;
  border-radius: 10px;
}

.server-mode .simple-section .section-title {
  margin-bottom: 4px;
  font-size: 11px;
  line-height: 1.2;
}

.server-mode .channel-item {
  min-height: 34px;
  margin: 2px 0;
}

.server-mode .channel-row {
  min-height: 34px;
  padding: 0 8px;
  grid-template-columns: 22px minmax(0, 1fr) auto;
  border-radius: 8px;
}

.server-mode .channel-row strong,
.server-mode .channel-row span,
.server-mode .channel-row em {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-mode .channel-settings-btn {
  width: 28px;
  height: 28px;
  border-radius: 8px;
}

.server-mode .voice-users {
  margin: 2px 0 4px 8px;
  gap: 2px;
}

.server-mode .voice-user {
  min-height: 28px;
  padding: 0 8px;
}

.server-mode .simple-user-strip {
  flex: 0 0 auto;
}

.v12-call-page {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  overflow: hidden;
  padding: clamp(10px, 1.1vw, 16px);
}

.v12-call-page .v12-voice-panel {
  height: 100%;
  min-height: 0;
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-template-rows: auto minmax(0, 1fr) !important;
  gap: 10px;
  overflow: hidden;
  padding: 12px;
}

.v12-call-page .v12-call-summary {
  min-height: 40px;
  padding: 0 4px 8px;
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  background: transparent;
}

.v12-call-page .v12-call-summary span {
  color: rgba(213, 226, 244, 0.72);
  font-size: 13px;
  font-weight: 700;
}

.v12-call-page .unified-call-grid {
  min-height: 0;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr));
  grid-auto-rows: minmax(240px, 1fr);
  gap: 12px;
  align-content: stretch;
  align-items: stretch;
  overflow: auto;
  padding: 0;
}

.v12-call-page .unified-call-grid.no-media {
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr));
  grid-auto-rows: minmax(320px, 1fr);
}

.v12-call-page .media-tiles-slot:empty,
.v12-call-page .media-tiles-slot[hidden] {
  display: none !important;
}

.v12-call-page .media-tiles-slot,
.v12-call-page .media-tiles-slot .stream-stage,
.v12-call-page .media-tiles-slot .media-grid {
  display: contents;
}

.v12-call-page .media-tile,
.v12-call-page .v06-call-tile {
  width: 100% !important;
  height: 100% !important;
  min-width: 0;
  min-height: 0;
  max-width: none;
  aspect-ratio: auto;
  border-radius: 12px;
}

.v12-call-page .media-tile video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #030913;
}

.v12-call-page .video-voice-tile video {
  object-fit: cover;
}

.v12-call-page .invite-call-tile {
  opacity: 0.86;
}

.v12-call-page .empty-section {
  min-height: 180px;
}

.voice-room-page.v12-call-page:fullscreen {
  padding: 0;
  background: #030813;
}

.voice-room-page.v12-call-page:fullscreen .v12-voice-panel {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: #030813;
  box-shadow: none;
}

.voice-room-page.v12-call-page:fullscreen .v12-call-summary {
  display: none !important;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles {
  display: grid !important;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 0;
  gap: 0;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles > :not(.media-tiles-slot) {
  display: none !important;
}

.voice-room-page.v12-call-page:fullscreen .media-tiles-slot,
.voice-room-page.v12-call-page:fullscreen .media-tiles-slot .stream-stage,
.voice-room-page.v12-call-page:fullscreen .media-tiles-slot .media-grid {
  display: grid;
  width: 100vw;
  height: 100vh;
}

.voice-room-page.v12-call-page:fullscreen .media-tiles-slot .media-grid {
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  padding: 0;
  gap: 0;
}

.voice-room-page.v12-call-page:fullscreen .media-tile {
  width: 100vw !important;
  height: 100vh !important;
  border: 0;
  border-radius: 0;
  background: #030813;
}

.voice-room-page.v12-call-page:fullscreen .media-tile video {
  object-fit: contain;
}

.voice-room-page.v12-call-page:fullscreen .media-tile:not(:first-child) {
  display: none;
}

@media (max-width: 1500px) {
  .v12-call-page .unified-call-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr));
    grid-auto-rows: minmax(210px, 1fr);
  }
}

/* Specificity guard: the old v0.11 selectors are intentionally beaten here. */
.voice-room-page.v12-call-page .v07-call-tiles.unified-call-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fit, minmax(min(420px, 100%), 1fr)) !important;
  grid-auto-rows: minmax(240px, 1fr) !important;
  gap: 12px !important;
  align-content: stretch !important;
  align-items: stretch !important;
  padding: 0 !important;
}

.voice-room-page.v12-call-page .v07-call-tiles.unified-call-grid.no-media {
  grid-template-columns: repeat(auto-fit, minmax(min(440px, 100%), 1fr)) !important;
  grid-auto-rows: minmax(320px, 1fr) !important;
}

.voice-room-page.v12-call-page .media-tiles-slot,
.voice-room-page.v12-call-page .media-tiles-slot .stream-stage,
.voice-room-page.v12-call-page .media-tiles-slot .media-grid {
  display: contents !important;
  width: auto !important;
  height: auto !important;
}

.voice-room-page.v12-call-page .v07-call-tiles.unified-call-grid .media-tile,
.voice-room-page.v12-call-page .v07-call-tiles.unified-call-grid .v06-call-tile {
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  aspect-ratio: auto !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid {
  grid-auto-rows: auto !important;
  align-content: start !important;
  align-items: start !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid .media-tile,
.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid .v06-call-tile {
  aspect-ratio: 16 / 9 !important;
  height: auto !important;
  min-height: 0 !important;
}

.voice-room-page.v12-call-page .video-voice-tile.has-screen video {
  object-fit: contain;
  background: #030913;
}

.voice-room-page.v12-call-page:not(:fullscreen) .video-voice-tile.has-screen .media-fullscreen-button {
  opacity: 0.94;
  transform: translateY(0);
}

.voice-room-page.v12-call-page:not(:fullscreen) .video-voice-tile.has-screen:hover .media-fullscreen-button,
.voice-room-page.v12-call-page:not(:fullscreen) .video-voice-tile.has-screen .media-fullscreen-button:focus-visible {
  opacity: 1;
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.voice-room-page.v12-call-page:not(:fullscreen) .invite-call-tile {
  min-height: 0;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  align-content: stretch !important;
  align-items: stretch !important;
  min-height: clamp(360px, 66vh, 820px);
  overflow: hidden;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded > :not(.media-tiles-slot):not(.stage-screen-primary) {
  display: none !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded > .media-tiles-slot {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .media-tiles-slot .stream-stage,
.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .media-tiles-slot .media-grid {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .media-grid {
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
  gap: 0 !important;
  padding: 0 !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .media-tile:not(.stage-screen-primary) {
  display: none !important;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .stage-screen-primary {
  display: grid !important;
  width: 100% !important;
  height: 100% !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  aspect-ratio: auto !important;
  border-radius: 12px;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .stage-screen-primary video {
  width: 100% !important;
  height: 100% !important;
  object-fit: contain;
}

.voice-room-page.v12-call-page:not(:fullscreen) .v07-call-tiles.unified-call-grid.central-stream-expanded .stage-screen-primary .voice-tile-caption {
  display: none !important;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles.embedded-screen-fullscreen {
  display: grid !important;
  width: 100vw;
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
  padding: 0 !important;
  gap: 0 !important;
  grid-template-columns: minmax(0, 1fr) !important;
  grid-auto-rows: minmax(0, 1fr) !important;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles.embedded-screen-fullscreen > :not(.fullscreen-screen-primary) {
  display: none !important;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles.embedded-screen-fullscreen > .fullscreen-screen-primary {
  display: grid !important;
  width: 100vw !important;
  height: 100vh !important;
  min-width: 0 !important;
  min-height: 0 !important;
  max-width: none !important;
  max-height: none !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: #030813 !important;
  box-shadow: none !important;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles.embedded-screen-fullscreen > .fullscreen-screen-primary video {
  width: 100vw !important;
  height: 100vh !important;
  object-fit: contain;
  background: #030813;
}

.voice-room-page.v12-call-page:fullscreen .v07-call-tiles.embedded-screen-fullscreen .voice-tile-caption {
  display: none !important;
}

@media (max-width: 1500px) {
  .voice-room-page.v12-call-page .v07-call-tiles.unified-call-grid {
    grid-template-columns: repeat(auto-fit, minmax(min(340px, 100%), 1fr)) !important;
    grid-auto-rows: minmax(210px, 1fr) !important;
  }
}

/* TaksaCord v0.13: merged user/voice dock, member panel toggle, cleaner call tiles */
.simple-discord-shell.members-hidden {
  grid-template-columns:
    clamp(74px, 4.2vw, 104px)
    clamp(270px, 17vw, 420px)
    minmax(460px, 1fr);
}

.simple-discord-shell.members-hidden .simple-members,
.simple-discord-shell.home-without-members .simple-members {
  display: none;
}

.members-toggle {
  border-color: transparent !important;
  background: transparent !important;
  box-shadow: none !important;
}

.members-toggle.active,
.members-toggle:hover {
  color: var(--simple-accent);
  background: var(--simple-panel-3) !important;
}

.v13-combo-dock {
  margin-top: auto;
}

.v13-combo-dock.is-connected {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  grid-template-areas:
    "voice voice"
    "avatar meta"
    "actions actions";
  gap: 8px 10px;
  padding: 10px;
  border-top: 1px solid var(--simple-line);
  background: var(--simple-panel);
  overflow: visible;
}

.v13-combo-dock:not(.is-connected) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.v13-combo-dock .status-avatar {
  grid-area: avatar;
}

.v13-combo-dock .user-meta {
  grid-area: meta;
}

.combo-voice-status {
  grid-area: voice;
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 10px;
  border: 1px solid var(--simple-line-strong);
  border-radius: 10px;
  background: var(--simple-panel-3);
}

.combo-voice-open {
  flex: 1 1 auto;
  min-width: 0;
  padding: 0;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.combo-voice-open div {
  min-width: 0;
}

.combo-voice-open strong,
.combo-voice-open span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.combo-voice-open strong {
  font-size: 13px;
}

.combo-voice-open span {
  color: var(--simple-muted);
  font-size: 11px;
}

.combo-voice-tools {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.combo-voice-tools .voice-noise-control {
  flex: 0 0 30px;
  width: 30px;
  order: 2;
}

.combo-voice-tools .ping-bars {
  order: 1;
}

.combo-voice-tools .ping-bars::after {
  display: none !important;
}

.voice-noise-control {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-width: 0;
}

.v13-combo-dock.is-connected .voice-noise-button {
  flex: 0 0 auto;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0;
}

.combo-voice-tools .voice-noise-button {
  width: 30px;
  height: 30px;
}

.voice-noise-button img {
  width: 16px;
  height: 16px;
  pointer-events: none;
}

.voice-noise-button.active {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 24%, transparent);
}

.voice-noise-menu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 8px);
  z-index: 2400;
  width: min(156px, calc(100vw - 32px)) !important;
  min-width: 0 !important;
  max-width: calc(100vw - 32px) !important;
  display: grid;
  gap: 3px;
  padding: 4px;
  border: 1px solid var(--simple-line-strong);
  border-radius: 10px;
  background: var(--simple-panel);
  box-shadow: var(--shadow);
}

.voice-noise-option {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  padding: 7px 8px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.voice-noise-option:hover,
.voice-noise-option:focus-visible,
.voice-noise-option.active {
  border-color: var(--simple-line);
  background: var(--simple-panel-3);
  outline: none;
}

.voice-noise-option span {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.voice-noise-option strong,
.voice-noise-option small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-noise-option strong {
  font-size: 12px;
}

.voice-noise-option small {
  color: var(--simple-muted);
  font-size: 11px;
}

.voice-noise-selected {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 18%, transparent);
}

.combo-dock-actions {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
}

.v13-combo-dock.is-connected .combo-dock-actions {
  grid-area: actions;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.v13-combo-dock.is-connected .combo-dock-actions .voice-noise-control {
  display: none;
}

.v13-combo-dock .dock-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
}

.v13-combo-dock.is-connected .dock-icon {
  width: 100%;
}

.v13-combo-dock .dock-leave {
  color: var(--tc-text-inverse, #fff);
  border-color: transparent;
  background: var(--simple-danger);
}

.v13-combo-dock .dock-leave:hover {
  color: var(--tc-text-inverse, #fff);
  border-color: transparent;
  background: var(--simple-danger);
}

.voice-room-page.v12-call-page .video-voice-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  align-content: center;
  padding: 16px;
}

.voice-room-page.v12-call-page .voice-tile-caption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  width: auto;
  max-width: calc(100% - 24px);
  display: grid;
  gap: 1px;
  padding: 8px 10px;
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  background: var(--simple-panel);
  backdrop-filter: blur(12px);
}

.voice-room-page.v12-call-page .voice-tile-caption strong,
.voice-room-page.v12-call-page .voice-tile-caption span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-room-page.v12-call-page .voice-tile-caption span {
  color: var(--simple-muted);
}

.participant-volume {
  min-width: 0;
  display: grid;
  grid-template-columns: 18px minmax(76px, 1fr);
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.participant-volume .ui-icon {
  width: 16px;
  height: 16px;
  color: var(--simple-muted);
}

.participant-volume input {
  width: 100%;
}

.voice-room-page.v12-call-page .video-voice-tile .large {
  position: relative;
  z-index: 1;
}

.voice-room-page.v12-call-page .video-voice-tile.is-speaking .social-avatar {
  box-shadow:
    0 0 0 3px rgba(86, 242, 135, 0.95),
    0 0 18px rgba(86, 242, 135, 0.38);
}

.voice-room-page.v12-call-page .video-voice-tile::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 34%;
  pointer-events: none;
  background: linear-gradient(180deg, transparent, var(--simple-panel));
}

.voice-room-page.v12-call-page:fullscreen .video-voice-tile::after,
.voice-room-page.v12-call-page[data-test-fullscreen] .video-voice-tile::after {
  content: none;
  display: none;
}

/* TaksaCord v0.14: home server directory and dock alignment */
.global-home-mode .simple-sidebar {
  display: flex;
  flex-direction: column;
  min-height: 0;
  overflow: hidden;
}

.home-directory-head {
  flex: 0 0 auto;
}

.home-directory-nav {
  flex: 0 0 auto;
  display: grid;
  gap: 6px;
  padding: 12px 14px 10px;
  border-top: 1px solid var(--simple-line);
  border-bottom: 1px solid var(--simple-line);
}

.home-directory-nav .nav-row {
  min-height: 42px;
  padding: 0 12px;
  border-radius: 8px;
  grid-template-columns: 24px minmax(0, 1fr);
}

.home-directory-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 12px 14px;
}

.home-server-group {
  padding: 0 0 12px;
  margin: 0 0 12px;
  border-bottom: 1px solid var(--simple-line);
}

.home-server-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--simple-muted);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.home-collapse {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--simple-muted);
}

.home-collapse:hover {
  color: var(--simple-accent);
  background: var(--simple-panel-3);
}

.home-server-list {
  display: grid;
  gap: 8px;
}

.home-server-row {
  min-height: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 6px 8px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--simple-text);
  text-align: left;
}

.home-server-main {
  min-width: 0;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  padding: 0;
}

.home-server-row:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.home-server-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--simple-line);
  background: var(--simple-panel-3);
}

.home-server-row.violet .home-server-icon {
  background: var(--simple-panel-3);
}

.home-server-row.orange .home-server-icon {
  background: var(--simple-panel-3);
}

.home-server-row.green .home-server-icon {
  background: var(--simple-panel-3);
}

.home-server-row.blue .home-server-icon {
  background: var(--simple-panel-3);
}

.home-server-icon img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.home-server-icon.server-logo-icon {
  background-image: var(--server-icon-url);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.home-server-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.home-server-copy strong,
.home-server-copy em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.home-server-copy strong {
  font-size: 13px;
}

.home-server-copy em {
  position: relative;
  padding-left: 12px;
  color: var(--simple-muted);
  font-size: 11px;
  font-style: normal;
}

.home-server-copy em::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--simple-accent);
  transform: translateY(-50%);
}

.home-server-badge {
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  border-radius: 999px;
  padding: 5px 8px;
  background: var(--simple-panel-3);
  color: var(--simple-accent);
  font-size: 10px;
  font-weight: 900;
}

.home-server-pin {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid transparent;
  border-radius: 9px;
  background: var(--simple-panel-2);
  color: var(--simple-muted);
  font-size: 18px;
  line-height: 1;
}

.home-server-pin:hover,
.home-server-pin.active {
  color: var(--simple-accent);
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.home-server-empty {
  margin: 4px 0 2px;
  color: var(--simple-muted);
  font-size: 12px;
}

.home-directory-actions {
  flex: 0 0 auto;
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border-top: 1px solid var(--simple-line);
}

.home-server-search,
.home-invite-button {
  min-height: 42px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 9px;
  background: var(--simple-panel-2);
  color: var(--simple-soft);
  padding: 0 11px;
}

.home-server-search input {
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--simple-text);
}

.home-server-search:focus-within,
.home-invite-button:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.home-invite-button {
  width: 100%;
  text-align: left;
}

.v13-combo-dock:not(.is-connected) {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  grid-template-areas: "avatar meta actions";
  align-items: center;
  gap: 10px;
  min-height: 78px;
  padding: 12px 14px;
}

.v13-combo-dock:not(.is-connected) .combo-dock-actions {
  grid-area: actions;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.v13-combo-dock:not(.is-connected) .dock-icon {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

/* TaksaCord v0.15: server-side quick access and softer server news composer */
.v15-quick-rail {
  gap: 12px;
}

.v15-quick-rail .rail-spacer {
  flex: 1 1 auto;
}

.rail-empty-pin {
  width: clamp(48px, 3vw, 62px);
  height: clamp(48px, 3vw, 62px);
  display: grid;
  place-items: center;
  border: 1px dashed var(--simple-line);
  border-radius: 12px;
  color: var(--simple-muted);
  background: var(--simple-panel-2);
}

/* TaksaCord v0.16: visible server-home dashboard refresh */
.server-home-v16 {
  gap: 16px;
  padding: clamp(14px, 1.4vw, 22px);
}

.server-hero-v16 {
  position: relative;
  isolation: isolate;
  min-height: clamp(250px, 30vh, 360px);
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.78fr);
  padding: clamp(26px, 3vw, 52px);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 48%, rgba(76, 143, 255, 0.28), transparent 34%),
    radial-gradient(circle at 46% 58%, rgba(158, 95, 255, 0.18), transparent 36%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.078), rgba(255, 255, 255, 0.024)),
    rgba(14, 28, 46, 0.54);
}

.server-hero-v16.has-server-banner {
  grid-template-columns: minmax(0, 1fr);
  background: rgba(10, 18, 34, 0.34);
}

.server-hero-v16.has-server-banner::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--server-banner-image);
  background-size: cover;
  background-position: center;
  transform: scale(1.01);
}

.server-hero-v16.has-server-banner::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(5, 9, 18, var(--server-banner-overlay-opacity)) 0%, rgba(5, 9, 18, calc(var(--server-banner-overlay-opacity) * 0.55)) 34%, rgba(5, 9, 18, 0) 72%),
    linear-gradient(180deg, rgba(5, 9, 18, 0.12), rgba(5, 9, 18, 0.18));
}

.server-hero-v16.has-server-banner.overlay-none::after {
  opacity: 0;
}

.server-hero-v16.has-server-banner .server-hero-copy-v10 {
  max-width: min(700px, 100%);
  padding: clamp(16px, 2.2vw, 30px);
  border-radius: 18px;
  color: var(--server-banner-text-color);
}

.server-hero-v16.has-server-banner.overlay-glass .server-hero-copy-v10 {
  border: 1px solid rgba(255, 255, 255, calc(var(--server-banner-overlay-opacity) * 0.42));
  background:
    linear-gradient(135deg, rgba(255, 255, 255, calc(var(--server-banner-overlay-opacity) * 0.22)), rgba(255, 255, 255, calc(var(--server-banner-overlay-opacity) * 0.07))),
    rgba(12, 18, 32, calc(var(--server-banner-overlay-opacity) * 0.34));
  box-shadow: 0 24px 70px rgba(0, 0, 0, calc(var(--server-banner-overlay-opacity) * 0.34));
  -webkit-backdrop-filter: blur(22px) saturate(1.3);
  backdrop-filter: blur(22px) saturate(1.3);
}

.server-hero-v16.has-server-banner.overlay-dark .server-hero-copy-v10 {
  background: rgba(4, 8, 16, var(--server-banner-overlay-opacity));
  box-shadow: 0 24px 70px rgba(0, 0, 0, calc(var(--server-banner-overlay-opacity) * 0.4));
}

.server-hero-title-row {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.server-hero-title-row img {
  width: clamp(58px, 5vw, 86px);
  aspect-ratio: 1;
  flex: 0 0 auto;
  border-radius: 24%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.64);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.server-hero-v16.has-server-banner .server-hero-copy-v10 h1,
.server-hero-v16.has-server-banner .server-hero-copy-v10 p {
  color: var(--server-banner-text-color);
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.38);
}

.server-hero-v16.has-server-banner .server-pill-v10 {
  color: var(--server-banner-text-color);
  background: rgba(0, 0, 0, 0.22);
}

.server-hero-v16.has-server-banner .server-hero-visual-v10 {
  display: none;
}

.server-hero-v16 .server-hero-copy-v10 h1 {
  font-size: clamp(34px, 3vw, 52px);
}

.server-hero-v16 .server-hero-copy-v10 p {
  max-width: 600px;
  margin-top: 16px;
}

.server-hero-v16 .primary-button,
.server-hero-v16 .ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.server-hero-visual-v16 {
  min-height: 210px;
}

.server-feature-grid-v16 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.server-feature-grid-v16 article {
  min-height: 106px;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 6px 14px;
  align-items: center;
  padding: 16px;
  border-radius: 14px;
}

.server-feature-grid-v16 article > span {
  grid-row: span 2;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--simple-panel-3);
  color: var(--simple-accent);
}

.server-feature-grid-v16 strong,
.server-feature-grid-v16 p {
  min-width: 0;
  margin: 0;
}

.server-feature-grid-v16 p {
  color: var(--simple-muted);
  font-size: 12px;
  line-height: 1.45;
}

.server-news-panel-v16 {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 16px;
}

.server-about-v16 {
  border-radius: 16px;
}

.server-home-aside-v16 {
  height: 100%;
  min-height: 0;
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  overflow-y: auto;
}

.server-aside-card-v16 {
  padding: 16px;
  border-radius: 14px;
}

.server-aside-card-v16 header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.aside-muted {
  margin: -4px 0 10px;
  color: var(--simple-muted);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.quick-actions-v16 {
  display: grid;
  gap: 8px;
}

.quick-actions-v16 button {
  min-height: 48px;
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--simple-soft);
  padding: 0 12px;
  text-align: left;
}

.quick-actions-v16 button:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.quick-actions-v16 .ui-icon {
  color: var(--simple-accent);
}

.rules-card-v16 {
  display: grid;
  gap: 8px;
}

.rules-card-v16 div {
  min-height: 42px;
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border-bottom: 1px solid var(--simple-line);
  color: var(--simple-soft);
}

.rules-card-v16 div:last-child {
  border-bottom: 0;
}

.rules-card-v16 span {
  color: var(--simple-muted);
  font-weight: 900;
}

.rules-card-v16 strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* TaksaCord v0.17: server home visibility pass */
.server-home-v16 {
  padding: clamp(12px, 1.1vw, 18px);
}

.server-hero-v16 {
  min-height: clamp(190px, 23vh, 285px);
  padding: clamp(22px, 2.2vw, 36px);
}

.server-hero-v16 .server-hero-copy-v10 h1 {
  font-size: clamp(30px, 2.35vw, 42px);
  line-height: 1.08;
}

.server-hero-v16 .server-hero-copy-v10 p {
  max-width: 520px;
  margin-top: 12px;
}

.server-hero-visual-v16 {
  min-height: 150px;
}

.server-home-aside-v16 {
  padding: 16px;
  gap: 16px;
}

.server-aside-card-v16 {
  border: 1px solid var(--simple-line);
}

.server-aside-card-v16 .simple-member-row {
  min-height: 56px;
  border-radius: 12px;
  padding: 8px 10px;
}

.quick-actions-v16 button,
.rules-card-v16 div {
  background: var(--simple-panel-2);
}

@media (max-width: 1420px) {
  .server-feature-grid-v16 {
    grid-template-columns: 1fr;
  }

  .server-hero-v16 {
    grid-template-columns: 1fr;
  }

  .server-hero-visual-v16 {
    display: none;
  }
}

/* TaksaCord v0.18: real server news flow */
.server-home-v18 {
  grid-template-rows: auto auto auto auto;
}

.server-news-head-v18 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.server-news-head-v18 > div:first-child {
  min-width: 0;
}

.server-news-actions-v18 {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.server-news-actions-v18 .primary-button,
.server-news-actions-v18 .ghost-button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.server-news-strip-v18 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.server-news-card-v18 {
  display: grid;
  grid-template-rows: 150px minmax(0, 1fr);
  width: 100%;
  min-height: 312px;
  padding: 0;
  overflow: hidden;
  border: 1px solid var(--simple-line);
  color: var(--simple-text);
  text-align: left;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease;
}

.server-news-card-v18:hover {
  transform: translateY(-2px);
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.server-news-card-v18 > img,
.news-card-empty-media {
  width: 100%;
  height: 150px;
  object-fit: cover;
  background:
    radial-gradient(circle at 55% 30%, var(--simple-panel-3), transparent 42%),
    var(--simple-panel-2);
}

.news-card-empty-media {
  display: grid;
  place-items: center;
  color: var(--simple-accent);
}

.news-card-empty-media .ui-icon {
  width: 42px;
  height: 42px;
}

.news-card-body-v18 {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 14px;
}

.news-card-body-v18 strong {
  font-size: 15px;
  line-height: 1.25;
}

.news-card-body-v18 em,
.news-card-body-v18 span:last-child {
  color: var(--simple-muted);
  font-style: normal;
  font-size: 12px;
  line-height: 1.45;
}

.news-tag-v18 {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 7px;
  background: var(--simple-panel-3);
  color: var(--simple-accent);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.news-drawer-v18 {
  position: fixed;
  z-index: 60;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(560px, calc(100vw - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--simple-line);
  border-radius: 18px;
  overflow: hidden;
  animation: none;
}

.news-list-drawer-v18 {
  width: min(860px, calc(100vw - 36px));
}

.news-drawer-v18 header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 12px;
  min-height: 72px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--simple-line);
}

.news-drawer-v18 h2,
.news-drawer-v18 h1 {
  margin: 0;
}

.news-drawer-v18 h2 {
  font-size: 18px;
}

.news-list-scroll-v18,
.news-detail-body-v18 {
  min-height: 0;
  overflow-y: auto;
  padding: 18px;
}

.news-list-scroll-v18 {
  display: grid;
  align-content: start;
  gap: 12px;
}

.news-list-row-v18 {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr) auto;
  grid-template-areas:
    "media title arrow"
    "media date arrow"
    "media excerpt arrow";
  gap: 6px 14px;
  align-items: center;
  min-height: 128px;
  padding: 12px;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  color: var(--simple-text);
  text-align: left;
}

.news-list-row-v18:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.news-list-row-v18 img,
.news-list-row-v18 > span {
  grid-area: media;
  width: 168px;
  height: 104px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--simple-panel-2);
}

.news-list-row-v18 > span {
  display: grid;
  place-items: center;
  color: var(--simple-accent);
}

.news-list-row-v18 b {
  grid-area: title;
  font-size: 18px;
}

.news-list-row-v18 em {
  grid-area: date;
  color: var(--simple-muted);
  font-style: normal;
}

.news-list-row-v18 small {
  grid-area: excerpt;
  color: var(--simple-soft);
  line-height: 1.45;
}

.news-list-row-v18 i {
  grid-area: arrow;
  color: var(--simple-muted);
  font-style: normal;
  font-size: 26px;
}

.news-detail-body-v18 {
  display: grid;
  align-content: start;
  gap: 16px;
}

.news-detail-body-v18 h1 {
  font-size: clamp(26px, 2vw, 34px);
  line-height: 1.1;
}

.news-detail-meta-v18 {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--simple-muted);
}

.news-detail-meta-v18 span {
  display: grid;
  gap: 3px;
}

.news-detail-meta-v18 em {
  font-style: normal;
}

.news-detail-image-v18 {
  width: 100%;
  max-height: 340px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--simple-line);
}

.news-detail-body-v18 p {
  margin: 0;
  color: var(--simple-soft);
  line-height: 1.72;
  white-space: normal;
}

.news-attachment-v18 {
  display: grid;
  gap: 10px;
}

.news-attachment-v18 a {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 56px;
  padding: 10px 12px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  color: var(--simple-text);
  text-decoration: none;
}

.news-create-modal-v18 {
  width: min(720px, calc(100vw - 32px));
}

.news-create-form-v18 {
  display: grid;
  gap: 14px;
}

.news-upload-box-v18 {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 132px;
  border: 1px dashed var(--simple-line-strong);
  border-radius: 14px;
  text-align: center;
  cursor: pointer;
}

.news-upload-box-v18 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.news-upload-box-v18 span {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--simple-panel-3);
  color: var(--simple-accent);
}

.news-upload-box-v18 em {
  color: var(--simple-muted);
  font-style: normal;
  font-size: 12px;
}

@keyframes newsSlideIn {
  from {
    opacity: 0;
    transform: translateX(18px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

@media (max-width: 1120px) {
  .server-news-strip-v18 {
    grid-template-columns: 1fr;
  }

  .server-news-card-v18 {
    grid-template-rows: 190px auto;
  }

  .server-news-card-v18 > img,
  .news-card-empty-media {
    height: 190px;
  }

  .news-list-row-v18 {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "media media"
      "title arrow"
      "date arrow"
      "excerpt arrow";
  }

  .news-list-row-v18 img,
  .news-list-row-v18 > span {
    width: 100%;
    height: 180px;
  }
}

/* TaksaCord v0.19: pins, invites, notifications, chat media */
.v15-quick-rail .home-orb {
  color: var(--simple-text);
  background:
    radial-gradient(circle at 35% 25%, var(--simple-panel-3), transparent 46%),
    var(--simple-panel-2);
}

.home-directory-head .dock-icon {
  display: none;
}

.notification-button {
  position: relative;
}

.notification-button.has-unread {
  color: var(--simple-accent);
  border-color: var(--simple-line-strong);
}

.notification-button b {
  position: absolute;
  top: -6px;
  right: -6px;
  min-width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: var(--simple-danger);
  color: var(--tc-text-inverse, white);
  font-size: 10px;
  font-weight: 900;
}

.invite-modal-v19 {
  width: min(560px, calc(100vw - 32px));
}

.invite-box-v19 {
  display: grid;
  gap: 14px;
}

.invite-box-v19 p {
  margin: 0;
  color: var(--simple-muted);
  line-height: 1.5;
}

.invite-box-v19 input {
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
}

.invite-friends-form,
.invite-link-secondary {
  display: grid;
  gap: 12px;
}

.invite-friends-list {
  display: grid;
  gap: 8px;
  max-height: min(320px, 42vh);
  overflow-y: auto;
  padding-right: 4px;
}

.invite-friend-row {
  grid-template-columns: auto auto minmax(0, 1fr) auto;
  gap: 10px;
  cursor: pointer;
}

.invite-friend-row input {
  width: 18px;
  height: 18px;
}

.invite-friend-row span:nth-of-type(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.invite-friend-row em {
  color: var(--simple-muted);
  font-style: normal;
}

.invite-friend-row b {
  color: var(--tc-accent, #8ee8ff);
  font-size: .78rem;
}

.invite-friend-row.is-disabled {
  opacity: .62;
  cursor: default;
}

.notifications-drawer-v19 {
  width: min(460px, calc(100vw - 36px));
}

.notifications-drawer-v19 header {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.notifications-list-v19 {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 14px;
}

.notification-row-v19 {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 4px 10px;
  grid-template-areas:
    "icon title time"
    "icon body body";
  align-items: center;
  padding: 12px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  color: var(--simple-text);
  text-align: left;
}

.notification-row-v19:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.notification-row-v19 > span {
  grid-area: icon;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: var(--simple-panel-3);
  color: var(--simple-accent);
}

.notification-row-v19 strong {
  grid-area: title;
}

.notification-row-v19 em {
  grid-area: time;
  color: var(--simple-muted);
  font-size: 11px;
  font-style: normal;
}

.notification-row-v19 p {
  grid-area: body;
  margin: 0;
  color: var(--simple-muted);
  font-size: 12px;
  line-height: 1.45;
}

.server-invite-notification {
  grid-template-areas:
    "icon title time"
    "icon body body"
    "icon actions actions";
}

.server-invite-notification .notification-actions {
  grid-area: actions;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.chat-composer-v19 {
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
}

.chat-attach-v19 input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.chat-image-link-v19 {
  display: block;
  width: min(420px, 100%);
  margin-top: 8px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--simple-line);
}

.chat-image-link-v19 img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: cover;
}

.news-upload-preview-v19 {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
}

.news-upload-preview-v19[hidden] {
  display: none;
}

.news-upload-preview-v19 span {
  color: var(--simple-muted);
  font-size: 12px;
}

.news-upload-preview-v19 img {
  width: 100%;
  max-height: 240px;
  object-fit: cover;
  border-radius: 10px;
}

.server-settings-modal {
  width: min(1480px, calc(100vw - 28px));
  max-width: none;
  max-height: calc(100dvh - 40px);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.server-settings-modal > header {
  flex: 0 0 auto;
}

.server-settings-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-gutter: stable;
  overscroll-behavior: contain;
}

.server-settings-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-height: 0;
}

.server-settings-grid {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(360px, 420px);
  gap: 16px;
  align-items: start;
  min-width: 0;
}

.server-settings-fields {
  grid-column: 1;
  display: grid;
  gap: 12px;
  min-width: 0;
}

.server-settings-fields label,
.server-banner-controls label {
  min-width: 0;
  display: grid;
  gap: 7px;
}

.server-settings-fields input,
.server-settings-fields textarea,
.server-settings-fields select,
.server-banner-controls input,
.server-banner-controls select {
  width: 100%;
  min-width: 0;
}

.server-settings-fields input[type="file"] {
  max-width: 100%;
}

.server-settings-fields textarea {
  min-height: 106px;
  resize: vertical;
}

.server-upload-field em {
  color: var(--simple-muted);
  font-size: 12px;
  font-style: normal;
}

.server-banner-controls {
  display: grid;
  grid-template-columns: minmax(140px, 0.7fr) minmax(160px, 1fr) minmax(160px, 1fr);
  gap: 12px;
}

.server-settings-preview {
  grid-column: 2;
  grid-row: auto;
  align-self: start;
  min-width: 0;
  position: sticky;
  top: 0;
  display: grid;
  grid-template-rows: auto minmax(240px, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--simple-line);
  border-radius: 16px;
  background: var(--simple-panel-2);
}

.server-settings-preview-kicker {
  color: var(--simple-muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-settings-hero-preview {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  min-height: 240px;
  display: grid;
  align-items: end;
  padding: 18px;
  border-radius: 14px;
  border: 1px solid var(--simple-line);
  background:
    radial-gradient(circle at 70% 30%, rgba(84, 168, 255, 0.28), transparent 38%),
    linear-gradient(145deg, var(--simple-panel), var(--simple-panel-2));
}

.server-settings-hero-preview::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--server-banner-image);
  background-size: cover;
  background-position: center;
}

.server-settings-hero-preview::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(90deg, rgba(4, 8, 16, var(--server-banner-overlay-opacity)), rgba(4, 8, 16, 0));
}

.server-settings-hero-preview.overlay-none::after {
  opacity: 0;
}

.server-settings-hero-copy {
  display: flex;
  align-items: center;
  gap: 12px;
  max-width: 92%;
  padding: 14px;
  border-radius: 14px;
  color: var(--server-banner-text-color);
}

.server-settings-hero-preview.overlay-glass .server-settings-hero-copy {
  border: 1px solid rgba(255, 255, 255, calc(var(--server-banner-overlay-opacity) * 0.42));
  background: rgba(255, 255, 255, calc(var(--server-banner-overlay-opacity) * 0.16));
  -webkit-backdrop-filter: blur(18px) saturate(1.25);
  backdrop-filter: blur(18px) saturate(1.25);
}

.server-settings-hero-preview.overlay-dark .server-settings-hero-copy {
  background: rgba(4, 8, 16, var(--server-banner-overlay-opacity));
}

.server-settings-hero-copy img,
.server-settings-hero-copy > span {
  width: 52px;
  aspect-ratio: 1;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 16px;
  object-fit: cover;
  background: var(--simple-panel);
  border: 1px solid rgba(255, 255, 255, 0.56);
  font-weight: 950;
}

.server-settings-hero-copy strong,
.server-settings-hero-copy p {
  display: block;
  margin: 0;
  min-width: 0;
  color: inherit;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.34);
}

.server-settings-hero-copy strong {
  font-size: 20px;
}

.server-settings-hero-copy p {
  margin-top: 4px;
  line-height: 1.45;
}

.server-settings-roles {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid var(--simple-line);
  border-radius: 16px;
  background: var(--simple-panel-2);
}

.server-settings-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}

.server-settings-section-head h3 {
  margin: 2px 0 0;
  font-size: 18px;
}

.server-settings-section-head > span {
  color: var(--simple-muted);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.server-role-create,
.server-role-edit-card,
.server-member-role-card {
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  background: var(--simple-panel);
  box-shadow: var(--simple-shadow);
}

.server-role-create {
  display: grid;
  grid-template-columns: minmax(180px, 0.85fr) 120px minmax(240px, 1.6fr) minmax(150px, auto);
  gap: 12px;
  align-items: end;
  padding: 12px;
  min-width: 0;
}

.server-role-create label,
.server-role-edit-head label {
  display: grid;
  gap: 6px;
}

.server-role-create label span,
.server-role-edit-head label span {
  color: var(--simple-muted);
  font-size: 12px;
  font-weight: 850;
}

.server-role-create input[type="color"],
.server-role-edit-head input[type="color"] {
  min-height: 42px;
  padding: 4px;
}

.server-role-permissions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  min-width: 0;
}

.role-permission-chip,
.member-role-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  padding: 8px 10px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--simple-panel-2) 72%, transparent);
}

.role-permission-chip strong,
.role-permission-chip em {
  display: block;
  min-width: 0;
}

.role-permission-chip strong {
  font-size: 12px;
}

.role-permission-chip em {
  margin-top: 2px;
  color: var(--simple-muted);
  font-size: 11px;
  font-style: normal;
}

.server-role-system-list,
.server-role-list-edit,
.server-member-role-list {
  display: grid;
  gap: 10px;
}

.server-role-system-list {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.server-role-card {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  background: color-mix(in srgb, var(--simple-panel) 78%, transparent);
}

.server-role-card div,
.member-role-user span {
  min-width: 0;
}

.server-role-card strong,
.server-role-card em,
.member-role-user strong,
.member-role-user em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.server-role-card em,
.member-role-user em {
  color: var(--simple-muted);
  font-size: 12px;
  font-style: normal;
}

.role-color-dot {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: var(--role-color, var(--simple-accent));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color, var(--simple-accent)) 20%, transparent);
}

.role-managed-pill {
  margin-left: auto;
  padding: 5px 8px;
  border: 1px solid var(--simple-line);
  border-radius: 999px;
  color: var(--simple-muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.server-role-edit-card {
  display: grid;
  gap: 12px;
  padding: 12px;
  min-width: 0;
}

.server-role-edit-head {
  display: grid;
  grid-template-columns: auto minmax(170px, 1fr) 120px;
  gap: 10px;
  align-items: end;
}

.server-role-edit-head .role-color-dot {
  align-self: center;
}

.server-role-card-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.server-member-role-card {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(240px, 1fr) minmax(150px, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  min-width: 0;
}

.member-role-user {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.member-role-checks {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.member-role-chip {
  padding: 7px 9px;
}

.member-role-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.member-role-chip span::before {
  content: "";
  display: inline-block;
  width: 9px;
  height: 9px;
  margin-right: 6px;
  border-radius: 999px;
  background: var(--role-color, var(--simple-accent));
}

.server-settings-form > .modal-actions,
.server-settings-form > .status-line {
  grid-column: 1 / -1;
}

@media (max-width: 900px) {
  .server-settings-modal {
    width: min(760px, calc(100vw - 24px));
  }

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

  .server-settings-grid,
  .server-banner-controls,
  .server-role-create,
  .server-role-edit-head,
  .server-member-role-card {
    grid-template-columns: 1fr;
  }

  .server-settings-preview {
    grid-column: 1;
    grid-row: auto;
    position: static;
    grid-template-rows: auto minmax(210px, auto);
  }
}

@media (max-width: 1120px) {
  .server-banner-controls,
  .server-role-create,
  .server-role-edit-head,
  .server-member-role-card {
    grid-template-columns: 1fr;
  }

  .server-settings-preview {
    grid-template-rows: auto minmax(220px, auto);
  }
}

button,
select,
summary,
label.file-button,
.dock-icon,
.server-orb,
.server-add,
.channel-row,
.channel-settings-btn,
.chat-attach-v19,
[data-user-profile],
[data-open-media],
[data-open-server-settings],
[data-create-invite],
[data-toggle-emoji-picker],
[data-emoji] {
  cursor: pointer;
}

button:disabled,
select:disabled {
  cursor: not-allowed;
}

.chat-composer-v20 {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  min-height: 62px;
}

.chat-composer-main-v21 {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
}

.chat-composer-v20 .chat-attach-v19,
.chat-composer-v20 .chat-audio-record-v21,
.chat-composer-v20 .chat-submit-v21 {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  padding: 0;
}

.chat-composer-v20 .chat-audio-record-v21 {
  touch-action: none;
  user-select: none;
}

.chat-composer-v20 .chat-attach-v19 svg,
.chat-composer-v20 .chat-audio-record-v21 svg,
.chat-composer-v20 .chat-submit-v21 svg {
  width: 18px;
  height: 18px;
}

.chat-composer-v20[data-audio-state="recording"] .chat-composer-main-v21,
.chat-composer-v20[data-audio-state="preview"] .chat-composer-main-v21,
.chat-composer-v20[data-audio-state="gesture"] .chat-composer-main-v21,
.chat-composer-v20[data-audio-state="notice"] .chat-composer-main-v21 {
  display: none;
}

.chat-composer-v20[data-audio-state="idle"][data-has-sendable="false"] .chat-submit-v21,
.chat-composer-v20[data-audio-state="idle"][data-has-sendable="true"] .chat-audio-record-v21 {
  display: none;
}

.chat-composer-v20 .chat-audio-record-v21.is-recording {
  border-color: rgba(255, 106, 132, .7);
  color: #ffd9e0;
  background: rgba(244, 63, 94, .24);
}

.chat-composer-v20 .chat-audio-record-v21.is-gesture-active {
  border-color: color-mix(in srgb, var(--simple-accent) 70%, #fff);
  color: #d9fffb;
  background: color-mix(in srgb, var(--simple-accent) 24%, transparent);
  transform: translateY(calc(var(--audio-gesture-progress, 0) * -3px));
}

.chat-composer-v20 input[name="content"],
.chat-composer-v20 textarea[name="content"] {
  min-width: 0;
  width: 100%;
}

.chat-composer-v20 textarea[name="content"] {
  min-height: 38px;
  max-height: 128px;
  line-height: 1.4;
  resize: none;
  overflow-y: auto;
}

.emoji-wrap-v20 {
  position: relative;
}

.sticker-wrap-v20 {
  position: relative;
}

.emoji-trigger-v20.active,
.emoji-trigger-v20:hover,
.chat-composer-v20 .dock-icon:hover {
  border-color: var(--simple-line-strong);
  color: var(--simple-text);
  background: var(--simple-panel-3);
}

.emoji-picker-v20 {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 50;
  display: grid;
  grid-template-columns: repeat(6, 34px);
  gap: 6px;
  padding: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  backdrop-filter: blur(18px);
}

.emoji-picker-v20[hidden] {
  display: none;
}

.emoji-picker-v20 button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--simple-line);
  border-radius: 10px;
  font-size: 18px;
}

.emoji-picker-v20 button:hover {
  transform: translateY(-1px);
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.sticker-picker-v20 {
  position: absolute;
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 55;
  width: min(380px, calc(100vw - 36px));
  max-height: min(460px, 62vh);
  overflow: auto;
  padding: 12px;
  border: 1px solid var(--simple-line);
  border-radius: 16px;
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--simple-accent) 18%, transparent), transparent 34%),
    var(--simple-panel);
  box-shadow: 0 18px 54px rgba(0, 0, 0, .34);
  backdrop-filter: blur(20px);
}

.sticker-picker-v20[hidden] {
  display: none;
}

.sticker-pack-v20 {
  display: grid;
  gap: 10px;
}

.sticker-pack-v20 h3 {
  margin: 0;
  color: var(--simple-text);
  font-size: 13px;
  font-weight: 900;
}

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

.sticker-grid-v20 button {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  padding: 7px;
  border: 1px solid var(--simple-line);
  border-radius: 13px;
  background: color-mix(in srgb, var(--simple-panel-2) 72%, transparent);
}

.sticker-grid-v20 button:hover {
  transform: translateY(-1px);
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.sticker-grid-v20 img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, .24));
}

.chat-attachment-preview-v20 {
  grid-column: 1 / -1;
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
}

.chat-attachment-preview-v20[hidden] {
  display: none;
}

.chat-attachment-card-v20 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

.chat-attachment-card-v20 strong,
.chat-file-link-v20 strong {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-card-v20 em,
.chat-file-link-v20 em {
  display: block;
  color: var(--simple-muted, var(--muted));
  font-size: 12px;
  font-style: normal;
}

.chat-attachment-preview-v20 img {
  width: min(260px, 100%);
  max-height: 180px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--simple-line);
}

.chat-audio-recorder-v21 {
  grid-column: 1 / -1;
  display: grid;
  min-height: 58px;
  align-items: stretch;
  padding: 0;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--simple-panel-2) 78%, transparent);
  overflow: hidden;
  transition: border-color .18s ease, background-color .18s ease, opacity .16s ease, transform .16s ease;
}

.chat-audio-recorder-v21[hidden] {
  display: none;
}

.chat-audio-recorder-v21[data-tone="danger"] {
  border-color: rgba(244, 63, 94, .55);
}

.chat-audio-recorder-v21[data-tone="ready"] {
  border-color: color-mix(in srgb, var(--simple-accent) 72%, var(--simple-line));
}

.chat-audio-recorder-v21[data-mode="gesture"] {
  border-color: color-mix(in srgb, var(--simple-accent) 70%, var(--simple-line));
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--simple-accent) 20%, transparent), transparent),
    color-mix(in srgb, var(--simple-panel-2) 78%, transparent);
}

.chat-audio-gesture-hint-v21 {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  color: var(--simple-text);
  font-weight: 850;
}

.chat-audio-gesture-hint-v21[hidden] {
  display: none;
}

.chat-audio-gesture-hint-v21 b {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border: 1px solid color-mix(in srgb, var(--simple-accent) 62%, var(--simple-line));
  border-radius: 999px;
  color: #d9fffb;
  transform: translateY(calc(var(--audio-gesture-progress, 0) * -8px));
  transition: transform .12s ease, border-color .12s ease;
}

.chat-audio-gesture-mic-v21 {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  color: #d9fffb;
  background: color-mix(in srgb, var(--simple-accent) 30%, transparent);
}

.chat-audio-state-v21 {
  display: grid;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 8px 10px;
}

.chat-audio-recording-state-v21 {
  grid-template-columns: auto minmax(90px, 1fr) minmax(88px, auto) auto auto auto;
}

.chat-audio-preview-state-v21 {
  grid-template-columns: auto auto minmax(120px, 1fr) auto auto auto;
}

.chat-audio-state-v21[hidden] {
  display: none;
}

.chat-audio-recorder-v21 .dock-icon {
  width: 38px;
  height: 38px;
  padding: 0;
}

.chat-audio-timer-v21 {
  min-width: 42px;
  color: var(--simple-text);
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.chat-audio-recorder-v21 strong {
  overflow: hidden;
  color: var(--simple-text);
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-audio-recorder-v21 audio {
  display: none;
}

.chat-audio-wave-v21 {
  display: flex;
  align-items: center;
  gap: 3px;
  min-width: 0;
  height: 28px;
}

.chat-audio-wave-v21 i {
  width: 3px;
  height: calc(6px + var(--level, .08) * 30px);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--tc-accent, #36f0dd), color-mix(in srgb, var(--tc-accent, #36f0dd) 36%, transparent));
  opacity: calc(.38 + var(--level, .08) * .62);
  transform-origin: center;
  transition: height 70ms linear, opacity 70ms linear;
}

.chat-image-link-v20 {
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: zoom-in;
}

.chat-image-link-v20:hover {
  border-color: var(--simple-line-strong);
}

.chat-sticker-v20 {
  display: inline-grid;
  place-items: center;
  width: min(190px, 44vw);
  margin-top: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.chat-sticker-v20 img {
  width: 100%;
  height: auto;
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .28));
  transition: transform .16s ease;
}

.chat-sticker-v20:hover img {
  transform: translateY(-2px) scale(1.02);
}

.chat-file-link-v20 {
  display: inline-grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: min(360px, 100%);
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  color: var(--text);
  text-decoration: none;
}

.chat-file-link-v20:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.chat-audio-message-v21 {
  display: inline-grid;
  grid-template-columns: auto auto minmax(120px, 1fr);
  align-items: center;
  gap: 10px;
  width: min(420px, 100%);
  margin-top: 8px;
  padding: 9px 11px;
  border: 1px solid var(--simple-line);
  border-radius: 14px;
  background: color-mix(in srgb, var(--simple-panel-2) 76%, transparent);
}

.chat-audio-message-v21 .dock-icon {
  width: 34px;
  height: 34px;
}

.chat-audio-duration-v21 {
  min-width: 38px;
  color: var(--simple-text);
  font-size: 12px;
  font-weight: 900;
  font-variant-numeric: tabular-nums;
}

.chat-audio-seek-v21 {
  min-width: 0;
  width: 100%;
}

.media-viewer-backdrop-v20 {
  z-index: 100;
}

.media-viewer-v20 {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(1180px, calc(100vw - 48px));
  max-height: calc(100vh - 48px);
  border: 1px solid var(--simple-line);
  border-radius: 18px;
  overflow: hidden;
}

.media-viewer-v20 header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--simple-line);
}

.media-viewer-v20 header div {
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-viewer-v20 img {
  display: block;
  max-width: 100%;
  max-height: calc(100vh - 128px);
  margin: auto;
  object-fit: contain;
}

.mic-monitor-card-v20 .ghost-button.active,
.version-card-v20 strong,
.friend-actions-v20 .primary-button:disabled {
  color: var(--simple-green);
}

.desktop-update-card-v21 {
  gap: 14px;
}

.desktop-update-card-v21 .desktop-update-meta {
  display: grid;
  gap: 6px;
}

.desktop-update-card-v21 .desktop-update-meta p,
.desktop-update-card-v21 .status-line {
  margin: 0;
  overflow-wrap: anywhere;
}

.desktop-update-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.desktop-update-actions button {
  min-width: 170px;
}

:root.theme-transitioning,
:root.theme-transitioning *,
:root.theme-transitioning *::before,
:root.theme-transitioning *::after {
  transition:
    background-color var(--motion-theme) var(--motion-ease-standard),
    border-color var(--motion-theme) var(--motion-ease-standard),
    color var(--motion-theme) var(--motion-ease-standard),
    opacity var(--motion-theme) var(--motion-ease-standard) !important;
}

@keyframes tc-fade-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tc-panel-in {
  from {
    opacity: 0;
    transform: translate3d(0, 8px, 0) scale(.985);
  }
  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.tc-render-motion,
.tc-render-motion :where(.simple-content, .modal-backdrop, .settings-modal, .news-drawer-v18, .notifications-drawer-v19, .profile-comments-drawer, .profile-friends-modal, .profile-photos-modal, .profile-post-menu) {
  backface-visibility: hidden;
  transform-style: preserve-3d;
}

.simple-content[data-route-content-outlet] {
  isolation: isolate;
}

.simple-content > :where(.my-page-shell, .direct-inbox-page, .direct-chat-page, .teammate-page, .community-page, .server-home-v10, .voice-room-page) {
  contain: layout paint;
  content-visibility: auto;
  contain-intrinsic-size: 900px;
}

@media (prefers-reduced-motion: no-preference) {
  .tc-motion-route-enter .simple-content[data-route-content-outlet] {
    animation: tc-route-enter var(--motion-route) var(--motion-ease-emphasized) both;
    will-change: opacity, transform;
  }

  .tc-render-motion[data-motion-kind="modal"] .modal-backdrop {
    animation: tc-modal-backdrop-in var(--motion-modal) var(--motion-ease-standard) both;
  }

  .tc-render-motion[data-motion-kind="modal"] .share-setup-backdrop {
    animation: tc-share-setup-backdrop-in var(--motion-modal) var(--motion-ease-standard) both !important;
  }

  .tc-render-motion[data-motion-kind="modal"] :where(
    .settings-modal,
    .notifications-drawer-v19,
    .profile-comments-drawer,
    .profile-friends-modal,
    .profile-photos-modal
  ) {
    animation: tc-panel-in var(--motion-modal) var(--motion-ease-emphasized) both;
    will-change: opacity, transform;
  }

  .tc-render-motion[data-motion-kind="modal"] .share-setup-modal {
    animation: tc-share-setup-panel-in var(--motion-modal) var(--motion-ease-emphasized) both !important;
  }

  .tc-render-motion[data-motion-kind="modal"] .news-drawer-v18 {
    animation: tc-drawer-in var(--motion-modal) var(--motion-ease-emphasized) both;
    will-change: opacity, transform;
  }

  .profile-post-menu {
    animation-duration: var(--motion-popover);
    animation-timing-function: var(--motion-ease-emphasized);
    will-change: opacity, transform;
  }
}

@keyframes tc-route-enter {
  from {
    opacity: .96;
    transform: translate3d(0, 10px, 0) scale(.996);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tc-modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes tc-share-setup-backdrop-in {
  from { opacity: .98; }
  to { opacity: 1; }
}

@keyframes tc-share-setup-panel-in {
  from {
    opacity: .98;
    transform: translate3d(0, 4px, 0) scale(.998);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes tc-drawer-in {
  from {
    opacity: .001;
    transform: translate3d(18px, 0, 0) scale(.992);
  }

  to {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.settings-modal,
.notifications-drawer-v19,
.profile-comments-drawer,
.profile-friends-modal,
.profile-photos-modal {
  animation: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}

:root[data-theme="light"] {
  --panel: rgba(159, 166, 218, .42);
  --panel-2: rgba(180, 190, 235, .34);
  --line: rgba(255, 255, 255, .42);
  --strong-line: rgba(255, 255, 255, .64);
}

:root[data-theme="light"] :where(
  .ui-panel,
  .glass,
  .settings-modal,
  .server-sidebar,
  .channel-sidebar,
  .main-panel,
  .members-panel,
  .home-card,
  .my-page-profile-card,
  .my-page-composer,
  .my-page-post,
  .my-page-side-card,
  .direct-chat-page,
  .direct-message-row > div,
  .simple-message > div,
  .profile-friends-modal,
  .profile-photos-modal,
  .profile-comments-drawer
) {
  border-color: rgba(255, 255, 255, .46);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(168, 176, 224, .28)),
    rgba(146, 154, 207, .28);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, .3),
    0 18px 56px rgba(78, 73, 130, .13);
  backdrop-filter: blur(12px) saturate(1.16);
}

/* My page social surface */
.my-page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 340px);
  gap: 18px;
  align-content: start;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden auto;
  padding: 18px;
  scrollbar-gutter: stable;
}

.my-page-main,
.my-page-body,
.my-page-feed-column,
.my-page-aside,
.my-page-ad-rail,
.my-page-feed {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.my-page-aside,
.my-page-ad-rail {
  align-self: start;
  align-content: start;
  grid-auto-rows: max-content;
}

.my-page-main {
  grid-column: 1;
  align-content: start;
}

.my-page-body {
  grid-template-columns: minmax(0, 820px) minmax(260px, 320px);
  align-items: start;
}

.my-page-ad-rail {
  grid-column: 2;
  justify-items: center;
}

.my-page-aside {
  grid-column: 2;
  grid-row: 1;
}

.my-page-loading {
  grid-column: 1 / -1;
}

.my-page-composer,
.my-page-feed,
.my-page-empty {
  width: min(100%, 780px);
  justify-self: start;
}

.my-page-hero,
.my-page-composer,
.my-page-post,
.my-page-side-card,
.my-page-empty,
.my-page-loading {
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: var(--panel-bg, rgba(17, 29, 48, .64));
  box-shadow: var(--panel-shadow, 0 18px 55px rgba(0, 0, 0, .18));
  backdrop-filter: blur(18px);
}

.my-page-hero {
  --profile-cover-image: url("/assets/clouds/light-cloud-main.avif");
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 0 0 20px;
  background: var(--profile-cover-image);
  background-size: cover;
  background-position: center top;
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
}

.my-page-hero::before,
.my-page-hero::after {
  content: "";
  position: absolute;
  pointer-events: none;
}

.my-page-hero::before {
  inset: -34px;
  z-index: 0;
  background: var(--profile-cover-image);
  background-size: cover;
  background-position: center top;
  filter: blur(34px) saturate(1.28) contrast(1.04);
  opacity: .76;
  transform: scale(1.085);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 30%, rgba(0,0,0,.04) 46%, rgba(0,0,0,.26) 62%, rgba(0,0,0,.72) 82%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0 30%, rgba(0,0,0,.04) 46%, rgba(0,0,0,.26) 62%, rgba(0,0,0,.72) 82%, #000 100%);
}

.my-page-hero::after {
  inset: 0;
  z-index: 2;
  background:
    radial-gradient(ellipse 72% 52% at 15% 72%, rgba(255,255,255,.18), transparent 74%),
    radial-gradient(ellipse 62% 46% at 78% 76%, color-mix(in srgb, var(--simple-accent) 20%, transparent), transparent 78%),
    linear-gradient(105deg, transparent 0 38%, rgba(255,255,255,.16) 58%, transparent 78% 100%),
    linear-gradient(252deg, transparent 0 36%, color-mix(in srgb, var(--simple-accent) 15%, transparent) 62%, transparent 84% 100%),
    linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(255,255,255,.015) 36%, rgba(255,255,255,.07) 58%, color-mix(in srgb, var(--panel-bg, rgba(17, 29, 48, .64)) 42%, transparent) 80%, color-mix(in srgb, var(--panel-bg, rgba(17, 29, 48, .64)) 58%, transparent) 100%);
  -webkit-backdrop-filter: blur(26px) saturate(1.5) contrast(1.04);
  backdrop-filter: blur(26px) saturate(1.5) contrast(1.04);
  -webkit-mask-image: linear-gradient(180deg, transparent 0 34%, rgba(0,0,0,.018) 46%, rgba(0,0,0,.1) 58%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.72) 88%, #000 100%);
  mask-image: linear-gradient(180deg, transparent 0 34%, rgba(0,0,0,.018) 46%, rgba(0,0,0,.1) 58%, rgba(0,0,0,.34) 72%, rgba(0,0,0,.72) 88%, #000 100%);
  box-shadow:
    inset 0 30px 54px rgba(255,255,255,.12),
    inset 0 -34px 62px rgba(255,255,255,.04);
}

.my-page-hero > * {
  position: relative;
  z-index: 3;
}

.my-page-cover {
  position: relative;
  z-index: 1;
  overflow: hidden;
  height: clamp(140px, 22vw, 240px);
  background: transparent;
}

.my-page-cover::after {
  display: none;
}

.my-page-cover-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  visibility: hidden;
  display: block;
}

[data-optimized-image] {
  opacity: 0;
  transition: opacity 180ms ease;
}

[data-optimized-image].is-loaded {
  opacity: 1;
}

.my-page-identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 18px;
  padding: 0 28px;
  margin-top: -58px;
  background: transparent;
  box-shadow: none;
}

.my-page-title,
.profile-hero-actions {
  position: relative;
  z-index: 0;
}

.my-page-avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 124px;
  height: 124px;
  border-radius: 50%;
  border: 4px solid rgba(220, 245, 255, .78);
  background: radial-gradient(circle at 35% 25%, rgba(44, 244, 215, .34), rgba(22, 34, 64, .94));
  box-shadow: 0 0 30px rgba(44, 244, 215, .24);
  color: #fff;
  font-size: 34px;
  font-weight: 900;
}

.my-page-title h1 {
  margin: 0 0 4px;
  font-size: clamp(24px, 3vw, 36px);
  text-shadow: 0 2px 18px rgba(0, 0, 0, .36);
}

.profile-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  min-width: min(320px, 100%);
}

.my-page-title p,
.my-page-status,
.profile-upload-policy,
.my-page-post header em,
.profile-about-list {
  color: var(--muted, rgba(218, 229, 255, .74));
}

.profile-presence {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin: 0;
}

.my-page-title b {
  color: #48f5a6;
  font-weight: 800;
}

.profile-presence.offline b {
  color: var(--simple-danger);
}

.profile-presence span {
  color: var(--muted, rgba(218, 229, 255, .74));
}

.my-page-status {
  position: relative;
  display: inline-block;
  max-width: calc(100% - 206px);
  margin: 14px 28px 0 178px;
  padding: 7px 12px;
  border: 1px solid color-mix(in srgb, var(--panel-border, rgba(255,255,255,.14)) 46%, transparent);
  border-radius: 999px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(255,255,255,.2), transparent 72%),
    color-mix(in srgb, var(--panel, rgba(17, 29, 48, .72)) 26%, transparent);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
  -webkit-backdrop-filter: blur(18px) saturate(1.22);
  backdrop-filter: blur(18px) saturate(1.22);
  text-shadow: 0 1px 12px rgba(0, 0, 0, .28);
}

.my-page-composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 18px;
}

.my-page-composer-main {
  min-width: 0;
}

.profile-composer-input {
  display: grid;
  gap: 10px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.055);
}

.my-page-composer textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  min-height: 72px;
  border: 0;
  background: transparent;
  color: var(--text, #fff);
  padding: 12px 14px;
  outline: none;
}

.profile-composer-toolbar,
.profile-composer-tools,
.my-page-post footer {
  display: flex;
  align-items: center;
  gap: 8px;
}

.profile-composer-toolbar {
  justify-content: space-between;
  min-width: 0;
}

.profile-composer-tools {
  flex-wrap: wrap;
}

.profile-emoji-wrap .emoji-picker-v20 {
  right: auto;
  left: 0;
}

.profile-reaction,
.my-page-side-card header button {
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.08);
  color: var(--text, #fff);
  cursor: pointer;
}

.profile-upload-policy {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
  margin: 12px 0 0;
  padding: 10px 12px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(45, 230, 215, .055);
  color: var(--muted, rgba(218, 229, 255, .74));
}

.profile-upload-policy p {
  margin: 0;
}

.profile-upload-policy .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--simple-accent, #28e6d4);
}

.profile-upload-preview {
  display: none;
  position: relative;
  gap: 10px;
  align-items: center;
  margin-top: 12px;
  padding: 10px;
  border: 1px dashed var(--panel-border, rgba(255,255,255,.2));
}

.profile-upload-preview.is-visible {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.profile-upload-preview img {
  max-width: 120px;
  max-height: 76px;
  border-radius: 10px;
  object-fit: cover;
}

.profile-attach-button input {
  display: none;
}

.my-page-post {
  position: relative;
  z-index: 0;
  overflow: visible;
  padding: 18px;
  max-width: 860px;
  justify-self: start;
  width: 100%;
}

.my-page-post:has(.profile-post-menu) {
  z-index: 35;
}

.my-page-post header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
}

.profile-post-actions {
  position: relative;
  z-index: 12;
  align-self: start;
  display: grid;
  place-items: center;
}

.profile-post-menu-trigger {
  position: relative;
  display: grid !important;
  place-items: center;
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  min-height: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  box-shadow: none !important;
  color: var(--simple-muted, rgba(219, 231, 255, .72));
  font-size: 0;
  line-height: 0;
  cursor: pointer;
  transition: color 160ms ease, background 160ms ease, transform 160ms ease;
}

.profile-post-menu-trigger::before {
  content: "";
  width: 4px;
  height: 4px;
  border-radius: 999px;
  background: currentColor;
  box-shadow: -7px 0 0 currentColor, 7px 0 0 currentColor;
}

.profile-post-menu-trigger:hover,
.profile-post-actions:has(.profile-post-menu) .profile-post-menu-trigger {
  color: var(--simple-text, #eef6ff);
  background: rgba(255, 255, 255, .07) !important;
  transform: translateY(-1px);
}

.profile-post-menu {
  position: absolute;
  right: 0;
  top: calc(100% + 8px);
  z-index: 60;
  display: grid;
  min-width: 150px;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid var(--panel-border, rgba(255, 255, 255, .14));
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .1), rgba(255, 255, 255, .03)),
    var(--panel-bg, rgba(17, 29, 48, .92));
  box-shadow: 0 18px 44px rgba(0, 0, 0, .28);
  backdrop-filter: blur(16px) saturate(1.14);
  transform-origin: top right;
  animation: profilePostMenuIn 160ms cubic-bezier(.16, 1, .3, 1) both;
  pointer-events: auto;
}

@keyframes profilePostMenuIn {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(.98);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.profile-post-menu button {
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: var(--simple-text);
  text-align: left;
}

.profile-post-menu button:hover {
  background: var(--simple-panel-3);
}

.profile-post-menu button.danger {
  color: #ff7b9a;
}

.profile-post-edit-form {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 12px;
}

.profile-post-edit-form textarea {
  width: 100%;
  min-width: 0;
  resize: vertical;
  border: 1px solid var(--simple-line);
  border-radius: 12px;
  background: var(--simple-panel-2);
  color: var(--simple-text);
  padding: 12px;
}

.profile-post-edit-form > div {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.my-page-post-text {
  max-width: 68ch;
  margin: 14px 0;
  line-height: 1.62;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.profile-post-media {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: zoom-in;
}

.profile-post-media img {
  display: block;
  width: min(100%, 760px);
  max-height: 430px;
  object-fit: cover;
  border-radius: 14px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.16));
}

.profile-reaction {
  min-width: 58px;
  height: 38px;
  border-radius: 12px;
}

.profile-reaction.active {
  color: #ff6da8;
  border-color: rgba(255, 109, 168, .55);
  background: rgba(255, 109, 168, .16);
}

.my-page-side-card {
  padding: 18px;
  align-self: start;
}

.my-page-side-card header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.profile-server-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  width: 100%;
  margin-top: 10px;
  text-align: left;
}

.profile-server-row span {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(110, 126, 255, .28);
}

.profile-server-row em {
  grid-column: 2;
  opacity: .7;
}

.profile-photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.profile-side-actions,
.profile-modal-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.profile-side-add {
  position: relative;
  width: 30px;
  height: 30px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  border-radius: 8px;
  background: rgba(255,255,255,.07);
  color: var(--text);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.profile-side-add input,
.profile-photo-add-tile input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.profile-photo-grid button,
.profile-photo-add-tile {
  padding: 0;
  border: 0;
  background: transparent;
}

.profile-photo-add-tile {
  position: relative;
  min-width: 0;
  aspect-ratio: 1;
  border: 1px dashed color-mix(in srgb, var(--simple-accent) 52%, var(--panel-border)) !important;
  border-radius: 12px;
  background: color-mix(in srgb, var(--simple-accent) 12%, transparent) !important;
  display: grid;
  place-items: center;
  color: var(--simple-accent);
  cursor: pointer;
}

.profile-photo-add-tile.modal-add {
  min-height: 132px;
}

.profile-photo-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 12px;
}

.profile-photo-status {
  margin: 8px 0 0;
}

.profile-ad-card {
  position: relative;
  min-height: 132px;
  align-content: center;
  gap: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 88% 20%, color-mix(in srgb, var(--simple-accent) 28%, transparent), transparent 36%),
    linear-gradient(145deg, color-mix(in srgb, var(--tc-accent-2, #7b67ff) 16%, transparent), rgba(255,255,255,.035)),
  var(--panel-bg, rgba(17, 29, 48, .64));
}

.profile-ad-card-large {
  width: min(100%, 320px);
  min-height: 0;
  aspect-ratio: 1 / 1;
  padding: 20px;
  align-content: end;
  justify-self: center;
}

.profile-ad-card::after {
  content: "";
  position: absolute;
  right: -34px;
  bottom: -44px;
  width: 128px;
  height: 128px;
  border: 1px solid color-mix(in srgb, var(--simple-accent) 34%, transparent);
  transform: rotate(18deg);
  opacity: .42;
  pointer-events: none;
}

.profile-ad-kicker {
  width: max-content;
  border: 1px solid color-mix(in srgb, var(--simple-accent) 38%, transparent);
  background: color-mix(in srgb, var(--simple-accent) 16%, transparent);
  color: var(--simple-accent);
  padding: 4px 8px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-ad-card strong,
.profile-ad-card p {
  position: relative;
  z-index: 1;
}

.profile-ad-card strong {
  font-size: 16px;
}

.profile-ad-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.profile-photos-modal {
  width: min(760px, calc(100vw - 36px));
}

.profile-photos-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(132px, 1fr));
  gap: 12px;
  padding: 4px;
  max-height: min(62dvh, 620px);
  overflow: auto;
}

.profile-photos-modal-grid button {
  padding: 0;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.055);
  cursor: zoom-in;
}

.profile-photos-modal-grid img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
}

.profile-about-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.12));
}

.profile-comments-drawer {
  z-index: 60;
}

.profile-comments-list {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: auto;
}

.profile-comment-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
}

.profile-comment-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 14px;
  border-top: 1px solid var(--panel-border, rgba(255,255,255,.14));
}

.profile-comment-form input {
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.08);
  color: var(--text, #fff);
  border-radius: 14px;
  padding: 12px 14px;
}

.image-avatar,
.my-page-avatar.image-avatar,
.social-avatar.image-avatar,
.avatar.image-avatar {
  overflow: hidden;
}

.image-avatar img,
.my-page-avatar img,
.profile-file-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-friend-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 10px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.06);
  color: var(--text, #fff);
  cursor: pointer;
}

.profile-friends-modal {
  width: min(680px, calc(100vw - 32px));
  max-height: min(740px, calc(100dvh - 48px));
  display: grid;
  grid-template-rows: auto auto minmax(0, .95fr) minmax(0, 1fr);
  overflow: hidden;
}

.profile-friends-modal.is-list-mode {
  grid-template-rows: auto minmax(0, 1fr);
}

.profile-friends-modal.is-search-mode {
  grid-template-rows: auto auto minmax(0, .95fr) minmax(0, 1fr);
}

.profile-friends-modal header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.profile-friends-modal-list {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  overflow: auto;
}

.profile-friend-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  padding: 0 16px 14px;
  border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.12));
}

.profile-friend-search-results {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--panel-border, rgba(255,255,255,.12));
  overflow: auto;
}

.profile-friend-search-results > header,
.profile-friends-modal-list > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.profile-friend-search-results h3,
.profile-friends-modal-list h3 {
  margin: 0;
}

.profile-friend-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: var(--panel-bg, rgba(255,255,255,.07));
}

.profile-friend-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.profile-friend-main {
  min-width: 0;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.profile-friend-main strong,
.profile-friend-main em {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-friend-main em {
  margin-top: 3px;
  color: var(--muted, rgba(218,229,255,.74));
  font-style: normal;
}

.profile-friends-empty {
  min-height: 160px;
  display: grid;
  place-items: center;
  text-align: center;
}

@media (max-width: 560px) {
  .profile-friend-search {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-friend-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-friend-card .ui-button,
  .profile-friend-actions {
    width: 100%;
    justify-content: center;
  }
}

.profile-media-fields {
  display: grid;
  grid-template-columns: minmax(0, 220px) minmax(0, 1fr);
  gap: 14px;
}

.profile-file-field {
  position: relative;
  display: grid;
  gap: 8px;
  align-content: start;
}

.profile-file-preview {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 112px;
  overflow: hidden;
  border: 1px dashed var(--panel-border, rgba(255,255,255,.22));
  background: rgba(255,255,255,.07);
  color: var(--text, #fff);
}

.profile-file-field:not(.cover) .profile-file-preview {
  width: 112px;
  border-radius: 50%;
}

.profile-file-field.cover .profile-file-preview {
  min-height: 112px;
  border-radius: 14px;
}

.profile-file-preview b {
  font-size: 22px;
  font-weight: 900;
}

.profile-file-preview em {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 8px;
  font-size: 11px;
  color: var(--muted, rgba(218, 229, 255, .72));
  text-align: center;
}

.profile-file-pick,
.profile-file-name {
  min-width: 0;
  display: block;
}

.profile-file-pick {
  width: fit-content;
  padding: 8px 12px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.18));
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: var(--text, #fff);
  font-size: 12px;
  cursor: pointer;
}

.profile-file-name {
  max-width: 100%;
  color: var(--muted, rgba(218, 229, 255, .72));
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-file-field input[type="file"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.profile-file-field:focus-within .profile-file-pick,
.profile-file-field:hover .profile-file-pick {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.profile-cover-crop-backdrop {
  z-index: 7600;
}

.profile-cover-crop-modal {
  display: grid;
  gap: 16px;
  overflow: visible;
}

.profile-cover-crop-body {
  display: grid;
  gap: 14px;
}

.profile-cover-crop-body p {
  margin: 0;
  color: var(--muted, rgba(218, 229, 255, .72));
  line-height: 1.45;
}

.profile-cover-crop-stage {
  display: grid;
  place-items: center;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.16));
  background:
    radial-gradient(circle at 16% 8%, color-mix(in srgb, var(--simple-accent) 18%, transparent), transparent 34%),
    rgba(0, 0, 0, .18);
}

.profile-cover-crop-frame {
  position: relative;
  width: min(100%, 940px);
  aspect-ratio: 4 / 1;
  overflow: hidden;
  border: 2px solid color-mix(in srgb, var(--simple-accent) 58%, white 18%);
  background: rgba(4, 11, 20, .84);
  box-shadow:
    0 0 0 999px rgba(2, 8, 16, .34),
    0 24px 72px rgba(0, 0, 0, .28),
    inset 0 1px 0 rgba(255,255,255,.16);
  cursor: grab;
  touch-action: none;
}

.profile-cover-crop-frame.is-dragging {
  cursor: grabbing;
}

.profile-cover-crop-image {
  position: absolute;
  left: 50%;
  top: 50%;
  max-width: none;
  max-height: none;
  object-fit: unset;
  transform-origin: center;
  user-select: none;
  pointer-events: none;
}

.profile-cover-crop-grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, transparent 33.333%, rgba(255,255,255,.32) 33.333%, rgba(255,255,255,.32) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255,255,255,.32) 66.666%, rgba(255,255,255,.32) calc(66.666% + 1px), transparent calc(66.666% + 1px)),
    linear-gradient(180deg, transparent 33.333%, rgba(255,255,255,.28) 33.333%, rgba(255,255,255,.28) calc(33.333% + 1px), transparent calc(33.333% + 1px), transparent 66.666%, rgba(255,255,255,.28) 66.666%, rgba(255,255,255,.28) calc(66.666% + 1px), transparent calc(66.666% + 1px));
}

.profile-cover-crop-zoom {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  color: var(--muted, rgba(218, 229, 255, .72));
  font-size: 12px;
  font-weight: 850;
}

.profile-cover-crop-zoom input {
  min-width: 0;
}

.profile-cover-crop-actions {
  justify-content: flex-end;
}

.direct-inbox-page {
  display: grid;
  grid-template-columns: minmax(260px, 340px) minmax(0, 1fr);
  gap: 16px;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  padding: 18px;
}

.direct-inbox-list {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 14px;
  height: 100%;
  min-height: 0;
  overflow: hidden;
  padding: 16px;
}

.direct-inbox-list header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.direct-inbox-list h2,
.direct-inbox-list p {
  margin: 0;
}

.direct-conversation-list {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  padding-right: 2px;
}

.direct-conversation-row {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.055);
  color: var(--text, #fff);
}

.direct-conversation-row.active,
.direct-conversation-row:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.direct-conversation-row.is-notes {
  border-color: color-mix(in srgb, var(--simple-accent) 42%, var(--panel-border, rgba(255,255,255,.12)));
  background:
    linear-gradient(135deg, rgba(39, 228, 213, .12), rgba(255,255,255,.045)),
    rgba(255,255,255,.055);
}

.direct-notes-avatar {
  display: inline-grid;
  place-items: center;
  color: var(--simple-accent);
  background: color-mix(in srgb, var(--simple-accent) 16%, rgba(255,255,255,.08));
  border: 1px solid color-mix(in srgb, var(--simple-accent) 35%, var(--panel-border, rgba(255,255,255,.12)));
}

.direct-notes-avatar .ui-icon {
  width: 18px;
  height: 18px;
}

.direct-notes-pin {
  display: inline-flex;
  align-items: center;
  max-width: 96px;
  padding: 2px 7px;
  border-radius: 999px;
  color: var(--simple-accent);
  background: color-mix(in srgb, var(--simple-accent) 13%, rgba(255,255,255,.06));
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  text-transform: uppercase;
}

.direct-conversation-row span:last-child {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.direct-conversation-row strong,
.direct-conversation-row em,
.direct-conversation-row p {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.direct-conversation-row em,
.direct-conversation-row p {
  color: var(--muted, rgba(218, 229, 255, .68));
  font-size: 12px;
}

.direct-inbox-thread {
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
}

.direct-chat-embedded {
  height: 100%;
  min-height: 0;
  overflow: hidden;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.045);
}

.direct-empty-state {
  height: 100%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  text-align: center;
  color: var(--muted, rgba(218, 229, 255, .68));
  padding: 24px;
}

.direct-empty-state .ui-icon {
  width: 42px;
  height: 42px;
  color: var(--simple-accent);
}

.direct-chat-page {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: hidden;
  gap: 14px;
  padding: 18px;
}

.direct-chat-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.06);
}

.direct-chat-hero h2,
.direct-chat-hero p {
  margin: 0;
}

.direct-chat-hero .ui-button {
  margin-left: auto;
}

.direct-message-list {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  min-height: 0;
  min-width: 0;
  max-width: 100%;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px 10px 12px;
}

.direct-typing-indicator {
  min-height: 20px;
  padding: 0 12px;
  color: var(--muted, rgba(218, 229, 255, .68));
  font-size: 13px;
  line-height: 1.4;
}

.direct-typing-indicator[hidden] {
  display: block;
  visibility: hidden;
}

.direct-typing-indicator span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.channel-typing-indicator {
  padding: 0 18px;
}

.audio-recording-indicator span {
  color: var(--tc-accent, #8ee8ff);
}

.message-context-menu {
  position: fixed;
  z-index: 9000;
  display: grid;
  min-width: 150px;
  gap: 4px;
  padding: 6px;
  border-radius: 8px;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .26);
}

.message-context-menu button {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 34px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--simple-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.message-context-menu button:hover,
.message-context-menu button:focus-visible {
  background: var(--simple-panel-3);
  outline: 0;
}

.message-context-menu button:disabled {
  opacity: .45;
  cursor: not-allowed;
}

.message-context-menu button[data-message-action="delete"] {
  color: var(--danger, #ff6f8d);
}

.member-context-submenu {
  display: grid;
  gap: 4px;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, .12);
}

.member-context-submenu > span {
  padding: 4px 10px 2px;
  color: var(--simple-muted);
  font-size: .78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.member-context-menu .role-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--role-color, #8ea0b8);
  flex: 0 0 auto;
}

.member-context-menu button b {
  margin-left: auto;
}

.direct-message-row {
  position: relative;
  width: min(66%, 620px);
  max-width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: end;
  padding: 0;
  border: 0;
  background: transparent;
}

.direct-message-row.is-own {
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: flex-end;
}

.direct-message-row.is-own > .avatar {
  grid-column: 2;
  grid-row: 1;
}

.direct-message-row > div {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.12));
  background:
    linear-gradient(145deg, rgba(255,255,255,.08), rgba(255,255,255,.035)),
    var(--panel-bg, rgba(17, 29, 48, .58));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .12);
}

.direct-message-row.is-own > div {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

.simple-message {
  position: relative;
  width: min(78%, 760px);
  align-self: flex-start;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
}

.simple-message.is-own {
  grid-template-columns: minmax(0, 1fr) auto;
  align-self: flex-end;
}

.simple-message.is-own > .avatar {
  grid-column: 2;
  grid-row: 1;
}

.simple-message > div {
  position: relative;
  z-index: 1;
  justify-self: start;
  width: fit-content;
  min-width: 0;
  max-width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.12));
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.03)),
    var(--panel-bg, rgba(17, 29, 48, .58));
  box-shadow: 0 12px 34px rgba(0, 0, 0, .1);
}

.simple-message.is-own > div {
  grid-column: 1;
  grid-row: 1;
  justify-self: end;
}

:root[data-design="cyberpunk"] .direct-message-row > div,
:root[data-design="cyberpunk"] .simple-message > div {
  border-radius: var(--tc-shape-radius, 8px) 0 var(--tc-shape-radius, 8px) 0;
  clip-path: polygon(0 0, calc(100% - var(--tc-shape-cut-sm, 16px)) 0, 100% var(--tc-shape-cut-sm, 16px), 100% 100%, var(--tc-shape-cut-sm, 16px) 100%, 0 calc(100% - var(--tc-shape-cut-sm, 16px)));
}

.direct-message-row::before,
.simple-message::before {
  content: "";
  position: absolute;
  pointer-events: none;
  bottom: 10px;
  left: 42px;
  width: 18px;
  height: 18px;
  border-left: 1px solid color-mix(in srgb, var(--tc-accent-2, #7b67ff) 24%, var(--panel-border, rgba(255,255,255,.12)));
  border-bottom: 1px solid color-mix(in srgb, var(--tc-accent-2, #7b67ff) 24%, var(--panel-border, rgba(255,255,255,.12)));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tc-accent-2, #7b67ff) 12%, transparent), rgba(255,255,255,.032)),
    var(--panel-bg, rgba(17, 29, 48, .58));
  transform: skewX(-26deg) rotate(12deg);
  transform-origin: center;
}

.direct-message-row.is-own::before,
.simple-message.is-own::before {
  right: 42px;
  left: auto;
  border-right: 1px solid color-mix(in srgb, var(--simple-accent) 38%, transparent);
  border-left: 0;
  border-bottom-color: color-mix(in srgb, var(--simple-accent) 38%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--simple-accent) 24%, transparent), rgba(255,255,255,.045)),
    var(--panel-bg, rgba(17, 29, 48, .58));
  transform: skewX(26deg) rotate(-12deg);
}

:root[data-design="cyberpunk"] .direct-message-row::before,
:root[data-design="cyberpunk"] .simple-message::before {
  bottom: 8px;
  left: 42px;
  width: 20px;
  height: 16px;
  clip-path: polygon(0 100%, 100% 0, 100% 100%);
  transform: none;
}

:root[data-design="cyberpunk"] .direct-message-row.is-own::before,
:root[data-design="cyberpunk"] .simple-message.is-own::before {
  right: 42px;
  left: auto;
  clip-path: polygon(0 0, 100% 100%, 0 100%);
}

:root[data-design="rounded"] .direct-message-row > div,
:root[data-design="rounded"] .simple-message > div,
:root[data-design="rounded"] .direct-message-row::before,
:root[data-design="rounded"] .simple-message::before {
  clip-path: none;
  border-radius: var(--tc-radius-lg, 18px);
}

.direct-message-row.is-own > div,
.simple-message.is-own > div {
  border-color: color-mix(in srgb, var(--simple-accent) 38%, transparent);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--simple-accent) 24%, transparent), rgba(255,255,255,.045)),
    var(--panel-bg, rgba(17, 29, 48, .58));
}

.direct-message-row.is-remote > div,
.simple-message.is-remote > div {
  border-color: color-mix(in srgb, var(--tc-accent-2, #7b67ff) 24%, var(--panel-border, rgba(255,255,255,.12)));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--tc-accent-2, #7b67ff) 12%, transparent), rgba(255,255,255,.032)),
    var(--panel-bg, rgba(17, 29, 48, .58));
}

:root[data-theme="light"] .direct-message-row::before,
:root[data-theme="light"] .simple-message::before {
  border-color: rgba(255, 255, 255, .44);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, .22), rgba(168, 176, 224, .28)),
    rgba(146, 154, 207, .28);
}

:root[data-theme="light"] .direct-message-row.is-own::before,
:root[data-theme="light"] .simple-message.is-own::before {
  border-color: color-mix(in srgb, var(--simple-accent) 38%, rgba(255,255,255,.38));
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--simple-accent) 24%, rgba(255,255,255,.12)), rgba(255,255,255,.14)),
    rgba(146, 154, 207, .28);
}

.direct-message-row strong,
.simple-message .message-head {
  display: flex;
  gap: 8px;
  align-items: baseline;
  min-width: 0;
}

.direct-message-row em,
.simple-message time {
  color: var(--muted, rgba(218, 229, 255, .68));
  font-size: 12px;
}

.direct-message-row p,
.simple-message p {
  margin: 6px 0 0;
  max-width: 58ch;
  overflow-wrap: anywhere;
  word-break: break-word;
  line-height: 1.48;
}

.direct-message-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.direct-message-form.direct-message-form-v20 {
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  padding: 10px;
}

.direct-message-form input[name="content"],
.direct-message-form textarea[name="content"] {
  min-width: 0;
  border: 1px solid var(--panel-border, rgba(255,255,255,.16));
  background: rgba(255,255,255,.08);
  color: var(--text, #fff);
  border-radius: 14px;
  padding: 12px 14px;
}

.direct-message-form.direct-message-form-v20 input[type="file"] {
  border: 0;
  padding: 0;
}

.community-page {
  height: 100%;
  min-height: 0;
  overflow: auto;
  display: grid;
  gap: 16px;
  padding: clamp(14px, 1.5vw, 24px);
}

.community-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.9fr);
  align-items: center;
  gap: clamp(18px, 3vw, 44px);
  min-height: 170px;
  padding: clamp(22px, 3vw, 42px);
  overflow: hidden;
}

.community-hero h1,
.community-section h3,
.community-category-panel h3,
.community-results h3 {
  margin: 0;
}

.community-hero h1 {
  font-size: clamp(32px, 3vw, 52px);
  line-height: 1.05;
}

.community-hero p {
  max-width: 620px;
  margin: 12px 0 0;
  color: var(--muted, var(--tc-text-muted));
  line-height: 1.55;
}

.community-search {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 8px 8px 8px 16px;
  background: color-mix(in srgb, var(--tc-surface-card) 72%, transparent);
}

.community-search input {
  min-width: 0;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text, var(--tc-text-primary));
}

.community-category-panel,
.community-results,
.community-section {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.community-category-panel > header,
.community-results > header,
.community-section > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.community-category-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.community-category {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 52px;
  padding: 12px 14px;
  border: 1px solid var(--panel-border, var(--tc-border-subtle));
  border-radius: 8px;
  background: color-mix(in srgb, var(--tc-surface-card) 82%, transparent);
  color: var(--text, var(--tc-text-primary));
  text-align: left;
}

.community-category.active,
.community-category:hover {
  border-color: var(--simple-line-strong);
  background: var(--simple-panel-3);
}

.community-category .ui-icon {
  width: 18px;
  height: 18px;
  color: var(--simple-accent);
}

.community-category span,
.community-category em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.community-category em {
  color: var(--muted, var(--tc-text-muted));
  font-size: 12px;
  font-style: normal;
}

.community-owned-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.community-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 14px;
}

.community-card-grid.scroll {
  grid-auto-flow: column;
  grid-auto-columns: minmax(260px, 340px);
  grid-template-columns: none;
  overflow-x: auto;
  padding-bottom: 4px;
}

.community-card {
  display: grid;
  gap: 14px;
  min-height: 174px;
  padding: 18px;
  border-radius: 8px;
}

.community-card.compact {
  min-height: 152px;
}

.community-card-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.community-card-head strong,
.community-card-head span,
.community-card p {
  overflow-wrap: anywhere;
}

.community-card-head strong {
  display: block;
  color: var(--text, var(--tc-text-primary));
}

.community-card-head span,
.community-card p {
  color: var(--muted, var(--tc-text-muted));
}

.community-card p {
  margin: 0;
  line-height: 1.45;
}

.community-logo {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  border: 1px solid color-mix(in srgb, var(--simple-accent) 40%, var(--panel-border, rgba(255,255,255,.12)));
  color: var(--text, #fff);
  background:
    linear-gradient(145deg, color-mix(in srgb, var(--simple-accent) 32%, transparent), rgba(255,255,255,.06)),
    var(--tc-surface-card);
  font-weight: 900;
}

.community-logo.violet {
  border-color: color-mix(in srgb, #8b5cf6 52%, var(--panel-border, rgba(255,255,255,.12)));
}

.community-logo.green {
  border-color: color-mix(in srgb, #22c55e 50%, var(--panel-border, rgba(255,255,255,.12)));
}

.community-logo.amber {
  border-color: color-mix(in srgb, #eab308 48%, var(--panel-border, rgba(255,255,255,.12)));
}

.community-logo.pink {
  border-color: color-mix(in srgb, #ec4899 48%, var(--panel-border, rgba(255,255,255,.12)));
}

.community-card-badge {
  max-width: 108px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--simple-accent);
  background: color-mix(in srgb, var(--simple-accent) 14%, transparent);
  font-size: 11px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
}

.community-card-badge.locked {
  color: var(--muted, var(--tc-text-muted));
  background: color-mix(in srgb, var(--tc-text-muted) 12%, transparent);
}

.community-card .ui-button {
  align-self: end;
  width: 100%;
}

.empty-section.danger {
  color: var(--danger, #ff6b9f);
}

@media (max-width: 980px) {
  .community-hero,
  .community-owned-grid {
    grid-template-columns: 1fr;
  }

  .community-search {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .community-search .ui-button {
    grid-column: 1 / -1;
  }
}

.community-page {
  align-content: start;
  gap: 18px;
  padding: clamp(12px, 1.4vw, 22px);
}

.community-hero.ui-panel,
.community-section.ui-panel,
.community-results.ui-panel,
.community-category-panel.ui-panel,
.community-side-panel.ui-panel {
  border-color: color-mix(in srgb, var(--tc-border-strong) 50%, rgba(255,255,255,.18));
  background:
    linear-gradient(140deg, rgba(255,255,255,.11), rgba(255,255,255,.035)),
    color-mix(in srgb, var(--tc-surface-panel) 84%, rgba(126, 103, 255, .12));
  box-shadow: 0 18px 56px rgba(3, 8, 30, .18);
}

.community-hero.ui-panel {
  position: relative;
  grid-template-columns: minmax(260px, .62fr) minmax(420px, 1fr);
  min-height: 260px;
  padding: clamp(22px, 2.5vw, 38px);
  background:
    linear-gradient(115deg, rgba(255,255,255,.2), rgba(255,255,255,.06) 42%, rgba(112, 91, 255, .28)),
    linear-gradient(180deg, color-mix(in srgb, var(--tc-accent-2) 18%, transparent), transparent 58%),
    color-mix(in srgb, var(--tc-surface-panel) 76%, rgba(215, 235, 255, .18));
}

.community-hero.ui-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 34% 78%, rgba(255, 205, 239, .32), transparent 17%),
    radial-gradient(circle at 92% 70%, rgba(127, 107, 255, .34), transparent 20%),
    linear-gradient(90deg, transparent 0 46%, rgba(255,255,255,.16) 46% 47%, transparent 52%);
  opacity: .9;
}

.community-hero > * {
  position: relative;
  z-index: 1;
}

.community-hero h1 {
  max-width: 380px;
  color: color-mix(in srgb, var(--tc-text-primary) 92%, #745cff);
  font-size: clamp(30px, 2.3vw, 46px);
  letter-spacing: 0;
}

.community-hero p {
  max-width: 380px;
  color: color-mix(in srgb, var(--tc-text-secondary) 82%, #ffffff);
  font-size: 15px;
}

.community-soft-action,
.community-text-button {
  border: 1px solid color-mix(in srgb, var(--tc-border-strong) 52%, transparent);
  background: color-mix(in srgb, #ffffff 16%, var(--tc-surface-card));
  color: var(--tc-text-primary);
  font: inherit;
  font-weight: 800;
}

.community-soft-action {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin-top: 18px;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: default;
}

.community-text-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 8px;
  cursor: pointer;
}

.community-search {
  min-height: 66px;
  border-radius: 999px;
  border: 1px solid color-mix(in srgb, #ffffff 58%, var(--tc-border));
  background: rgba(246, 248, 255, .76);
  color: #465084;
  box-shadow: 0 14px 36px rgba(72, 76, 160, .16);
}

.community-search input {
  color: #465084;
  font-weight: 750;
}

.community-search input::placeholder {
  color: rgba(70, 80, 132, .76);
}

.community-search-emoji {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  font-size: 23px;
}

.community-search-button {
  width: 54px;
  height: 54px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(140deg, #9c7cff, #6752f1);
  box-shadow: 0 12px 24px rgba(83, 69, 214, .34);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
}

.community-hero-tags,
.community-hero-categories {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-top: 8px;
  color: color-mix(in srgb, var(--tc-text-secondary) 72%, #ffffff);
  font-size: 13px;
  font-weight: 800;
}

.community-hero-tags button {
  border: 0;
  border-radius: 999px;
  padding: 7px 13px;
  background: rgba(255,255,255,.22);
  color: var(--tc-text-primary);
  cursor: pointer;
  font: inherit;
}

.community-hero-categories {
  display: grid;
  grid-template-columns: 1fr;
}

.community-hero-categories > div {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.community-category-row {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.community-category {
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-height: 58px;
  border-radius: 8px;
  background:
    linear-gradient(140deg, rgba(255,255,255,.22), rgba(255,255,255,.06)),
    color-mix(in srgb, var(--tc-surface-card) 80%, rgba(125, 112, 255, .16));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.16);
}

.community-category.active,
.community-category:hover {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, #ffffff 62%, var(--tc-border-strong));
  background:
    linear-gradient(140deg, rgba(255,255,255,.3), rgba(255,255,255,.1)),
    color-mix(in srgb, var(--tc-accent-2) 22%, var(--tc-surface-card));
}

.community-emoji {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255,255,255,.2);
  font-size: 20px;
}

.community-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
  gap: 16px;
}

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

.community-picked-list {
  display: grid;
  gap: 10px;
}

.community-card {
  --community-grad-a: rgba(132, 106, 255, .56);
  --community-grad-b: rgba(39, 216, 221, .34);
  --community-glow-a: rgba(255, 219, 247, .48);
  --community-glow-b: rgba(92, 240, 255, .2);
  position: relative;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tc-border) 80%, rgba(255,255,255,.22));
  background:
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.025)),
    color-mix(in srgb, var(--tc-surface-card) 86%, rgba(112, 91, 255, .12));
}

.community-card.featured {
  min-height: 238px;
  align-content: end;
  padding: 14px;
  color: #fff;
}

.community-card.featured::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(11, 14, 43, .06), rgba(12, 9, 34, .72)),
    radial-gradient(circle at 20% 16%, var(--community-glow-a), transparent 26%),
    radial-gradient(circle at 84% 18%, var(--community-glow-b), transparent 30%),
    var(--community-image, linear-gradient(135deg, var(--community-grad-a), var(--community-grad-b)));
  background-position: center;
  background-size: cover;
  transform: scale(1.04);
}

.community-card.aurora,
.community-logo.aurora {
  --community-grad-a: rgba(63, 211, 235, .58);
  --community-grad-b: rgba(121, 92, 255, .42);
  --community-glow-a: rgba(151, 238, 255, .48);
  --community-glow-b: rgba(220, 181, 255, .28);
}

.community-card.sunset,
.community-logo.sunset {
  --community-grad-a: rgba(255, 139, 116, .58);
  --community-grad-b: rgba(119, 88, 255, .42);
  --community-glow-a: rgba(255, 217, 169, .5);
  --community-glow-b: rgba(255, 137, 217, .28);
}

.community-card.mint,
.community-logo.mint {
  --community-grad-a: rgba(73, 226, 181, .5);
  --community-grad-b: rgba(77, 135, 255, .4);
  --community-glow-a: rgba(188, 255, 229, .48);
  --community-glow-b: rgba(120, 202, 255, .26);
}

.community-card.violet,
.community-logo.violet {
  --community-grad-a: rgba(148, 111, 255, .62);
  --community-grad-b: rgba(225, 120, 255, .32);
  --community-glow-a: rgba(235, 207, 255, .5);
  --community-glow-b: rgba(129, 111, 255, .28);
}

.community-card.berry,
.community-logo.berry {
  --community-grad-a: rgba(241, 98, 169, .55);
  --community-grad-b: rgba(86, 107, 255, .42);
  --community-glow-a: rgba(255, 186, 220, .48);
  --community-glow-b: rgba(181, 155, 255, .28);
}

.community-card.sky,
.community-logo.sky {
  --community-grad-a: rgba(104, 181, 255, .58);
  --community-grad-b: rgba(165, 118, 255, .36);
  --community-glow-a: rgba(209, 236, 255, .5);
  --community-glow-b: rgba(175, 211, 255, .28);
}

.community-card.featured > * {
  position: relative;
  z-index: 1;
}

.community-card.row {
  min-height: 88px;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px 14px;
  padding: 12px;
}

.community-card.row .community-card-head,
.community-card.row .community-tags,
.community-card.row .community-stats {
  grid-column: 1;
}

.community-card.row .ui-button {
  grid-column: 2;
  grid-row: 1 / span 3;
  width: min(170px, 100%);
}

.community-card-head {
  position: relative;
}

.community-logo {
  overflow: hidden;
  border-radius: 8px;
  background:
    radial-gradient(circle at 28% 20%, var(--community-glow-a), transparent 42%),
    linear-gradient(145deg, var(--community-grad-a), var(--community-grad-b));
  font-size: 24px;
}

.community-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.community-logo.large {
  width: 64px;
  height: 64px;
}

.community-card.featured .community-card-head {
  grid-template-columns: auto minmax(0, 1fr);
}

.community-card.featured .community-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}

.community-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.community-tags span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(255,255,255,.14);
  color: color-mix(in srgb, var(--tc-text-primary) 88%, #ffffff);
  font-size: 12px;
  font-weight: 800;
}

.community-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  color: color-mix(in srgb, var(--tc-text-secondary) 86%, #ffffff);
  font-size: 13px;
  font-weight: 800;
}

.community-search-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  gap: 16px;
}

.community-search-main,
.community-search-aside {
  display: grid;
  align-content: start;
  gap: 14px;
}

.community-search-large {
  max-width: 760px;
}

.community-clear-query {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 50%;
  background: rgba(70, 80, 132, .14);
  color: #6f77a8;
  cursor: pointer;
  font-size: 18px;
}

.community-result-count {
  color: var(--tc-text-primary);
  font-weight: 850;
}

.community-filter-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.community-filter-row button,
.community-filter-row span,
.community-more-note {
  min-height: 38px;
  border: 1px solid color-mix(in srgb, #ffffff 30%, var(--tc-border));
  border-radius: 999px;
  padding: 0 18px;
  background: rgba(255,255,255,.15);
  color: var(--tc-text-primary);
  font: inherit;
  font-weight: 850;
}

.community-filter-row button {
  cursor: pointer;
}

.community-filter-row span,
.community-more-note {
  display: inline-grid;
  place-items: center;
  cursor: default;
}

.community-filter-row .active {
  background: linear-gradient(140deg, #9b7dff, #6b55f4);
}

.community-filter-row.subtle button,
.community-filter-row.subtle span {
  min-height: 32px;
  font-size: 13px;
}

.community-best-match {
  position: relative;
}

.community-best-match .community-card.featured {
  min-height: 226px;
}

.community-match-label {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
  border-radius: 999px;
  padding: 6px 10px;
  background: rgba(115, 86, 255, .82);
  color: #fff;
  font-weight: 900;
  font-size: 12px;
}

.community-result-list {
  display: grid;
  gap: 0;
  overflow: hidden;
  border: 1px solid color-mix(in srgb, var(--tc-border) 70%, rgba(255,255,255,.2));
  border-radius: 8px;
  background: color-mix(in srgb, var(--tc-surface-panel) 68%, transparent);
}

.community-result-list .community-card {
  border-width: 0 0 1px;
  border-radius: 0;
  box-shadow: none;
}

.community-result-list .community-card:last-of-type {
  border-bottom: 0;
}

.community-more-note {
  justify-self: center;
  margin: 12px;
  width: min(360px, calc(100% - 24px));
}

.community-side-panel {
  display: grid;
  gap: 9px;
  padding: 14px;
}

.community-side-panel h3 {
  margin: 0 0 4px;
}

.community-side-panel button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: rgba(255,255,255,.13);
  color: var(--tc-text-primary);
  cursor: pointer;
  text-align: left;
  font: inherit;
  font-weight: 850;
}

.community-side-panel button > span:last-child,
.community-side-panel em {
  color: var(--tc-text-muted);
  font-style: normal;
}

.community-side-emoji {
  font-size: 20px;
}

@media (max-width: 1180px) {
  .community-hero.ui-panel,
  .community-showcase-grid,
  .community-search-layout {
    grid-template-columns: 1fr;
  }

  .community-hero-categories > div,
  .community-popular-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .community-hero-categories > div,
  .community-popular-grid,
  .community-owned-grid {
    grid-template-columns: 1fr;
  }

  .community-card.row {
    grid-template-columns: 1fr;
  }

  .community-card.row .ui-button {
    grid-column: 1;
    grid-row: auto;
    width: 100%;
  }
}

@media (max-width: 760px) {
  .desktop-download-link {
    max-width: 150px;
    padding: 0 10px;
    font-size: 12px;
  }

  .direct-inbox-page {
    grid-template-columns: 1fr;
    height: auto;
    min-height: 0;
    overflow: visible;
    padding: 12px;
  }

  .direct-inbox-list {
    max-height: 34dvh;
  }

  .direct-chat-page {
    height: min(72dvh, 620px);
    min-height: 0;
    padding: 12px;
  }

  .direct-chat-hero {
    flex-wrap: wrap;
  }

  .direct-chat-hero .ui-button {
    margin-left: 0;
  }

  .direct-message-row {
    width: 100%;
  }

  .simple-message {
    width: 100%;
  }
}

.profile-comments-drawer {
  z-index: 180;
  top: 96px;
  bottom: 20px;
  max-height: calc(100dvh - 116px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.profile-comments-drawer header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: var(--panel-bg, rgba(17, 29, 48, .88));
}

.profile-comments-drawer [data-close-profile-comments] {
  position: relative;
  z-index: 21;
}

.teammate-page {
  display: grid;
  align-content: start;
  height: 100%;
  min-height: 0;
  min-width: 0;
  overflow: auto;
  padding: 18px;
}

.teammate-layout,
.teammate-deck,
.teammate-aside,
.teammate-profile-form,
.teammate-card,
.teammate-self-card-wrap,
.teammate-self-card,
.teammate-requests {
  min-width: 0;
}

.teammate-layout {
  display: grid;
  grid-template-columns: minmax(360px, 520px) minmax(320px, 1fr);
  grid-template-areas:
    "deck side"
    "form form";
  align-content: start;
  gap: 18px;
  width: min(100%, 1360px);
  margin: 0 auto;
}

.teammate-deck {
  grid-area: deck;
  display: grid;
  align-content: start;
  gap: 12px;
}

.teammate-deck-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 14px;
  padding: 0 4px;
}

.teammate-deck-head h2 {
  margin: 3px 0 0;
  font-size: 28px;
}

.teammate-deck-count {
  flex: 0 0 auto;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.06);
  color: var(--muted);
  padding: 7px 10px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.teammate-deck-meta,
.teammate-deck-controls {
  display: flex;
  align-items: center;
  gap: 8px;
}

.teammate-deck-meta {
  justify-content: flex-end;
  flex-wrap: wrap;
}

.teammate-deck-nav {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  border-radius: 8px;
  color: var(--text);
  background: rgba(255,255,255,.06);
  cursor: pointer;
  transition: transform .16s ease, border-color .16s ease, background .16s ease, opacity .16s ease;
}

.teammate-deck-nav:hover:not(:disabled) {
  transform: translateY(-1px);
  border-color: color-mix(in srgb, var(--simple-accent) 42%, var(--panel-border));
  background: color-mix(in srgb, var(--simple-accent) 18%, rgba(255,255,255,.06));
}

.teammate-deck-nav:disabled {
  cursor: default;
  opacity: .45;
}

.teammate-deck-nav .ui-icon {
  width: 18px;
  height: 18px;
}

.teammate-deck-prev .ui-icon {
  transform: rotate(90deg);
}

.teammate-deck-next .ui-icon {
  transform: rotate(-90deg);
}

.teammate-card-stage {
  display: grid;
  min-height: min(700px, calc(100dvh - 190px));
}

.teammate-card {
  display: grid;
  gap: 16px;
  padding: 22px;
  overflow: hidden;
}

.teammate-card-active {
  min-height: min(700px, calc(100dvh - 190px));
  align-content: space-between;
  gap: 20px;
}

.teammate-card-active .teammate-card-top {
  grid-template-columns: minmax(0, 1fr);
  justify-items: center;
  text-align: center;
  gap: 16px;
}

.teammate-card-active .teammate-avatar {
  width: 118px;
  height: 118px;
  border-radius: 28px;
  font-size: 36px;
}

.teammate-card-active h2 {
  font-size: 32px;
}

.teammate-card-active .teammate-card-tags,
.teammate-card-active .teammate-games,
.teammate-card-active footer {
  justify-content: center;
}

.teammate-card-active footer .ui-button {
  min-height: 42px;
}

.teammate-action-status {
  margin: 0;
  min-height: 20px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
  text-align: center;
}

.teammate-aside {
  grid-area: side;
  display: grid;
  align-content: start;
  gap: 14px;
}

.teammate-self-card-wrap {
  display: grid;
  gap: 8px;
}

.teammate-self-card-wrap header {
  padding: 0 4px;
}

.teammate-self-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  overflow: hidden;
}

.teammate-card-top,
.teammate-request-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.teammate-card h2,
.teammate-card p,
.teammate-profile-form h2,
.teammate-requests h3 {
  margin: 0;
}

.teammate-card-top p {
  margin-top: 4px;
  color: var(--muted);
}

.teammate-card-tags,
.teammate-games,
.teammate-stats,
.teammate-card footer,
.teammate-request-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.teammate-card-tags span,
.teammate-games span,
.teammate-status {
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background: rgba(255,255,255,.07);
  color: var(--text);
  padding: 6px 9px;
  border-radius: 10px;
  font-size: 12px;
  font-weight: 850;
}

.teammate-games span:first-child,
.teammate-card-tags span:first-child {
  border-color: color-mix(in srgb, var(--simple-accent) 36%, var(--panel-border));
}

.teammate-status-outgoing {
  display: grid;
  justify-items: end;
  gap: 2px;
  line-height: 1.2;
}

.teammate-status-outgoing small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.teammate-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
}

.teammate-stats span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.12));
  background: rgba(255,255,255,.045);
}

.teammate-stats em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.teammate-style {
  max-width: 68ch;
  color: var(--text);
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.teammate-empty,
.teammate-loading {
  min-height: 360px;
  place-items: center;
  text-align: center;
}

.teammate-empty .ui-icon {
  width: 52px;
  height: 52px;
  color: var(--simple-accent);
}

.teammate-request-grid {
  display: grid;
  gap: 14px;
}

.teammate-requests {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.teammate-requests header,
.teammate-profile-form header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.teammate-request-row {
  grid-template-columns: auto minmax(0, 1fr) auto;
  padding: 12px;
}

.teammate-request-row .teammate-avatar {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.teammate-request-row p {
  margin: 3px 0 0;
  color: var(--muted);
}

.teammate-profile-form {
  grid-area: form;
  display: grid;
  gap: 14px;
  padding: 18px;
}

.teammate-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--text);
  font-weight: 850;
  cursor: pointer;
  user-select: none;
}

.teammate-switch input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.teammate-switch > span {
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.18));
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  position: relative;
  transition: background 140ms ease, border-color 140ms ease;
}

.teammate-switch > span::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 16px;
  height: 16px;
  border-radius: 999px;
  background: var(--muted);
  transition: transform 140ms ease, background 140ms ease;
}

.teammate-switch input:checked + span {
  border-color: color-mix(in srgb, var(--simple-accent) 56%, var(--panel-border));
  background: color-mix(in srgb, var(--simple-accent) 24%, transparent);
}

.teammate-switch input:checked + span::after {
  transform: translateX(18px);
  background: var(--simple-accent);
}

.teammate-switch b {
  font-size: 12px;
  line-height: 1.2;
}

.teammate-switch-wide {
  justify-content: flex-start;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.16));
  border-radius: 12px;
  background: rgba(255,255,255,.045);
}

.teammate-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.teammate-form-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.teammate-form-grid input,
.teammate-form-grid select,
.teammate-form-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--panel-border, rgba(255,255,255,.16));
  background: rgba(255,255,255,.08);
  color: var(--text);
  border-radius: 12px;
  padding: 10px 12px;
}

.teammate-form-grid textarea {
  resize: vertical;
}

.teammate-save-status {
  min-height: 18px;
  margin: -4px 0 0;
}

/* TaksaCord v0.27: cohesive message surfaces, emoji overlay, and stronger light cards. */
.emoji-wrap-v20 {
  z-index: 520;
  overflow: visible;
}

.chat-composer-v20,
.my-page-composer,
.profile-composer-input {
  overflow: visible;
}

.emoji-picker-v20 {
  right: 0;
  bottom: calc(100% + 12px);
  z-index: 9000;
  width: min(420px, calc(100vw - 34px));
  max-height: min(440px, 70dvh);
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  overflow: auto;
  padding: 12px;
  border-color: color-mix(in srgb, var(--simple-accent) 32%, var(--panel-border, rgba(255,255,255,.16)));
  background:
    radial-gradient(circle at 16% 0%, color-mix(in srgb, var(--simple-accent) 20%, transparent), transparent 34%),
    linear-gradient(145deg, rgba(255,255,255,.1), rgba(255,255,255,.035)),
    var(--panel-bg, rgba(14, 25, 42, .94));
  box-shadow:
    0 28px 80px rgba(0, 0, 0, .34),
    inset 0 1px 0 rgba(255,255,255,.12);
}

.emoji-category-v20 {
  display: grid;
  gap: 8px;
}

.emoji-category-v20 h3 {
  position: sticky;
  top: -12px;
  z-index: 1;
  margin: 0;
  padding: 4px 2px 6px;
  color: var(--muted, rgba(218, 229, 255, .72));
  background: linear-gradient(180deg, var(--panel-bg, rgba(14, 25, 42, .96)) 72%, transparent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.emoji-grid-v20 {
  display: grid;
  grid-template-columns: repeat(8, 38px);
  gap: 6px;
}

.emoji-picker-v20 button {
  width: 38px;
  height: 38px;
  background: color-mix(in srgb, var(--tc-surface-card-muted, rgba(255,255,255,.08)) 76%, transparent);
  font-size: 20px;
}

:root[data-design="cyberpunk"] :where(.ui-composer, .my-page-composer, .profile-composer-input) {
  clip-path: none;
  overflow: visible;
}

:root[data-design="cyberpunk"] .emoji-picker-v20 {
  border-radius: var(--tc-shape-radius, 6px) 0 var(--tc-shape-radius, 6px) 0;
  clip-path: polygon(0 0, calc(100% - var(--tc-shape-cut, 22px)) 0, 100% var(--tc-shape-cut, 22px), 100% 100%, var(--tc-shape-cut, 22px) 100%, 0 calc(100% - var(--tc-shape-cut, 22px)));
}

:root[data-design="rounded"] .emoji-picker-v20 {
  clip-path: none;
  border-radius: var(--tc-radius-xl, 22px);
}

.direct-conversation-row,
.direct-chat-hero {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--simple-accent) 18%, var(--panel-border, rgba(255,255,255,.12)));
  background:
    linear-gradient(135deg, rgba(255,255,255,.065), rgba(255,255,255,.028)),
    var(--panel-bg, rgba(17, 29, 48, .56));
}

.direct-conversation-row.active,
.direct-conversation-row:hover,
.direct-chat-hero:hover {
  border-color: color-mix(in srgb, var(--simple-accent) 48%, var(--panel-border, rgba(255,255,255,.22)));
  background:
    linear-gradient(135deg, color-mix(in srgb, var(--simple-accent) 18%, transparent), rgba(255,255,255,.05)),
    var(--panel-bg, rgba(17, 29, 48, .66));
}

:root[data-design="cyberpunk"] :where(.direct-conversation-row, .direct-chat-hero, .profile-side-actions > button:not(.profile-side-add), .teammate-form-grid input, .teammate-form-grid select, .teammate-form-grid textarea, .teammate-switch-wide) {
  border-radius: var(--tc-shape-radius, 6px) 0 var(--tc-shape-radius, 6px) 0;
  clip-path: polygon(0 0, calc(100% - var(--tc-shape-cut-sm, 14px)) 0, 100% var(--tc-shape-cut-sm, 14px), 100% 100%, var(--tc-shape-cut-sm, 14px) 100%, 0 calc(100% - var(--tc-shape-cut-sm, 14px)));
}

:root[data-design="rounded"] :where(.direct-conversation-row, .direct-chat-hero, .profile-side-actions > button:not(.profile-side-add), .teammate-form-grid input, .teammate-form-grid select, .teammate-form-grid textarea, .teammate-switch-wide) {
  clip-path: none;
  border-radius: var(--tc-radius-md, 12px);
}

.profile-side-actions > button:not(.profile-side-add) {
  min-width: 36px;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--panel-border, rgba(255,255,255,.14));
  background:
    linear-gradient(145deg, rgba(255,255,255,.075), rgba(255,255,255,.028)),
    var(--tc-surface-card-muted, rgba(255,255,255,.06));
  color: var(--text, var(--tc-text-primary));
  font-size: 12px;
  font-weight: 850;
}

.profile-side-actions > button:not(.profile-side-add):hover {
  border-color: color-mix(in srgb, var(--simple-accent) 42%, var(--panel-border, rgba(255,255,255,.22)));
  background: color-mix(in srgb, var(--simple-accent) 14%, var(--tc-surface-card-muted, rgba(255,255,255,.07)));
}

.teammate-form-grid input,
.teammate-form-grid select,
.teammate-form-grid textarea {
  background:
    linear-gradient(145deg, rgba(255,255,255,.07), rgba(255,255,255,.025)),
    var(--tc-surface-field, rgba(255,255,255,.08));
}

:root[data-theme="light"] :where(
  .home-action-card,
  .home-panel,
  .server-mini-card,
  .server-feature-grid-v16 article,
  .server-news-panel-v16,
  .server-about-v16,
  .server-aside-card-v16,
  .server-news-card-v18,
  .server-empty-news,
  .my-page-side-card,
  .my-page-post,
  .my-page-empty,
  .my-page-composer,
  .profile-composer-input,
  .profile-upload-policy,
  .profile-ad-card,
  .direct-inbox-list,
  .direct-chat-hero,
  .direct-conversation-row,
  .teammate-card,
  .teammate-profile-form,
  .teammate-requests
) {
  border-color: rgba(244, 248, 255, .46);
  background:
    radial-gradient(circle at 10% 0%, rgba(246, 249, 255, .24), transparent 34%),
    linear-gradient(145deg, rgba(162, 171, 220, .46), rgba(128, 139, 198, .34)),
    rgba(132, 143, 198, .34);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.28),
    0 18px 52px rgba(57, 59, 107, .14);
  backdrop-filter: blur(16px) saturate(1.14);
}

:root[data-theme="light"] .my-page-hero {
  border-color: rgba(244, 248, 255, .5);
  background: var(--profile-cover-image);
  background-size: cover;
  background-position: center top;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.3),
    0 20px 56px rgba(57, 59, 107, .15);
}

:root[data-theme="light"] .my-page-identity {
  background: transparent;
  box-shadow: none;
}

:root[data-theme="light"] .my-page-title h1,
:root[data-theme="light"] .my-page-title p,
:root[data-theme="light"] .my-page-status {
  text-shadow: 0 1px 12px rgba(70, 75, 135, .18);
}

:root[data-theme="light"] :where(
  .home-action-card strong,
  .home-panel h3,
  .server-mini-card strong,
  .server-feature-grid-v16 strong,
  .server-news-panel-v16 h3,
  .server-about-v16 h3,
  .my-page-side-card h3,
  .my-page-post strong,
  .direct-chat-hero h2,
  .direct-conversation-row strong,
  .teammate-card h2,
  .teammate-profile-form h2,
  .teammate-requests h3
) {
  color: #ffffff;
}

:root[data-theme="light"] :where(
  .home-action-card p,
  .home-panel p,
  .server-mini-card em,
  .server-feature-grid-v16 p,
  .server-about-v16 p,
  .my-page-side-card,
  .my-page-post p,
  .direct-chat-hero p,
  .direct-conversation-row em,
  .direct-conversation-row p,
  .teammate-card p,
  .teammate-form-grid label
) {
  color: rgba(239, 244, 255, .78);
}

:root[data-theme="light"] .emoji-picker-v20 {
  color: #fff;
  background:
    radial-gradient(circle at 16% 0%, rgba(226, 236, 255, .2), transparent 34%),
    linear-gradient(145deg, rgba(72, 82, 142, .86), rgba(83, 92, 152, .72)),
    rgba(70, 79, 137, .88);
}

:root[data-theme="light"] .emoji-category-v20 h3 {
  color: rgba(239, 244, 255, .78);
  background: linear-gradient(180deg, rgba(72, 82, 142, .96) 72%, transparent);
}

:root[data-theme="light"] .emoji-picker-v20 button {
  color: #fff;
  background: rgba(255,255,255,.12);
}

@media (max-width: 1180px) {
  .teammate-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "deck"
      "side"
      "form";
  }

  .teammate-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .teammate-page {
    padding: 12px;
  }

  .teammate-card,
  .teammate-self-card,
  .teammate-profile-form {
    padding: 14px;
  }

  .teammate-deck-head {
    align-items: start;
    flex-direction: column;
  }

  .teammate-deck-meta {
    width: 100%;
    justify-content: space-between;
  }

  .teammate-card-stage,
  .teammate-card-active {
    min-height: 560px;
  }

  .teammate-card-active h2 {
    font-size: 24px;
  }

  .teammate-card-top,
  .teammate-request-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .teammate-form-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .teammate-card footer .ui-button,
  .teammate-request-actions .ui-button {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 1600px) {
  .my-page-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .my-page-aside {
    grid-column: 2;
    grid-row: 1;
  }

  .my-page-ad-rail {
    display: none;
  }
}

@media (max-width: 920px) {
  .my-page-shell {
    grid-template-columns: minmax(0, 1fr);
    padding: 12px;
  }

  .my-page-hero,
  .my-page-main,
  .my-page-body,
  .my-page-aside {
    grid-column: 1;
    grid-row: auto;
  }

  .my-page-body {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-ad-card {
    display: none;
  }

  .my-page-identity {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: end;
    padding: 0 18px;
  }

  .my-page-identity .ui-button {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .my-page-status {
    max-width: calc(100% - 36px);
    margin: 12px 18px 0;
  }

  .my-page-composer {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-media-fields,
  .direct-message-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .direct-message-form.direct-message-form-v20 {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .direct-message-form.direct-message-form-v20 button[type="submit"] {
    grid-column: 1 / -1;
    width: 100%;
  }
}
.desktop-update-banner {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 80;
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: min(460px, calc(100vw - 32px));
  padding: 14px 16px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow-strong);
}

.desktop-update-banner div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.desktop-update-banner strong,
.desktop-update-banner span {
  overflow-wrap: anywhere;
}

.desktop-update-banner span {
  color: var(--muted);
  font-size: 0.9rem;
}

@media (max-width: 640px) {
  .desktop-download-link {
    display: none;
  }

  .desktop-update-banner {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: stretch;
    flex-direction: column;
  }
}
