/* worker/frontend/ux-preview.css — UX-001 preview mobile app shell, deterministic preview CSS
   consistent with the auth/chat-preview visual language (fixed shell, glass panels, neon cyan
   accents, [hidden] display none, focus-visible, reduced motion, responsive breakpoints).
   Every selector is scoped under the shell root (#ux-shell-root / .ux-shell* / .ux-nav* /
   .ux-visually-hidden), so the v3.1 audio workstation layout and behavior are never affected:
   there are no bare element selectors and no global body/html/main/nav overrides. */

#ux-shell-root {
  --ux-bg: rgba(4, 6, 12, 0.96);
  --ux-border: rgba(0, 243, 255, 0.5);
  position: fixed;
  /* P2 stacking: the shell floats above the app's plain content but BELOW every app
     interactive surface — the chat drawer (z-index 1000), the .modal-overlay (z-index 2000)
     and the license lock modal (inline z-index 99999) always paint above the shell, so shell
     chrome can never cover the v3.1 workstation's chat-input-area or modal cards. */
  z-index: 900;
  color: var(--text-main, #f1f5f9);
  font-family: var(--font-main, sans-serif);
}

#ux-shell-root[hidden] {
  display: none;
}

/* Mobile-first: bottom/edge navigation bar; the content region slides above it. */
.ux-shell-nav {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  align-items: stretch;
  gap: 0.3rem;
  padding: 0.3rem;
  border-top: 1px solid var(--ux-border);
  background: var(--ux-bg);
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.18);
}

/* Cascade-level guarantee (final P2): the hidden attribute must actually hide the nav —
   display:flex above must never win over the hidden state (the [hidden] attribute selector
   has higher specificity, and this rule pins the display:none regardless). */
.ux-shell-nav[hidden] {
  display: none;
}

.ux-nav-group {
  display: flex;
  flex: 1 1 auto;
  gap: 0.3rem;
}

.ux-nav-group-label {
  display: none;
}

.ux-nav-item {
  flex: 1 1 0;
  min-height: 2.6rem;
  padding: 0.3rem 0.4rem;
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.06);
  color: inherit;
  font: 600 0.68rem var(--font-code, monospace);
  text-align: center;
  cursor: pointer;
}

.ux-nav-item:hover:not(:disabled) {
  background: rgba(0, 243, 255, 0.14);
}

