:root {
  background: var(--nodedc-canvas);
}

html,
body,
#root {
  width: 100%;
  min-width: 320px;
  height: 100%;
  min-height: 100%;
  margin: 0;
  overflow: hidden;
}

body {
  background: var(--nodedc-canvas);
  color: var(--nodedc-text-primary);
}

button,
input,
textarea {
  font: inherit;
}

.catalog-app {
  min-height: 100vh;
}

[data-nodedc-theme="light"] .catalog-app .nodedc-header__brand img,
[data-nodedc-theme="light"] .catalog-app .nodedc-header__workspace img[src="/nodedc-mark.svg"] {
  filter: brightness(0.12);
}

.catalog-launcher-stage {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  /* The actual saved video is the first visual frame. Never show the bundled
     pink sample poster while its runtime media stream is starting. */
  background: var(--nodedc-canvas-soft);
  box-shadow: 0 44px 150px color-mix(in srgb, var(--nodedc-canvas) 70%, transparent);
}

.catalog-launcher-stage__media,
.catalog-launcher-stage__shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-launcher-stage__media {
  object-fit: cover;
  opacity: 0.92;
}

.catalog-favicon-generator {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 0.9rem 1rem;
}

.catalog-favicon-generator__upload {
  position: relative;
  overflow: hidden;
  cursor: pointer;
}

.catalog-favicon-generator__upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.catalog-favicon-generator__name {
  overflow: hidden;
  color: var(--nodedc-text-secondary);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-favicon-grid {
  display: grid;
  grid-column: 1 / -1;
  grid-template-columns: repeat(6, minmax(5rem, 1fr));
  gap: 0.75rem;
}

.catalog-favicon-grid figure {
  display: grid;
  min-width: 0;
  place-items: center;
  gap: 0.5rem;
  margin: 0;
  padding: 0.75rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-canvas-soft);
}

.catalog-favicon-grid figure > span {
  display: grid;
  width: 3.25rem;
  height: 3.25rem;
  place-items: center;
  border-radius: 0.9rem;
  background: var(--nodedc-field-bg);
}

.catalog-favicon-grid img {
  width: min(2.5rem, 100%);
  height: min(2.5rem, 100%);
  object-fit: contain;
}

