:root {
  --ui-icon-accent: #2f6fed;
  --ui-icon-accent-2: #6f54e8;
  --ui-icon-ring: rgba(47, 111, 237, 0.3);
}

:where(button, a).ui-iconified {
  --ui-icon-size: 1.05rem;
  --ui-icon-shift: 0px;
  align-items: center;
  gap: 0.48em;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 140ms ease;
}

.ui-icon-shell {
  position: relative;
  display: inline-grid;
  flex: 0 0 auto;
  width: 1.65em;
  height: 1.65em;
  place-items: center;
  overflow: hidden;
  color: currentColor;
  border: 1px solid color-mix(in srgb, currentColor 12%, transparent);
  border-radius: 0.56em;
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.74), transparent 40%),
    color-mix(in srgb, currentColor 7%, transparent);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
  transform: translateY(var(--ui-icon-shift));
  transition:
    color 160ms ease,
    background 180ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    transform 180ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ui-icon {
  display: block;
  width: var(--ui-icon-size);
  height: var(--ui-icon-size);
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.85;
  vector-effect: non-scaling-stroke;
  transition:
    color 160ms ease,
    fill 160ms ease,
    opacity 160ms ease,
    stroke-width 160ms ease,
    transform 180ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.ui-icon .ui-icon-accent {
  fill: currentColor;
  stroke: none;
  opacity: 0.18;
  transition: opacity 160ms ease, transform 180ms ease;
  transform-origin: center;
}

:where(button, a).ui-iconified:hover:not(:disabled):not([aria-disabled="true"]) {
  --ui-icon-shift: -1px;
}

:where(button, a).ui-iconified:hover:not(:disabled):not([aria-disabled="true"]) .ui-icon-shell {
  border-color: color-mix(in srgb, currentColor 24%, transparent);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.82), transparent 42%),
    color-mix(in srgb, currentColor 11%, transparent);
  box-shadow: 0 5px 12px color-mix(in srgb, currentColor 12%, transparent), inset 0 1px 0 rgba(255,255,255,.72);
}

:where(button, a).ui-iconified:hover:not(:disabled):not([aria-disabled="true"]) .ui-icon {
  stroke-width: 2.05;
  transform: scale(1.06);
}

:where(button, a).ui-iconified:active:not(:disabled):not([aria-disabled="true"]) {
  transform: translateY(1px) scale(0.985);
}

:where(button, a).ui-iconified:active:not(:disabled):not([aria-disabled="true"]) .ui-icon-shell {
  transform: translateY(1px) scale(0.92);
  box-shadow: inset 0 1px 3px color-mix(in srgb, currentColor 16%, transparent);
}

:where(button, a).ui-iconified:focus-visible {
  outline: 3px solid var(--ui-icon-ring);
  outline-offset: 2px;
}

:where(button, a).ui-iconified:disabled,
:where(button, a).ui-iconified[aria-disabled="true"],
:where(button, a).ui-iconified.is-disabled {
  cursor: not-allowed;
  opacity: 0.46;
  filter: saturate(0.45);
}

:where(button, a).ui-iconified:is(.active, .selected, [aria-selected="true"], [aria-pressed="true"], [aria-current="true"]),
:where(button, a).ui-iconified[data-ui-icon-state="on"] {
  --ui-icon-state-color: var(--ui-icon-accent);
}

:where(button, a).ui-iconified:is(.active, .selected, [aria-selected="true"], [aria-pressed="true"], [aria-current="true"]) .ui-icon-shell,
:where(button, a).ui-iconified[data-ui-icon-state="on"] .ui-icon-shell {
  color: var(--ui-icon-state-color);
  border-color: color-mix(in srgb, var(--ui-icon-state-color) 26%, transparent);
  background:
    radial-gradient(circle at 28% 18%, rgba(255, 255, 255, 0.84), transparent 40%),
    linear-gradient(145deg, color-mix(in srgb, var(--ui-icon-state-color) 16%, white), color-mix(in srgb, var(--ui-icon-accent-2) 10%, white));
  box-shadow: 0 5px 14px color-mix(in srgb, var(--ui-icon-state-color) 16%, transparent), inset 0 1px 0 rgba(255,255,255,.82);
}

:where(button, a).ui-iconified:is(.active, .selected, [aria-selected="true"], [aria-pressed="true"], [aria-current="true"]) .ui-icon-accent,
:where(button, a).ui-iconified[data-ui-icon-state="on"] .ui-icon-accent {
  opacity: 0.34;
  transform: scale(1.08);
}

:where(button, a).ui-iconified[aria-expanded="true"] .ui-icon-shell {
  color: var(--ui-icon-accent);
  border-color: color-mix(in srgb, var(--ui-icon-accent) 30%, transparent);
  background: color-mix(in srgb, var(--ui-icon-accent) 12%, white);
}

