/* Shared opt-in layout; no product selectors or state inference. */
.q-phone-more {
  display: none !important;
}
.q-phone-destinations {
  display: contents;
}
.q-connection-state {
  display: grid;
  gap: 4px;
  justify-items: start;
  min-width: 0;
  overflow-wrap: anywhere;
}
.q-connection-state p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--fs-sm);
}
.q-connection-state[data-state="connected"] strong {
  color: var(--text);
}
.q-connection-state[data-state="offline"] strong,
.q-connection-state[data-state="unavailable"] strong {
  color: var(--danger-text, var(--text));
}
.q-dialog {
  box-sizing: border-box;
  max-width: calc(100vw - 24px);
  max-height: calc(100dvh - 24px);
  overflow: auto;
  overscroll-behavior: contain;
}
.q-assistant-results {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  overflow-wrap: anywhere;
}
@media (max-width: 820px) {
  .q-phone-nav {
    position: relative;
    min-width: 0;
    overflow: visible !important;
  }
  .q-phone-nav .q-phone-more {
    display: flex !important;
    min-width: 0;
    overflow-wrap: anywhere;
    white-space: normal !important;
  }
  .q-phone-more.q-current {
    background: var(--surface-2) !important;
    color: var(--text) !important;
  }
  .q-phone-destinations {
    display: none;
  }
  .q-nav-open .q-phone-destinations {
    display: flex;
    flex-direction: column;
    position: absolute;
    z-index: 80;
    inset-inline: 0;
    top: 100%;
    background: var(--header);
    color: var(--on-header);
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    padding: 6px;
    max-height: min(65dvh, 420px);
    overflow: auto;
    box-shadow: 0 8px 22px var(--overlay, #0005);
  }
  .q-phone-destinations > button {
    white-space: normal !important;
  }
}
@media (max-width: 650px) {
  .q-thread-selected .q-thread-list-only {
    display: none !important;
  }
  .q-thread-selected .q-thread-layout {
    grid-template-columns: minmax(0, 1fr);
  }
  .q-thread-selected .q-thread-pane {
    min-height: 0;
    display: flex;
    flex-direction: column;
  }
  .q-thread-selected .q-thread-messages {
    flex: 1 1 0;
    min-height: 0;
    overflow: auto;
    overscroll-behavior: contain;
  }
  .q-thread-selected .q-thread-composer {
    flex: none;
    min-width: 0;
  }
}