.catalog-favicon-grid figcaption {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-glass-lab {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(19rem, 0.75fr);
  gap: 1rem;
}

.catalog-glass-stage {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: 38rem;
  place-items: center;
  overflow: hidden;
  border-radius: var(--nodedc-radius-panel);
  background: #09090b;
}

.catalog-glass-stage > video,
.catalog-glass-stage__shade {
  position: absolute;
  z-index: -2;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.catalog-glass-stage__shade {
  z-index: -1;
  background: linear-gradient(135deg, rgba(0, 0, 0, 0.16), rgba(0, 0, 0, 0.44));
}

.catalog-glass-stage__sample {
  display: grid;
  width: min(34rem, calc(100% - 3rem));
  gap: 0.8rem;
  padding: 1.35rem;
}

.catalog-glass-stage__sample > span {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  font-weight: var(--nodedc-font-weight-strong);
  letter-spacing: 0.1em;
}

.catalog-glass-stage__sample h2,
.catalog-glass-stage__sample p { margin: 0; }
.catalog-glass-stage__sample p { color: var(--nodedc-text-secondary); line-height: 1.55; }
.catalog-glass-stage__sample .catalog-inline { align-items: end; }
.catalog-glass-stage__sample .nodedc-field { flex: 1; }

.catalog-glass-controls {
  display: grid;
  gap: 0.7rem;
}

@media (max-width: 1100px) {
  .catalog-glass-lab { grid-template-columns: 1fr; }
  .catalog-favicon-grid { grid-template-columns: repeat(3, 1fr); }
}

.catalog-launcher-stage__shade {
  z-index: 1;
  background:
    radial-gradient(circle at 52% 48%, transparent 0 38%, rgba(0, 0, 0, 0.34) 100%),
    linear-gradient(90deg, rgba(0, 0, 0, 0.5), transparent 38% 72%, rgba(0, 0, 0, 0.2));
}

.catalog-launcher-stage__title {
  position: absolute;
  z-index: 2;
  top: clamp(2.8rem, 9vh, 5.75rem);
  left: clamp(2.8rem, 6vw, 5.75rem);
  display: grid;
  max-width: 28rem;
  gap: 0.24rem;
  pointer-events: none;
}

.catalog-launcher-stage__title span,
.catalog-launcher-stage__title strong {
  font-size: clamp(2rem, 3vw, 3.25rem);
  font-weight: 350;
  letter-spacing: -0.035em;
  line-height: 0.98;
}

.catalog-launcher-stage__title span {
  color: rgba(38, 38, 42, 0.76);
}

.catalog-launcher-stage__title strong {
  color: rgba(255, 255, 255, 0.96);
}

.catalog-launcher-stage__title p {
  max-width: 22rem;
  margin: 0.9rem 0 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 0.86rem;
  line-height: 1.45;
}

.catalog-panel-content {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 0.75rem 1rem 1.75rem;
}

.catalog-page-template {
  display: grid;
  gap: 1rem;
}

.catalog-map-template-preview {
  position: relative;
  min-height: 26rem;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  background:
    radial-gradient(circle at 68% 34%, color-mix(in srgb, var(--catalog-accent) 34%, transparent) 0 0.45rem, transparent 0.5rem),
    linear-gradient(145deg, color-mix(in srgb, var(--nodedc-nested-surface) 90%, #274438), var(--nodedc-nested-surface));
}

.catalog-map-template-preview__grid {
  position: absolute;
  inset: 0;
  opacity: 0.22;
  background-image:
    linear-gradient(color-mix(in srgb, var(--nodedc-text-muted) 30%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--nodedc-text-muted) 30%, transparent) 1px, transparent 1px);
  background-size: 2.5rem 2.5rem;
}

.catalog-map-template-preview__route {
  position: absolute;
  inset: 28% 24% 22% 18%;
  border: 3px solid var(--catalog-accent);
  border-block-color: transparent;
  border-radius: 50%;
  transform: rotate(-17deg);
}

.catalog-map-template-preview__point {
  position: absolute;
  width: 0.8rem;
  height: 0.8rem;
  border: 3px solid var(--nodedc-text-on-accent);
  border-radius: 50%;
  background: var(--catalog-accent);
  box-shadow: 0 0 0 0.5rem color-mix(in srgb, var(--catalog-accent) 22%, transparent);
}

.catalog-map-template-preview__point--one { top: 34%; left: 42%; }
.catalog-map-template-preview__point--two { right: 31%; bottom: 28%; }

.catalog-map-template-preview__actions {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.4rem;
}

.catalog-map-template-preview__actions span {
  display: grid;
  width: 2.75rem;
  height: 2.75rem;
  place-items: center;
  border-radius: 50%;
  background: var(--nodedc-panel-item-bg);
  color: var(--nodedc-text-primary);
}

.catalog-map-template-preview__inspector {
  position: absolute;
  top: 1rem;
  bottom: 1rem;
  left: 1rem;
  display: grid;
  width: min(18rem, 38%);
  align-content: start;
  gap: 0.5rem;
  border: 1px solid var(--nodedc-glass-border);
  border-radius: var(--nodedc-radius-card);
  background: var(--nodedc-glass-panel-surface);
  box-shadow: var(--nodedc-glass-shadow);
  padding: 1rem;
  backdrop-filter: blur(var(--nodedc-glass-blur));
}

.catalog-map-template-preview__inspector span {
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-glass-control-bg);
  padding: 0.85rem;
  color: var(--nodedc-text-secondary);
}

.catalog-page-template__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.catalog-page-template__actions > span {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-page-template__list {
  display: grid;
  gap: 0.45rem;
}

.catalog-page-template__list > div {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-panel-item-bg);
  padding: 0.55rem 0.75rem;
}

.catalog-page-template__list > div > svg {
  justify-self: center;
}

.catalog-page-template__list span {
  display: grid;
  gap: 0.14rem;
}

.catalog-page-template__list small,
.catalog-page-template__list code {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-module-switcher,
.catalog-module-switcher .nodedc-select-trigger {
  width: 100%;
}

.catalog-module-switcher .nodedc-select-trigger {
  min-height: 3.55rem;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-item-active-bg);
  padding-right: 1.25rem;
}

.catalog-module-mode {
  display: flex;
  justify-content: flex-end;
}

.catalog-module-preview {
  display: grid;
  min-height: 38rem;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  background: var(--nodedc-nested-surface);
}

.catalog-module-preview__navigation {
  display: flex;
  gap: 0.45rem;
  padding: 0.75rem;
  background: var(--nodedc-panel-item-bg);
}

.catalog-module-preview__navigation span {
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-glass-control-bg);
  padding: 0.7rem 1rem;
  color: var(--nodedc-text-secondary);
  font-size: var(--nodedc-font-size-xs);
  font-weight: var(--nodedc-font-weight-strong);
}

.catalog-module-preview__stage {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 0.6rem;
  color: var(--nodedc-text-muted);
  text-align: center;
}

.catalog-module-preview__stage > svg { width: 2rem; height: 2rem; }
.catalog-module-preview__stage strong { color: var(--nodedc-text-primary); font-size: 1.35rem; }

.catalog-page-composer {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-page-composer__column {
  display: grid;
  min-height: 21rem;
  grid-template-rows: auto 1fr;
  align-content: start;
  gap: 0.5rem;
  border-radius: var(--nodedc-radius-control);
  transition: background 160ms ease;
}

.catalog-page-composer__column.is-drag-over { background: var(--nodedc-panel-item-hover-bg); }

.catalog-page-composer__column > header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-item-bg);
  padding: 0.55rem 0.75rem;
}

.catalog-page-composer__column > header > span {
  display: grid;
  width: 2.5rem;
  height: 2.5rem;
  place-items: center;
  border-radius: 50%;
  background: var(--nodedc-glass-control-bg);
  color: var(--nodedc-text-primary);
  font-size: var(--nodedc-font-size-xs);
  font-weight: 800;
}

