/* Responsive layout for the company composer. */
.company-composer-shell,
.company-composer-summary,
.company-composer-wall { min-width: 0; }
.company-composer-restriction-list { overflow-wrap: anywhere; }
.company-composer-wall { grid-template-columns: repeat(auto-fill, minmax(min(100%, 7rem), 1fr)); }
.company-composer-selected-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem; }
.company-composer-summary-link { display: none; }

@media (max-width: 1199px) {
  body[data-view="company"][data-company-composer="true"] {
    overflow-x: clip;
    overflow-y: auto;
  }
  body[data-view="company"][data-company-composer="true"] .topbar {
    position: sticky;
    top: 0;
    z-index: 100;
  }
  body[data-view="company"][data-company-composer="true"] .layout {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: calc(100vh - var(--chrome-height));
    overflow: visible;
  }
  body[data-view="company"][data-company-composer="true"] :is(.filters, .results, .detail) {
    position: relative;
    inset: auto;
    width: auto;
    height: auto;
    max-height: none;
    margin: 10px;
    overflow: visible;
  }
  body[data-view="company"][data-company-composer="true"] .results > .result-head {
    position: sticky;
    top: var(--chrome-height);
    z-index: 5;
    min-width: 0;
    background: var(--panel-glass-strong);
  }
  body[data-view="company"][data-company-composer="true"] .results > .result-head > div {
    min-width: 0;
    overflow-wrap: anywhere;
  }
  .company-composer-summary-link {
    display: inline-flex;
    align-items: center;
    min-height: 2.75rem;
    padding: .45rem .7rem;
    border: 1px solid var(--accent);
    border-radius: .35rem;
    background: var(--surface);
    color: var(--ink);
    font: inherit;
    cursor: pointer;
  }
  .company-composer-extension-row { grid-template-columns: minmax(0, 1fr); }
}