.ux-nav-item[aria-current='true'] {
  border-color: var(--neon-cyan, #00f3ff);
  background: rgba(0, 243, 255, 0.18);
}

.ux-nav-item[hidden] {
  display: none;
}

.ux-nav-item:focus-visible,
.ux-shell-main:focus-visible {
  outline: 3px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

.ux-shell-main {
  position: fixed;
  left: 0.5rem;
  right: 0.5rem;
  bottom: 3.6rem;
  max-height: calc(100vh - 6rem);
  overflow-y: auto;
  padding: 0.8rem;
  border: 1px solid var(--ux-border);
  border-radius: 10px;
  background: var(--ux-bg);
  box-shadow: 0 0 24px rgba(0, 243, 255, 0.18);
}

.ux-shell-main[hidden] {
  display: none;
}

.ux-shell-title {
  margin: 0;
  color: var(--neon-cyan, #00f3ff);
  font-family: var(--font-heading, sans-serif);
  font-size: 0.78rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.ux-shell-entry,
.ux-shell-notice {
  margin: 0.5rem 0 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted, #a8b2c1);
}

.ux-shell-notice {
  color: var(--neon-magenta, #ff0055);
  font: 600 0.72rem var(--font-code, monospace);
}

.ux-shell-notice[hidden] {
  display: none;
}

.ux-visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

/* Desktop: top/left edge rail navigation; the content region sits to the right of it. The
   viewport model toggles .ux-shell--desktop and the media query backs it up. */
@media (min-width: 768px) {
  .ux-shell--desktop .ux-shell-nav {
    left: 0;
    top: 0;
    right: auto;
    bottom: 0;
    flex-direction: column;
    width: 12.5rem;
    gap: 0.5rem;
    padding: 0.6rem;
    border-top: none;
    border-right: 1px solid var(--ux-border);
  }

  .ux-shell--desktop .ux-nav-group {
    flex-direction: column;
    flex: 0 0 auto;
  }

  .ux-shell--desktop .ux-nav-group-label {
    display: block;
    margin: 0.2rem;
    font: 600 0.62rem var(--font-code, monospace);
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-muted, #a8b2c1);
  }

  .ux-shell--desktop .ux-nav-item {
    flex: 0 0 auto;
    min-height: 2.25rem;
    text-align: left;
  }

  .ux-shell--desktop .ux-shell-main {
    left: 13.5rem;
    top: 1rem;
    right: 1rem;
    bottom: 1rem;
    max-height: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  #ux-shell-root * {
    scroll-behavior: auto;
  }
}

/* Onboarding (AUTH-002): step list, status body/notice, bounded profile form. */
.ux-onboarding,
.ux-search {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.ux-onboarding[hidden],
.ux-search[hidden] {
  display: none;
}

.ux-onboarding-steps {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.ux-onboarding-step {
  padding: 0.25rem 0.55rem;
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 12px;
  background: rgba(0, 243, 255, 0.06);
  font: 600 0.66rem var(--font-code, monospace);
  color: var(--text-muted, #a8b2c1);
}

.ux-onboarding-step--done {
  border-color: rgba(0, 243, 255, 0.5);
  color: var(--neon-cyan, #00f3ff);
}

.ux-onboarding-step--active {
  border-color: var(--neon-cyan, #00f3ff);
  background: rgba(0, 243, 255, 0.18);
  color: var(--text-main, #f1f5f9);
}

.ux-onboarding-step--unavailable,
.ux-onboarding-step--preview {
  border-color: rgba(255, 0, 85, 0.4);
  color: var(--neon-magenta, #ff0055);
}

.ux-onboarding-title {
  margin: 0;
  color: var(--neon-cyan, #00f3ff);
  font-family: var(--font-heading, sans-serif);
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.ux-onboarding-body {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--text-muted, #a8b2c1);
}

.ux-onboarding-notice {
  margin: 0;
  font: 600 0.72rem var(--font-code, monospace);
  color: var(--neon-magenta, #ff0055);
}

.ux-onboarding-notice[hidden],
.ux-onboarding-form[hidden],
.ux-onboarding-error[hidden] {
  display: none;
}

.ux-onboarding-form {
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.ux-onboarding-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.ux-onboarding-field-label {
  font: 600 0.68rem var(--font-code, monospace);
  color: var(--text-muted, #a8b2c1);
}

.ux-onboarding-field input,
.ux-onboarding-field textarea,
.ux-search-input {
  box-sizing: border-box;
  width: 100%;
  min-height: 2.25rem;
  padding: 0.4rem 0.55rem;
  border: 1px solid var(--border-color, rgba(0, 243, 255, 0.3));
  border-radius: 6px;
  background: rgba(8, 11, 16, 0.9);
  color: inherit;
  font: 400 0.78rem var(--font-main, sans-serif);
}

.ux-onboarding-field textarea {
  min-height: 4.5rem;
  resize: vertical;
}

.ux-onboarding-save,
.ux-search-submit,
.ux-search-load-more {
  min-height: 2.25rem;
  padding: 0.35rem 0.7rem;
  border: 1px solid rgba(0, 243, 255, 0.45);
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.12);
  color: inherit;
  font: 700 0.72rem var(--font-code, monospace);
  cursor: pointer;
}

.ux-onboarding-save:hover:not(:disabled),
.ux-search-submit:hover:not(:disabled),
.ux-search-load-more:hover:not(:disabled) {
  background: rgba(0, 243, 255, 0.2);
}

.ux-onboarding-save:disabled,
.ux-search-submit:disabled,
.ux-search-input:disabled {
  cursor: wait;
  opacity: 0.55;
}

.ux-onboarding-error {
  margin: 0;
  font: 600 0.7rem var(--font-code, monospace);
  color: var(--neon-magenta, #ff0055);
}

/* Search (SOC-001 principal + DISC-001 discovery): tabs, bounded form, results. */
.ux-search-tabs {
  display: flex;
  gap: 0.35rem;
}

.ux-search-tab {
  flex: 1 1 0;
  min-height: 2.1rem;
  padding: 0.3rem 0.5rem;
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 6px;
  background: rgba(0, 243, 255, 0.06);
  color: var(--text-muted, #a8b2c1);
  font: 600 0.7rem var(--font-code, monospace);
  cursor: pointer;
}

.ux-search-tab[aria-selected='true'] {
  border-color: var(--neon-cyan, #00f3ff);
  background: rgba(0, 243, 255, 0.18);
  color: var(--text-main, #f1f5f9);
}

.ux-search-tabpane {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.ux-search-tabpane[hidden] {
  display: none;
}

.ux-search-form {
  display: flex;
  gap: 0.4rem;
  align-items: center;
}

.ux-search-input {
  flex: 1 1 8rem;
}

.ux-search-status {
  margin: 0;
  min-height: 1rem;
  font-size: 0.72rem;
  color: var(--text-muted, #a8b2c1);
}

.ux-search-results {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0;
  padding: 0;
  list-style: none;
  max-height: 16rem;
  overflow-y: auto;
}

.ux-search-result {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  padding: 0.4rem 0.5rem;
  border: 1px solid rgba(0, 243, 255, 0.12);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.65);
}

.ux-search-result-title {
  font: 700 0.76rem var(--font-main, sans-serif);
  color: var(--text-main, #f1f5f9);
}

.ux-search-result-meta,
.ux-search-result-details {
  font-size: 0.7rem;
  color: var(--text-muted, #a8b2c1);
}

.ux-search-provider {
  align-self: flex-start;
  padding: 0.15rem 0.45rem;
  border: 1px solid rgba(0, 243, 255, 0.3);
  border-radius: 10px;
  font: 600 0.62rem var(--font-code, monospace);
  color: var(--neon-cyan, #00f3ff);
  overflow-wrap: anywhere;
}

.ux-search-provider--local {
  border-color: rgba(168, 85, 247, 0.5);
  color: var(--neon-purple, #a855f7);
}

.ux-search-load-more {
  align-self: center;
}

.ux-search-load-more[hidden] {
  display: none;
}

.ux-search-submit:focus-visible,
.ux-search-load-more:focus-visible,
.ux-search-tab:focus-visible,
.ux-search-input:focus-visible,
.ux-onboarding-form input:focus-visible,
.ux-onboarding-form textarea:focus-visible,
.ux-onboarding-save:focus-visible {
  outline: 3px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .ux-search-form {
    flex-wrap: wrap;
  }

  .ux-search-input {
    flex: 1 1 100%;
  }
}

/* ACCESS-001 Account & License settings subsection. EVERY selector is scoped under the
   #access-settings-root element (no bare element/global selectors, no z-index layers, never
   touching the preserved v3.1 audio workstation). The whole subsection is hidden by the
   shell until the /api/access probe proves the backend exists. */
#access-settings-root {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1rem;
  margin-top: 0.75rem;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

#access-settings-root[hidden],
#access-settings-root .ux-access-notice[hidden],
#access-settings-root .ux-access-storage-warning[hidden],
#access-settings-root .ux-access-trial[hidden],
#access-settings-root .ux-access-license[hidden],
#access-settings-root .ux-access-devices-title[hidden],
#access-settings-root .ux-access-devices[hidden],
#access-settings-root .ux-access-deactivate-error[hidden],
#access-settings-root .ux-access-key-form[hidden],
#access-settings-root .ux-access-register-form[hidden],
#access-settings-root .ux-access-form-error[hidden] {
  display: none;
}

#access-settings-root .ux-access-settings-title {
  margin: 0;
  font: 700 0.8rem var(--font-ui, system-ui);
  color: var(--neon-cyan, #00f3ff);
}

#access-settings-root .ux-access-status {
  margin: 0;
  font: 600 0.72rem var(--font-ui, system-ui);
  color: var(--text-primary, #e2e8f0);
  min-height: 1.1em;
}

#access-settings-root .ux-access-notice,
#access-settings-root .ux-access-deactivate-error {
  margin: 0;
  font: 400 0.68rem var(--font-ui, system-ui);
  color: var(--text-secondary, #94a3b8);
}

#access-settings-root .ux-access-storage-warning {
  margin: 0;
  font: 400 0.66rem var(--font-ui, system-ui);
  color: #fbbf24;
}

#access-settings-root .ux-access-trial {
  margin: 0;
  font: 600 0.7rem var(--font-code, monospace);
  color: var(--neon-cyan, #00f3ff);
}

#access-settings-root .ux-access-license {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
}

#access-settings-root .ux-access-dt {
  margin: 0;
  font: 600 0.66rem var(--font-ui, system-ui);
  color: var(--text-secondary, #94a3b8);
}

#access-settings-root dd {
  margin: 0;
  font: 500 0.68rem var(--font-code, monospace);
  color: var(--text-primary, #e2e8f0);
  overflow-wrap: anywhere;
}

#access-settings-root .ux-access-devices-title {
  margin: 0.25rem 0 0;
  font: 700 0.72rem var(--font-ui, system-ui);
  color: var(--text-primary, #e2e8f0);
}

#access-settings-root .ux-access-devices {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#access-settings-root .ux-access-device {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 8px;
}

#access-settings-root .ux-access-device-label {
  font: 600 0.7rem var(--font-ui, system-ui);
  color: var(--text-primary, #e2e8f0);
}

#access-settings-root .ux-access-device-status {
  font: 500 0.64rem var(--font-code, monospace);
  color: var(--text-secondary, #94a3b8);
}

#access-settings-root .ux-access-device-status--active {
  color: #34d399;
}

#access-settings-root .ux-access-device-status--revoked {
  color: var(--text-secondary, #94a3b8);
}

#access-settings-root .ux-access-device-controls {
  display: inline-flex;
  gap: 0.5rem;
  margin-left: auto;
}

#access-settings-root .ux-access-device-deactivate,
#access-settings-root .ux-access-device-confirm,
#access-settings-root .ux-access-device-cancel,
#access-settings-root .ux-access-action {
  min-height: 44px;
  padding: 0 0.9rem;
  border-radius: 8px;
  font: 600 0.7rem var(--font-ui, system-ui);
  color: var(--text-primary, #e2e8f0);
  background: rgba(0, 243, 255, 0.08);
  border: 1px solid rgba(0, 243, 255, 0.35);
  cursor: pointer;
}

#access-settings-root .ux-access-device-confirm {
  background: rgba(52, 211, 153, 0.12);
  border-color: rgba(52, 211, 153, 0.5);
}

#access-settings-root .ux-access-device-cancel {
  background: transparent;
  border-color: rgba(148, 163, 184, 0.35);
}

#access-settings-root .ux-access-device-deactivate:disabled,
#access-settings-root .ux-access-device-confirm:disabled,
#access-settings-root .ux-access-device-cancel:disabled,
#access-settings-root .ux-access-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

#access-settings-root .ux-access-key-form,
#access-settings-root .ux-access-register-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

#access-settings-root .ux-access-field {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

#access-settings-root .ux-access-field-label {
  font: 600 0.68rem var(--font-ui, system-ui);
  color: var(--text-primary, #e2e8f0);
}

#access-settings-root .ux-access-field input {
  min-height: 44px;
  padding: 0.5rem 0.6rem;
  border-radius: 8px;
  border: 1px solid rgba(0, 243, 255, 0.3);
  background: rgba(2, 6, 23, 0.6);
  color: var(--text-primary, #e2e8f0);
  font: 500 0.7rem var(--font-ui, system-ui);
}

#access-settings-root .ux-access-field input[aria-invalid='true'] {
  border-color: #f87171;
}

#access-settings-root .ux-access-field-hint {
  margin: 0;
  font: 400 0.64rem var(--font-ui, system-ui);
  color: var(--text-secondary, #94a3b8);
}

#access-settings-root .ux-access-form-error {
  margin: 0;
  font: 400 0.66rem var(--font-ui, system-ui);
  color: #f87171;
}

#access-settings-root .ux-access-action {
  align-self: flex-start;
}

#access-settings-root .ux-access-device-deactivate:focus-visible,
#access-settings-root .ux-access-device-confirm:focus-visible,
#access-settings-root .ux-access-device-cancel:focus-visible,
#access-settings-root .ux-access-action:focus-visible,
#access-settings-root .ux-access-field input:focus-visible {
  outline: 3px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  #access-settings-root .ux-access-device-controls {
    margin-left: 0;
    flex-wrap: wrap;
  }
}

@media (prefers-reduced-motion: reduce) {
  #access-settings-root *,
  #access-settings-root *::before,
  #access-settings-root *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* SOCIAL-SURF-1b: honest social friends panel (SOC-001). EVERY selector is scoped under the
   #social-panel-root element (no bare element/global selectors, no z-index layers, never
   touching the preserved v3.1 audio workstation). The panel renders ONLY the server-provided
   opaque peer ids or honest signed-out / read-only / unavailable copy. */
#social-panel-root {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 243, 255, 0.2);
}

#social-panel-root[hidden],
#social-panel-root .ux-social-panel-status[hidden],
#social-panel-root .ux-social-panel-list[hidden] {
  display: none;
}

#social-panel-root .ux-social-panel-title {
  margin: 0;
  font: 700 0.8rem var(--font-ui, system-ui);
  color: var(--neon-cyan, #00f3ff);
}

#social-panel-root .ux-social-panel-status {
  margin: 0;
  font: 400 0.7rem var(--font-ui, system-ui);
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}

#social-panel-root .ux-social-panel-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#social-panel-root .ux-social-panel-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.65);
}

#social-panel-root .ux-social-panel-peer {
  font: 500 0.7rem var(--font-code, monospace);
  color: var(--text-primary, #e2e8f0);
  overflow-wrap: anywhere;
}

/* SOCIAL-MUT-1: username-only send-friend-request form. EVERY selector stays scoped under
   the #social-panel-root element (no bare/global selectors, no z-index layers, never
   touching the preserved v3.1 audio workstation). The form renders only the localized
   labels and the honest submit outcome. */
#social-panel-root .ux-social-request-form {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 243, 255, 0.15);
}

#social-panel-root .ux-social-request-field {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

#social-panel-root .ux-social-request-label {
  font: 700 0.7rem var(--font-ui, system-ui);
  color: var(--neon-cyan, #00f3ff);
}

#social-panel-root .ux-social-request-field input {
  min-height: 44px;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(0, 243, 255, 0.25);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.65);
  color: var(--text-primary, #e2e8f0);
  font: 400 0.7rem var(--font-ui, system-ui);
}

#social-panel-root .ux-social-request-submit {
  min-height: 44px;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 243, 255, 0.12);
  color: var(--neon-cyan, #00f3ff);
  font: 700 0.7rem var(--font-ui, system-ui);
  cursor: pointer;
}

#social-panel-root .ux-social-request-submit:focus-visible,
#social-panel-root .ux-social-request-field input:focus-visible {
  outline: 3px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

#social-panel-root .ux-social-request-status {
  margin: 0;
  font: 400 0.7rem var(--font-ui, system-ui);
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}

#social-panel-root .ux-social-request-status[hidden] {
  display: none;
}

/* SOCIAL-MUT-2: incoming-friend-request section. EVERY selector stays scoped under the
   #social-panel-root element (no bare/global selectors, no z-index layers, never touching
   the preserved v3.1 audio workstation). The section renders only the localized title, the
   honest list outcome, one row per server-provided requester/peer id, and the honest
   accept outcome. */
#social-panel-root .ux-social-incoming {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  margin-top: 0.35rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(0, 243, 255, 0.15);
}

#social-panel-root .ux-social-incoming-title {
  margin: 0;
  font: 700 0.7rem var(--font-ui, system-ui);
  color: var(--neon-cyan, #00f3ff);
}

#social-panel-root .ux-social-incoming-status {
  margin: 0;
  font: 400 0.7rem var(--font-ui, system-ui);
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}

#social-panel-root .ux-social-incoming-status[hidden],
#social-panel-root .ux-social-incoming-list[hidden],
#social-panel-root .ux-social-accept-status[hidden] {
  display: none;
}