.catalog-page-composer__column > header > div,
.catalog-page-composer__row > span,
.catalog-save-profile-current span {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.catalog-page-composer__column small,
.catalog-page-composer__list small,
.catalog-save-profile-current small {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-page-composer__list {
  display: grid;
  align-content: start;
  gap: 0.22rem;
}

.catalog-page-composer__draggable { min-width: 0; }

.catalog-page-composer__row {
  display: flex;
  width: 100%;
  min-height: 3.55rem;
  align-items: center;
  gap: 0.86rem;
  border: 0;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-item-bg);
  color: var(--nodedc-text-primary);
  padding: 5px 0.72rem 5px 5px;
  text-align: left;
}

.catalog-page-composer__row > span:nth-child(2) { flex: 1 1 auto; }

.catalog-page-composer__icon {
  display: grid !important;
  width: 2.92rem;
  height: 2.92rem;
  flex: 0 0 2.92rem;
  place-items: center;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-icon-bg);
  color: var(--nodedc-text-secondary);
}

.catalog-page-composer__draggable.is-dragging { position: relative; z-index: 8; }

.catalog-page-composer__row .nodedc-icon-button {
  width: var(--nodedc-icon-button-size);
  height: var(--nodedc-icon-button-size);
  flex-basis: var(--nodedc-icon-button-size);
}

.catalog-page-composer__empty {
  display: grid;
  min-height: 9rem;
  place-items: center;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-item-bg);
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  text-align: center;
}

.catalog-page-composer__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.catalog-page-composer__footer > span {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-page-composer__footer > span[data-state="saved"] { color: var(--nodedc-status-success); }

.catalog-save-profile-current {
  display: grid;
  grid-template-columns: 2.5rem minmax(0, 1fr);
  align-items: center;
  gap: 0.75rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-panel-item-bg);
  padding: 0.75rem;
}

.catalog-map-template-preview--application { min-height: 42rem; }

.catalog-map-fixture {
  position: relative;
  height: var(--catalog-map-height, 30rem);
  min-height: 22.5rem;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  background:
    radial-gradient(circle at 70% 28%, color-mix(in srgb, var(--catalog-accent) 16%, transparent), transparent 32%),
    linear-gradient(145deg, color-mix(in srgb, var(--nodedc-nested-surface) 88%, #18322e), var(--nodedc-nested-surface));
  isolation: isolate;
}

.catalog-map-fixture--expanded { min-height: 22.5rem; }

.catalog-map-fixture__loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-sm);
}

.catalog-cesium-map,
.catalog-cesium-map__canvas,
.catalog-cesium-map__canvas > .cesium-viewer,
.catalog-cesium-map__canvas .cesium-viewer-cesiumWidgetContainer,
.catalog-cesium-map__canvas .cesium-widget,
.catalog-cesium-map__canvas canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.catalog-cesium-map__canvas canvas {
  touch-action: none;
}

/* Sandbox-only visual mode. Restore provider credits before any external or
   commercial deployment; the runtime still retains the attribution metadata. */
.catalog-cesium-map__credits,
.catalog-cesium-map__credits .cesium-widget-credits,
.catalog-cesium-map__credits .cesium-credit-logoContainer,
.catalog-cesium-map__credits .cesium-credit-expand-link,
.catalog-cesium-map__credits .cesium-credit-textContainer {
  display: none;
}

.catalog-map-fixture__actions {
  position: absolute;
  z-index: 8;
  top: 1rem;
  right: 1rem;
  display: flex;
  gap: 0.45rem;
}

.catalog-map-fixture__actions .nodedc-icon-button,
.catalog-map-fixture__toolbar .nodedc-icon-button {
  border: 0;
  background: var(--nodedc-map-glass-bg);
  color: var(--nodedc-map-glass-text);
  box-shadow: var(--nodedc-glass-control-shadow);
  backdrop-filter: blur(var(--nodedc-blur-control));
}

.catalog-map-fixture__actions .nodedc-icon-button:hover,
.catalog-map-fixture__toolbar .nodedc-icon-button:hover {
  background: var(--nodedc-map-glass-hover);
}

.catalog-map-fixture__actions .nodedc-icon-button[data-active],
.catalog-map-fixture__toolbar .nodedc-icon-button[data-active] {
  border-color: transparent;
  background: var(--nodedc-glass-control-active);
  color: var(--nodedc-glass-control-active-text);
}

.catalog-map-fixture__layers {
  --nodedc-radius-modal: 1.45rem;
}

.catalog-map-fixture__map-glass-window,
.catalog-map-fixture__map-settings-window {
  --nodedc-canvas: #111216;
  --nodedc-text-primary: rgba(13, 14, 17, 0.96);
  --nodedc-text-secondary: rgba(13, 14, 17, 0.72);
  --nodedc-text-muted: rgba(13, 14, 17, 0.54);
  --nodedc-field-bg: rgba(255, 255, 255, 0.88);
  --nodedc-glass-control-bg: rgba(255, 255, 255, 0.78);
  --nodedc-glass-control-hover: rgba(255, 255, 255, 0.92);
  --nodedc-glass-control-active: rgba(255, 255, 255, 0.96);
  --nodedc-glass-control-active-text: rgba(8, 8, 10, 0.96);
  background: var(--nodedc-map-glass-bg);
  color: var(--nodedc-text-primary);
  box-shadow: var(--nodedc-glass-dropdown-shadow);
  backdrop-filter: blur(var(--nodedc-blur-modal)) saturate(128%);
  -webkit-backdrop-filter: blur(var(--nodedc-blur-modal)) saturate(128%);
}

