/* The actual Pal Explorer Work suitability menu, shared without page variants. */
.catalog-options-clear {
  --filter-accent: #e8786e;
  position: relative;
  width: 100%;
  min-height: 2rem;
  margin-top: .28rem;
  padding: .38rem .48rem .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  color: #e8a19a;
  border: 0;
  border-top: 1px solid color-mix(in srgb, var(--filter-accent) 42%, transparent);
  background: linear-gradient(180deg, color-mix(in srgb, var(--filter-accent) 6%, transparent), color-mix(in srgb, var(--filter-accent) 16%, transparent));
  font: inherit;
  font-size: .62rem;
  letter-spacing: .045em;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}

.catalog-options-clear:not(:disabled) { border: 1px solid var(--filter-accent); }
.catalog-options-clear > span:not(.filter-selection-frame) { font-size: .9rem; }
.catalog-options-clear > strong { font-weight: 800; }
.catalog-options-clear > .filter-selection-frame {
  position: absolute;
  z-index: 4;
  inset: -.28rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease;
}
.catalog-options-clear > .filter-selection-frame i {
  position: absolute;
  width: .68rem;
  height: .68rem;
  color: var(--filter-accent);
}
.catalog-options-clear > .filter-selection-frame i:nth-child(1) { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.catalog-options-clear > .filter-selection-frame i:nth-child(2) { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.catalog-options-clear > .filter-selection-frame i:nth-child(3) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.catalog-options-clear > .filter-selection-frame i:nth-child(4) { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.catalog-options-clear:not(:disabled):is(:hover, :focus-visible) {
  color: color-mix(in srgb, var(--filter-accent) 35%, #fff);
  background: linear-gradient(180deg, color-mix(in srgb, var(--filter-accent) 13%, transparent), color-mix(in srgb, var(--filter-accent) 27%, transparent));
  outline: 1px solid color-mix(in srgb, var(--filter-accent) 68%, transparent);
  outline-offset: -1px;
}
.catalog-options-clear:not(:disabled):is(:hover, :focus-visible) > .filter-selection-frame { opacity: 1; }
.catalog-options-clear:not(:disabled):is(:hover, :focus-visible) > .filter-selection-frame i { animation: paldeck-corner-breathe 980ms ease-in-out 160ms infinite alternate; }
.catalog-options-clear:disabled {
  color: #65787c;
  border: 0;
  border-top: 1px solid rgba(113, 139, 144, .18);
  background: rgba(5, 18, 24, .5);
  cursor: default;
  opacity: .68;
}

.subfilter-actions .catalog-options-clear {
  min-height: 28px;
  margin-top: 0;
  padding: 0 .35rem;
  font-size: 9px;
}
.subfilter-actions .catalog-options-clear--show {
  --filter-accent: #35d49a;
  color: #81f1c5;
  background: linear-gradient(180deg, rgb(20 118 87 / 14%), rgb(9 76 58 / 28%));
}
.subfilter-actions .catalog-options-clear--hide {
  --filter-accent: #e8786e;
  color: #ffadad;
  background: linear-gradient(180deg, rgb(131 48 43 / 6%), rgb(106 30 34 / 28%));
}

.catalog-command--atlas .inline-filters .misc-filter-menu {
  position: relative;
  z-index: var(--filter-stack, 1);
  min-width: 0;
}

.catalog-command--atlas .inline-filters .misc-filter-menu:hover,
.catalog-command--atlas .inline-filters .misc-filter-menu:focus-within {
  z-index: calc(250 + var(--filter-stack, 1));
}

.catalog-command--atlas .inline-filters .misc-filter-menu[open] {
  z-index: calc(500 + var(--catalog-open-order, 0));
}

.catalog-command--atlas .inline-filters .misc-filter-menu > summary {
  width: 100%;
  list-style: none;
}
.catalog-command--atlas .inline-filters .misc-filter-menu > .atlas-compact-option { --filter-accent: inherit; }
.catalog-command--atlas .inline-filters .misc-filter-menu > summary::marker { content: ""; }
.catalog-command--atlas .inline-filters .misc-filter-menu > summary::-webkit-details-marker { display: none; }
.catalog-command--atlas .inline-filters .misc-filter-menu > summary::before { display: none; }
.catalog-command--atlas .inline-filters .misc-filter-menu > summary::after {
  width: var(--catalog-chevron-size, .68rem);
  height: var(--catalog-chevron-size, .68rem);
  grid-column: 3;
  grid-row: 1 / 3;
  place-self: center;
  border: 0;
  background: var(--catalog-chevron-color, #70f4ff);
  mask: var(--catalog-chevron-mask) center / contain no-repeat;
  -webkit-mask: var(--catalog-chevron-mask) center / contain no-repeat;
  content: "";
  transform: rotate(0deg);
  transition: transform 150ms ease;
}
.catalog-command--atlas .inline-filters .misc-filter-menu[open] > summary::after {
  transform: rotate(180deg);
}

.catalog-command--atlas .inline-filters .misc-filter-options,
.catalog-command--atlas .inline-filters .level-menu {
  position: absolute;
  z-index: 1000;
  top: calc(100% + .3rem);
  right: auto;
  left: 0;
  width: max-content;
  min-width: 100%;
  max-width: min(17rem, calc(100vw - 1rem));
  max-height: min(15rem, 62vh);
  padding: .35rem;
  display: grid;
  gap: .12rem;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  border: 1px solid rgba(91, 207, 216, .42);
  border-radius: 2px;
  background: rgba(4, 17, 23, .98);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .58), inset 0 1px rgba(177, 232, 239, .04);
  clip-path: none;
  scrollbar-color: #91a8ad #172126;
  scrollbar-width: thin;
  transform: translateX(var(--catalog-menu-shift-x, 0px));
}

/* Composite menus keep the canonical shell while allowing grouped controls. */
.catalog-command--atlas .inline-filters .misc-filter-options.catalog-options-custom {
  width: min(38rem, calc(100vw - 1rem));
  max-width: min(38rem, calc(100vw - 1rem));
  padding: .55rem;
  overflow: auto;
}

.catalog-command--atlas .inline-filters .catalog-options-custom > :first-child {
  min-width: 0;
}

.catalog-command--atlas .inline-filters .misc-filter-options > label {
  position: relative;
  z-index: 1;
  min-height: 1.9rem;
  padding: 0 .35rem;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto 10px;
  align-items: center;
  gap: .45rem;
  overflow: visible;
  color: #c8d9dc;
  font-size: .68rem;
  white-space: normal;
  overflow-wrap: anywhere;
  cursor: pointer;
  outline: 0;
  transition: color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}
.catalog-command--atlas .inline-filters .misc-filter-options > label > span:not(.filter-selection-frame) { grid-column: 1; }
.catalog-command--atlas .inline-filters .misc-filter-options > label > input {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.catalog-command--atlas .inline-filters .misc-filter-options > label::after {
  width: 10px;
  height: 10px;
  display: grid;
  grid-column: 3;
  place-items: center;
  box-sizing: border-box;
  color: transparent;
  border: 1px solid rgba(132, 158, 164, .62);
  border-radius: 1px;
  background: rgba(3, 15, 20, .76);
  box-shadow: inset 0 0 4px rgba(0, 0, 0, .28);
  content: "";
  font-size: .52rem;
  font-weight: 900;
  line-height: 1;
  transform: scale(.9);
  transition: color 150ms ease, border-color 150ms ease, background 150ms ease, box-shadow 150ms ease, transform 150ms ease;
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:not(:has(> input:checked)):hover::after,
.catalog-command--atlas .inline-filters .misc-filter-options > label:not(:has(> input:checked)):focus-within::after {
  border-color: color-mix(in srgb, var(--filter-accent, #70f4ff) 44%, #82989d);
  background: color-mix(in srgb, var(--filter-accent, #70f4ff) 5%, #071820);
  box-shadow: 0 0 6px color-mix(in srgb, var(--filter-accent, #70f4ff) 8%, transparent);
  transform: scale(1);
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:has(> input:checked)::after {
  color: var(--filter-accent, #70f4ff);
  border-color: color-mix(in srgb, var(--filter-accent, #70f4ff) 78%, #9eb2b5);
  background: color-mix(in srgb, var(--filter-accent, #70f4ff) 12%, #06171e);
  content: "\2713";
  text-shadow: 0 0 4px color-mix(in srgb, var(--filter-accent, #70f4ff) 54%, transparent);
  animation: paldeck-filter-tick-in 180ms cubic-bezier(.2, .72, .25, 1) both;
  transform: scale(1);
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:has(> input:checked) {
  color: #f2fdff;
  background: linear-gradient(105deg, color-mix(in srgb, var(--filter-accent, #70f4ff) 12%, #081a22), color-mix(in srgb, var(--filter-accent, #70f4ff) 6%, #06151c) 58%, #05141b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--filter-accent, #70f4ff) 56%, rgba(49, 82, 89, .48)), inset 0 0 10px color-mix(in srgb, var(--filter-accent, #70f4ff) 7%, transparent);
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:hover {
  z-index: 20;
  color: #fff;
  background: linear-gradient(105deg, color-mix(in srgb, var(--filter-accent, #70f4ff) 13%, #081a22), color-mix(in srgb, var(--filter-accent, #70f4ff) 6%, #06151c) 58%, #05141b);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--filter-accent, #70f4ff) 68%, rgba(70, 96, 101, .54)), inset 0 0 10px color-mix(in srgb, var(--filter-accent, #70f4ff) 8%, transparent);
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:hover > .filter-selection-frame { opacity: 1; }
.catalog-command--atlas .inline-filters .misc-filter-options > label:hover > .filter-selection-frame i {
  animation: paldeck-corner-breathe 980ms ease-in-out 160ms infinite alternate;
}
.catalog-command--atlas .inline-filters .misc-filter-options > label:has(> input:focus-visible) {
  outline: 1px solid color-mix(in srgb, var(--filter-accent, #70f4ff) 68%, #789095);
  outline-offset: -1px;
}

.catalog-command--atlas .inline-filters .catalog-options-clear {
  --filter-accent: #e8786e;
  position: relative;
  width: 100%;
  min-height: 2rem;
  margin-top: .28rem;
  padding: .38rem .48rem .3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .36rem;
  color: #e8a19a;
  border: 0;
  border-top: 1px solid color-mix(in srgb, #e8786e 42%, transparent);
  background: linear-gradient(180deg, rgba(131, 48, 43, .06), rgba(131, 48, 43, .16));
  font: inherit;
  font-size: .62rem;
  letter-spacing: .045em;
  cursor: pointer;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
}
.catalog-command--atlas .inline-filters .catalog-options-clear:not(:disabled) {
  border: 1px solid #e8786e;
}
.catalog-command--atlas .inline-filters .catalog-options-clear:not(:disabled):is(:hover, :focus-visible) > .filter-selection-frame {
  opacity: 1;
}
.catalog-command--atlas .inline-filters .catalog-options-clear:not(:disabled):is(:hover, :focus-visible) > .filter-selection-frame i {
  animation: paldeck-corner-breathe 980ms ease-in-out 160ms infinite alternate;
}
.catalog-command--atlas .inline-filters .catalog-options-clear > span { font-size: .9rem; }
.catalog-command--atlas .inline-filters .catalog-options-clear:not(:disabled):hover,
.catalog-command--atlas .inline-filters .catalog-options-clear:not(:disabled):focus-visible {
  color: #ffd5d0;
  border-color: #e8786e;
  background: linear-gradient(180deg, rgba(164, 58, 51, .13), rgba(164, 58, 51, .27));
  outline: 1px solid color-mix(in srgb, #e8786e 68%, transparent);
  outline-offset: -1px;
}
.catalog-command--atlas .inline-filters .catalog-options-clear:disabled {
  color: #65787c;
  border: 0;
  border-top: 1px solid rgba(113, 139, 144, .18);
  background: rgba(5, 18, 24, .5);
  cursor: default;
  opacity: .68;
}

.catalog-command--atlas .inline-filters .catalog-select-menu {
  width: max-content;
  min-width: min(8.2rem, 100%);
  max-width: min(13.5rem, 100%);
}
.catalog-command--atlas .inline-filters .catalog-select-menu > summary {
  grid-template-columns: minmax(0, 1fr) 12px;
  padding-inline: .65rem .5rem;
}
.catalog-command--atlas .inline-filters .catalog-select-menu > summary > span:not(.filter-selection-frame) {
  grid-column: 1;
  grid-row: 1 / 3;
  align-self: center;
}
.catalog-command--atlas .inline-filters .catalog-select-menu > summary::after { grid-column: 2; }
.catalog-native-source { display: none !important; pointer-events: none !important; }
.catalog-select-shell > .atlas-control-chevron { display: none !important; }

@keyframes paldeck-filter-tick-in {
  from { opacity: .35; transform: scale(.62); }
  to { opacity: 1; transform: scale(1); }
}

.catalog-command--atlas .inline-filters .filter-selection-frame {
  position: absolute;
  z-index: 4;
  inset: -.22rem;
  width: auto;
  height: auto;
  overflow: visible;
  grid-area: auto;
  align-self: normal;
  justify-self: normal;
  opacity: 0;
  pointer-events: none;
  transform: scale(1);
  transform-origin: center;
  transition: opacity 180ms cubic-bezier(.2, .72, .25, 1);
}
.catalog-command--atlas .inline-filters .filter-selection-frame i {
  position: absolute;
  width: .62rem;
  height: .62rem;
  color: color-mix(in srgb, var(--filter-accent, #70f4ff) 78%, #071820);
  filter: drop-shadow(0 0 3px color-mix(in srgb, var(--filter-accent, #70f4ff) 62%, transparent));
}
.catalog-command--atlas .inline-filters .filter-selection-frame i:nth-child(1) { top: 0; left: 0; border-top: 2px solid; border-left: 2px solid; }
.catalog-command--atlas .inline-filters .filter-selection-frame i:nth-child(2) { top: 0; right: 0; border-top: 2px solid; border-right: 2px solid; }
.catalog-command--atlas .inline-filters .filter-selection-frame i:nth-child(3) { right: 0; bottom: 0; border-right: 2px solid; border-bottom: 2px solid; }
.catalog-command--atlas .inline-filters .filter-selection-frame i:nth-child(4) { bottom: 0; left: 0; border-bottom: 2px solid; border-left: 2px solid; }
.catalog-command--atlas .inline-filters .atlas-compact-option:is(:hover, :focus-visible) .filter-selection-frame,
.catalog-command--atlas .inline-filters .misc-filter-options > label:hover > .filter-selection-frame { opacity: 1; }

.catalog-command--atlas .inline-filters .misc-filter-menu[open] > .atlas-compact-option,
.catalog-command--atlas .inline-filters .misc-filter-menu[data-selected="true"] > .atlas-compact-option {
  color: #f2fdff;
  border-color: color-mix(in srgb, var(--filter-accent, #70f4ff) 56%, rgba(49, 82, 89, .48));
  background: linear-gradient(105deg, color-mix(in srgb, var(--filter-accent, #70f4ff) 12%, #081a22), color-mix(in srgb, var(--filter-accent, #70f4ff) 6%, #06151c) 58%, #05141b);
  box-shadow: inset 0 0 12px color-mix(in srgb, var(--filter-accent, #70f4ff) 7%, transparent), 0 0 8px color-mix(in srgb, var(--filter-accent, #70f4ff) 7%, transparent);
}
.catalog-command--atlas .inline-filters .misc-filter-menu:is([open], [data-selected="true"]) > .atlas-compact-option:hover {
  border-color: color-mix(in srgb, var(--filter-accent, #70f4ff) 68%, rgba(70, 96, 101, .54));
}
.catalog-command--atlas .inline-filters .misc-filter-menu:is([open], [data-selected="true"]) > .atlas-compact-option:focus-visible {
  border-color: color-mix(in srgb, var(--filter-accent, #70f4ff) 72%, rgba(78, 104, 109, .58));
  outline: 0;
}
.catalog-command--atlas .inline-filters .filter-selected-count {
  position: absolute;
  z-index: 2;
  top: 50%;
  right: 1.15rem;
  min-width: .9rem;
  padding: .08rem .22rem;
  color: color-mix(in srgb, var(--filter-accent, #70f4ff) 72%, #dcecee);
  border: 1px solid color-mix(in srgb, var(--filter-accent, #70f4ff) 32%, transparent);
  border-radius: 999px;
  background: rgba(2, 30, 42, .72);
  font-size: .45rem;
  font-weight: 800;
  line-height: 1;
  text-align: center;
  transform: translateY(-50%);
}

@media (prefers-reduced-motion: reduce) {
  .catalog-command--atlas .inline-filters .misc-filter-options > label:hover > .filter-selection-frame i {
    animation: none;
  }
}
