:root {
  --sc-ui-scale: 100%;
  --sc-workspace-max: 1050px;
}

html {
  font-size: var(--sc-ui-scale);
}

.sc-header {
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem max(1rem, calc((100vw - 72rem) / 2));
}

/* Composer / Document: lock the page; only tree + editor panes scroll. */
html:has(.sc-composer),
body:has(.sc-composer) {
  height: 100%;
  overflow: hidden;
}

body:has(.sc-composer) {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  margin: 0;
  max-height: 100vh;
  max-height: 100dvh;
}

body:has(.sc-composer) .sc-header {
  flex: 0 0 auto;
  padding-left: 0.75rem;
  padding-right: 0.75rem;
}

.sc-brand {
  color: #101828;
  flex: 0 0 auto;
  font-size: 1.2rem;
  font-weight: 700;
  text-decoration: none;
}

.sc-brand__group {
  color: #475467;
  font-weight: 600;
}

.sc-header__tools {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: flex-end;
}

.sc-scale {
  align-items: center;
  border: 1px solid #d0d5dd;
  border-radius: 999px;
  display: flex;
  gap: 0.15rem;
  padding: 0.1rem 0.2rem;
}

.sc-scale__btn {
  background: transparent;
  border: 0;
  border-radius: 999px;
  color: #344054;
  cursor: pointer;
  font: inherit;
  font-size: 0.8rem;
  line-height: 1.2;
  padding: 0.15rem 0.4rem;
}

.sc-scale__btn:hover {
  background: #f2f4f7;
}

.sc-scale__btn:focus-visible {
  outline: 2px solid #84adff;
  outline-offset: 1px;
}

.sc-scale__btn:disabled {
  cursor: default;
  opacity: 0.4;
}

.sc-scale__value {
  color: #667085;
  font-size: 0.75rem;
  min-width: 2.75rem;
  text-align: center;
}

.sc-nav {
  display: flex;
  gap: 1rem;
}

.sc-nav a,
.sc-link,
.sc-back-link {
  color: #175cd3;
}

.sc-page {
  margin: 0 auto;
  max-width: 72rem;
  padding: 2rem 1rem 4rem;
}

/* Composer / Document workspace: capped centered panels */
.sc-page:has(.sc-composer) {
  box-sizing: border-box;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin: 0 auto;
  max-width: var(--sc-workspace-max);
  min-height: 0;
  overflow: hidden;
  padding: 0.5rem;
  width: 100%;
}

.sc-page:has(.sc-composer) > .sc-back-link,
.sc-page:has(.sc-composer) > .sc-page__heading,
.sc-page:has(.sc-composer) > .sc-alert {
  flex: 0 0 auto;
}

.sc-page:has(.sc-composer) > .sc-back-link {
  margin-bottom: 0.25rem;
}

.sc-page:has(.sc-composer) > .sc-page__heading {
  margin-bottom: 0.5rem;
}

.sc-page:has(.sc-composer) > .sc-page__heading .sc-page__title {
  font-size: 1.35rem;
}

.sc-page:has(.sc-composer) > .sc-alert {
  margin-bottom: 0.5rem;
}

.sc-page__heading {
  margin-bottom: 1.5rem;
}

.sc-page__title {
  color: #101828;
  font-size: 2rem;
  margin: 0;
}

.sc-page__lead {
  color: #475467;
  margin: 0.5rem 0 0;
}

/* Help */

.sc-help {
  display: grid;
  gap: 1.5rem 2rem;
  grid-template-columns: minmax(10rem, 14rem) minmax(0, 1fr);
  align-items: start;
}

.sc-help__nav {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  position: sticky;
  top: 0.75rem;
}

.sc-help__nav-link {
  color: #175cd3;
  font-size: 0.9375rem;
  line-height: 1.35;
  padding: 0.3rem 0.4rem;
  text-decoration: none;
  border-radius: 0.25rem;
}

.sc-help__nav-link:hover {
  background: #f2f4f7;
}

.sc-help__nav-link[aria-current="page"] {
  background: #eff4ff;
  color: #004eeb;
  font-weight: 600;
}

.sc-help__main {
  min-width: 0;
}