.catalog-map-fixture__map-glass-window .nodedc-workspace-window__action,
.catalog-map-fixture__map-settings-window .nodedc-window__close {
  background: rgba(255, 255, 255, 0.24);
  color: rgba(255, 255, 255, 0.94);
}

.catalog-map-fixture__map-glass-window .nodedc-workspace-window__action:hover,
.catalog-map-fixture__map-settings-window .nodedc-window__close:hover {
  background: rgba(255, 255, 255, 0.42);
  color: #ffffff;
}

.catalog-map-fixture__layers-content {
  display: grid;
  gap: 0.55rem;
}

.catalog-map-fixture__layers .nodedc-workspace-window__body {
  padding-top: 0.35rem;
}

.catalog-map-fixture__layers .nodedc-checker {
  min-height: 3rem;
}

.catalog-map-fixture__provider {
  display: grid;
  gap: 0.16rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-glass-control-bg);
  padding: 0.82rem 0.9rem;
}

.catalog-map-fixture__provider small {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-map-fixture__cache-toggle {
  min-height: 3.4rem;
}

.catalog-map-fixture__toolbar {
  position: absolute;
  z-index: 8;
  bottom: 1rem;
  left: 50%;
  display: flex;
  gap: 0.35rem;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-map-glass-bg);
  padding: 0.4rem;
  translate: -50% 0;
  backdrop-filter: blur(var(--nodedc-blur-control));
  box-shadow: var(--nodedc-glass-dropdown-shadow);
}

.catalog-map-fixture__objects-menu {
  display: grid;
  max-height: min(60vh, 28rem);
  overflow: auto;
  border-radius: 1rem;
  padding: 0.48rem;
}

.catalog-map-fixture__objects-menu-list,
.catalog-map-fixture__objects-menu-head,
.catalog-map-fixture__objects-menu-toggle {
  display: grid;
}

.catalog-map-fixture__objects-menu-list {
  gap: 0.24rem;
}

.catalog-map-fixture__objects-menu-head {
  gap: 0.12rem;
  padding: 0.48rem 0.58rem 0.55rem;
}

