@use '../../../../styles/_globals.scss' as *;

:host {
  display: block;
}

.task-selector-backdrop {
  position: fixed;
  inset: 0;
  // Standard app scrim (matches dialogs/overlays); no custom blur.
  background: var(--c-backdrop);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
}

.task-selector-overlay {
  // Highest-elevation surface so the panel + input read as opaque against the
  // scrim (the previous --c-bg-raised was undefined → transparent panel).
  background: var(--bg-lightest);
  border-radius: 8px;
  box-shadow: var(--whiteframe-shadow-8dp);
  padding: var(--s2);
  width: 90%;
  max-width: 500px;
  max-height: 80vh;
  overflow: auto;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: var(--s2);

  @include mq(xs, max) {
    width: 95%;
    max-width: none;
  }

  select-task {
    width: 100%;
  }
}
