/* Match the glass surfaces used by the design on current public components. */
html {
  background: #0d0c12;
}

#nova-react-root :is(.ed-home-news-slide, .vc-viewer .vc-study, #public-detail .detail-facts-card) {
  background: var(--ng-glass) !important;
  border: 1px solid var(--ng-divider) !important;
  border-radius: var(--ng-card-radius);
  box-shadow: var(--ng-shine);
  color: var(--ng-ink);
}

#nova-react-root :is(.ed-home-news-art, .ed-detail-art, .vc-preview-cover, .vc-media) {
  background-color: #24202f !important;
}

#nova-react-root :is(.ed-card-arrow, .ed-home-news-arrow, .ed-carousel-controls button, .vc-switch-button, .vc-platform) {
  background: #322940;
  border-color: var(--ng-frame);
  color: var(--ng-iris);
}

#nova-react-root :is(.ed-carousel-controls button, .vc-switch-button):enabled:is(:hover, :focus-visible) {
  background: #423751;
  color: var(--ng-ink);
}

#nova-react-root .vc-switch-button:disabled {
  background: #27232e;
  color: #aba4b7;
}

#nova-react-root :is(.vc-author > span, .vc-counter, .vc-source-note, .ed-carousel-controls, .nv-work figcaption, .nv-note) {
  color: var(--ng-soft);
}

#nova-react-root :is(.vc-brand, #public-detail .detail-sidebar .detail-facts > div + div,
  #public-detail .detail-sidebar .detail-project-meta + .detail-facts > div:first-child) {
  border-color: var(--ng-divider);
}

#nova-react-root :is(.ed-source a, .ed-detail-page .ed-back, .vc-viewer .vc-back-link, .nv-links a) {
  color: var(--ng-iris);
}

#nova-react-root #public-detail :is(.offer-inquiry, .detail-facts-card) {
  min-width: 0;
}

#nova-react-root #apply-for-project > button,
#nova-react-root .detail-sidebar .offer-inquiry > button {
  white-space: normal;
  overflow-wrap: anywhere;
  line-height: 1.35;
}

#nova-react-root #public-detail .program-related a :is(b, strong) {
  color: var(--ng-ink);
}

#nova-react-root :is(.nv-tags span, .nv-context, .selected-project, .nv-receipt, .nv-results a) {
  background: #312839;
  border-color: var(--ng-divider);
  color: var(--ng-iris);
}

#nova-react-root #project-application .selected-project {
  background: #312839;
  border: 1px solid var(--ng-divider);
}

#nova-react-root :is(.nv-receipt dt, .selected-project span, #project-application small, .nv-field small, #creator-brief-example) {
  color: var(--ng-soft);
}

#nova-react-root :is(.nv-receipt dd, .selected-project strong, .nv-brand, .role-option strong) {
  color: var(--ng-ink);
}

#nova-react-root :is(.nv-secondary, .nv-notice, .application-receipt h3, #project-application [role="status"]:not(:empty)) {
  color: var(--ng-iris);
}

#nova-react-root :is(.nv-checks, .nv-guide fieldset) {
  border-color: var(--ng-frame);
}

#nova-react-root :is(form .form-field-error[aria-live], .application-error[role="alert"]) {
  color: #ffcedc !important;
}

#nova-react-root form .form-field-error[aria-live] {
  background: #482435;
}

#nova-react-root :is(main, dialog) :is(input, select, textarea)[aria-invalid="true"],
#nova-react-root #creator-application .group-options label:has([aria-invalid="true"]) {
  border-color: #df86a8 !important;
}

#nova-react-root .contact-page .group-options label {
  white-space: normal;
}

#nova-react-root .contact-page .group-options label:has(:checked) {
  background: #403354 !important;
  border-color: var(--ng-iris) !important;
}

#nova-react-root :is(#nv-close, dialog .close) {
  background: #372e46;
  color: var(--ng-ink);
}

#nova-react-root :is(#nv-close, dialog .close):is(:hover, :focus-visible) {
  background: #493a5e;
}

/* The directory drawer is mounted in the document rather than its shadow root. */
#nova-react-root #creator-drawer[open] {
  background: #191720 !important;
  max-block-size: 100dvh;
  color: var(--ng-ink) !important;
}

#nova-react-root #creator-drawer .drawer-bar {
  background: radial-gradient(ellipse at 80% 66%, #5c478577, transparent 69%), linear-gradient(130deg, #221a33, #37294f) !important;
}

#nova-react-root #creator-drawer .drawer-avatar {
  background: #332b44;
  border-color: #262131;
  box-shadow: 0 0 0 4px #262131;
  color: var(--ng-ink);
}

#nova-react-root #creator-drawer :is(.drawer-tags li, .drawer-formats li, #drawer-platform) {
  background: #35294a;
  color: var(--ng-ink);
}

#nova-react-root #creator-drawer :is(.drawer-stats, .drawer-video) {
  background: var(--ng-glass);
  border-color: var(--ng-divider);
}

#nova-react-root #creator-drawer .drawer-stats > div + div {
  border-color: var(--ng-divider);
}

#nova-react-root #creator-drawer :is(.drawer-stats dd, .drawer-subtitle, .drawer-section > p) {
  color: var(--ng-soft);
}

#nova-react-root #creator-drawer :is(a.drawer-link, .drawer-save) {
  color: var(--ng-iris) !important;
}

#nova-react-root #marketplace :is(.portrait:not(:has(img)), .results-bar small) {
  background: #332b44;
  color: var(--ng-ink);
}

/* These controls live inside the desktop marketplace shadow tree. */
:host :is(.filter-heading h3 span, .card-footer .card-add:where(:not([aria-pressed="true"]))) {
  background: #392f4b !important;
  border-color: var(--ng-frame) !important;
  color: var(--ng-ink) !important;
}

:host :is(.saved-only, .favorite)[aria-pressed="true"],
:host .card-footer .card-add[aria-pressed="true"] {
  background: var(--ng-iris) !important;
  border-color: var(--ng-iris) !important;
  color: #221832 !important;
}

:host :is(.filter-heading, .results-toolbar, .pagination-row) {
  color: var(--ng-soft);
}