.catalog-map-fixture__objects-menu-head small,
.catalog-map-fixture__objects-menu-toggle small,
.catalog-map-fixture__objects-menu-empty {
  color: var(--nodedc-map-glass-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-map-fixture__objects-menu-item {
  width: 100%;
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: center;
  gap: 0.28rem;
  border-radius: 0.78rem;
  background: transparent;
  padding: 0.18rem;
  color: var(--nodedc-map-glass-text);
}

.catalog-map-fixture__objects-menu-item:hover,
.catalog-map-fixture__objects-menu-item[data-open],
.catalog-map-fixture__objects-menu-item[data-visible] {
  background: rgb(255 255 255 / 0.16);
}

.catalog-map-fixture__objects-menu-item:not([data-visible]) {
  opacity: 0.62;
}

.catalog-map-fixture__objects-menu-toggle {
  min-width: 0;
  gap: 0.16rem;
  border: 0;
  border-radius: 0.64rem;
  background: transparent;
  padding: 0.48rem 0.52rem;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalog-map-fixture__objects-menu-toggle:focus-visible {
  outline: 2px solid var(--nodedc-map-glass-text);
  outline-offset: -2px;
}

.catalog-map-fixture__objects-menu-toggle > span {
  overflow: hidden;
  font-size: var(--nodedc-font-size-sm);
  font-weight: 760;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-map-fixture__objects-menu-empty {
  padding: 0.72rem;
}

.catalog-map-fixture__subject-window {
  --nodedc-radius-modal: 1.45rem;
}

.catalog-map-fixture__subject-window .nodedc-workspace-window__body {
  padding: 0.42rem 0.65rem 0.68rem;
}

.catalog-map-fixture__subject-card {
  --nodedc-radius-modal: 1.45rem;
}

.catalog-map-fixture__subject-card .nodedc-workspace-window__body {
  overflow: auto;
  padding: 0.35rem 0.65rem 0.75rem;
}

.catalog-map-subject-card {
  display: grid;
  gap: 0.65rem;
  padding-bottom: 0.2rem;
}

.catalog-map-subject-card__tabs {
  overflow-x: auto;
  padding: 0.08rem 0 0.12rem;
  scrollbar-width: thin;
}

.catalog-map-subject-card__tabs .nodedc-segmented {
  width: max-content;
  min-width: 100%;
}

.catalog-map-subject-card__tabs .nodedc-segmented__item {
  white-space: nowrap;
}

.catalog-map-subject-card__tab-panel {
  display: grid;
  gap: 0.65rem;
}

.catalog-map-subject-card__empty {
  border-radius: var(--nodedc-radius-control);
  background: rgba(255, 255, 255, 0.34);
  padding: 0.9rem;
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.45;
}

.catalog-map-subject-card__section {
  display: grid;
  gap: 0.36rem;
  border-radius: var(--nodedc-radius-control);
  background: rgba(255, 255, 255, 0.46);
  padding: 0.72rem 0.78rem;
}

.catalog-map-subject-card__section h3,
.catalog-map-subject-card__section dl,
.catalog-map-subject-card__section dt,
.catalog-map-subject-card__section dd {
  margin: 0;
}

.catalog-map-subject-card__section h3 {
  color: var(--nodedc-text-primary);
  font-size: var(--nodedc-font-size-xs);
  font-weight: 820;
  letter-spacing: 0.035em;
  text-transform: uppercase;
}

.catalog-map-subject-card__section dl,
.catalog-map-subject-card__readings {
  display: grid;
  gap: 0.14rem;
}

.catalog-map-subject-card__row,
.catalog-map-subject-card__reading {
  display: grid;
  min-width: 0;
  grid-template-columns: minmax(7.5rem, 0.85fr) minmax(0, 1.15fr);
  align-items: baseline;
  gap: 0.6rem;
  border-top: 1px solid rgba(13, 14, 17, 0.08);
  padding: 0.34rem 0;
}

.catalog-map-subject-card__row:first-child,
.catalog-map-subject-card__reading:first-child {
  border-top: 0;
}

.catalog-map-subject-card__row dt,
.catalog-map-subject-card__reading span {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.35;
}

.catalog-map-subject-card__row dd,
.catalog-map-subject-card__reading strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--nodedc-text-primary);
  font-size: var(--nodedc-font-size-sm);
  font-weight: 760;
  line-height: 1.35;
}

.catalog-map-subject-card__reading time {
  grid-column: 2;
  color: var(--nodedc-text-muted);
  font-size: 0.62rem;
}

.catalog-map-subject-card__section > small {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.45;
}

.catalog-map-fixture__target-filters,
.catalog-map-fixture__target-filters section {
  display: grid;
  gap: 0.38rem;
}

.catalog-map-fixture__target-filter-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.36rem;
}

.catalog-map-fixture__target-filter-row {
  display: inline-flex;
  width: 100%;
  min-height: 2.05rem;
  align-items: center;
  gap: 0;
  border: 0;
  border-radius: var(--nodedc-radius-circle);
  background: rgba(255, 255, 255, 0.72);
  color: rgba(8, 8, 10, 0.88);
  overflow: hidden;
}

.catalog-map-fixture__target-filter-row button {
  border: 0;
  background: transparent;
  font: inherit;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}

.catalog-map-fixture__target-filter-body {
  display: inline-flex;
  min-width: 0;
  min-height: 2.05rem;
  flex: 1;
  align-items: center;
  gap: 0.75rem;
  padding: 0.42rem 0.28rem 0.42rem 0.72rem;
  color: inherit;
  text-align: left;
}

.catalog-map-fixture__target-filter-label {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-map-fixture__target-filter-count {
  margin-left: auto;
  color: rgba(8, 8, 10, 0.96);
  font-weight: 800;
  text-align: right;
}

.catalog-map-fixture__target-filter-expander {
  display: inline-grid;
  width: 2rem;
  min-width: 2rem;
  min-height: 2.05rem;
  place-items: center;
  border-radius: 0 var(--nodedc-radius-circle) var(--nodedc-radius-circle) 0;
  color: rgba(8, 8, 10, 0.75);
}

.catalog-map-fixture__target-filter-expander[aria-expanded="true"] svg {
  transform: rotate(90deg);
}

.catalog-map-fixture__target-filter-row:hover,
.catalog-map-fixture__target-filter-row[data-active] {
  background: rgba(255, 255, 255, 0.96);
  color: rgba(8, 8, 10, 0.96);
}

.catalog-map-fixture__target-filter-body:disabled {
  cursor: default;
  opacity: 0.55;
}

.catalog-map-fixture__target-filter-branch,
.catalog-map-fixture__target-filter-children {
  display: grid;
  gap: 0.28rem;
}

.catalog-map-fixture__target-filter-children {
  padding: 0.08rem 0.18rem 0.18rem 0.72rem;
}

.catalog-map-fixture__target-filter-entity {
  display: grid;
  min-width: 0;
  gap: 0.15rem;
  border: 0;
  border-left: 2px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  padding: 0.38rem 0.48rem;
  color: var(--nodedc-map-glass-text);
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.catalog-map-fixture__target-filter-entity:hover,
.catalog-map-fixture__target-filter-entity[data-selected] {
  border-left-color: var(--nodedc-map-glass-text);
  background: rgba(255, 255, 255, 0.11);
}

.catalog-map-fixture__target-filter-entity > span,
.catalog-map-fixture__target-filter-entity > small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-map-fixture__target-filter-entity > span {
  font-size: 0.7rem;
  font-weight: 720;
}

.catalog-map-fixture__target-filter-entity > small,
.catalog-map-fixture__target-filter-children > small {
  color: var(--nodedc-map-glass-muted);
  font-size: 0.61rem;
}

.catalog-map-inspector__style {
  display: grid;
  gap: 0.5rem;
  border-top: 1px solid color-mix(in srgb, var(--nodedc-glass-outline) 44%, transparent);
  padding-top: 0.65rem;
}

.catalog-map-inspector__note {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  line-height: 1.4;
}

.catalog-map-inspector__note--error {
  color: rgb(var(--nodedc-danger-rgb));
  font-weight: var(--nodedc-font-weight-strong);
}

.catalog-map-inspector__cache-fact .nodedc-control-row__control {
  overflow-wrap: anywhere;
  font-size: var(--nodedc-font-size-md);
  font-weight: var(--nodedc-font-weight-strong);
  line-height: 1.25;
}

.catalog-map-fixture__assistant {
  position: absolute;
  z-index: 9;
  right: 1rem;
  bottom: 1rem;
  display: grid;
  max-width: 22rem;
  gap: 0.35rem;
  border-radius: var(--nodedc-radius-card);
  background: var(--nodedc-modal-surface);
  padding: 1rem;
  box-shadow: var(--nodedc-modal-shadow);
  backdrop-filter: blur(var(--nodedc-blur-modal));
}

.catalog-map-fixture__assistant span { color: var(--nodedc-text-muted); font-size: var(--nodedc-font-size-xs); }

.catalog-map-fixture__resize {
  position: absolute;
  z-index: 9;
  right: 0;
  bottom: 0;
  display: grid;
  width: 2.9rem;
  height: 2.9rem;
  place-items: end;
  border: 0;
  background: linear-gradient(135deg, transparent 50%, color-mix(in srgb, var(--nodedc-panel-item-bg) 86%, transparent) 50%);
  cursor: ns-resize;
}

.catalog-map-fixture__resize > span {
  width: 1.05rem;
  height: 1.05rem;
  margin: 0.48rem;
  border-right: 1px solid color-mix(in srgb, var(--nodedc-text-primary) 68%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--nodedc-text-primary) 68%, transparent);
  background: repeating-linear-gradient(135deg, transparent 0 0.2rem, color-mix(in srgb, var(--nodedc-text-primary) 58%, transparent) 0.2rem 0.26rem, transparent 0.26rem 0.4rem);
  opacity: 0.8;
}

.catalog-map-fixture__resize:hover > span { opacity: 1; }

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.catalog-grid--single {
  grid-template-columns: 1fr;
}

.catalog-preview {
  min-height: 16rem;
}

.catalog-preview--compact {
  min-height: 10.25rem;
}

.catalog-preview--compact .catalog-preview__head {
  margin-bottom: 0.85rem;
}

.catalog-preview--compact .catalog-preview__body {
  min-height: 4.5rem;
}

.catalog-preview--wide {
  grid-column: 1 / -1;
}

.catalog-workspace-window-preview .catalog-preview__body {
  align-content: stretch;
}

.catalog-workspace-window-demo {
  position: relative;
  min-height: 24rem;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  background:
    linear-gradient(color-mix(in srgb, var(--nodedc-text-primary) 5%, transparent) 1px, transparent 1px),
    linear-gradient(90deg, color-mix(in srgb, var(--nodedc-text-primary) 5%, transparent) 1px, transparent 1px),
    color-mix(in srgb, var(--nodedc-canvas) 88%, var(--nodedc-glass-panel-bg-soft));
  background-size: 2.5rem 2.5rem;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--nodedc-text-primary) 8%, transparent);
}

