.node-system-page :is(#user-view, #debug-view) :is([data-user-upload-card], [data-d3-upload-card], .upscaler-upload).is-file-dragover {
  position: relative;
  border-style: solid;
  /* Temporarily replace the existing required/complete border, not layer a
     second drop outline over it. Restore those states when dragging ends. */
  border-color: var(--color-focus) !important;
  box-shadow: none;
}

:is([data-user-upload-card], [data-d3-upload-card], .upscaler-upload, .custom-reference-card > .d3-upload-target) > .workflow-upload-drop-cue {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  border: 0;
  border-radius: inherit;
  background: color-mix(in srgb, var(--color-surface) 94%, var(--color-focus));
  color: var(--color-text-primary);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  pointer-events: none;
}

.workflow-upload-drop-cue > .workflow-upload-drop-icon {
  width: 48px;
  height: 48px;
  margin-bottom: 4px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: color-mix(in srgb, var(--color-focus) 10%, var(--color-surface));
  color: var(--color-focus);
}

.workflow-upload-drop-icon > svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.75;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.workflow-upload-drop-cue > strong {
  font: inherit;
  line-height: 1.4;
  text-align: center;
}

.workflow-upload-drop-cue > small {
  color: var(--color-text-secondary);
  font-size: 12px;
  font-weight: 400;
  line-height: 1.4;
  text-align: center;
}

/* The add-more tile is only thumbnail-sized, not a full upload card. */
.custom-reference-card > .d3-upload-target > .workflow-upload-drop-cue.is-compact {
  grid-template-columns: minmax(0, 1fr);
  gap: 4px;
  padding: 6px;
  font-size: 11px;
}
.workflow-upload-drop-cue.is-compact > .workflow-upload-drop-icon {
  width: 28px;
  height: 28px;
  margin: 0;
}
.workflow-upload-drop-cue.is-compact .workflow-upload-drop-icon > svg { width: 18px; height: 18px; }
.workflow-upload-drop-cue.is-compact > strong { max-width: 100%; }

.reference-limit-toast {
  position: fixed;
  z-index: 10000;
  left: 50%;
  bottom: calc(88px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: max-content;
  max-width: min(420px, calc(100vw - 32px));
  box-sizing: border-box;
  padding: 12px 16px;
  border: 1px solid var(--pxds-border, #cbd4e0);
  border-radius: 12px;
  background: var(--pxds-surface-1, #fff);
  color: var(--color-text-primary, #16191e);
  box-shadow: 0 6px 24px rgb(0 0 0 / 16%);
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  pointer-events: none;
}
.reference-limit-toast[hidden] { display: none; }