.sc-help__topic-list {
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.sc-help__topic-item {
  margin: 0;
  padding: 0;
}

.sc-help__topic-link {
  color: #175cd3;
  font-size: 1.125rem;
  font-weight: 600;
  text-decoration: none;
}

.sc-help__topic-link:hover {
  text-decoration: underline;
}

.sc-help__topic-blurb {
  color: #475467;
  margin: 0.25rem 0 0;
  font-size: 0.9375rem;
}

.sc-help__section {
  margin: 1.5rem 0 0;
}

.sc-help__heading {
  font-size: 1.125rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
  color: #101828;
}

.sc-help__sections p,
.sc-help__sections li {
  color: #344054;
  line-height: 1.55;
  margin: 0 0 0.65rem;
}

.sc-help__sections ul,
.sc-help__sections ol {
  margin: 0 0 0.65rem;
  padding-left: 1.25rem;
}

.sc-help__sections code {
  font-size: 0.875em;
  background: #f2f4f7;
  padding: 0.1em 0.35em;
  border-radius: 0.2rem;
}

.sc-help__note {
  color: #667085 !important;
  font-size: 0.875rem;
  font-style: italic;
}

.sc-help__footer {
  margin: 2rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid #e4e7ec;
}

@media (max-width: 40rem) {
  .sc-help {
    grid-template-columns: 1fr;
  }

  .sc-help__nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.35rem 0.75rem;
  }
}

.sc-grid,
.sc-authoring-grid {
  display: grid;
  gap: 1rem;
  margin: 1.5rem 0;
}

.sc-grid {
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
}

.sc-authoring-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 30rem), 1fr));
}

.sc-card,
.sc-panel {
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  padding: 1.25rem;
}

.sc-card__title,
.sc-panel h2 {
  margin-top: 0;
}

.sc-panel {
  margin-top: 1.5rem;
}

.sc-pairing-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 2.5rem;
  font-weight: 700;
  letter-spacing: 0.35em;
  text-align: center;
  margin: 1.25rem 0;
  padding: 1rem;
  border: 1px dashed #c5cbd5;
  border-radius: 0.75rem;
  background: #f8fafc;
}

.sc-compact-form {
  display: grid;
  gap: 0.75rem;
  max-width: 36rem;
}

.sc-alert {
  border-radius: 0.5rem;
  padding: 0.75rem 1rem;
}

.sc-alert--error {
  background: #fef3f2;
  color: #b42318;
}

.sc-alert--success {
  background: #ecfdf3;
  color: #027a48;
  transition: opacity 0.4s ease;
}

.sc-alert--success.is-sc-flash-out {
  opacity: 0;
}

.sc-alert--warning {
  background: #fffaeb;
  color: #b54708;
}

.sc-alert--dismissible {
  transition: opacity 0.4s ease;
}

.sc-alert--dismissible.is-sc-flash-out {
  opacity: 0;
}

.sc-alert__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.sc-alert__message {
  margin: 0;
}

.sc-alert__close {
  flex: none;
  appearance: none;
  border: none;
  background: transparent;
  color: inherit;
  cursor: pointer;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0 0.25rem;
  border-radius: 0.25rem;
  opacity: 0.7;
}

.sc-alert__close:hover {
  opacity: 1;
}

.sc-alert__close:focus-visible {
  outline: 2px solid currentColor;
  outline-offset: 2px;
  opacity: 1;
}

.sc-alert__list {
  margin: 0.5rem 0 0;
  padding-left: 1.25rem;
}

.sc-alert__list code {
  font-size: 0.85em;
}

.sc-element-list,
.sc-instance-list {
  display: grid;
  gap: 0.75rem;
  list-style: none;
  padding: 0;
}