.catalog-workspace-window-demo .nodedc-workspace-window__body {
  display: grid;
  padding: 0.25rem 0.75rem 0.5rem;
}

.catalog-workspace-window-demo__media {
  display: grid;
  min-height: 0;
  place-content: center;
  justify-items: center;
  gap: 0.45rem;
  border-radius: calc(var(--nodedc-radius-card) * 0.72);
  background:
    radial-gradient(circle at 62% 30%, color-mix(in srgb, rgb(var(--nodedc-accent-rgb)) 18%, transparent), transparent 38%),
    color-mix(in srgb, var(--nodedc-canvas) 72%, transparent);
  color: var(--nodedc-text-secondary);
  text-align: center;
}

.catalog-workspace-window-demo__media strong {
  color: var(--nodedc-text-primary);
  font-size: 0.82rem;
}

.catalog-workspace-window-demo__media span,
.catalog-workspace-window-demo__hint {
  color: var(--nodedc-text-muted);
  font-size: 0.66rem;
  line-height: 1.4;
}

.catalog-workspace-window-demo__media span {
  max-width: 16rem;
}

.catalog-workspace-window-demo__reopen {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

.catalog-inspector-launcher .nodedc-button {
  width: 100%;
}

.catalog-preview__head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.catalog-preview__head strong {
  font-size: 0.92rem;
}

.catalog-preview__head span {
  color: var(--nodedc-text-muted);
  font-size: 0.68rem;
  text-align: right;
  text-transform: uppercase;
}

.catalog-preview__body {
  display: grid;
  min-height: 8rem;
  align-content: center;
  gap: 1rem;
}

.catalog-preview__explanation {
  max-width: 42rem;
  margin: 0;
  color: var(--nodedc-text-muted);
  font-size: 0.78rem;
  line-height: 1.5;
}

.catalog-inline,
.catalog-window-actions-demo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.catalog-inline--wrap,
.catalog-window-actions-demo {
  flex-wrap: wrap;
}

.catalog-form {
  display: grid;
  gap: 0.75rem;
}

.catalog-application-draft {
  display: grid;
  gap: 1rem;
}

.catalog-application-draft__fields {
  grid-template-columns: minmax(0, 1fr) minmax(16rem, 0.55fr);
}

.catalog-application-draft__fields .nodedc-field-frame:last-child {
  grid-column: 1 / -1;
}

.catalog-application-draft__readonly,
.catalog-application-draft__status {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-width: 0;
}

.catalog-application-draft__readonly > span {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.catalog-application-draft__readonly small,
.catalog-application-draft__status code {
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
}

.catalog-application-draft__features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.catalog-application-draft__status {
  justify-content: space-between;
  flex-wrap: wrap;
}

.catalog-application-draft__status > span {
  font-weight: var(--nodedc-font-weight-strong);
}

.catalog-application-draft__status > span[data-state="saved"] {
  color: rgb(var(--nodedc-success-rgb));
}

.catalog-application-draft__status > span[data-state="error"] {
  color: rgb(var(--nodedc-danger-rgb));
}

.catalog-modal-action-list,
.catalog-detail-modal {
  display: grid;
  gap: 0.75rem;
}

.catalog-codex-agent-settings {
  display: grid;
  gap: 1rem;
}

.catalog-codex-agent-settings__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.catalog-codex-agent-settings__header > div {
  display: grid;
  gap: 0.28rem;
}

.catalog-codex-agent-settings__header span,
.catalog-codex-agent-settings__header h2,
.catalog-codex-agent-settings__lead {
  margin: 0;
}

.catalog-codex-agent-settings__header > div > span {
  color: var(--nodedc-text-muted);
  font-size: 0.68rem;
  font-weight: 850;
  letter-spacing: 0.1em;
}

.catalog-codex-agent-settings__header h2 {
  font-size: clamp(1.45rem, 2.2vw, 2rem);
}

.catalog-codex-agent-settings__lead {
  max-width: 58rem;
  color: var(--nodedc-text-secondary);
  font-size: 0.88rem;
  line-height: 1.6;
}

.catalog-codex-agent-settings__message {
  border-radius: var(--nodedc-radius-control-compact);
  background: rgb(var(--nodedc-success-rgb) / 0.12);
  color: color-mix(in srgb, rgb(var(--nodedc-success-rgb)) 80%, var(--nodedc-text-primary));
  padding: 0.75rem 0.9rem;
  font-size: var(--nodedc-font-size-sm);
  font-weight: 700;
}

.catalog-codex-agent-settings__message[data-tone="error"] {
  background: rgb(var(--nodedc-danger-rgb) / 0.12);
  color: color-mix(in srgb, rgb(var(--nodedc-danger-rgb)) 80%, var(--nodedc-text-primary));
}

.catalog-codex-agent-settings__create,
.catalog-codex-agent-settings__agent-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 0.8rem;
}

.catalog-codex-agent-settings__agents {
  display: grid;
  gap: 0.8rem;
}

.catalog-codex-agent-settings__empty {
  color: var(--nodedc-text-muted);
  padding: 1rem;
  text-align: center;
}

.catalog-codex-agent-settings__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.45rem;
}