#social-panel-root .ux-social-incoming-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

#social-panel-root .ux-social-incoming-item {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.5rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid rgba(0, 243, 255, 0.2);
  border-radius: 8px;
  background: rgba(8, 11, 16, 0.65);
}

#social-panel-root .ux-social-incoming-id,
#social-panel-root .ux-social-incoming-pair {
  font: 500 0.7rem var(--font-code, monospace);
  color: var(--text-primary, #e2e8f0);
  overflow-wrap: anywhere;
}

#social-panel-root .ux-social-incoming-pair {
  color: var(--text-secondary, #94a3b8);
}

#social-panel-root .ux-social-incoming-accept {
  min-height: 44px;
  margin-left: auto;
  padding: 0.45rem 0.75rem;
  border: 1px solid rgba(0, 243, 255, 0.35);
  border-radius: 8px;
  background: rgba(0, 243, 255, 0.12);
  color: var(--neon-cyan, #00f3ff);
  font: 700 0.7rem var(--font-ui, system-ui);
  cursor: pointer;
}

#social-panel-root .ux-social-incoming-accept:focus-visible {
  outline: 3px solid var(--neon-cyan, #00f3ff);
  outline-offset: 2px;
}

#social-panel-root .ux-social-accept-status {
  margin: 0;
  font: 400 0.7rem var(--font-ui, system-ui);
  line-height: 1.45;
  color: var(--text-secondary, #94a3b8);
}