:where(button, a).ui-iconified[data-ui-icon="chevron-down"][aria-expanded="true"] .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="menu"][aria-expanded="true"] .ui-icon {
  transform: rotate(180deg);
}

:where(button, a).ui-iconified[data-ui-icon="refresh"]:hover .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="reset"]:hover .ui-icon {
  transform: rotate(-24deg) scale(1.06);
}

:where(button, a).ui-iconified[data-ui-icon="send"]:hover .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="share"]:hover .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="upload"]:hover .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="download"]:hover .ui-icon {
  transform: translate(1px, -1px) scale(1.06);
}

:where(button, a).ui-iconified[data-ui-icon="plus"]:hover .ui-icon,
:where(button, a).ui-iconified[data-ui-icon="sparkles"]:hover .ui-icon-accent {
  transform: rotate(8deg) scale(1.1);
}

:where(button, a).ui-iconified[data-ui-icon="trash"]:hover:not(:disabled) .ui-icon-shell,
:where(button, a).ui-iconified.danger .ui-icon-shell {
  color: #d84747;
  background: color-mix(in srgb, #f05a5a 10%, white);
  border-color: color-mix(in srgb, #d84747 22%, transparent);
}

.ui-icon-only {
  gap: 0 !important;
}

.ui-icon-only > .ui-icon-shell {
  box-sizing: border-box;
  width: 100%;
  height: 100%;
  min-width: 1.45rem;
  min-height: 1.45rem;
  border-color: transparent;
  border-radius: inherit;
  background: transparent;
  box-shadow: none;
}

.ui-icon-only:hover:not(:disabled) > .ui-icon-shell {
  border-color: color-mix(in srgb, currentColor 14%, transparent);
  background: color-mix(in srgb, currentColor 8%, transparent);
  box-shadow: none;
}

.ui-icon-compact > .ui-icon-shell,
.front-nav-item > .ui-icon-shell,
.mode-option > .ui-icon-shell,
.asset-tabs button > .ui-icon-shell,
.asset-filter-pills button > .ui-icon-shell,
.video-ratio-options button > .ui-icon-shell,
.video-pill-options button > .ui-icon-shell,
.video-preview-tabs button > .ui-icon-shell,
.video-tabs button > .ui-icon-shell,
.points-filters button > .ui-icon-shell,
.affiliate-periods button > .ui-icon-shell,
.affiliate-range button > .ui-icon-shell,
.tab.ui-iconified > .ui-icon-shell {
  width: 1.35em;
  height: 1.35em;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.video-preview-tabs button > .ui-icon-shell,
.video-tabs button > .ui-icon-shell {
  width: 1.1rem;
  height: 1.1rem;
  --ui-icon-size: 0.78rem;
}

.library-card.ui-icon-card > .library-folder {
  display: grid;
  place-items: center;
}

.library-card.ui-icon-card > .library-folder > .ui-icon-shell {
  width: 2.75rem;
  height: 2.75rem;
  color: #516273;
  border-radius: 0.9rem;
  background: rgba(255, 255, 255, 0.5);
  --ui-icon-size: 1.45rem;
}

.library-card.ui-icon-card:hover > .library-folder > .ui-icon-shell {
  color: var(--ui-icon-accent);
}

.asset-card.ui-icon-media {
  position: relative;
}

.asset-card.ui-icon-media > .ui-icon-shell {
  position: absolute;
  z-index: 3;
  top: 8px;
  right: 8px;
  width: 1.65rem;
  height: 1.65rem;
  color: #fff;
  border-color: rgba(255,255,255,.78);
  border-radius: 999px;
  background: linear-gradient(145deg, var(--ui-icon-accent), var(--ui-icon-accent-2));
  box-shadow: 0 5px 12px rgba(47, 111, 237, 0.26);
  opacity: 0;
  transform: scale(0.72);
  pointer-events: none;
  --ui-icon-size: 0.9rem;
}

.asset-card.ui-icon-media:is(.selected, [aria-selected="true"]) > .ui-icon-shell {
  opacity: 1;
  transform: scale(1);
}

.front-nav-item.ui-iconified {
  justify-content: center;
  gap: 0.3rem;
}

.front-nav-item.ui-iconified > .ui-icon-shell {
  width: 2rem;
  height: 2rem;
  color: #4e5969;
  border-radius: 0.68rem;
}

.front-nav-item.ui-iconified.active > .ui-icon-shell {
  color: #176b58;
  background: linear-gradient(145deg, #effaf6, #e2f2ec);
  box-shadow: 0 6px 14px rgba(24, 107, 88, 0.12), inset 0 1px 0 white;
}

.front-nav-item.ui-iconified:hover > .ui-icon-shell {
  color: #176b58;
}

@media (prefers-reduced-motion: reduce) {
  :where(button, a).ui-iconified,
  .ui-icon-shell,
  .ui-icon,
  .ui-icon .ui-icon-accent {
    transition: none !important;
  }
}