.catalog-codex-agent-settings__setup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.7rem;
  margin-top: 0.9rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-nested-bg);
  padding: 0.85rem;
}

.catalog-codex-agent-settings__setup > div {
  display: grid;
  gap: 0.2rem;
}

.catalog-codex-agent-settings__setup small {
  color: var(--nodedc-text-muted);
  line-height: 1.4;
}

.catalog-codex-agent-settings__setup code {
  grid-column: 1 / -1;
  overflow: auto;
  border-radius: var(--nodedc-radius-control-compact);
  background: var(--nodedc-field-bg);
  color: var(--nodedc-text-primary);
  padding: 0.8rem;
  font-size: 0.75rem;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-all;
}

.catalog-modal-groups {
  display: grid;
  gap: 1.25rem;
}

.catalog-status-library {
  display: grid;
  gap: 1rem;
}

.catalog-toast-library-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.catalog-toast-library-grid .nodedc-toast {
  width: auto;
  min-width: 0;
}

.catalog-modal-group {
  display: grid;
  gap: 0.65rem;
}

.catalog-modal-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.15rem;
}

.catalog-modal-group > header strong {
  font-size: 0.9rem;
}

.catalog-modal-group > header span {
  color: var(--nodedc-text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.catalog-modal-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
}

.nodedc-glass.catalog-modal-preview {
  display: grid;
  height: 11rem;
  min-height: 11rem;
  box-sizing: border-box;
  grid-template-rows: auto minmax(0, 1fr);
  padding: 1rem;
}

.catalog-modal-preview .catalog-preview__head {
  margin-bottom: 0.7rem;
}

.catalog-modal-preview .catalog-preview__body {
  height: auto;
  min-height: 0;
  grid-template-rows: minmax(0, 1fr) auto;
  align-content: stretch;
  gap: 0.75rem;
}

.catalog-modal-preview .nodedc-button {
  width: 100%;
  align-self: end;
  margin: 0;
  padding-inline: 0.75rem;
}

.catalog-history-table {
  display: grid;
  min-width: 46rem;
  overflow: hidden;
  border-radius: var(--nodedc-radius-card);
  background: var(--nodedc-glass-control-bg);
}

.catalog-history-row {
  display: grid;
  min-height: 3.5rem;
  grid-template-columns: minmax(12rem, 1.7fr) minmax(7rem, 0.7fr) minmax(6rem, 0.6fr) minmax(9rem, 0.9fr) 6rem;
  align-items: center;
  gap: 0.75rem;
  border-bottom: 1px solid var(--nodedc-glass-outline);
  color: var(--nodedc-text-secondary);
  padding: 0.62rem 0.8rem;
  font-size: var(--nodedc-font-size-sm);
}

.catalog-history-row:last-child {
  border-bottom: 0;
}

.catalog-history-row--head {
  min-height: 2.35rem;
  color: var(--nodedc-text-muted);
  font-size: var(--nodedc-font-size-xs);
  font-weight: 760;
  text-transform: uppercase;
}

.catalog-history-actions {
  display: flex;
  justify-content: flex-end;
  gap: 0.25rem;
}

.catalog-history-actions .nodedc-icon-button {
  width: 2rem;
  height: 2rem;
  flex-basis: 2rem;
}

.catalog-engine-control-stack {
  display: grid;
  width: min(var(--nodedc-inspector-inner-width), 100%);
  justify-self: center;
  gap: 0.75rem;
}

.catalog-icon-catalog {
  display: grid;
  gap: 1rem;
}

.catalog-icon-group {
  display: grid;
  gap: 0.75rem;
  border-radius: var(--nodedc-radius-card);
  background: var(--nodedc-glass-panel-surface);
  padding: 1rem;
}

.catalog-icon-group > header {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  padding-inline: 0.2rem;
}

.catalog-icon-group > header strong {
  font-size: 0.88rem;
}

.catalog-icon-group > header span {
  color: var(--nodedc-text-muted);
  font-size: 0.68rem;
  text-transform: uppercase;
}

.catalog-icon-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.55rem;
}