.sc-element-list li,
.sc-instance-list li {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.sc-back-link {
  display: inline-block;
  margin-bottom: 1rem;
}

.sc-signout {
  display: inline-block;
  margin-left: 1rem;
}

.sc-form {
  display: grid;
  gap: 1.5rem;
}

.sc-form--property-grid {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.sc-property-panel {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 0.75rem;
  min-height: 0;
}

.sc-property-grid {
  border: 1px solid #d0d5dd;
  border-radius: 0.25rem;
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}

.sc-property-panel > .sc-field,
.sc-property-panel > .sc-group {
  border: 1px solid #d0d5dd;
  border-radius: 0.25rem;
}

.sc-property-grid > .sc-group {
  border: 0;
  border-radius: 0;
  border-bottom: 1px solid #d0d5dd;
  padding: 0;
}

.sc-property-grid > .sc-group:last-child {
  border-bottom: 0;
}

.sc-property-grid .sc-group__legend {
  background: #f2f4f7;
  border-bottom: 1px solid #e4e7ec;
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0;
  padding: 0.35rem 0.65rem;
  text-transform: uppercase;
  width: 100%;
}

.sc-property-help {
  background: #f9fafb;
  border: 1px solid #d0d5dd;
  border-radius: 0.25rem;
  display: flex;
  flex: 0 0 auto;
  flex-direction: column;
  gap: 0.35rem;
  max-height: 10rem;
  min-height: 4.5rem;
  padding: 0.65rem 0.75rem;
}

.sc-property-help__title {
  color: #344054;
  font-size: 0.8rem;
  font-weight: 600;
  margin: 0;
}

.sc-property-help__body {
  color: #475467;
  flex: 1;
  font-size: 0.8rem;
  line-height: 1.4;
  margin: 0;
  overflow: auto;
  white-space: pre-wrap;
}

.sc-property-help__error {
  color: #b42318;
  font-size: 0.8rem;
  margin: 0;
}

.sc-property-grid .sc-field.is-sc-help-active,
.sc-property-grid .sc-group.is-sc-help-active,
.sc-property-grid .sc-nav-link.is-sc-help-active,
.sc-property-grid .sc-host-action.is-sc-help-active {
  background: #eef4ff;
}

.sc-group {
  border: 1px solid #d8dee8;
  border-radius: 0.5rem;
  padding: 1rem;
}

.sc-group__legend {
  font-weight: 600;
  padding: 0 0.35rem;
}

.sc-field {
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  display: grid;
  gap: 0.35rem 0.75rem;
  grid-template-columns: minmax(7rem, 9.5rem) minmax(0, 1fr);
  margin: 0;
  padding: 0.2rem 0.5rem;
}

.sc-property-grid .sc-field:last-child,
.sc-group .sc-field:last-child {
  border-bottom: 0;
}

.sc-field__label {
  color: #344054;
  font-size: 0.8rem;
  font-weight: 500;
  line-height: 1.25;
  margin: 0;
  padding: 0.15rem 0;
}

.sc-field__body {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem 0.5rem;
  min-width: 0;
}

.sc-field__required,
.sc-field__error {
  color: #b42318;
}

.sc-field__required {
  margin-left: 0.25rem;
}

.sc-field__error {
  flex: 1 1 100%;
  font-size: 0.75rem;
  margin: 0;
}

.sc-input {
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  border: 1px solid #98a2b3;
  border-radius: 0.25rem;
  padding: 0.3rem 0.5rem;
  font-size: 0.875rem;
}

.sc-checkbox {
  width: 1rem;
  height: 1rem;
}

.sc-field__help,
.sc-group__help {
  color: #98a2b3;
  font-size: 0.8rem;
  font-weight: 400;
  line-height: 1.35;
  margin: 0.4rem 0 0;
  white-space: pre-wrap;
}

.sc-host-action__help,
.sc-doc-text {
  white-space: pre-wrap;
}

.sc-input::placeholder {
  color: #98a2b3;
}

.sc-editor-nav {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  margin-bottom: 0.75rem;
}

.sc-editor-nav__back {
  color: #175cd3;
  font-size: 0.875rem;
  text-decoration: none;
}

.sc-editor-nav__back:hover {
  text-decoration: underline;
}

.sc-breadcrumb {
  align-items: center;
  color: #667085;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.85rem;
  gap: 0.35rem;
}

.sc-breadcrumb__link {
  color: #175cd3;
  text-decoration: none;
}

.sc-breadcrumb__link:hover {
  text-decoration: underline;
}

.sc-breadcrumb__current {
  color: #344054;
  font-weight: 600;
}

.sc-breadcrumb__sep {
  color: #d0d5dd;
}

.sc-nav-link {
  border: 1px solid #e4e7ec;
  border-radius: 0.4rem;
  padding: 0.55rem 0.7rem;
}

.sc-nav-link__anchor {
  align-items: center;
  color: #175cd3;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  text-decoration: none;
}

.sc-nav-link__anchor:hover {
  text-decoration: underline;
}

.sc-nav-link__label {
  font-weight: 600;
}

.sc-form__actions {
  display: flex;
  flex: 0 0 auto;
  justify-content: flex-end;
}

.sc-button {
  border: 0;
  border-radius: 0.375rem;
  background: #175cd3;
  color: white;
  cursor: pointer;
  padding: 0.55rem 1rem;
}

.sc-button {
  display: inline-block;
  text-decoration: none;
}

.sc-button--secondary {
  background: #475467;
}

.sc-button--danger {
  background: #b42318;
}

.sc-button:disabled,
.sc-button[disabled] {
  cursor: not-allowed;
  opacity: 0.55;
}

.sc-panel__header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sc-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sc-panel__header h2 {
  margin: 0;
}

.sc-table-wrap {
  margin-top: 0.5rem;
  overflow-x: auto;
}

.sc-table {
  border-collapse: collapse;
  width: 100%;
}

.sc-table th,
.sc-table td {
  border-bottom: 1px solid #e4e7ec;
  padding: 0.75rem 0.65rem;
  text-align: left;
  vertical-align: middle;
}

.sc-table th {
  color: #475467;
  font-size: 0.85rem;
  font-weight: 600;
}

.sc-table__actions {
  text-align: right;
  white-space: nowrap;
}

.sc-table__actions .sc-button,
.sc-table__actions .sc-inline-form {
  margin-left: 0.35rem;
}

.sc-inline-form {
  display: inline;
}

.sc-dialog {
  border: 1px solid #e4e7ec;
  border-radius: 0.75rem;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.18);
  max-width: 28rem;
  padding: 0;
  width: calc(100% - 2rem);
}

.sc-dialog::backdrop {
  background: rgba(16, 24, 40, 0.45);
}

.sc-dialog__header {
  align-items: center;
  border-bottom: 1px solid #e4e7ec;
  display: flex;
  justify-content: space-between;
  padding: 0.9rem 1rem;
}

.sc-dialog__title {
  font-size: 1.05rem;
  margin: 0;
}

.sc-dialog__close {
  background: transparent;
  border: 0;
  color: #667085;
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  padding: 0.15rem 0.35rem;
}

.sc-dialog .sc-compact-form,
.sc-dialog .sc-empty,
.sc-dialog .sc-alert {
  margin: 0;
  padding: 1rem;
}

.sc-dialog__actions {
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
  margin-top: 0.75rem;
}

.sc-page__heading-row {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
}

.sc-page__heading-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.sc-rename-form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.sc-rename-form .sc-input {
  min-width: 12rem;
}

.sc-sr-only {
  border: 0;
  clip: rect(0 0 0 0);
  height: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  width: 1px;
}

.sc-composer {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: minmax(0, 22rem) minmax(0, 1fr);
  gap: 0.5rem;
  align-items: stretch;
  min-height: 0;
  overflow: hidden;
}

.sc-composer__tree,
.sc-composer__editor {
  border: 1px solid #e4e7ec;
  border-radius: 0.35rem;
  min-height: 0;
  overscroll-behavior: contain;
  padding: 0.5rem;
}

.sc-composer__tree {
  background: #fcfcfd;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.sc-tree-filter {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  margin: 0 0 0.5rem;
  padding: 0 0 0.5rem;
  border-bottom: 1px solid #e4e7ec;
}

.sc-composer__tree > .sc-tree {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

.sc-tree-filter__label {
  flex: 0 0 auto;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #667085;
}

.sc-tree-filter__select {
  flex: 1 1 auto;
  min-width: 0;
  max-width: 100%;
  font: inherit;
  font-size: 0.8125rem;
  line-height: 1.3;
  padding: 0.25rem 0.4rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.25rem;
  background: #fff;
  color: #101828;
}

.sc-composer__editor {
  display: flex;
  flex-direction: column;
  overflow: auto;
}

.sc-composer__editor:has(#sc-editor-fields) {
  overflow: hidden;
}

#sc-composer-editor,
.sc-composer-editor-root,
.sc-composer-editor {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.sc-composer-editor > .sc-editor-nav,
.sc-composer-editor > .sc-composer-editor__heading,
.sc-composer-editor > h2,
.sc-composer-editor > .sc-page__lead {
  flex: 0 0 auto;
}

.sc-composer__title,
.sc-composer-editor h2 {
  margin-top: 0;
}

.sc-tree,
.sc-tree__children,
.sc-definition-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-tree__children {
  border-left: 1px solid #d8dee8;
  margin-left: 0.45rem;
  padding-left: 0.65rem;
}

.sc-tree__branch {
  margin: 0;
}

.sc-tree__summary {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 0.15rem;
  list-style: none;
}

.sc-tree__summary::-webkit-details-marker {
  display: none;
}

.sc-tree__summary::marker {
  content: none;
}

.sc-tree__summary::before {
  color: #667085;
  /* U+25B8 — ASCII-safe escape so charset mishaps don't corrupt the caret */
  content: "\25B8";
  display: inline-block;
  flex: 0 0 0.85rem;
  font-size: 0.7rem;
  line-height: 1;
  text-align: center;
  transform: translateY(1px);
  transition: transform 0.12s ease;
}

.sc-tree__branch[open] > .sc-tree__summary::before {
  transform: rotate(90deg) translateY(1px);
}

.sc-tree__summary .sc-tree__link {
  flex: 1 1 auto;
  min-width: 0;
}

.sc-tree__link,
.sc-tree__label {
  display: block;
  padding: 0.3rem 0.4rem;
}

.sc-tree__link {
  align-items: center;
  border-radius: 0.3rem;
  color: #344054;
  display: inline-flex;
  gap: 0.35rem;
  max-width: 100%;
  text-decoration: none;
}

.sc-tree__node-label {
  display: inline;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sc-record-type {
  background: #f2f4f7;
  border-radius: 999px;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  text-transform: uppercase;
}

.sc-tree__link:hover,
.sc-tree__link--selected {
  background: #eff4ff;
  color: #175cd3;
}

.sc-composer-editor__heading {
  align-items: start;
  display: flex;
  flex: 0 0 auto;
  gap: 1rem;
  justify-content: space-between;
}

.sc-composer-editor__actions {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
}

.sc-composer-editor__form {
  border-top: 1px solid #e4e7ec;
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  margin-top: 1.5rem;
  min-height: 0;
  padding-top: 1rem;
}

.sc-composer-editor__form--flush {
  border-top: 0;
  margin-top: 0.5rem;
  padding-top: 0;
}

.sc-composer-editor__form > .sc-form,
.sc-composer-editor > .sc-form {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  min-height: 0;
}

.sc-composer-editor__heading .sc-page__lead {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.sc-composer-placeholder {
  color: #475467;
  min-height: 12rem;
  padding: 2rem 0;
}

.sc-table-wrap--listing {
  margin-top: 1rem;
}

.sc-table--listing {
  margin-top: 0;
}

.sc-table__row--muted td {
  color: #667085;
}

.sc-table__row--muted .sc-link {
  color: #667085;
}

.sc-item-list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 1.25rem 0 0;
  padding: 0;
}

.sc-item-list__item {
  border: 1px solid #e4e7ec;
  border-radius: 0.4rem;
}

.sc-item-list__row {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.sc-item-list__row a {
  color: #175cd3;
  flex: 1;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.sc-item-list__row a:hover {
  background: #f9fafb;
}

.sc-item-list__row .sc-inline-form {
  flex-shrink: 0;
  margin-right: 0.65rem;
}

.sc-item-list__item a {
  color: #175cd3;
  display: block;
  padding: 0.65rem 0.85rem;
  text-decoration: none;
}

.sc-item-list__item a:hover {
  background: #f9fafb;
}

.sc-item-list__link--active {
  background: #eff8ff;
  font-weight: 600;
}

.sc-elements-hub {
  display: grid;
  gap: 1.5rem;
  margin-top: 1.25rem;
}

.sc-elements-hub__section {
  border: 1px solid #e4e7ec;
  border-radius: 0.5rem;
  padding: 1rem 1.15rem;
}

.sc-elements-hub__heading {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.sc-elements-hub__heading h3 {
  font-size: 1rem;
  margin: 0;
}

.sc-form--inline {
  margin-top: 1rem;
}

.sc-form--inline .sc-button {
  margin: 0;
}

.sc-definition-list {
  display: grid;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.sc-definition-list li {
  border: 1px solid #e4e7ec;
  border-radius: 0.4rem;
  padding: 0.65rem;
}

.sc-summary {
  display: grid;
  gap: 0.75rem;
  margin: 1rem 0 0;
}

.sc-summary__row {
  border-bottom: 1px solid #e4e7ec;
  display: grid;
  gap: 0.25rem;
  padding-bottom: 0.65rem;
}

.sc-summary__row:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.sc-summary dt {
  color: #667085;
  font-size: 0.8rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.sc-summary dd {
  margin: 0;
}

.sc-child-links {
  border-top: 1px solid #e4e7ec;
  margin-top: 1.25rem;
  padding-top: 1rem;
}

.sc-child-links__title {
  font-size: 0.95rem;
  margin: 0 0 0.65rem;
}

.sc-child-links__list {
  display: grid;
  gap: 0.35rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-child-links__item {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.sc-tree__type {
  background: #f2f4f7;
  border-radius: 999px;
  color: #475467;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  text-transform: uppercase;
}

.sc-child-links__link {
  color: #175cd3;
  text-decoration: none;
}

.sc-child-links__link:hover {
  text-decoration: underline;
}

.sc-ref-list {
  display: grid;
  gap: 0.85rem;
}

.sc-ref-list--single {
  gap: 0.5rem;
}

.sc-ref-list__chosen {
  color: #344054;
  font-size: 0.9rem;
  margin: 0;
}

.sc-ref-list__current {
  display: grid;
  gap: 0.4rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.sc-ref-list__item {
  align-items: center;
  background: #f9fafb;
  border: 1px solid #e4e7ec;
  border-radius: 0.4rem;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.45rem 0.65rem;
}

.sc-ref-list__actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
}

.sc-ref-list__move-up:disabled,
.sc-ref-list__move-down:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.sc-ref-list__label {
  color: #175cd3;
  flex: 1;
  min-width: 0;
  text-decoration: none;
}

.sc-ref-list__label:hover {
  text-decoration: underline;
}

.sc-ref-list__add {
  display: grid;
  gap: 0.55rem;
}

.sc-ref-list__picker {
  min-height: 4.5rem;
}

.sc-button--small {
  font-size: 0.8rem;
  padding: 0.25rem 0.55rem;
}

.sc-group--host-action {
  background: #f8fafc;
  border: 1px dashed #98a2b3;
  border-radius: 0.5rem;
  margin-top: 1rem;
  padding: 0.75rem 1rem 1rem;
}

.sc-group--host-action > .sc-group__legend {
  color: #344054;
  font-size: 0.95rem;
  padding: 0 0.35rem;
}

.sc-host-action {
  background: #f8fafc;
  border: 1px dashed #98a2b3;
  border-radius: 0.5rem;
  display: grid;
  gap: 0.4rem;
  margin: 0.75rem 0;
  padding: 0.65rem 0.85rem;
}

.sc-host-action__row {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1rem;
}

.sc-host-action__heading {
  color: #101828;
  font-size: 0.95rem;
  font-weight: 600;
  margin: 0;
}

.sc-host-action__help {
  color: #475467;
  margin: 0;
  white-space: pre-wrap;
}

.sc-host-action__status {
  color: #475467;
  font-size: 0.9rem;
  margin: 0;
}

.sc-host-action__status[data-captured="true"] {
  color: #027a48;
  font-weight: 600;
}

.sc-host-action__target {
  color: #667085;
  font-size: 0.9rem;
  margin: 0;
}

.sc-host-action__button {
  flex: 0 0 auto;
}

.sc-tree__warn {
  color: #b54708;
  flex: 0 0 auto;
  font-size: 0.85em;
  line-height: 1;
}

.sc-ref-list__add-btn {
  justify-self: start;
}
.sc-empty {
  color: #667085;
  font-style: italic;
}

.sc-report {
  max-width: 56rem;
}

.sc-report__section,
.sc-report__item,
.sc-report__collection {
  margin: 0 0 1rem;
}

.sc-report__section .sc-report__section,
.sc-report__section .sc-report__collection,
.sc-report__section .sc-report__item,
.sc-report__item .sc-report__section,
.sc-report__item .sc-report__collection,
.sc-report__collection .sc-report__item {
  margin-left: 0.75rem;
}

.sc-report [data-depth="4"] .sc-report__section,
.sc-report [data-depth="4"] .sc-report__collection,
.sc-report [data-depth="4"] .sc-report__item,
.sc-report [data-depth="5"] .sc-report__section,
.sc-report [data-depth="5"] .sc-report__collection,
.sc-report [data-depth="5"] .sc-report__item,
.sc-report [data-depth="6"] .sc-report__section,
.sc-report [data-depth="6"] .sc-report__collection,
.sc-report [data-depth="6"] .sc-report__item {
  margin-left: 0;
}

.sc-report__heading,
.sc-report__item-heading {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 600;
  break-after: avoid;
  page-break-after: avoid;
}

.sc-report__item-heading {
  font-size: 1rem;
}

.sc-report__table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 0.75rem;
}

.sc-report__row > .sc-report__label,
.sc-report__row > .sc-report__value {
  vertical-align: top;
  padding: 0.35rem 0.75rem 0.35rem 0;
  border-bottom: 1px solid #e4e7ec;
}

.sc-report__label {
  width: 12rem;
  max-width: 40%;
  font-weight: 500;
  color: #344054;
  text-align: left;
}

.sc-report__value {
  color: #101828;
  word-break: break-word;
}

.sc-report__pre {
  margin: 0;
  white-space: pre-wrap;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 0.85em;
}

.sc-report__empty {
  margin: 0 0 0.75rem;
  color: #667085;
  font-style: italic;
}

.sc-report__warn {
  color: #b54708;
  margin-right: 0.35rem;
  font-size: 0.85em;
  line-height: 1;
}

.sc-report__deferred-list {
  max-width: 56rem;
  margin: 0 0 1.25rem;
  padding: 0.75rem 1rem;
  border: 1px solid #f5d0a8;
  border-radius: 0.375rem;
  background: #fffaF5;
}

.sc-report__deferred-list-heading {
  margin: 0 0 0.5rem;
  font-size: 1rem;
  font-weight: 600;
  color: #b54708;
}

.sc-report__deferred-items {
  margin: 0;
  padding-left: 1.25rem;
}

.sc-report__deferred-item {
  margin: 0.25rem 0;
}

.sc-report__deferred-item a {
  display: inline-flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 0.35rem 0.5rem;
  color: inherit;
  text-decoration: none;
}

.sc-report__deferred-item a:hover .sc-report__deferred-label {
  text-decoration: underline;
}

.sc-report__deferred-path {
  font-size: 0.85em;
  color: #667085;
}

.sc-report__row.sc-report__deferred > .sc-report__label,
.sc-report__deferred > .sc-report__heading,
.sc-report__deferred > .sc-report__item-heading {
  color: #b54708;
}

.sc-report__deferred > .sc-report__heading,
.sc-report__deferred > .sc-report__item-heading {
  display: flex;
  align-items: baseline;
  gap: 0.35rem;
}

@media print {
  .sc-header,
  .sc-back-link,
  .sc-page__heading-actions,
  .sc-button {
    display: none !important;
  }

  .sc-report__heading,
  .sc-report__item-heading {
    break-after: avoid;
    page-break-after: avoid;
  }

  .sc-report__table,
  .sc-report__item {
    break-inside: avoid;
    page-break-inside: avoid;
  }
}

@media (max-width: 40rem) {
  .sc-header {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .sc-header__tools {
    gap: 0.5rem 1rem;
  }

  .sc-page:has(.sc-composer) {
    min-height: 0;
  }

  .sc-composer {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(10rem, 35vh) minmax(0, 1fr);
  }

  .sc-composer__tree {
    max-height: none;
  }

  .sc-field {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .sc-property-help {
    max-height: 8rem;
  }

  .sc-report__label {
    width: 8rem;
  }
}
