/* Communications policy/UI refinements. Loaded last. */

/* Give the center workspace the whole center column. */
.preview-stage {
  padding: 0 !important;
  display: block !important;
  overflow: auto;
  background: #dfe3e7;
}
.preview-stage > div,
#previewContent {
  width: 100%;
  min-height: 100%;
  height: 100%;
}
.discord-frame:not(.mobile) {
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  height: 100% !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 32px 26px 52px !important;
}
.discord-frame.mobile {
  margin: 28px auto;
}
.preview-warning { display: none !important; }
.dc-message-main,
.dc-components { width: 100%; }

/* Managed publishing identity */
.managed-identity-card {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid #b8bdc2;
  background: #f4f4f2;
}
.managed-avatar {
  width: 52px;
  height: 52px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid #8e969d;
  border-radius: 50%;
  background: var(--identity-color, #17365d);
  color: #fff;
  font-size: 11px;
  line-height: 1;
  font-weight: 700;
  text-align: center;
}
.managed-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.managed-identity-copy strong {
  display: block;
  color: #26384a;
  font-size: 13px;
  line-height: 1.25;
}
.managed-identity-copy span {
  display: block;
  margin-top: 4px;
  color: #667078;
  font-size: 11px;
  line-height: 1.4;
}
.managed-setting {
  min-height: 42px;
  display: flex;
  align-items: center;
  padding: 0 11px;
  border: 1px solid #b8bdc2;
  background: #eeeeec;
  color: #4b555e;
  font-size: 12px;
  font-weight: 700;
}
.identity-ping-preview { margin-bottom: 2px; }

/* Exactly one Container. */
.single-container-toolbar {
  grid-template-columns: minmax(0, 1fr) auto !important;
}
.single-container-note {
  min-height: 44px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 6px 10px;
  border: 1px solid #b8bdc2;
  background: #f4f4f2;
}
.single-container-note strong {
  color: #26384a;
  font-size: 12px;
}
.single-container-note span {
  margin-top: 2px;
  color: #6e767d;
  font-size: 10px;
}
.single-container-head { grid-template-columns: 1fr !important; }
.single-container-head .tree-item { cursor: pointer; }

/* A little more room for the larger builder controls. */
.inspector-scroll { padding-bottom: 110px !important; }
.structure-scroll { padding-bottom: 100px !important; }

@media (max-width: 1180px) {
  :root {
    --sidebar: 320px;
    --inspector: 370px;
  }
}

@media (max-width: 900px) {
  .preview-stage { padding: 0 !important; }
  .discord-frame:not(.mobile) { padding: 24px 18px 40px !important; }
}