.catalog-icon-tile {
  display: grid;
  min-width: 0;
  grid-template-columns: 2.92rem minmax(0, 1fr);
  align-items: center;
  gap: 0.7rem;
  border-radius: var(--nodedc-radius-control);
  background: var(--nodedc-glass-control-bg);
  padding: 0.35rem 0.55rem 0.35rem 0.35rem;
}

.catalog-icon-tile__surface {
  display: grid;
  width: 2.92rem;
  height: 2.92rem;
  place-items: center;
  border-radius: var(--nodedc-radius-circle);
  background: var(--nodedc-panel-item-bg);
  color: var(--nodedc-text-primary);
}

[data-nodedc-theme="light"] .catalog-icon-catalog .catalog-icon-tile {
  background: color-mix(in srgb, var(--nodedc-panel-item-bg) 50%, white);
  box-shadow: none;
}

.catalog-header-theme-switch {
  box-shadow: inset 0 1px 0 color-mix(in srgb, white 22%, transparent), var(--nodedc-glass-control-shadow);
}

.catalog-icon-tile__surface > svg {
  transform: scale(var(--nodedc-icon-glyph-scale));
}

.catalog-icon-tile > span:last-child {
  display: grid;
  min-width: 0;
  gap: 0.18rem;
}

.catalog-icon-tile strong,
.catalog-icon-tile code {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.catalog-icon-tile strong {
  font-size: 0.72rem;
}

.catalog-icon-tile code {
  color: var(--nodedc-text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.62rem;
}

@media (max-width: 1280px) {
  .catalog-grid {
    grid-template-columns: 1fr;
  }

  .catalog-preview--wide {
    grid-column: auto;
  }

  .catalog-icon-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .catalog-modal-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .catalog-page-composer { grid-template-columns: 1fr; }
  .catalog-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  .catalog-launcher-stage__media {
    display: none;
  }

  .catalog-app .nodedc-header-navigation {
    width: 100%;
  }

  .catalog-app .nodedc-header-navigation .nodedc-header__nav-item {
    width: 100%;
  }

  .catalog-app .nodedc-header__profile-button {
    display: none;
  }

  .catalog-header-theme-switch .nodedc-segmented__item {
    padding-inline: 0.8rem;
  }

  .catalog-launcher-stage__title {
    top: 2rem;
    left: 2rem;
    max-width: calc(100% - 4rem);
  }

  .catalog-launcher-stage__title span,
  .catalog-launcher-stage__title strong {
    font-size: clamp(1.8rem, 9vw, 3rem);
  }

  .catalog-launcher-stage__title p {
    display: none;
  }

  .catalog-preview {
    min-height: auto;
  }

  .catalog-preview__head,
  .catalog-icon-group > header,
  .catalog-modal-group > header {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.25rem;
  }

  .catalog-icon-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .catalog-modal-grid {
    grid-template-columns: 1fr;
  }

  .catalog-application-draft__fields,
  .catalog-application-draft__features,
  .catalog-codex-agent-settings__create,
  .catalog-codex-agent-settings__agent-grid,
  .catalog-codex-agent-settings__setup {
    grid-template-columns: 1fr;
  }

  .catalog-codex-agent-settings__actions {
    justify-content: flex-start;
  }

  .catalog-application-draft__fields .nodedc-field-frame:last-child {
    grid-column: auto;
  }

  .catalog-window-actions-demo .nodedc-button {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .catalog-icon-grid {
    grid-template-columns: 1fr;
  }
}
