/* One desktop shell for Messages, Contacts, Circle and Profile. */
@media (min-width: 900px) {
  html body:has(> .app) {
    padding: 12px !important;
    min-height: 100vh;
    min-height: 100dvh;
  }
  html body:has(> .app) > .app {
    box-sizing: border-box;
    width: 100% !important;
    max-width: none !important;
    height: calc(100vh - 24px) !important;
    height: calc(100dvh - 24px) !important;
    min-height: 0 !important;
    grid-template-columns: 72px clamp(210px, 19vw, 260px) minmax(0, 1fr) !important;
    border-radius: 24px !important;
  }
  html body:has(> .app) > .app .rail { padding: 18px 8px !important; }
  html body:has(> .app) > .app .sidebar {
    box-sizing: border-box;
    min-width: 0;
    padding: 18px 14px !important;
    scrollbar-gutter: stable;
  }
  html body:has(> .app) > .app .sidebar h1 {
    margin-block: 8px 20px;
    font-size: clamp(24px, 2.3vw, 32px);
    line-height: 1.3;
    overflow-wrap: anywhere;
  }
  html body:has(> .app) > .app .workspace,
  html body:has(> .app) > .app [data-panel="contacts"] { min-width: 0; min-height: 0; }
  html body:has(> .app) > .app [data-panel="contacts"] {
    box-sizing: border-box;
    height: 100%;
    padding: clamp(18px, 2.2vw, 32px) !important;
    overflow-y: auto;
    overscroll-behavior: contain;
  }
}
.qdx-device-entry {
  box-sizing: border-box;
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin: 12px 0;
  padding: 10px 12px;
  border: 1px solid var(--qmx-line, var(--line));
  border-radius: 14px;
  background: var(--qmx-soft, var(--soft));
  color: var(--qmx-ink, var(--ink));
  font: inherit;
  font-size: 14px;
  line-height: 1.45;
  text-align: start;
  overflow-wrap: anywhere;
  cursor: pointer;
}
.qdx-device-entry svg { width: 24px; height: 24px; flex: 0 0 24px; }
.qdx-device-entry:focus-visible {
  outline: 2px solid var(--qmx-ink, var(--ink));
  outline-offset: 3px;
}
.qdx-device-entry[hidden], .qdx-entry-status:empty { display: none !important; }
.qdx-entry-status { font-size: 12px; color: var(--qmx-muted, var(--muted)); }
