/* Omni: consistent readable text, visible participant controls, accessible rooms */
.voice-room-mode{
  flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;
  padding:2px 4px;border-radius:6px;
  background:rgba(106,179,191,.13);border:1px solid rgba(119,194,201,.19);
  color:#c9e0ef;font-size:10px;font-weight:700;line-height:1.1;letter-spacing:.01em;
}
html[data-nexo-theme="light"] .voice-room-mode{
  background:rgba(50,95,149,.12);border-color:rgba(50,89,139,.24);color:#1e3e65;
}
.channel-entry .voice-channel .channel-entry-name{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.channel-entry .voice-channel .voice-room-mode{max-width:41px;white-space:nowrap}
.remote-tile{position:relative}
.remote-tile:not(.is-local) .participant-quick-controls{
  position:absolute;bottom:10px;right:10px;z-index:12;
  display:grid;place-items:center;width:32px;height:32px;
  border:1px solid rgba(230,240,255,.26);border-radius:10px;
  color:#f4f8ff;background:rgba(15,27,42,.7);
  backdrop-filter:blur(12px);-webkit-backdrop-filter:blur(12px);
  box-shadow:0 1px 5px rgba(0,0,0,.23);
  cursor:pointer;opacity:.9;transition:opacity .15s ease,background-color .15s ease;
}
.remote-tile.is-local .participant-quick-controls{display:none}
.remote-tile:not(.is-local) .participant-quick-controls:hover,
.remote-tile:not(.is-local) .participant-quick-controls:focus-visible{
  opacity:1;background:#294c73;
}
.remote-tile.has-video .participant-quick-controls{bottom:44px}
html[data-nexo-theme="light"] .remote-tile:not(.is-local) .participant-quick-controls{
  background:rgba(23,42,66,.78);color:#fff;border-color:#fff5;
}
:root{--nexo-focus-outline:#91d8f8}
:focus-visible{outline:2px solid var(--nexo-focus-outline);outline-offset:2px}
html[data-nexo-theme="light"]{--nexo-focus-outline:#174f83}
.app-shell .section-heading{font-size:max(11px,calc(9px * var(--nexo-ui-factor,1)))}
.app-shell .community-title small,.app-shell .current-channel p,
.app-shell .friend-identity small,.app-shell .member-row small,
.app-shell .friend-playing,.app-shell .channel-text-users,
.app-shell .message-heading time,.app-shell .voice-member-label{
  font-size:max(11px,calc(10px * var(--nexo-ui-factor,1)));
  line-height:1.35;
}
.app-shell .friend-identity strong,.app-shell .member-row strong{
  font-size:max(12px,calc(11px * var(--nexo-ui-factor,1)));
}
html[data-nexo-theme="light"] .app-shell :is(
  .voice-room-mode,.section-heading,.friend-identity small,
  .member-row small,.message-heading time,.channel-text-users,
  .current-channel p,.community-title small
){text-shadow:none}
@media(prefers-reduced-motion:reduce){
  .remote-tile .participant-quick-controls,
  .app-shell .global-nav-button{transition:none!important}
}

.history-older-wrap{position:sticky;top:3px;z-index:5;margin:8px 0;text-align:center}
.history-older-wrap button{min-height:34px;padding:6px 15px;border-radius:16px;border:1px solid rgba(128,190,216,.35);background:rgba(19,36,55,.88);color:#e6f5ff;font-size:12px;cursor:pointer}
.history-older-wrap button:hover,.history-older-wrap button:focus-visible{background:#1f4567}
html[data-nexo-theme="light"] .history-older-wrap button{background:#dbe9f7;color:#183b59;border-color:#799cb6}

.nexo-network-diagnostics{margin-top:18px;padding:14px;border:1px solid #8ca4bf36;border-radius:12px}
.nexo-network-diagnostics h3{margin:0 0 7px}
#nexoDiagnosticsResult{margin:12px 0 0;padding:14px;white-space:pre-wrap;overflow-wrap:anywhere;font-size:12px;line-height:1.65;border-radius:9px;color:#d9f3e6;background:rgba(4,14,25,.82)}
html[data-nexo-theme="light"] #nexoDiagnosticsResult{color:#173c59;background:#d8eaf7}

/* Keep the shortest settings tab inside 720p viewports without tiny scrollbars. */
.app-settings-dialog #settingsPanelApp .nexo-network-diagnostics {margin-top:12px;padding:12px}

.history-search-dialog{width:min(630px,calc(100vw - 28px));max-height:calc(100dvh - 32px);overflow:auto;color:#e5ebf2}
.history-search-dialog .menu-dialog-body{display:flex;flex-direction:column;gap:13px}
.history-search-dialog label{font-size:12px;color:#bbd2e8}
.history-search-controls{display:flex;gap:8px;margin-top:7px;flex-wrap:wrap}
.history-search-controls input{flex:1;min-width:185px;padding:10px 13px;border-radius:9px;color:#e3f4ff;background:#111d2d;border:1px solid #728ca74d;font:inherit}
.history-search-results{display:flex;flex-direction:column;gap:9px;max-height:42dvh;overflow-y:auto}
.history-search-item{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:5px 10px;border:1px solid #6b84a44f;border-radius:10px;padding:11px;background:#1a2533a6}
.history-search-item strong{font-size:13px}
.history-search-item time{color:#aabbd1;font-size:10px}
.history-search-item p{grid-column:1 / -1;color:#e1efff;font-size:12px;line-height:1.5;margin:0;overflow-wrap:anywhere}
