/* Visual personalization refinements.
 * The user's Mini Central photo is a separate profile setting and must not
 * be overridden by the premium general panel theme/transparency.
 */
html[data-nexo-personalized="1"] .app-shell .user-panel.mini-central {
  /* Preserve its own inline background-image/color. Never use background shorthand. */
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
html[data-nexo-personalized="1"] .app-shell .global-navigation {
  border-bottom-color: color-mix(in srgb, var(--nexo-custom-accent) 15%, transparent);
}
html[data-nexo-personalized="1"] .app-shell .global-nav-button {
  transition: background-color 140ms ease, color 140ms ease, border-color 140ms ease;
}
html[data-nexo-personalized="1"] .app-shell .global-nav-button[aria-pressed="true"],
html[data-nexo-personalized="1"] .app-shell .global-nav-button[aria-expanded="true"] {
  background: color-mix(in srgb,var(--nexo-custom-accent) 17%,transparent);
  border-color: color-mix(in srgb,var(--nexo-custom-accent) 32%,transparent);
  color: var(--nexo-custom-accent);
}
html[data-nexo-personalized="1"] .app-shell .global-nav-button:hover {
  background: color-mix(in srgb,var(--nexo-custom-accent) 13%,transparent);
}
html[data-nexo-personalized="1"] .app-shell .global-navigation .global-nav-count {
  background: var(--nexo-custom-accent);
  border-color: color-mix(in srgb,var(--nexo-custom-accent) 25%,#0c1420);
  color: #102021;
}

/* Scope light variables to the app so the separate dark dialogs remain legible. */
html[data-nexo-theme="light"] .app-shell {
  --text: #1c2a3f;
  --muted: #43556f;
  --dim: #526176;
  --line: rgba(36,52,72,.23);
  --line-soft: rgba(36,52,72,.16);
  color: #1c2a3f;
}
html[data-nexo-theme="light"] .app-shell .global-navigation {
  border-color: rgba(38,59,86,.19);
}
html[data-nexo-theme="light"] .app-shell .global-nav-button,
html[data-nexo-theme="light"] .app-shell .section-heading button {
  color: #24364f;
}
html[data-nexo-theme="light"] .app-shell .global-nav-button:hover,
html[data-nexo-theme="light"] .app-shell .global-nav-button:focus-visible {
  background: rgba(34,67,103,.12);
  border-color: rgba(36,63,96,.21);
  color: #152641;
}
html[data-nexo-theme="light"] .app-shell .global-nav-button:is([aria-pressed="true"],[aria-expanded="true"]) {
  color: #142e47;
  border-color: color-mix(in srgb,var(--nexo-custom-accent) 50%,#24334a);
  background: color-mix(in srgb,var(--nexo-custom-accent) 18%,rgba(228,236,247,.77));
}
html[data-nexo-theme="light"] .app-shell .global-navigation .global-nav-count {
  border-color: #dee7f1;
  color: #13253d;
}
html[data-nexo-theme="light"] .app-shell .server-button,
html[data-nexo-theme="light"] .app-shell .server-add,
html[data-nexo-theme="light"] .app-shell .rail-utility {
  color: #24344f;
  background: rgba(239,244,250,.60);
  border-color: rgba(45,65,92,.28);
}
html[data-nexo-theme="light"] .app-shell .server-button.selected {
  color: #17273c;
  background: color-mix(in srgb,var(--nexo-custom-accent) 23%,#e1eafa);
}
html[data-nexo-theme="light"] .app-shell .server-button:hover,
html[data-nexo-theme="light"] .app-shell .server-add:hover,
html[data-nexo-theme="light"] .app-shell .rail-utility:hover {
  color: #10243b;
  background: rgba(208,221,236,.78);
}
html[data-nexo-theme="light"] .app-shell .community-avatar { color:#17253a; background:rgba(208,224,240,.88); border-color:rgba(36,52,78,.27); }
html[data-nexo-theme="light"] .app-shell :is(
  .community-title strong, .current-channel h1,
  .friend-identity strong, .friends-panel-header h2, .message-heading strong,
  .channel-welcome h2, .voice-stage-heading h2,
  .voice-preview-panel h2, .member-row strong
) { color: #18283f; }
html[data-nexo-theme="light"] .app-shell :is(
  .community-title small, .chevron,
  .current-channel p, .top-hash, .online-pill,
  .section-heading, .channel-hash, .voice-wave,
  .voice-count, .voice-member-label, .channel-text-users,
  .friend-identity small, .friends-empty,
  .channel-welcome p, .message-heading time,
  .member-heading, .member-row small, .member-group-title,
  .voice-stage-eyebrow, .voice-stage-heading > div:first-child > p:last-child,
  .voice-preview-footnote, .voice-preview-member small,
  .member-total, .channel-star
) { color: #3c4f68; }
html[data-nexo-theme="light"] .app-shell .message-text {
  color: #273750;
  text-shadow: none;
}
html[data-nexo-theme="light"] .app-shell .channel-button,
html[data-nexo-theme="light"] .app-shell .voice-channel {
  color: #2d3e57;
}
html[data-nexo-theme="light"] .app-shell .channel-button:hover,
html[data-nexo-theme="light"] .app-shell .voice-channel:hover,
html[data-nexo-theme="light"] .app-shell .community-heading:hover,
html[data-nexo-theme="light"] .app-shell .member-row:hover {
  background: rgba(33,64,105,.10);
  color: #162940;
}
html[data-nexo-theme="light"] .app-shell .channel-button.active,
html[data-nexo-theme="light"] .app-shell .voice-channel.active {
  background: color-mix(in srgb,var(--nexo-custom-accent) 18%,rgba(220,230,244,.68));
  box-shadow: inset 0 0 0 1px rgba(34,63,93,.13);
  color: #17314d;
}
html[data-nexo-theme="light"] .app-shell .channel-button.active .channel-hash { color:#244663; }
html[data-nexo-theme="light"] .app-shell .voice-count,
html[data-nexo-theme="light"] .app-shell .member-total {
  background: rgba(51,78,110,.12);
  border-color: rgba(34,52,74,.18);
}
html[data-nexo-theme="light"] .app-shell .friends-tabs button {
  color: #34465f;
}
html[data-nexo-theme="light"] .app-shell .friends-tabs button:hover,
html[data-nexo-theme="light"] .app-shell .friends-tabs button.active {
  color:#182d46;
  background: rgba(41,70,109,.12);
  border-color: rgba(43,66,95,.23);
}
html[data-nexo-theme="light"] .app-shell .friends-tabs span {
  color:#243951;
  background:rgba(48,73,105,.14);
}
html[data-nexo-theme="light"] .app-shell .friend-card,
html[data-nexo-theme="light"] .app-shell .friends-panel-header,
html[data-nexo-theme="light"] .app-shell .friends-tabs {
  border-color: rgba(44,65,93,.18);
}
html[data-nexo-theme="light"] .app-shell .friend-actions button,
html[data-nexo-theme="light"] .app-shell .message-tools button {
  color: #263a54;
  border-color: rgba(42,60,85,.21);
  background: rgba(225,235,248,.65);
}
html[data-nexo-theme="light"] .app-shell .friend-actions button:hover,
html[data-nexo-theme="light"] .app-shell .message-tools button:hover {
  color: #11263e;
  background: rgba(201,216,236,.86);
}
html[data-nexo-theme="light"] .app-shell .composer-wrap {
  background: linear-gradient(0deg,rgba(226,234,244,.56) 70%,transparent);
}
html[data-nexo-theme="light"] .app-shell .composer,
html[data-nexo-theme="light"] .app-shell .composer input[type="text"] {
  color: #192b43;
}
html[data-nexo-theme="light"] .app-shell .composer input::placeholder,
html[data-nexo-theme="light"] .app-shell .composer textarea::placeholder {
  color: #52647e;
}
html[data-nexo-theme="light"] .app-shell .message-reply-preview {
  color: #415572;
  border-left-color: rgba(42,72,108,.42);
}
html[data-nexo-theme="light"] .app-shell .voice-preview-member,
html[data-nexo-theme="light"] .app-shell .voice-call-card,
html[data-nexo-theme="light"] .app-shell .voice-stage-count {
  color: #24364e;
  background: rgba(224,235,248,.68);
  border-color: rgba(39,64,92,.22);
}
html[data-nexo-theme="light"] .app-shell .voice-stage-count { color: #293d54; }
html[data-nexo-theme="light"] .app-shell .voice-preview-actions button,
html[data-nexo-theme="light"] .app-shell .voice-stage-controls .stage-control:not(.is-active):not(.is-muted) {
  color:#1d3451;
  background:rgba(219,230,245,.75);
  border-color:rgba(45,72,102,.25);
}

/* A profile photo on the Mini Central is always independent of light theme. */
html[data-nexo-theme="light"] .app-shell .mini-central .mini-central-ident .user-copy strong,
html[data-nexo-theme="light"] .app-shell .mini-central .mini-central-ident .user-copy small,
html[data-nexo-theme="light"] .app-shell .mini-central #miniCentralGame {
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,.88),0 0 8px rgba(0,0,0,.66);
}
html[data-nexo-theme="light"] .app-shell .mini-central .mini-central-buttons .user-control {
  /* Leave the high-priority green/red mic and speaker status colors untouched. */
  text-shadow: 0 1px 3px rgba(0,0,0,.8);
}
